StakingMessage constructor
StakingMessage({
- DirectiveCreateValidator? createValidatorMessage,
- DirectiveEditValidator? editValidatorMessage,
- DirectiveDelegate? delegateMessage,
- DirectiveUndelegate? undelegateMessage,
- DirectiveCollectRewards? collectRewards,
- List<
int> ? nonce, - List<
int> ? gasPrice, - List<
int> ? gasLimit,
Implementation
factory StakingMessage({
DirectiveCreateValidator? createValidatorMessage,
DirectiveEditValidator? editValidatorMessage,
DirectiveDelegate? delegateMessage,
DirectiveUndelegate? undelegateMessage,
DirectiveCollectRewards? collectRewards,
$core.List<$core.int>? nonce,
$core.List<$core.int>? gasPrice,
$core.List<$core.int>? gasLimit,
}) {
final _result = create();
if (createValidatorMessage != null) {
_result.createValidatorMessage = createValidatorMessage;
}
if (editValidatorMessage != null) {
_result.editValidatorMessage = editValidatorMessage;
}
if (delegateMessage != null) {
_result.delegateMessage = delegateMessage;
}
if (undelegateMessage != null) {
_result.undelegateMessage = undelegateMessage;
}
if (collectRewards != null) {
_result.collectRewards = collectRewards;
}
if (nonce != null) {
_result.nonce = nonce;
}
if (gasPrice != null) {
_result.gasPrice = gasPrice;
}
if (gasLimit != null) {
_result.gasLimit = gasLimit;
}
return _result;
}