UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

8 lines 690 B
import { FilterOptions } from "@lodestar/db"; import { CachedBeaconStateAllForks } from "@lodestar/state-transition"; import { phase0 } from "@lodestar/types"; import { DepositTree } from "../../db/repositories/depositDataRoot.js"; export type DepositGetter<T> = (indexRange: FilterOptions<number>, eth1Data: phase0.Eth1Data) => Promise<T[]>; export declare function getDeposits<T>(state: CachedBeaconStateAllForks, eth1Data: phase0.Eth1Data, depositsGetter: DepositGetter<T>): Promise<T[]>; export declare function getDepositsWithProofs(depositEvents: phase0.DepositEvent[], depositRootTree: DepositTree, eth1Data: phase0.Eth1Data): phase0.Deposit[]; //# sourceMappingURL=deposits.d.ts.map