import { type ParsedTransactionWithMeta } from '@solana/web3.js'; import { type Log, type Numeric, type Provider, type TransactionReceipt } from 'ethers'; import { type CCIPContractEVM, type CCIPMessage, type CCIPRequest, type Lane } from './types.ts'; export declare function getOnRampLane(source: Provider, address: string, destChainSelector?: bigint): Promise, CCIPContractEVM<"OnRamp", "1.2.0">] | readonly [Lane<"1.5.0">, CCIPContractEVM<"OnRamp", "1.5.0">] | readonly [Lane<"1.6.0">, CCIPContractEVM<"OnRamp", "1.6.0">]>; /** * Decodes hex strings, bytearrays, JSON strings and raw objects as CCIPMessages * Does minimal validation, but converts objects in the format expected by ccip-tools-ts **/ export declare function decodeMessage(data: string | Uint8Array | Record): CCIPMessage; /** * Fetch all CCIP messages in a transaction * @param tx - TransactionReceipt to search in * @returns CCIP messages in the transaction (at least one) **/ export declare function fetchCCIPMessagesInTx(tx: TransactionReceipt): Promise; /** * Fetch a CCIP message by its log index in a transaction * @param tx - TransactionReceipt to search in * @param logIndex - log index to search for * @returns CCIPRequest in the transaction, with given logIndex **/ export declare function fetchCCIPMessageInLog(tx: TransactionReceipt, logIndex: number): Promise; /** * Fetch a CCIP message by its messageId * Can be slow due to having to paginate backwards through logs * * @param source - Provider to fetch logs from * @param messageId - messageId to search for * @param hints - Optional hints for pagination * @returns CCIPRequest with given messageId **/ export declare function fetchCCIPMessageById(source: Provider, messageId: string, hints?: { page?: number; }): Promise; export declare function fetchAllMessagesInBatch(source: Provider, destChainSelector: bigint, { address: onRamp, blockNumber: sendBlock, topics: [topic0], }: Pick, { minSeqNr, maxSeqNr }: { minSeqNr: Numeric; maxSeqNr: Numeric; }, { page: eventsBatchSize }?: { page?: number; }): Promise[]>; export declare function fetchRequestsForSender(source: Provider, firstRequest: Omit & { log: Pick; message: Pick; }): AsyncGenerator, void, unknown>; /** * Fetch all CCIP messages in a Solana transaction * @param signature - Solana transaction signature * @param transaction - Parsed Solana transaction * @returns CCIP messages in the transaction **/ export declare function fetchSolanaCCIPMessagesInTx(signature: string, transaction: ParsedTransactionWithMeta): CCIPRequest[]; /** * Parse a CCIP MessageSent event from Solana program data (without discriminator) * @param eventData - Binary event data without the 8-byte discriminator * @param signature - Solana transaction signature * @param slot - Solana block slot number * @returns Parsed CCIPRequest object */ export declare function parseCCIPMessageSentEvent(eventData: Buffer, signature: string, slot: number, routerAddress: string): CCIPRequest; /** * Parse gas limit from extraArgs buffer containing a Borsh-serialized GenericExtraArgsV2 struct * @param extraArgsBuffer - The buffer containing the extraArgs data * @returns The parsed gas limit as a bigint */ export declare function parseGasLimitFromExtraArgs(extraArgsBuffer: Buffer): bigint; //# sourceMappingURL=requests.d.ts.map