@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
19 lines • 784 B
TypeScript
import { BLSPubkey, Epoch, bellatrix } from "@lodestar/types";
export type ValidatorRegistration = {
epoch: Epoch;
/** Preferred gas limit of validator */
gasLimit: number;
};
export declare class ValidatorRegistrationCache {
/**
* Map to track registrations by validator pubkey which is used here instead of
* validator index as `bellatrix.ValidatorRegistrationV1` does not contain the index
* and builder flow in general prefers to use pubkey over index.
*/
private readonly registrationByValidatorPubkey;
constructor();
add(epoch: Epoch, { pubkey, gasLimit }: bellatrix.ValidatorRegistrationV1): void;
prune(epoch: Epoch): void;
get(pubkey: BLSPubkey): ValidatorRegistration | undefined;
}
//# sourceMappingURL=cache.d.ts.map