ActionCore constructor

ActionCore({
  1. int? version,
  2. Int64? nonce,
  3. Int64? gasLimit,
  4. String? gasPrice,
  5. int? chainID,
  6. Transfer? transfer,
  7. ContractCall? execution,
  8. Staking_Create? stakeCreate,
  9. Staking_Reclaim? stakeUnstake,
  10. Staking_Reclaim? stakeWithdraw,
  11. Staking_AddDeposit? stakeAddDeposit,
  12. Staking_Restake? stakeRestake,
  13. Staking_ChangeCandidate? stakeChangeCandidate,
  14. Staking_TransferOwnership? stakeTransferOwnership,
  15. Staking_CandidateRegister? candidateRegister,
  16. Staking_CandidateBasicInfo? candidateUpdate,
})

Implementation

factory ActionCore({
  $core.int? version,
  $fixnum.Int64? nonce,
  $fixnum.Int64? gasLimit,
  $core.String? gasPrice,
  $core.int? chainID,
  Transfer? transfer,
  ContractCall? execution,
  Staking_Create? stakeCreate,
  Staking_Reclaim? stakeUnstake,
  Staking_Reclaim? stakeWithdraw,
  Staking_AddDeposit? stakeAddDeposit,
  Staking_Restake? stakeRestake,
  Staking_ChangeCandidate? stakeChangeCandidate,
  Staking_TransferOwnership? stakeTransferOwnership,
  Staking_CandidateRegister? candidateRegister,
  Staking_CandidateBasicInfo? candidateUpdate,
}) {
  final $result = create();
  if (version != null) {
    $result.version = version;
  }
  if (nonce != null) {
    $result.nonce = nonce;
  }
  if (gasLimit != null) {
    $result.gasLimit = gasLimit;
  }
  if (gasPrice != null) {
    $result.gasPrice = gasPrice;
  }
  if (chainID != null) {
    $result.chainID = chainID;
  }
  if (transfer != null) {
    $result.transfer = transfer;
  }
  if (execution != null) {
    $result.execution = execution;
  }
  if (stakeCreate != null) {
    $result.stakeCreate = stakeCreate;
  }
  if (stakeUnstake != null) {
    $result.stakeUnstake = stakeUnstake;
  }
  if (stakeWithdraw != null) {
    $result.stakeWithdraw = stakeWithdraw;
  }
  if (stakeAddDeposit != null) {
    $result.stakeAddDeposit = stakeAddDeposit;
  }
  if (stakeRestake != null) {
    $result.stakeRestake = stakeRestake;
  }
  if (stakeChangeCandidate != null) {
    $result.stakeChangeCandidate = stakeChangeCandidate;
  }
  if (stakeTransferOwnership != null) {
    $result.stakeTransferOwnership = stakeTransferOwnership;
  }
  if (candidateRegister != null) {
    $result.candidateRegister = candidateRegister;
  }
  if (candidateUpdate != null) {
    $result.candidateUpdate = candidateUpdate;
  }
  return $result;
}