SigningInput constructor
SigningInput({
- int? version,
- Int64? nonce,
- Int64? gasLimit,
- String? gasPrice,
- int? chainID,
- List<
int> ? privateKey, - Transfer? transfer,
- ContractCall? call,
- 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 SigningInput({
$core.int? version,
$fixnum.Int64? nonce,
$fixnum.Int64? gasLimit,
$core.String? gasPrice,
$core.int? chainID,
$core.List<$core.int>? privateKey,
Transfer? transfer,
ContractCall? call,
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 (privateKey != null) result.privateKey = privateKey;
if (transfer != null) result.transfer = transfer;
if (call != null) result.call = call;
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;
}