@chainsafe/eth2.0-params
v0.2.1
Published
Chain parameters required for eth2.0
Downloads
25
Readme
eth2.0-params
Parameters for configuring an Eth2 network
Usage
// mainnet and minimal presets are available under non-default exports
import {params as mainnetParams} from "@chainsafe/eth2.0-params/lib/presets/mainnet";
import {params as minimalParams} from "@chainsafe/eth2.0-params/lib/presets/mainnet";
mainnetParams.SHARD_COUNT;
// custom params should follow the IBeaconParams interface
import {IBeaconParams} from "@chainsafe/eth2.0-params";
const testnetParams: IBeaconParams = {
...mainnetParams,
SHARD_COUNT: 4
};
License
Apache-2.0