UNPKG

@lodestar/prover

Version:

A Typescript implementation of the Ethereum Consensus light client

30 lines 1.25 kB
import { ChainForkConfig } from "@lodestar/config"; import { Bytes32, ExecutionPayload } from "@lodestar/types"; import { Logger } from "@lodestar/utils"; import { ELBlock, ELProof, ELStorageProof, HexString } from "../types.js"; export declare function isBlockNumber(block: number | string): boolean; export declare function isValidAccount({ address, stateRoot, proof, logger, }: { address: HexString; stateRoot: Bytes32; proof: ELProof; logger: Logger; }): Promise<boolean>; export declare function isValidStorageKeys({ storageKeys, proof, logger, }: { storageKeys: HexString[]; proof: ELStorageProof; logger: Logger; }): Promise<boolean>; export declare function isValidBlock({ executionPayload, block, logger, config, }: { executionPayload: ExecutionPayload; block: ELBlock; logger: Logger; config: ChainForkConfig; }): Promise<boolean>; export declare function isValidCodeHash({ codeHash, codeResponse, }: { codeHash: string; codeResponse: string; logger: Logger; }): Promise<boolean>; export declare function isNullish<T>(val: T | undefined | null): val is null | undefined; export declare function isPresent<T>(val: T | undefined | null): val is T; //# sourceMappingURL=validation.d.ts.map