UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

17 lines 815 B
import { CheckpointWithHex } from "@lodestar/fork-choice"; import { CachedBeaconStateAllForks, EffectiveBalanceIncrements } from "@lodestar/state-transition"; import { RootHex } from "@lodestar/types"; /** * Cache EffectiveBalanceIncrements of checkpoint blocks */ export declare class CheckpointBalancesCache { private readonly items; /** * Inspect the given `state` and determine the root of the block at the first slot of * `state.current_epoch`. If there is not already some entry for the given block root, then * add the effective balances from the `state` to the cache. */ processState(blockRootHex: RootHex, state: CachedBeaconStateAllForks): void; get(checkpoint: CheckpointWithHex): EffectiveBalanceIncrements | undefined; } //# sourceMappingURL=balancesCache.d.ts.map