ValidatorCurrentRewards constructor

ValidatorCurrentRewards({
  1. Iterable<DecCoin>? rewards,
  2. Int64? period,
})

Implementation

factory ValidatorCurrentRewards({
  $core.Iterable<$2.DecCoin>? rewards,
  $fixnum.Int64? period,
}) {
  final _result = create();
  if (rewards != null) {
    _result.rewards.addAll(rewards);
  }
  if (period != null) {
    _result.period = period;
  }
  return _result;
}