Params constructor

Params({
  1. Int64? signedBlocksWindow,
  2. List<int>? minSignedPerWindow,
  3. Duration? downtimeJailDuration,
  4. List<int>? slashFractionDoubleSign,
  5. List<int>? slashFractionDowntime,
})

Implementation

factory Params({
  $fixnum.Int64? signedBlocksWindow,
  $core.List<$core.int>? minSignedPerWindow,
  $3.Duration? downtimeJailDuration,
  $core.List<$core.int>? slashFractionDoubleSign,
  $core.List<$core.int>? slashFractionDowntime,
}) {
  final _result = create();
  if (signedBlocksWindow != null) {
    _result.signedBlocksWindow = signedBlocksWindow;
  }
  if (minSignedPerWindow != null) {
    _result.minSignedPerWindow = minSignedPerWindow;
  }
  if (downtimeJailDuration != null) {
    _result.downtimeJailDuration = downtimeJailDuration;
  }
  if (slashFractionDoubleSign != null) {
    _result.slashFractionDoubleSign = slashFractionDoubleSign;
  }
  if (slashFractionDowntime != null) {
    _result.slashFractionDowntime = slashFractionDowntime;
  }
  return _result;
}