Package Exports
- @chainsafe/eth2.0-params
- @chainsafe/eth2.0-params/lib/presets/mainnet
- @chainsafe/eth2.0-params/lib/presets/minimal
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@chainsafe/eth2.0-params) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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