tornado-contracts/dist/@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.d.ts

40 lines
2.5 KiB
TypeScript
Vendored

import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../../../common";
export interface ERC721HolderInterface extends Interface {
getFunction(nameOrSignature: "onERC721Received"): FunctionFragment;
encodeFunctionData(functionFragment: "onERC721Received", values: [AddressLike, AddressLike, BigNumberish, BytesLike]): string;
decodeFunctionResult(functionFragment: "onERC721Received", data: BytesLike): Result;
}
export interface ERC721Holder extends BaseContract {
connect(runner?: ContractRunner | null): ERC721Holder;
waitForDeployment(): Promise<this>;
interface: ERC721HolderInterface;
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
listeners(eventName?: string): Promise<Array<Listener>>;
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
onERC721Received: TypedContractMethod<[
arg0: AddressLike,
arg1: AddressLike,
arg2: BigNumberish,
arg3: BytesLike
], [
string
], "nonpayable">;
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
getFunction(nameOrSignature: "onERC721Received"): TypedContractMethod<[
arg0: AddressLike,
arg1: AddressLike,
arg2: BigNumberish,
arg3: BytesLike
], [
string
], "nonpayable">;
filters: {};
}