2024-09-19 14:34:51 +00:00
|
|
|
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";
|
2025-01-04 18:39:49 +00:00
|
|
|
export interface ENSInterface extends Interface {
|
2024-09-19 14:34:51 +00:00
|
|
|
getFunction(nameOrSignature: "isApprovedForAll" | "owner" | "recordExists" | "resolver" | "setApprovalForAll" | "setOwner" | "setRecord" | "setResolver" | "setSubnodeOwner" | "setSubnodeRecord" | "setTTL" | "ttl"): FunctionFragment;
|
|
|
|
getEvent(nameOrSignatureOrTopic: "ApprovalForAll" | "NewOwner" | "NewResolver" | "NewTTL" | "Transfer"): EventFragment;
|
|
|
|
encodeFunctionData(functionFragment: "isApprovedForAll", values: [AddressLike, AddressLike]): string;
|
|
|
|
encodeFunctionData(functionFragment: "owner", values: [BytesLike]): string;
|
|
|
|
encodeFunctionData(functionFragment: "recordExists", values: [BytesLike]): string;
|
|
|
|
encodeFunctionData(functionFragment: "resolver", values: [BytesLike]): string;
|
|
|
|
encodeFunctionData(functionFragment: "setApprovalForAll", values: [AddressLike, boolean]): string;
|
|
|
|
encodeFunctionData(functionFragment: "setOwner", values: [BytesLike, AddressLike]): string;
|
|
|
|
encodeFunctionData(functionFragment: "setRecord", values: [BytesLike, AddressLike, AddressLike, BigNumberish]): string;
|
|
|
|
encodeFunctionData(functionFragment: "setResolver", values: [BytesLike, AddressLike]): string;
|
|
|
|
encodeFunctionData(functionFragment: "setSubnodeOwner", values: [BytesLike, BytesLike, AddressLike]): string;
|
|
|
|
encodeFunctionData(functionFragment: "setSubnodeRecord", values: [BytesLike, BytesLike, AddressLike, AddressLike, BigNumberish]): string;
|
|
|
|
encodeFunctionData(functionFragment: "setTTL", values: [BytesLike, BigNumberish]): string;
|
|
|
|
encodeFunctionData(functionFragment: "ttl", values: [BytesLike]): string;
|
|
|
|
decodeFunctionResult(functionFragment: "isApprovedForAll", data: BytesLike): Result;
|
|
|
|
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
|
|
decodeFunctionResult(functionFragment: "recordExists", data: BytesLike): Result;
|
|
|
|
decodeFunctionResult(functionFragment: "resolver", data: BytesLike): Result;
|
|
|
|
decodeFunctionResult(functionFragment: "setApprovalForAll", data: BytesLike): Result;
|
|
|
|
decodeFunctionResult(functionFragment: "setOwner", data: BytesLike): Result;
|
|
|
|
decodeFunctionResult(functionFragment: "setRecord", data: BytesLike): Result;
|
|
|
|
decodeFunctionResult(functionFragment: "setResolver", data: BytesLike): Result;
|
|
|
|
decodeFunctionResult(functionFragment: "setSubnodeOwner", data: BytesLike): Result;
|
|
|
|
decodeFunctionResult(functionFragment: "setSubnodeRecord", data: BytesLike): Result;
|
|
|
|
decodeFunctionResult(functionFragment: "setTTL", data: BytesLike): Result;
|
|
|
|
decodeFunctionResult(functionFragment: "ttl", data: BytesLike): Result;
|
|
|
|
}
|
|
|
|
export declare namespace ApprovalForAllEvent {
|
|
|
|
type InputTuple = [
|
|
|
|
owner: AddressLike,
|
|
|
|
operator: AddressLike,
|
|
|
|
approved: boolean
|
|
|
|
];
|
|
|
|
type OutputTuple = [
|
|
|
|
owner: string,
|
|
|
|
operator: string,
|
|
|
|
approved: boolean
|
|
|
|
];
|
|
|
|
interface OutputObject {
|
|
|
|
owner: string;
|
|
|
|
operator: string;
|
|
|
|
approved: boolean;
|
|
|
|
}
|
|
|
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
|
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
|
|
type Log = TypedEventLog<Event>;
|
|
|
|
type LogDescription = TypedLogDescription<Event>;
|
|
|
|
}
|
|
|
|
export declare namespace NewOwnerEvent {
|
|
|
|
type InputTuple = [
|
|
|
|
node: BytesLike,
|
|
|
|
label: BytesLike,
|
|
|
|
owner: AddressLike
|
|
|
|
];
|
|
|
|
type OutputTuple = [node: string, label: string, owner: string];
|
|
|
|
interface OutputObject {
|
|
|
|
node: string;
|
|
|
|
label: string;
|
|
|
|
owner: string;
|
|
|
|
}
|
|
|
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
|
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
|
|
type Log = TypedEventLog<Event>;
|
|
|
|
type LogDescription = TypedLogDescription<Event>;
|
|
|
|
}
|
|
|
|
export declare namespace NewResolverEvent {
|
|
|
|
type InputTuple = [node: BytesLike, resolver: AddressLike];
|
|
|
|
type OutputTuple = [node: string, resolver: string];
|
|
|
|
interface OutputObject {
|
|
|
|
node: string;
|
|
|
|
resolver: string;
|
|
|
|
}
|
|
|
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
|
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
|
|
type Log = TypedEventLog<Event>;
|
|
|
|
type LogDescription = TypedLogDescription<Event>;
|
|
|
|
}
|
|
|
|
export declare namespace NewTTLEvent {
|
|
|
|
type InputTuple = [node: BytesLike, ttl: BigNumberish];
|
|
|
|
type OutputTuple = [node: string, ttl: bigint];
|
|
|
|
interface OutputObject {
|
|
|
|
node: string;
|
|
|
|
ttl: bigint;
|
|
|
|
}
|
|
|
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
|
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
|
|
type Log = TypedEventLog<Event>;
|
|
|
|
type LogDescription = TypedLogDescription<Event>;
|
|
|
|
}
|
|
|
|
export declare namespace TransferEvent {
|
|
|
|
type InputTuple = [node: BytesLike, owner: AddressLike];
|
|
|
|
type OutputTuple = [node: string, owner: string];
|
|
|
|
interface OutputObject {
|
|
|
|
node: string;
|
|
|
|
owner: string;
|
|
|
|
}
|
|
|
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
|
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
|
|
type Log = TypedEventLog<Event>;
|
|
|
|
type LogDescription = TypedLogDescription<Event>;
|
|
|
|
}
|
2025-01-04 18:39:49 +00:00
|
|
|
export interface ENS extends BaseContract {
|
|
|
|
connect(runner?: ContractRunner | null): ENS;
|
2024-09-19 14:34:51 +00:00
|
|
|
waitForDeployment(): Promise<this>;
|
2025-01-04 18:39:49 +00:00
|
|
|
interface: ENSInterface;
|
2024-09-19 14:34:51 +00:00
|
|
|
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>;
|
|
|
|
isApprovedForAll: TypedContractMethod<[
|
|
|
|
owner: AddressLike,
|
|
|
|
operator: AddressLike
|
|
|
|
], [
|
|
|
|
boolean
|
|
|
|
], "view">;
|
|
|
|
owner: TypedContractMethod<[node: BytesLike], [string], "view">;
|
|
|
|
recordExists: TypedContractMethod<[node: BytesLike], [boolean], "view">;
|
|
|
|
resolver: TypedContractMethod<[node: BytesLike], [string], "view">;
|
|
|
|
setApprovalForAll: TypedContractMethod<[
|
|
|
|
operator: AddressLike,
|
|
|
|
approved: boolean
|
|
|
|
], [
|
|
|
|
void
|
|
|
|
], "nonpayable">;
|
|
|
|
setOwner: TypedContractMethod<[
|
|
|
|
node: BytesLike,
|
|
|
|
owner: AddressLike
|
|
|
|
], [
|
|
|
|
void
|
|
|
|
], "nonpayable">;
|
|
|
|
setRecord: TypedContractMethod<[
|
|
|
|
node: BytesLike,
|
|
|
|
owner: AddressLike,
|
|
|
|
resolver: AddressLike,
|
|
|
|
ttl: BigNumberish
|
|
|
|
], [
|
|
|
|
void
|
|
|
|
], "nonpayable">;
|
|
|
|
setResolver: TypedContractMethod<[
|
|
|
|
node: BytesLike,
|
|
|
|
resolver: AddressLike
|
|
|
|
], [
|
|
|
|
void
|
|
|
|
], "nonpayable">;
|
|
|
|
setSubnodeOwner: TypedContractMethod<[
|
|
|
|
node: BytesLike,
|
|
|
|
label: BytesLike,
|
|
|
|
owner: AddressLike
|
|
|
|
], [
|
|
|
|
string
|
|
|
|
], "nonpayable">;
|
|
|
|
setSubnodeRecord: TypedContractMethod<[
|
|
|
|
node: BytesLike,
|
|
|
|
label: BytesLike,
|
|
|
|
owner: AddressLike,
|
|
|
|
resolver: AddressLike,
|
|
|
|
ttl: BigNumberish
|
|
|
|
], [
|
|
|
|
void
|
|
|
|
], "nonpayable">;
|
|
|
|
setTTL: TypedContractMethod<[
|
|
|
|
node: BytesLike,
|
|
|
|
ttl: BigNumberish
|
|
|
|
], [
|
|
|
|
void
|
|
|
|
], "nonpayable">;
|
|
|
|
ttl: TypedContractMethod<[node: BytesLike], [bigint], "view">;
|
|
|
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
|
|
getFunction(nameOrSignature: "isApprovedForAll"): TypedContractMethod<[
|
|
|
|
owner: AddressLike,
|
|
|
|
operator: AddressLike
|
|
|
|
], [
|
|
|
|
boolean
|
|
|
|
], "view">;
|
|
|
|
getFunction(nameOrSignature: "owner"): TypedContractMethod<[node: BytesLike], [string], "view">;
|
|
|
|
getFunction(nameOrSignature: "recordExists"): TypedContractMethod<[node: BytesLike], [boolean], "view">;
|
|
|
|
getFunction(nameOrSignature: "resolver"): TypedContractMethod<[node: BytesLike], [string], "view">;
|
|
|
|
getFunction(nameOrSignature: "setApprovalForAll"): TypedContractMethod<[
|
|
|
|
operator: AddressLike,
|
|
|
|
approved: boolean
|
|
|
|
], [
|
|
|
|
void
|
|
|
|
], "nonpayable">;
|
|
|
|
getFunction(nameOrSignature: "setOwner"): TypedContractMethod<[
|
|
|
|
node: BytesLike,
|
|
|
|
owner: AddressLike
|
|
|
|
], [
|
|
|
|
void
|
|
|
|
], "nonpayable">;
|
|
|
|
getFunction(nameOrSignature: "setRecord"): TypedContractMethod<[
|
|
|
|
node: BytesLike,
|
|
|
|
owner: AddressLike,
|
|
|
|
resolver: AddressLike,
|
|
|
|
ttl: BigNumberish
|
|
|
|
], [
|
|
|
|
void
|
|
|
|
], "nonpayable">;
|
|
|
|
getFunction(nameOrSignature: "setResolver"): TypedContractMethod<[
|
|
|
|
node: BytesLike,
|
|
|
|
resolver: AddressLike
|
|
|
|
], [
|
|
|
|
void
|
|
|
|
], "nonpayable">;
|
|
|
|
getFunction(nameOrSignature: "setSubnodeOwner"): TypedContractMethod<[
|
|
|
|
node: BytesLike,
|
|
|
|
label: BytesLike,
|
|
|
|
owner: AddressLike
|
|
|
|
], [
|
|
|
|
string
|
|
|
|
], "nonpayable">;
|
|
|
|
getFunction(nameOrSignature: "setSubnodeRecord"): TypedContractMethod<[
|
|
|
|
node: BytesLike,
|
|
|
|
label: BytesLike,
|
|
|
|
owner: AddressLike,
|
|
|
|
resolver: AddressLike,
|
|
|
|
ttl: BigNumberish
|
|
|
|
], [
|
|
|
|
void
|
|
|
|
], "nonpayable">;
|
|
|
|
getFunction(nameOrSignature: "setTTL"): TypedContractMethod<[
|
|
|
|
node: BytesLike,
|
|
|
|
ttl: BigNumberish
|
|
|
|
], [
|
|
|
|
void
|
|
|
|
], "nonpayable">;
|
|
|
|
getFunction(nameOrSignature: "ttl"): TypedContractMethod<[node: BytesLike], [bigint], "view">;
|
|
|
|
getEvent(key: "ApprovalForAll"): TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
|
|
|
|
getEvent(key: "NewOwner"): TypedContractEvent<NewOwnerEvent.InputTuple, NewOwnerEvent.OutputTuple, NewOwnerEvent.OutputObject>;
|
|
|
|
getEvent(key: "NewResolver"): TypedContractEvent<NewResolverEvent.InputTuple, NewResolverEvent.OutputTuple, NewResolverEvent.OutputObject>;
|
|
|
|
getEvent(key: "NewTTL"): TypedContractEvent<NewTTLEvent.InputTuple, NewTTLEvent.OutputTuple, NewTTLEvent.OutputObject>;
|
|
|
|
getEvent(key: "Transfer"): TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
|
|
filters: {
|
|
|
|
"ApprovalForAll(address,address,bool)": TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
|
|
|
|
ApprovalForAll: TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
|
|
|
|
"NewOwner(bytes32,bytes32,address)": TypedContractEvent<NewOwnerEvent.InputTuple, NewOwnerEvent.OutputTuple, NewOwnerEvent.OutputObject>;
|
|
|
|
NewOwner: TypedContractEvent<NewOwnerEvent.InputTuple, NewOwnerEvent.OutputTuple, NewOwnerEvent.OutputObject>;
|
|
|
|
"NewResolver(bytes32,address)": TypedContractEvent<NewResolverEvent.InputTuple, NewResolverEvent.OutputTuple, NewResolverEvent.OutputObject>;
|
|
|
|
NewResolver: TypedContractEvent<NewResolverEvent.InputTuple, NewResolverEvent.OutputTuple, NewResolverEvent.OutputObject>;
|
|
|
|
"NewTTL(bytes32,uint64)": TypedContractEvent<NewTTLEvent.InputTuple, NewTTLEvent.OutputTuple, NewTTLEvent.OutputObject>;
|
|
|
|
NewTTL: TypedContractEvent<NewTTLEvent.InputTuple, NewTTLEvent.OutputTuple, NewTTLEvent.OutputObject>;
|
|
|
|
"Transfer(bytes32,address)": TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
|
|
Transfer: TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
|
|
};
|
|
|
|
}
|