Withdraw constructor

Withdraw({
  1. required int accountId,
  2. required int subAccountId,
  3. required int toChainId,
  4. required String toAddress,
  5. required int l2SourceToken,
  6. required int l1TargetToken,
  7. required String amount,
  8. String? callData,
  9. required String fee,
  10. required int nonce,
  11. required bool withdrawToL1,
  12. required int withdrawFeeRatio,
  13. int? ts,
  14. dynamic hint,
})

Implementation

factory Withdraw(
        {required int accountId,
        required int subAccountId,
        required int toChainId,
        required String toAddress,
        required int l2SourceToken,
        required int l1TargetToken,
        required String amount,
        String? callData,
        required String fee,
        required int nonce,
        required bool withdrawToL1,
        required int withdrawFeeRatio,
        int? ts,
        dynamic hint}) =>
    RustLib.instance.api.withdrawNew(
        accountId: accountId,
        subAccountId: subAccountId,
        toChainId: toChainId,
        toAddress: toAddress,
        l2SourceToken: l2SourceToken,
        l1TargetToken: l1TargetToken,
        amount: amount,
        callData: callData,
        fee: fee,
        nonce: nonce,
        withdrawToL1: withdrawToL1,
        withdrawFeeRatio: withdrawFeeRatio,
        ts: ts,
        hint: hint);