@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
14 lines • 857 B
TypeScript
import { routes } from "@lodestar/api";
import { CachedBeaconStateAllForks } from "@lodestar/state-transition";
import { BeaconBlock } from "@lodestar/types";
export type BlockRewards = routes.beacon.BlockRewards;
/**
* Calculate total proposer block rewards given block and the beacon state of the same slot before the block is applied (preState)
* postState can be passed in to read reward cache if available
* Standard (Non MEV) rewards for proposing a block consists of:
* 1) Including attestations from (beacon) committee
* 2) Including attestations from sync committee
* 3) Reporting slashable behaviours from proposer and attester
*/
export declare function computeBlockRewards(block: BeaconBlock, preState: CachedBeaconStateAllForks, postState?: CachedBeaconStateAllForks): Promise<BlockRewards>;
//# sourceMappingURL=blockRewards.d.ts.map