walletFullExit method

  1. @override
Future<String> walletFullExit({
  1. required Wallet that,
  2. required int accountId,
  3. required int subAccountId,
  4. required int tokenId,
  5. required bool mapping,
  6. required EthTxOption ethParams,
  7. dynamic hint,
})
override

Implementation

@override
Future<String> walletFullExit(
    {required Wallet that,
    required int accountId,
    required int subAccountId,
    required int tokenId,
    required bool mapping,
    required EthTxOption ethParams,
    dynamic hint}) {
  return handler.executeNormal(NormalTask(
    callFfi: (port_) {
      var arg0 =
          cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockWallet(
              that);
      var arg1 = cst_encode_u_32(accountId);
      var arg2 = cst_encode_u_8(subAccountId);
      var arg3 = cst_encode_u_16(tokenId);
      var arg4 = cst_encode_bool(mapping);
      var arg5 =
          cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption(
              ethParams);
      return wire.wire_Wallet_full_exit(
          port_, arg0, arg1, arg2, arg3, arg4, arg5);
    },
    codec: DcoCodec(
      decodeSuccessData: dco_decode_String,
      decodeErrorData: dco_decode_AnyhowException,
    ),
    constMeta: kWalletFullExitConstMeta,
    argValues: [that, accountId, subAccountId, tokenId, mapping, ethParams],
    apiImpl: this,
    hint: hint,
  ));
}