UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

16 lines 1.04 kB
import { ChainForkConfig } from "@lodestar/config"; import { ForkAll, ForkPostAltair } from "@lodestar/params"; import { SSZTypesFor, Slot } from "@lodestar/types"; export declare function getSignedBlockTypeFromBytes(config: ChainForkConfig, bytes: Buffer | Uint8Array): SSZTypesFor<ForkAll, "SignedBeaconBlock">; export declare function getStateTypeFromBytes(config: ChainForkConfig, bytes: Buffer | Uint8Array): SSZTypesFor<ForkAll, "BeaconState">; export declare function getStateSlotFromBytes(bytes: Uint8Array): Slot; export declare function getLightClientHeaderTypeFromBytes(config: ChainForkConfig, bytes: Buffer | Uint8Array): SSZTypesFor<ForkPostAltair, "LightClientHeader">; /** * Determines if DataColumnSidecar bytes are from Gloas fork by checking the SSZ offset structure. * * The first offset (bytes 8-12) indicates where variable-size data begins: * - Gloas: 56 (small fixed section) * - Fulu: 356 */ export declare function isGloasDataColumnSidecarBytes(bytes: Uint8Array): boolean; //# sourceMappingURL=multifork.d.ts.map