JSPM

@chainsafe/eth2.0-params

0.2.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q34680F
  • License Apache-2.0

Chain parameters required for eth2.0

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

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