ValidatorHistoricalRewards constructor

ValidatorHistoricalRewards({
  1. Iterable<DecCoin>? cumulativeRewardRatio,
  2. int? referenceCount,
})

Implementation

factory ValidatorHistoricalRewards({
  $core.Iterable<$2.DecCoin>? cumulativeRewardRatio,
  $core.int? referenceCount,
}) {
  final _result = create();
  if (cumulativeRewardRatio != null) {
    _result.cumulativeRewardRatio.addAll(cumulativeRewardRatio);
  }
  if (referenceCount != null) {
    _result.referenceCount = referenceCount;
  }
  return _result;
}