@chainsafe/eth2.0-config
v0.2.1
Published
Chain configuration required for eth2.0
Downloads
6
Readme
eth2.0-config
Configuration variables for an Eth2 network -- consists of params and ssz types (from eth2.0-params and eth2.0-types respectively).
Usage
// mainet and minimal presets are available under non-default exports
import {config as mainnetConfig} from "@chainsafe/eth2.0-config/lib/presets/mainnet";
import {config as minimalConfig} from "@chainsafe/eth2.0-config/lib/presets/mainnet";
// params available under `params`
const shardCount = mainnetConfig.params.SHARD_COUNT;
// types available under `types`
const BeaconStateType = mainnetConfig.types.BeaconState;
License
Apache-2.0