@lodestar/prover
Version:
A Typescript implementation of the Ethereum Consensus light client
26 lines • 1.05 kB
TypeScript
import { ApiClient } from "@lodestar/api";
import { ForkName } from "@lodestar/params";
import { ExecutionPayload, LightClientHeader } from "@lodestar/types";
import { Logger } from "@lodestar/utils";
/**
* The in-memory store for the execution payloads to be used to verify the proofs
*/
export declare class PayloadStore {
private opts;
private finalizedRoots;
private unfinalizedRoots;
private payloads;
private latestBlockRoot;
constructor(opts: {
api: ApiClient;
logger: Logger;
});
get finalized(): ExecutionPayload | undefined;
get latest(): ExecutionPayload | undefined;
get(blockId: number | string): Promise<ExecutionPayload | undefined>;
protected getOrFetchFinalizedPayload(blockNumber: number): Promise<ExecutionPayload | undefined>;
set(payload: ExecutionPayload, slot: number, finalized: boolean): void;
processLCHeader(header: LightClientHeader<ForkName.capella>, finalized?: boolean): Promise<void>;
prune(): void;
}
//# sourceMappingURL=payload_store.d.ts.map