@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
10 lines • 679 B
JavaScript
import { ContainerType, ListCompositeType } from "@chainsafe/ssz";
import { ssz } from "@lodestar/types";
// Misc SSZ types used only in the beacon-node package, no need to upstream to types
export const signedBLSToExecutionChangeVersionedType = new ContainerType({
// Assumes less than 256 forks, sounds reasonable in our lifetime
preCapella: ssz.Boolean,
data: ssz.capella.SignedBLSToExecutionChange,
}, { jsonCase: "eth2", typeName: "SignedBLSToExecutionChangeVersionedType" });
export const BlobSidecarsByRootRequestType = (fork, config) => new ListCompositeType(ssz.deneb.BlobIdentifier, config.getMaxRequestBlobSidecars(fork));
//# sourceMappingURL=types.js.map