0.2.1 • Published 4 years ago

@chainsafe/eth2.0-params v0.2.1

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

eth2.0-params

npm License

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