ActionCore constructor
ActionCore({
- int? version,
- Int64? nonce,
- Int64? gasLimit,
- String? gasPrice,
- 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,
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;
}