GenesisState constructor
GenesisState({
- Params? params,
- FeePool? feePool,
- Iterable<
DelegatorWithdrawInfo> ? delegatorWithdrawInfos, - String? previousProposer,
- Iterable<
ValidatorOutstandingRewardsRecord> ? outstandingRewards, - Iterable<
ValidatorAccumulatedCommissionRecord> ? validatorAccumulatedCommissions, - Iterable<
ValidatorHistoricalRewardsRecord> ? validatorHistoricalRewards, - Iterable<
ValidatorCurrentRewardsRecord> ? validatorCurrentRewards, - Iterable<
DelegatorStartingInfoRecord> ? delegatorStartingInfos, - Iterable<
ValidatorSlashEventRecord> ? validatorSlashEvents,
Implementation
factory GenesisState({
$3.Params? params,
$3.FeePool? feePool,
$core.Iterable<DelegatorWithdrawInfo>? delegatorWithdrawInfos,
$core.String? previousProposer,
$core.Iterable<ValidatorOutstandingRewardsRecord>? outstandingRewards,
$core.Iterable<ValidatorAccumulatedCommissionRecord>? validatorAccumulatedCommissions,
$core.Iterable<ValidatorHistoricalRewardsRecord>? validatorHistoricalRewards,
$core.Iterable<ValidatorCurrentRewardsRecord>? validatorCurrentRewards,
$core.Iterable<DelegatorStartingInfoRecord>? delegatorStartingInfos,
$core.Iterable<ValidatorSlashEventRecord>? validatorSlashEvents,
}) {
final _result = create();
if (params != null) {
_result.params = params;
}
if (feePool != null) {
_result.feePool = feePool;
}
if (delegatorWithdrawInfos != null) {
_result.delegatorWithdrawInfos.addAll(delegatorWithdrawInfos);
}
if (previousProposer != null) {
_result.previousProposer = previousProposer;
}
if (outstandingRewards != null) {
_result.outstandingRewards.addAll(outstandingRewards);
}
if (validatorAccumulatedCommissions != null) {
_result.validatorAccumulatedCommissions.addAll(validatorAccumulatedCommissions);
}
if (validatorHistoricalRewards != null) {
_result.validatorHistoricalRewards.addAll(validatorHistoricalRewards);
}
if (validatorCurrentRewards != null) {
_result.validatorCurrentRewards.addAll(validatorCurrentRewards);
}
if (delegatorStartingInfos != null) {
_result.delegatorStartingInfos.addAll(delegatorStartingInfos);
}
if (validatorSlashEvents != null) {
_result.validatorSlashEvents.addAll(validatorSlashEvents);
}
return _result;
}