UNPKG

@unruggable/gateways

Version:

Trustless Ethereum Multichain CCIP-Read Gateway

16 lines 1.08 kB
import type { HexAddress, HexString, ProofRef } from '../types.js'; import { type RPCEthGetProof, isContract, encodeProof } from './types.js'; import { BlockProver, type TargetNeed } from '../vm.js'; import { ZeroHash } from 'ethers/constants'; export declare class EthProver extends BlockProver { static readonly EMPTY_STORAGE_HASH = "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"; static readonly encodeProof: typeof encodeProof; static readonly isContract: typeof isContract; static readonly latest: (provider: import("../types.js").Provider, relBlockTag?: ZeroHash) => Promise<EthProver>; isContract(target: HexAddress): Promise<boolean>; getStorage(target: HexAddress, slot: bigint, fast?: boolean): Promise<HexString>; protected _proveNeed(need: TargetNeed, accountRef: ProofRef, slotRefs: Map<bigint, ProofRef>): Promise<void>; getProofs(target: HexAddress, slots?: bigint[]): Promise<RPCEthGetProof>; fetchProofs(target: HexAddress, slots?: bigint[]): Promise<RPCEthGetProof>; } //# sourceMappingURL=EthProver.d.ts.map