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
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