UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

26 lines 1.01 kB
import { ChainForkConfig } from "@lodestar/config"; import { Db, PrefixedRepository } from "@lodestar/db"; import { ColumnIndex, DataColumnSidecar, Slot } from "@lodestar/types"; /** * DataColumnSidecarsRepository * Used to store `finalized` DataColumnSidecars * * Indexed data by `slot` + `columnIndex` */ export declare class DataColumnSidecarArchiveRepository extends PrefixedRepository<Slot, ColumnIndex, DataColumnSidecar> { constructor(config: ChainForkConfig, db: Db); /** * Id is hashTreeRoot of unsigned BeaconBlock */ getId(value: DataColumnSidecar): ColumnIndex; encodeValue(value: DataColumnSidecar): Uint8Array; decodeValue(data: Uint8Array): DataColumnSidecar; encodeKeyRaw(prefix: Slot, id: ColumnIndex): Uint8Array; decodeKeyRaw(raw: Uint8Array): { prefix: Slot; id: ColumnIndex; }; getMaxKeyRaw(prefix: Slot): Uint8Array; getMinKeyRaw(prefix: Slot): Uint8Array; } //# sourceMappingURL=dataColumnSidecarArchive.d.ts.map