JSPM

@chainsafe/lodestar-types

0.26.1-dev.6+a75ef9b0c28
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 113
  • Score
    100M100P100Q76374F
  • License Apache-2.0

Typescript types required for lodestar

Package Exports

  • @chainsafe/lodestar-types
  • @chainsafe/lodestar-types/altair
  • @chainsafe/lodestar-types/lib/allForks
  • @chainsafe/lodestar-types/lib/allForks/types
  • @chainsafe/lodestar-types/lib/phase0
  • @chainsafe/lodestar-types/phase0

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

Readme

lodestar-types

npm License ETH2.0_Spec_Version 1.0.0 ES Version Node Version

This package is part of ChainSafe's Lodestar project

Typescript and SSZ types for Eth2 datastructures

Usage

Using the typescript types

import {BeaconState} from "@chainsafe/lodestar-types";

const b: BeaconState = {
  slot: 5,
  ...
};

Using the ssz types

import {ssz} from "@chainsafe/lodestar-types";

ssz.phase0.BeaconState.defaultValue();
ssz.altair.BeaconState.defaultValue();
...

License

Apache-2.0 ChainSafe Systems