@chainsafe/eth2.0-config

Chain configuration required for eth2.0

Usage no npm install needed!

<script type="module">
  import chainsafeEth20Config from 'https://cdn.skypack.dev/@chainsafe/eth2.0-config';
</script>

README

eth2.0-config

npm License

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