mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-25 13:54:05 -06:00
50 lines
2.6 KiB
TypeScript
50 lines
2.6 KiB
TypeScript
import { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
import { FunctionFragment, Result } from "@ethersproject/abi";
|
|
import { Listener, Provider } from "@ethersproject/providers";
|
|
import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
|
|
export interface ERC721HolderInterface extends utils.Interface {
|
|
functions: {
|
|
"onERC721Received(address,address,uint256,bytes)": FunctionFragment;
|
|
};
|
|
encodeFunctionData(functionFragment: "onERC721Received", values: [string, string, BigNumberish, BytesLike]): string;
|
|
decodeFunctionResult(functionFragment: "onERC721Received", data: BytesLike): Result;
|
|
events: {};
|
|
}
|
|
export interface ERC721Holder extends BaseContract {
|
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
attach(addressOrName: string): this;
|
|
deployed(): Promise<this>;
|
|
interface: ERC721HolderInterface;
|
|
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
listeners(eventName?: string): Array<Listener>;
|
|
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
removeAllListeners(eventName?: string): this;
|
|
off: OnEvent<this>;
|
|
on: OnEvent<this>;
|
|
once: OnEvent<this>;
|
|
removeListener: OnEvent<this>;
|
|
functions: {
|
|
onERC721Received(arg0: string, arg1: string, arg2: BigNumberish, arg3: BytesLike, overrides?: Overrides & {
|
|
from?: string | Promise<string>;
|
|
}): Promise<ContractTransaction>;
|
|
};
|
|
onERC721Received(arg0: string, arg1: string, arg2: BigNumberish, arg3: BytesLike, overrides?: Overrides & {
|
|
from?: string | Promise<string>;
|
|
}): Promise<ContractTransaction>;
|
|
callStatic: {
|
|
onERC721Received(arg0: string, arg1: string, arg2: BigNumberish, arg3: BytesLike, overrides?: CallOverrides): Promise<string>;
|
|
};
|
|
filters: {};
|
|
estimateGas: {
|
|
onERC721Received(arg0: string, arg1: string, arg2: BigNumberish, arg3: BytesLike, overrides?: Overrides & {
|
|
from?: string | Promise<string>;
|
|
}): Promise<BigNumber>;
|
|
};
|
|
populateTransaction: {
|
|
onERC721Received(arg0: string, arg1: string, arg2: BigNumberish, arg3: BytesLike, overrides?: Overrides & {
|
|
from?: string | Promise<string>;
|
|
}): Promise<PopulatedTransaction>;
|
|
};
|
|
}
|