import { Result } from '@ethersproject/abi'; import { ethers } from 'ethers'; /** * Finds an event in a transaction receipt. If the events are unparsed, * will parse them if a suggested contract interface is provided. * @param receipt An ethers transaction receipt * @param eventName The name of the event to find, e.g. "Transfer" * @param contract The contract to use for identifying unparsed logs * @returns The array of parsed events */ export declare function findEvent({ receipt, eventName, contract, }: { receipt: ethers.providers.TransactionReceipt; eventName: string; contract?: ethers.Contract; }): ethers.Event | ethers.Event[] | undefined; /** * Manually parses raw event logs with the given contract interface * @param contract The contract to use for identifying the logs * @param logs An array of raw unparsed logs * @returns The array of parsed events */ export declare function parseLogs({ contract, logs, }: { contract: ethers.Contract; logs: ethers.providers.Log[]; }): ethers.Event[]; interface EventWithArgs extends ethers.Event { args: Result; } /** * findEvent function but validates that theres only a single result * @param receipt An ethers transaction receipt * @param eventName The name of the event to find, e.g. "Transfer" * @param contract The contract to use for identifying unparsed logs * @returns The found Event */ export declare function findSingleEvent(params: Parameters[0]): EventWithArgs; export {}; //# sourceMappingURL=events.d.ts.map