GenesisState constructor
GenesisState({
- Params? params,
- List<
int> ? lastTotalPower, - Iterable<
LastValidatorPower> ? lastValidatorPowers, - Iterable<
Validator> ? validators, - Iterable<
Delegation> ? delegations, - Iterable<
UnbondingDelegation> ? unbondingDelegations, - Iterable<
Redelegation> ? redelegations, - bool? exported,
Implementation
factory GenesisState({
$7.Params? params,
$core.List<$core.int>? lastTotalPower,
$core.Iterable<LastValidatorPower>? lastValidatorPowers,
$core.Iterable<$7.Validator>? validators,
$core.Iterable<$7.Delegation>? delegations,
$core.Iterable<$7.UnbondingDelegation>? unbondingDelegations,
$core.Iterable<$7.Redelegation>? redelegations,
$core.bool? exported,
}) {
final _result = create();
if (params != null) {
_result.params = params;
}
if (lastTotalPower != null) {
_result.lastTotalPower = lastTotalPower;
}
if (lastValidatorPowers != null) {
_result.lastValidatorPowers.addAll(lastValidatorPowers);
}
if (validators != null) {
_result.validators.addAll(validators);
}
if (delegations != null) {
_result.delegations.addAll(delegations);
}
if (unbondingDelegations != null) {
_result.unbondingDelegations.addAll(unbondingDelegations);
}
if (redelegations != null) {
_result.redelegations.addAll(redelegations);
}
if (exported != null) {
_result.exported = exported;
}
return _result;
}