ethers.js/packages/contract/lib/wrappers.d.ts

37 lines
1.7 KiB
TypeScript
Raw Permalink Normal View History

2022-04-11 17:14:19 -04:00
import { EventPayload } from "@ethersproject/properties";
import { Block, Log, TransactionReceipt, TransactionResponse } from "@ethersproject/providers";
import type { EventFragment, Interface, Result } from "@ethersproject/abi";
import type { Listener } from "@ethersproject/properties";
import type { Provider } from "@ethersproject/providers";
import type { BaseContract } from "./contract.js";
import type { ContractEventName } from "./types.js";
export declare class EventLog extends Log {
readonly interface: Interface;
readonly fragment: EventFragment;
readonly args: Result;
constructor(log: Log, iface: Interface, fragment: EventFragment);
get eventName(): string;
get eventSignature(): string;
}
export declare class ContractTransactionReceipt extends TransactionReceipt {
#private;
constructor(iface: Interface, provider: null | Provider, tx: TransactionReceipt);
get logs(): Array<EventLog | Log>;
}
export declare class ContractTransactionResponse extends TransactionResponse {
#private;
constructor(iface: Interface, provider: null | Provider, tx: TransactionResponse);
wait(confirms?: number): Promise<null | ContractTransactionReceipt>;
}
export declare class ContractEventPayload extends EventPayload<ContractEventName> {
readonly fragment: EventFragment;
readonly log: EventLog;
readonly args: Result;
constructor(contract: BaseContract, listener: null | Listener, filter: ContractEventName, fragment: EventFragment, _log: Log);
get eventName(): string;
get eventSignature(): string;
getBlock(): Promise<Block<string>>;
getTransaction(): Promise<TransactionResponse>;
getTransactionReceipt(): Promise<TransactionReceipt>;
}
//# sourceMappingURL=wrappers.d.ts.map