ProtoStateGlobal constructor

ProtoStateGlobal({
  1. int? epoch,
  2. Int64? nextValidationTime,
  3. int? validationPeriod,
  4. List<int>? godAddress,
  5. List<int>? wordsSeed,
  6. Int64? lastSnapshot,
  7. Int64? epochBlock,
  8. List<int>? feePerGas,
  9. Int64? vrfProposerThreshold,
  10. List<int>? emptyBlocksBits,
  11. int? godAddressInvites,
  12. int? blocksCntWithoutCeremonialTxs,
})

Implementation

factory ProtoStateGlobal({
  $core.int? epoch,
  $fixnum.Int64? nextValidationTime,
  $core.int? validationPeriod,
  $core.List<$core.int>? godAddress,
  $core.List<$core.int>? wordsSeed,
  $fixnum.Int64? lastSnapshot,
  $fixnum.Int64? epochBlock,
  $core.List<$core.int>? feePerGas,
  $fixnum.Int64? vrfProposerThreshold,
  $core.List<$core.int>? emptyBlocksBits,
  $core.int? godAddressInvites,
  $core.int? blocksCntWithoutCeremonialTxs,
}) {
  final _result = create();
  if (epoch != null) {
    _result.epoch = epoch;
  }
  if (nextValidationTime != null) {
    _result.nextValidationTime = nextValidationTime;
  }
  if (validationPeriod != null) {
    _result.validationPeriod = validationPeriod;
  }
  if (godAddress != null) {
    _result.godAddress = godAddress;
  }
  if (wordsSeed != null) {
    _result.wordsSeed = wordsSeed;
  }
  if (lastSnapshot != null) {
    _result.lastSnapshot = lastSnapshot;
  }
  if (epochBlock != null) {
    _result.epochBlock = epochBlock;
  }
  if (feePerGas != null) {
    _result.feePerGas = feePerGas;
  }
  if (vrfProposerThreshold != null) {
    _result.vrfProposerThreshold = vrfProposerThreshold;
  }
  if (emptyBlocksBits != null) {
    _result.emptyBlocksBits = emptyBlocksBits;
  }
  if (godAddressInvites != null) {
    _result.godAddressInvites = godAddressInvites;
  }
  if (blocksCntWithoutCeremonialTxs != null) {
    _result.blocksCntWithoutCeremonialTxs = blocksCntWithoutCeremonialTxs;
  }
  return _result;
}