GenesisState constructor

GenesisState({
  1. Params? params,
  2. Iterable<Balance>? balances,
  3. Iterable<Coin>? supply,
  4. Iterable<Metadata>? denomMetadata,
})

Implementation

factory GenesisState({
  $3.Params? params,
  $core.Iterable<Balance>? balances,
  $core.Iterable<$2.Coin>? supply,
  $core.Iterable<$3.Metadata>? denomMetadata,
}) {
  final _result = create();
  if (params != null) {
    _result.params = params;
  }
  if (balances != null) {
    _result.balances.addAll(balances);
  }
  if (supply != null) {
    _result.supply.addAll(supply);
  }
  if (denomMetadata != null) {
    _result.denomMetadata.addAll(denomMetadata);
  }
  return _result;
}