UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

19 lines 644 B
import { ChainForkConfig } from "@lodestar/config"; import { phase0 } from "@lodestar/types"; import { IBeaconDb } from "../db/index.js"; export declare class Eth1DataCache { db: IBeaconDb; config: ChainForkConfig; constructor(config: ChainForkConfig, db: IBeaconDb); get({ timestampRange }: { timestampRange: { gte: number; lte: number; }; }): Promise<phase0.Eth1DataOrdered[]>; add(eth1Datas: (phase0.Eth1DataOrdered & { timestamp: number; })[]): Promise<void>; getHighestCachedBlockNumber(): Promise<number | null>; } //# sourceMappingURL=eth1DataCache.d.ts.map