@coti-io/coti-contracts
Version:
A library for smart contract development on the COTI network.
463 lines (429 loc) • 12.8 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
BaseContract,
BigNumberish,
BytesLike,
FunctionFragment,
Result,
Interface,
EventFragment,
AddressLike,
ContractRunner,
ContractMethod,
Listener,
} from "ethers";
import type {
TypedContractEvent,
TypedDeferredTopicFilter,
TypedEventLog,
TypedLogDescription,
TypedListener,
TypedContractMethod,
} from "../../../common";
export interface IERC4906Interface extends Interface {
getFunction(
nameOrSignature:
| "approve"
| "balanceOf"
| "getApproved"
| "isApprovedForAll"
| "ownerOf"
| "safeTransferFrom(address,address,uint256)"
| "safeTransferFrom(address,address,uint256,bytes)"
| "setApprovalForAll"
| "supportsInterface"
| "transferFrom"
): FunctionFragment;
getEvent(
nameOrSignatureOrTopic:
| "Approval"
| "ApprovalForAll"
| "BatchMetadataUpdate"
| "MetadataUpdate"
| "Transfer"
): EventFragment;
encodeFunctionData(
functionFragment: "approve",
values: [AddressLike, BigNumberish]
): string;
encodeFunctionData(
functionFragment: "balanceOf",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "getApproved",
values: [BigNumberish]
): string;
encodeFunctionData(
functionFragment: "isApprovedForAll",
values: [AddressLike, AddressLike]
): string;
encodeFunctionData(
functionFragment: "ownerOf",
values: [BigNumberish]
): string;
encodeFunctionData(
functionFragment: "safeTransferFrom(address,address,uint256)",
values: [AddressLike, AddressLike, BigNumberish]
): string;
encodeFunctionData(
functionFragment: "safeTransferFrom(address,address,uint256,bytes)",
values: [AddressLike, AddressLike, BigNumberish, BytesLike]
): string;
encodeFunctionData(
functionFragment: "setApprovalForAll",
values: [AddressLike, boolean]
): string;
encodeFunctionData(
functionFragment: "supportsInterface",
values: [BytesLike]
): string;
encodeFunctionData(
functionFragment: "transferFrom",
values: [AddressLike, AddressLike, BigNumberish]
): string;
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "getApproved",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "isApprovedForAll",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "ownerOf", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "safeTransferFrom(address,address,uint256)",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "safeTransferFrom(address,address,uint256,bytes)",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "setApprovalForAll",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "supportsInterface",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "transferFrom",
data: BytesLike
): Result;
}
export namespace ApprovalEvent {
export type InputTuple = [
owner: AddressLike,
approved: AddressLike,
tokenId: BigNumberish
];
export type OutputTuple = [owner: string, approved: string, tokenId: bigint];
export interface OutputObject {
owner: string;
approved: string;
tokenId: bigint;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
export namespace ApprovalForAllEvent {
export type InputTuple = [
owner: AddressLike,
operator: AddressLike,
approved: boolean
];
export type OutputTuple = [
owner: string,
operator: string,
approved: boolean
];
export interface OutputObject {
owner: string;
operator: string;
approved: boolean;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
export namespace BatchMetadataUpdateEvent {
export type InputTuple = [
_fromTokenId: BigNumberish,
_toTokenId: BigNumberish
];
export type OutputTuple = [_fromTokenId: bigint, _toTokenId: bigint];
export interface OutputObject {
_fromTokenId: bigint;
_toTokenId: bigint;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
export namespace MetadataUpdateEvent {
export type InputTuple = [_tokenId: BigNumberish];
export type OutputTuple = [_tokenId: bigint];
export interface OutputObject {
_tokenId: bigint;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
export namespace TransferEvent {
export type InputTuple = [
from: AddressLike,
to: AddressLike,
tokenId: BigNumberish
];
export type OutputTuple = [from: string, to: string, tokenId: bigint];
export interface OutputObject {
from: string;
to: string;
tokenId: bigint;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
export interface IERC4906 extends BaseContract {
connect(runner?: ContractRunner | null): IERC4906;
waitForDeployment(): Promise<this>;
interface: IERC4906Interface;
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>;
approve: TypedContractMethod<
[to: AddressLike, tokenId: BigNumberish],
[void],
"nonpayable"
>;
balanceOf: TypedContractMethod<[owner: AddressLike], [bigint], "view">;
getApproved: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
isApprovedForAll: TypedContractMethod<
[owner: AddressLike, operator: AddressLike],
[boolean],
"view"
>;
ownerOf: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
"safeTransferFrom(address,address,uint256)": TypedContractMethod<
[from: AddressLike, to: AddressLike, tokenId: BigNumberish],
[void],
"nonpayable"
>;
"safeTransferFrom(address,address,uint256,bytes)": TypedContractMethod<
[
from: AddressLike,
to: AddressLike,
tokenId: BigNumberish,
data: BytesLike
],
[void],
"nonpayable"
>;
setApprovalForAll: TypedContractMethod<
[operator: AddressLike, approved: boolean],
[void],
"nonpayable"
>;
supportsInterface: TypedContractMethod<
[interfaceId: BytesLike],
[boolean],
"view"
>;
transferFrom: TypedContractMethod<
[from: AddressLike, to: AddressLike, tokenId: BigNumberish],
[void],
"nonpayable"
>;
getFunction<T extends ContractMethod = ContractMethod>(
key: string | FunctionFragment
): T;
getFunction(
nameOrSignature: "approve"
): TypedContractMethod<
[to: AddressLike, tokenId: BigNumberish],
[void],
"nonpayable"
>;
getFunction(
nameOrSignature: "balanceOf"
): TypedContractMethod<[owner: AddressLike], [bigint], "view">;
getFunction(
nameOrSignature: "getApproved"
): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
getFunction(
nameOrSignature: "isApprovedForAll"
): TypedContractMethod<
[owner: AddressLike, operator: AddressLike],
[boolean],
"view"
>;
getFunction(
nameOrSignature: "ownerOf"
): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
getFunction(
nameOrSignature: "safeTransferFrom(address,address,uint256)"
): TypedContractMethod<
[from: AddressLike, to: AddressLike, tokenId: BigNumberish],
[void],
"nonpayable"
>;
getFunction(
nameOrSignature: "safeTransferFrom(address,address,uint256,bytes)"
): TypedContractMethod<
[
from: AddressLike,
to: AddressLike,
tokenId: BigNumberish,
data: BytesLike
],
[void],
"nonpayable"
>;
getFunction(
nameOrSignature: "setApprovalForAll"
): TypedContractMethod<
[operator: AddressLike, approved: boolean],
[void],
"nonpayable"
>;
getFunction(
nameOrSignature: "supportsInterface"
): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
getFunction(
nameOrSignature: "transferFrom"
): TypedContractMethod<
[from: AddressLike, to: AddressLike, tokenId: BigNumberish],
[void],
"nonpayable"
>;
getEvent(
key: "Approval"
): TypedContractEvent<
ApprovalEvent.InputTuple,
ApprovalEvent.OutputTuple,
ApprovalEvent.OutputObject
>;
getEvent(
key: "ApprovalForAll"
): TypedContractEvent<
ApprovalForAllEvent.InputTuple,
ApprovalForAllEvent.OutputTuple,
ApprovalForAllEvent.OutputObject
>;
getEvent(
key: "BatchMetadataUpdate"
): TypedContractEvent<
BatchMetadataUpdateEvent.InputTuple,
BatchMetadataUpdateEvent.OutputTuple,
BatchMetadataUpdateEvent.OutputObject
>;
getEvent(
key: "MetadataUpdate"
): TypedContractEvent<
MetadataUpdateEvent.InputTuple,
MetadataUpdateEvent.OutputTuple,
MetadataUpdateEvent.OutputObject
>;
getEvent(
key: "Transfer"
): TypedContractEvent<
TransferEvent.InputTuple,
TransferEvent.OutputTuple,
TransferEvent.OutputObject
>;
filters: {
"Approval(address,address,uint256)": TypedContractEvent<
ApprovalEvent.InputTuple,
ApprovalEvent.OutputTuple,
ApprovalEvent.OutputObject
>;
Approval: TypedContractEvent<
ApprovalEvent.InputTuple,
ApprovalEvent.OutputTuple,
ApprovalEvent.OutputObject
>;
"ApprovalForAll(address,address,bool)": TypedContractEvent<
ApprovalForAllEvent.InputTuple,
ApprovalForAllEvent.OutputTuple,
ApprovalForAllEvent.OutputObject
>;
ApprovalForAll: TypedContractEvent<
ApprovalForAllEvent.InputTuple,
ApprovalForAllEvent.OutputTuple,
ApprovalForAllEvent.OutputObject
>;
"BatchMetadataUpdate(uint256,uint256)": TypedContractEvent<
BatchMetadataUpdateEvent.InputTuple,
BatchMetadataUpdateEvent.OutputTuple,
BatchMetadataUpdateEvent.OutputObject
>;
BatchMetadataUpdate: TypedContractEvent<
BatchMetadataUpdateEvent.InputTuple,
BatchMetadataUpdateEvent.OutputTuple,
BatchMetadataUpdateEvent.OutputObject
>;
"MetadataUpdate(uint256)": TypedContractEvent<
MetadataUpdateEvent.InputTuple,
MetadataUpdateEvent.OutputTuple,
MetadataUpdateEvent.OutputObject
>;
MetadataUpdate: TypedContractEvent<
MetadataUpdateEvent.InputTuple,
MetadataUpdateEvent.OutputTuple,
MetadataUpdateEvent.OutputObject
>;
"Transfer(address,address,uint256)": TypedContractEvent<
TransferEvent.InputTuple,
TransferEvent.OutputTuple,
TransferEvent.OutputObject
>;
Transfer: TypedContractEvent<
TransferEvent.InputTuple,
TransferEvent.OutputTuple,
TransferEvent.OutputObject
>;
};
}