SigningInput constructor

SigningInput({
  1. List<int>? chainId,
  2. List<int>? nonce,
  3. TransactionMode? txMode,
  4. List<int>? gasPrice,
  5. List<int>? gasLimit,
  6. List<int>? maxInclusionFeePerGas,
  7. List<int>? maxFeePerGas,
  8. String? toAddress,
  9. List<int>? privateKey,
  10. Transaction? transaction,
  11. UserOperation? userOperation,
  12. Iterable<Access>? accessList,
  13. UserOperationV0_7? userOperationV07,
  14. Authorization? eip7702Authorization,
})

Implementation

factory SigningInput({
  $core.List<$core.int>? chainId,
  $core.List<$core.int>? nonce,
  TransactionMode? txMode,
  $core.List<$core.int>? gasPrice,
  $core.List<$core.int>? gasLimit,
  $core.List<$core.int>? maxInclusionFeePerGas,
  $core.List<$core.int>? maxFeePerGas,
  $core.String? toAddress,
  $core.List<$core.int>? privateKey,
  Transaction? transaction,
  UserOperation? userOperation,
  $core.Iterable<Access>? accessList,
  UserOperationV0_7? userOperationV07,
  Authorization? eip7702Authorization,
}) {
  final $result = create();
  if (chainId != null) {
    $result.chainId = chainId;
  }
  if (nonce != null) {
    $result.nonce = nonce;
  }
  if (txMode != null) {
    $result.txMode = txMode;
  }
  if (gasPrice != null) {
    $result.gasPrice = gasPrice;
  }
  if (gasLimit != null) {
    $result.gasLimit = gasLimit;
  }
  if (maxInclusionFeePerGas != null) {
    $result.maxInclusionFeePerGas = maxInclusionFeePerGas;
  }
  if (maxFeePerGas != null) {
    $result.maxFeePerGas = maxFeePerGas;
  }
  if (toAddress != null) {
    $result.toAddress = toAddress;
  }
  if (privateKey != null) {
    $result.privateKey = privateKey;
  }
  if (transaction != null) {
    $result.transaction = transaction;
  }
  if (userOperation != null) {
    $result.userOperation = userOperation;
  }
  if (accessList != null) {
    $result.accessList.addAll(accessList);
  }
  if (userOperationV07 != null) {
    $result.userOperationV07 = userOperationV07;
  }
  if (eip7702Authorization != null) {
    $result.eip7702Authorization = eip7702Authorization;
  }
  return $result;
}