UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

14 lines 597 B
import { routes } from "@lodestar/api"; import { Epoch } from "@lodestar/types"; export type ProposerPreparationData = routes.validator.ProposerPreparationData; export declare class BeaconProposerCache { private readonly feeRecipientByValidatorIndex; constructor(opts: { suggestedFeeRecipient: string; }); add(epoch: Epoch, { validatorIndex, feeRecipient }: ProposerPreparationData): void; prune(epoch: Epoch): void; getOrDefault(proposerIndex: number): string; get(proposerIndex: number): string | undefined; } //# sourceMappingURL=beaconProposerCache.d.ts.map