@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
18 lines • 701 B
TypeScript
import { routes } from "@lodestar/api";
import { Epoch } from "@lodestar/types";
export type ProposerPreparationData = routes.validator.ProposerPreparationData;
export declare class BeaconProposerCache {
readonly opts: {
suggestedFeeRecipient: string;
};
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;
getValidatorIndices(): number[];
}
//# sourceMappingURL=beaconProposerCache.d.ts.map