JSPM

@chainsafe/lodestar-config

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

Chain configuration required for lodestar

Package Exports

  • @chainsafe/lodestar-config
  • @chainsafe/lodestar-config/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/lodestar-config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

lodestar-config

npm License ETH2.0_Spec_Version 0.12.1 ES Version Node Version

Configuration variables for an Eth2 network -- consists of params and ssz types (from lodestar-params and lodestar-types respectively).

Usage

// mainet and minimal presets are available under non-default exports
import {config as mainnetConfig} from "@chainsafe/lodestar-config/lib/presets/mainnet";
import {config as minimalConfig} from "@chainsafe/lodestar-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