import { type ContractRunner, type Provider } from 'ethers'; import { type CCIPContractEVM, type CCIPExecution, type CCIPMessage, type CCIPRequest, type Lane, CCIPContractType, CCIPVersion } from './types.ts'; /** * Pure/sync function to calculate/generate OffRamp.executeManually report for messageIds * * @param messagesInBatch - Array containing all messages in batch, ordered * @param lane - Arguments for leafeHasher (lane info) * @param messageIds - list of messages (from batch) to prove for manual execution * @param merkleRoot - Optional merkleRoot of the CommitReport, for validation * @returns ManualExec report arguments **/ export declare function calculateManualExecProof(messagesInBatch: readonly CCIPMessage[], lane: Lane, messageIds: string[], merkleRoot?: string): { messages: CCIPMessage[]; proofs: string[]; proofFlagBits: bigint; merkleRoot: string; }; /** * Validates the provided address belongs to an OffRamp for given lane * @param runner - ContractRunner/Provider to use * @param address - OffRamp contract address * @param lane - Lane to validate OffRamp for * @returns Typed OffRamp contract, if compatible, or undefined otherwise **/ export declare function validateOffRamp(runner: ContractRunner, address: string, lane: Lane): Promise | undefined>; /** * Discover an OffRamp for a given lane (source, dest, onRamp) * It paginates on dest chain's logs, looking for OffRamp's ExecutionStateChanged events or * Router's MessageExecuted events, and validates the OffRamp belongs to the given lane. * * @param runner - Dest ContractRunner/Provider to use * @param lane - Lane to discover OffRamp for * @param hints.fromBlock - A block from where to start paging forward; otherwise, pages backwards * from latest * @param hints.page - getLogs pagination range param * @returns Typed OffRamp contract **/ export declare function discoverOffRamp(runner: ContractRunner, lane: Lane, hints?: { fromBlock?: number; page?: number; }): Promise>; /** * Fetch ExecutionReceipts for given requests * If more than one request is given, may yield them interleaved * Completes as soon as there's no more work to be done * 2 possible behaviors: * - if `hints.fromBlock` is given, pages forward from that block up; * completes when success (final) receipt is found for all requests (or reach latest) * - otherwise, pages backwards and returns only the most recent receipt per request; * completes when receipts for all requests were seen * * @param dest - provider to page through * @param requests - CCIP requests to search executions for * @param hints.fromBlock - A block from where to start paging forward; * otherwise, page backwards and completes on first (most recent) receipt * @param hints.page - getLogs pagination range param **/ export declare function fetchExecutionReceipts(dest: Provider, requests: readonly Omit[], hints?: { fromBlock?: number; page?: number; }): AsyncGenerator; //# sourceMappingURL=execution.d.ts.map