@unruggable/gateways
Version:
Trustless Ethereum Multichain CCIP-Read Gateway
20 lines • 1.29 kB
TypeScript
import type { HexString, HexString32, ProofRef } from '../types.js';
import { BlockProver, type TargetNeed } from '../vm.js';
import { ZeroAddress } from 'ethers/constants';
import { type RPCLineaGetProof, isInclusionProof, isContract, encodeProof } from './types.js';
export declare class LineaProver extends BlockProver {
static readonly EMPTY_STORAGE_HASH = "0x07977874126658098c066972282d4c85f230520af3847e297fe7524f976873e5";
static readonly isInclusionProof: typeof isInclusionProof;
static readonly isContract: typeof isContract;
static readonly encodeProof: typeof encodeProof;
static readonly latest: (provider: import("../types.js").Provider, relBlockTag?: ZeroAddress) => Promise<LineaProver>;
stateRoot?: HexString32;
fetchStateRoot(): Promise<string>;
isShomeiReady(): Promise<boolean>;
isContract(target: HexString): Promise<boolean>;
getStorage(target: HexString, slot: bigint, fast?: boolean): Promise<HexString>;
protected _proveNeed(need: TargetNeed, accountRef: ProofRef, slotRefs: Map<bigint, ProofRef>): Promise<void>;
getProofs(target: HexString, slots?: bigint[]): Promise<RPCLineaGetProof>;
fetchProofs(target: HexString, slots?: bigint[]): Promise<RPCLineaGetProof>;
}
//# sourceMappingURL=LineaProver.d.ts.map