import { Fragment, Indexed, Interface, JsonFragment, Result } from "@ethersproject/abi"; import { Block, BlockTag, Listener, Log, Provider, TransactionReceipt, TransactionRequest, TransactionResponse } from "@ethersproject/abstract-provider"; import { Signer } from "@ethersproject/abstract-signer"; import { BigNumber, BigNumberish } from "@ethersproject/bignumber"; import { BytesLike } from "@ethersproject/bytes"; import { AccessList, AccessListish } from "@ethersproject/transactions"; export interface Overrides { gasLimit?: BigNumberish | Promise; gasPrice?: BigNumberish | Promise; maxFeePerGas?: BigNumberish | Promise; maxPriorityFeePerGas?: BigNumberish | Promise; nonce?: BigNumberish | Promise; type?: number; accessList?: AccessListish; customData?: Record; ccipReadEnabled?: boolean; } export interface PayableOverrides extends Overrides { value?: BigNumberish | Promise; } export interface CallOverrides extends PayableOverrides { blockTag?: BlockTag | Promise; from?: string | Promise; } export interface PopulatedTransaction { to?: string; from?: string; nonce?: number; gasLimit?: BigNumber; gasPrice?: BigNumber; data?: string; value?: BigNumber; chainId?: number; type?: number; accessList?: AccessList; maxFeePerGas?: BigNumber; maxPriorityFeePerGas?: BigNumber; customData?: Record; ccipReadEnabled?: boolean; } export declare type EventFilter = { address?: string; topics?: Array>; }; export declare type ContractFunction = (...args: Array) => Promise; export interface Event extends Log { event?: string; eventSignature?: string; args?: Result; decodeError?: Error; decode?: (data: string, topics?: Array) => any; removeListener: () => void; getBlock: () => Promise; getTransaction: () => Promise; getTransactionReceipt: () => Promise; } export interface ContractReceipt extends TransactionReceipt { events?: Array; } export interface ContractTransaction extends TransactionResponse { wait(confirmations?: number): Promise; } declare class RunningEvent { readonly tag: string; readonly filter: EventFilter; private _listeners; constructor(tag: string, filter: EventFilter); addListener(listener: Listener, once: boolean): void; removeListener(listener: Listener): void; removeAllListeners(): void; listeners(): Array; listenerCount(): number; run(args: Array): number; prepareEvent(event: Event): void; getEmit(event: Event): Array; } export declare type ContractInterface = string | ReadonlyArray | Interface; export declare class BaseContract { readonly address: string; readonly interface: Interface; readonly signer: Signer; readonly provider: Provider; readonly functions: { [name: string]: ContractFunction; }; readonly callStatic: { [name: string]: ContractFunction; }; readonly estimateGas: { [name: string]: ContractFunction; }; readonly populateTransaction: { [name: string]: ContractFunction; }; readonly filters: { [name: string]: (...args: Array) => EventFilter; }; readonly resolvedAddress: Promise; readonly deployTransaction: TransactionResponse; _deployedPromise: Promise; _runningEvents: { [eventTag: string]: RunningEvent; }; _wrappedEmits: { [eventTag: string]: (...args: Array) => void; }; constructor(addressOrName: string, contractInterface: ContractInterface, signerOrProvider?: Signer | Provider); static getContractAddress(transaction: { from: string; nonce: BigNumberish; }): string; static getInterface(contractInterface: ContractInterface): Interface; deployed(): Promise; _deployed(blockTag?: BlockTag): Promise; fallback(overrides?: TransactionRequest): Promise; connect(signerOrProvider: Signer | Provider | string): Contract; attach(addressOrName: string): Contract; static isIndexed(value: any): value is Indexed; private _normalizeRunningEvent; private _getRunningEvent; _checkRunningEvents(runningEvent: RunningEvent): void; _wrapEvent(runningEvent: RunningEvent, log: Log, listener: Listener): Event; private _addEventListener; queryFilter(event: EventFilter, fromBlockOrBlockhash?: BlockTag | string, toBlock?: BlockTag): Promise>; on(event: EventFilter | string, listener: Listener): this; once(event: EventFilter | string, listener: Listener): this; emit(eventName: EventFilter | string, ...args: Array): boolean; listenerCount(eventName?: EventFilter | string): number; listeners(eventName?: EventFilter | string): Array; removeAllListeners(eventName?: EventFilter | string): this; off(eventName: EventFilter | string, listener: Listener): this; removeListener(eventName: EventFilter | string, listener: Listener): this; } export declare class Contract extends BaseContract { readonly [key: string]: ContractFunction | any; } export declare class ContractFactory { readonly interface: Interface; readonly bytecode: string; readonly signer: Signer; constructor(contractInterface: ContractInterface, bytecode: BytesLike | { object: string; }, signer?: Signer); getDeployTransaction(...args: Array): TransactionRequest; deploy(...args: Array): Promise; attach(address: string): Contract; connect(signer: Signer): ContractFactory; static fromSolidity(compilerOutput: any, signer?: Signer): ContractFactory; static getInterface(contractInterface: ContractInterface): Interface; static getContractAddress(tx: { from: string; nonce: BytesLike | BigNumber | number; }): string; static getContract(address: string, contractInterface: ContractInterface, signer?: Signer): Contract; } export {}; //# sourceMappingURL=index.d.ts.map