UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

19 lines 863 B
import { ChainForkConfig } from "@lodestar/config"; import { Db, Repository } from "@lodestar/db"; import { BeaconStateAllForks } from "@lodestar/state-transition"; import { Epoch, Root, RootHex, Slot } from "@lodestar/types"; export declare class StateArchiveRepository extends Repository<Slot, BeaconStateAllForks> { constructor(config: ChainForkConfig, db: Db); encodeValue(value: BeaconStateAllForks): Uint8Array; decodeValue(data: Uint8Array): BeaconStateAllForks; put(key: Slot, value: BeaconStateAllForks): Promise<void>; getId(state: BeaconStateAllForks): Epoch; decodeKey(data: Uint8Array): number; getByRoot(stateRoot: Root): Promise<BeaconStateAllForks | null>; dumpRootIndexEntries(): Promise<{ root: RootHex; slot: Slot; }[]>; private getSlotByRoot; } //# sourceMappingURL=stateArchive.d.ts.map