@chainsafe/eth2.0-params
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

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

Package Sidebar

Install

npm i @chainsafe/eth2.0-params

Weekly Downloads

7

Version

0.2.1

License

Apache-2.0

Unpacked Size

36.7 kB

Total Files

14

Last publish

Collaborators

  • gregthegreek
  • sadiq1971
  • beroburny
  • morrigan88
  • alexey_krasnoperov
  • irubido
  • wemeetagain
  • mpetrunic