fundingNew method
Funding
fundingNew({
- required int accountId,
- required int subAccountId,
- required int subAccountNonce,
- required List<
int> fundingAccountIds, - required String fee,
- required int feeToken,
- dynamic hint,
override
Implementation
@override
Funding fundingNew(
{required int accountId,
required int subAccountId,
required int subAccountNonce,
required List<int> fundingAccountIds,
required String fee,
required int feeToken,
dynamic hint}) {
return handler.executeSync(SyncTask(
callFfi: () {
var arg0 = cst_encode_u_32(accountId);
var arg1 = cst_encode_u_8(subAccountId);
var arg2 = cst_encode_u_32(subAccountNonce);
var arg3 = cst_encode_list_prim_u_32_loose(fundingAccountIds);
var arg4 = cst_encode_String(fee);
var arg5 = cst_encode_u_16(feeToken);
return wire.wire_Funding_new(arg0, arg1, arg2, arg3, arg4, arg5);
},
codec: DcoCodec(
decodeSuccessData:
dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockFunding,
decodeErrorData: dco_decode_AnyhowException,
),
constMeta: kFundingNewConstMeta,
argValues: [
accountId,
subAccountId,
subAccountNonce,
fundingAccountIds,
fee,
feeToken
],
apiImpl: this,
hint: hint,
));
}