GenesisState constructor

GenesisState({
  1. Params? params,
  2. List<int>? lastTotalPower,
  3. Iterable<LastValidatorPower>? lastValidatorPowers,
  4. Iterable<Validator>? validators,
  5. Iterable<Delegation>? delegations,
  6. Iterable<UnbondingDelegation>? unbondingDelegations,
  7. Iterable<Redelegation>? redelegations,
  8. 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;
}