0.2.1 • Published 4 years ago

@chainsafe/eth2.0-config v0.2.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 years ago

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