UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

17 lines 917 B
import { ChainForkConfig } from "@lodestar/config"; import { BeaconStateAllForks } from "@lodestar/state-transition"; import { phase0 } from "@lodestar/types"; export type Eth1DataGetter = ({ timestampRange, }: { timestampRange: { gte: number; lte: number; }; }) => Promise<phase0.Eth1Data[]>; export declare function getEth1VotesToConsider(config: ChainForkConfig, state: BeaconStateAllForks, eth1DataGetter: Eth1DataGetter): Promise<phase0.Eth1Data[]>; export declare function pickEth1Vote(state: BeaconStateAllForks, votesToConsider: phase0.Eth1Data[]): phase0.Eth1Data; /** * Serialize eth1Data types to a unique string ID. It is only used for comparison. */ export declare function fastSerializeEth1Data(eth1Data: phase0.Eth1Data): string; export declare function votingPeriodStartTime(config: ChainForkConfig, state: BeaconStateAllForks): number; //# sourceMappingURL=eth1Vote.d.ts.map