relayers-network-ui/_contracts/EnsRegistry.d.ts

608 lines
17 KiB
TypeScript

/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import {
ethers,
EventFilter,
Signer,
BigNumber,
BigNumberish,
PopulatedTransaction,
BaseContract,
ContractTransaction,
Overrides,
CallOverrides,
} from "ethers";
import { BytesLike } from "@ethersproject/bytes";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
import type { TypedEventFilter, TypedEvent, TypedListener } from "./common";
interface EnsRegistryInterface extends ethers.utils.Interface {
functions: {
"isApprovedForAll(address,address)": FunctionFragment;
"old()": FunctionFragment;
"owner(bytes32)": FunctionFragment;
"recordExists(bytes32)": FunctionFragment;
"resolver(bytes32)": FunctionFragment;
"setApprovalForAll(address,bool)": FunctionFragment;
"setOwner(bytes32,address)": FunctionFragment;
"setRecord(bytes32,address,address,uint64)": FunctionFragment;
"setResolver(bytes32,address)": FunctionFragment;
"setSubnodeOwner(bytes32,bytes32,address)": FunctionFragment;
"setSubnodeRecord(bytes32,bytes32,address,address,uint64)": FunctionFragment;
"setTTL(bytes32,uint64)": FunctionFragment;
"ttl(bytes32)": FunctionFragment;
};
encodeFunctionData(
functionFragment: "isApprovedForAll",
values: [string, string]
): string;
encodeFunctionData(functionFragment: "old", values?: undefined): string;
encodeFunctionData(functionFragment: "owner", values: [BytesLike]): string;
encodeFunctionData(
functionFragment: "recordExists",
values: [BytesLike]
): string;
encodeFunctionData(functionFragment: "resolver", values: [BytesLike]): string;
encodeFunctionData(
functionFragment: "setApprovalForAll",
values: [string, boolean]
): string;
encodeFunctionData(
functionFragment: "setOwner",
values: [BytesLike, string]
): string;
encodeFunctionData(
functionFragment: "setRecord",
values: [BytesLike, string, string, BigNumberish]
): string;
encodeFunctionData(
functionFragment: "setResolver",
values: [BytesLike, string]
): string;
encodeFunctionData(
functionFragment: "setSubnodeOwner",
values: [BytesLike, BytesLike, string]
): string;
encodeFunctionData(
functionFragment: "setSubnodeRecord",
values: [BytesLike, BytesLike, string, string, BigNumberish]
): string;
encodeFunctionData(
functionFragment: "setTTL",
values: [BytesLike, BigNumberish]
): string;
encodeFunctionData(functionFragment: "ttl", values: [BytesLike]): string;
decodeFunctionResult(
functionFragment: "isApprovedForAll",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "old", 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;
events: {
"ApprovalForAll(address,address,bool)": EventFragment;
"NewOwner(bytes32,bytes32,address)": EventFragment;
"NewResolver(bytes32,address)": EventFragment;
"NewTTL(bytes32,uint64)": EventFragment;
"Transfer(bytes32,address)": EventFragment;
};
getEvent(nameOrSignatureOrTopic: "ApprovalForAll"): EventFragment;
getEvent(nameOrSignatureOrTopic: "NewOwner"): EventFragment;
getEvent(nameOrSignatureOrTopic: "NewResolver"): EventFragment;
getEvent(nameOrSignatureOrTopic: "NewTTL"): EventFragment;
getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment;
}
export type ApprovalForAllEvent = TypedEvent<
[string, string, boolean] & {
owner: string;
operator: string;
approved: boolean;
}
>;
export type NewOwnerEvent = TypedEvent<
[string, string, string] & { node: string; label: string; owner: string }
>;
export type NewResolverEvent = TypedEvent<
[string, string] & { node: string; resolver: string }
>;
export type NewTTLEvent = TypedEvent<
[string, BigNumber] & { node: string; ttl: BigNumber }
>;
export type TransferEvent = TypedEvent<
[string, string] & { node: string; owner: string }
>;
export class EnsRegistry extends BaseContract {
connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;
listeners<EventArgsArray extends Array<any>, EventArgsObject>(
eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>
): Array<TypedListener<EventArgsArray, EventArgsObject>>;
off<EventArgsArray extends Array<any>, EventArgsObject>(
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
listener: TypedListener<EventArgsArray, EventArgsObject>
): this;
on<EventArgsArray extends Array<any>, EventArgsObject>(
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
listener: TypedListener<EventArgsArray, EventArgsObject>
): this;
once<EventArgsArray extends Array<any>, EventArgsObject>(
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
listener: TypedListener<EventArgsArray, EventArgsObject>
): this;
removeListener<EventArgsArray extends Array<any>, EventArgsObject>(
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
listener: TypedListener<EventArgsArray, EventArgsObject>
): this;
removeAllListeners<EventArgsArray extends Array<any>, EventArgsObject>(
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
): this;
listeners(eventName?: string): Array<Listener>;
off(eventName: string, listener: Listener): this;
on(eventName: string, listener: Listener): this;
once(eventName: string, listener: Listener): this;
removeListener(eventName: string, listener: Listener): this;
removeAllListeners(eventName?: string): this;
queryFilter<EventArgsArray extends Array<any>, EventArgsObject>(
event: TypedEventFilter<EventArgsArray, EventArgsObject>,
fromBlockOrBlockhash?: string | number | undefined,
toBlock?: string | number | undefined
): Promise<Array<TypedEvent<EventArgsArray & EventArgsObject>>>;
interface: EnsRegistryInterface;
functions: {
isApprovedForAll(
owner: string,
operator: string,
overrides?: CallOverrides
): Promise<[boolean]>;
old(overrides?: CallOverrides): Promise<[string]>;
owner(node: BytesLike, overrides?: CallOverrides): Promise<[string]>;
recordExists(
node: BytesLike,
overrides?: CallOverrides
): Promise<[boolean]>;
resolver(node: BytesLike, overrides?: CallOverrides): Promise<[string]>;
setApprovalForAll(
operator: string,
approved: boolean,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
setOwner(
node: BytesLike,
owner: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
setRecord(
node: BytesLike,
owner: string,
resolver: string,
ttl: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
setResolver(
node: BytesLike,
resolver: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
setSubnodeOwner(
node: BytesLike,
label: BytesLike,
owner: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
setSubnodeRecord(
node: BytesLike,
label: BytesLike,
owner: string,
resolver: string,
ttl: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
setTTL(
node: BytesLike,
ttl: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
ttl(node: BytesLike, overrides?: CallOverrides): Promise<[BigNumber]>;
};
isApprovedForAll(
owner: string,
operator: string,
overrides?: CallOverrides
): Promise<boolean>;
old(overrides?: CallOverrides): Promise<string>;
owner(node: BytesLike, overrides?: CallOverrides): Promise<string>;
recordExists(node: BytesLike, overrides?: CallOverrides): Promise<boolean>;
resolver(node: BytesLike, overrides?: CallOverrides): Promise<string>;
setApprovalForAll(
operator: string,
approved: boolean,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
setOwner(
node: BytesLike,
owner: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
setRecord(
node: BytesLike,
owner: string,
resolver: string,
ttl: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
setResolver(
node: BytesLike,
resolver: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
setSubnodeOwner(
node: BytesLike,
label: BytesLike,
owner: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
setSubnodeRecord(
node: BytesLike,
label: BytesLike,
owner: string,
resolver: string,
ttl: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
setTTL(
node: BytesLike,
ttl: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
ttl(node: BytesLike, overrides?: CallOverrides): Promise<BigNumber>;
callStatic: {
isApprovedForAll(
owner: string,
operator: string,
overrides?: CallOverrides
): Promise<boolean>;
old(overrides?: CallOverrides): Promise<string>;
owner(node: BytesLike, overrides?: CallOverrides): Promise<string>;
recordExists(node: BytesLike, overrides?: CallOverrides): Promise<boolean>;
resolver(node: BytesLike, overrides?: CallOverrides): Promise<string>;
setApprovalForAll(
operator: string,
approved: boolean,
overrides?: CallOverrides
): Promise<void>;
setOwner(
node: BytesLike,
owner: string,
overrides?: CallOverrides
): Promise<void>;
setRecord(
node: BytesLike,
owner: string,
resolver: string,
ttl: BigNumberish,
overrides?: CallOverrides
): Promise<void>;
setResolver(
node: BytesLike,
resolver: string,
overrides?: CallOverrides
): Promise<void>;
setSubnodeOwner(
node: BytesLike,
label: BytesLike,
owner: string,
overrides?: CallOverrides
): Promise<string>;
setSubnodeRecord(
node: BytesLike,
label: BytesLike,
owner: string,
resolver: string,
ttl: BigNumberish,
overrides?: CallOverrides
): Promise<void>;
setTTL(
node: BytesLike,
ttl: BigNumberish,
overrides?: CallOverrides
): Promise<void>;
ttl(node: BytesLike, overrides?: CallOverrides): Promise<BigNumber>;
};
filters: {
"ApprovalForAll(address,address,bool)"(
owner?: string | null,
operator?: string | null,
approved?: null
): TypedEventFilter<
[string, string, boolean],
{ owner: string; operator: string; approved: boolean }
>;
ApprovalForAll(
owner?: string | null,
operator?: string | null,
approved?: null
): TypedEventFilter<
[string, string, boolean],
{ owner: string; operator: string; approved: boolean }
>;
"NewOwner(bytes32,bytes32,address)"(
node?: BytesLike | null,
label?: BytesLike | null,
owner?: null
): TypedEventFilter<
[string, string, string],
{ node: string; label: string; owner: string }
>;
NewOwner(
node?: BytesLike | null,
label?: BytesLike | null,
owner?: null
): TypedEventFilter<
[string, string, string],
{ node: string; label: string; owner: string }
>;
"NewResolver(bytes32,address)"(
node?: BytesLike | null,
resolver?: null
): TypedEventFilter<[string, string], { node: string; resolver: string }>;
NewResolver(
node?: BytesLike | null,
resolver?: null
): TypedEventFilter<[string, string], { node: string; resolver: string }>;
"NewTTL(bytes32,uint64)"(
node?: BytesLike | null,
ttl?: null
): TypedEventFilter<[string, BigNumber], { node: string; ttl: BigNumber }>;
NewTTL(
node?: BytesLike | null,
ttl?: null
): TypedEventFilter<[string, BigNumber], { node: string; ttl: BigNumber }>;
"Transfer(bytes32,address)"(
node?: BytesLike | null,
owner?: null
): TypedEventFilter<[string, string], { node: string; owner: string }>;
Transfer(
node?: BytesLike | null,
owner?: null
): TypedEventFilter<[string, string], { node: string; owner: string }>;
};
estimateGas: {
isApprovedForAll(
owner: string,
operator: string,
overrides?: CallOverrides
): Promise<BigNumber>;
old(overrides?: CallOverrides): Promise<BigNumber>;
owner(node: BytesLike, overrides?: CallOverrides): Promise<BigNumber>;
recordExists(
node: BytesLike,
overrides?: CallOverrides
): Promise<BigNumber>;
resolver(node: BytesLike, overrides?: CallOverrides): Promise<BigNumber>;
setApprovalForAll(
operator: string,
approved: boolean,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
setOwner(
node: BytesLike,
owner: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
setRecord(
node: BytesLike,
owner: string,
resolver: string,
ttl: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
setResolver(
node: BytesLike,
resolver: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
setSubnodeOwner(
node: BytesLike,
label: BytesLike,
owner: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
setSubnodeRecord(
node: BytesLike,
label: BytesLike,
owner: string,
resolver: string,
ttl: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
setTTL(
node: BytesLike,
ttl: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
ttl(node: BytesLike, overrides?: CallOverrides): Promise<BigNumber>;
};
populateTransaction: {
isApprovedForAll(
owner: string,
operator: string,
overrides?: CallOverrides
): Promise<PopulatedTransaction>;
old(overrides?: CallOverrides): Promise<PopulatedTransaction>;
owner(
node: BytesLike,
overrides?: CallOverrides
): Promise<PopulatedTransaction>;
recordExists(
node: BytesLike,
overrides?: CallOverrides
): Promise<PopulatedTransaction>;
resolver(
node: BytesLike,
overrides?: CallOverrides
): Promise<PopulatedTransaction>;
setApprovalForAll(
operator: string,
approved: boolean,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;
setOwner(
node: BytesLike,
owner: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;
setRecord(
node: BytesLike,
owner: string,
resolver: string,
ttl: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;
setResolver(
node: BytesLike,
resolver: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;
setSubnodeOwner(
node: BytesLike,
label: BytesLike,
owner: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;
setSubnodeRecord(
node: BytesLike,
label: BytesLike,
owner: string,
resolver: string,
ttl: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;
setTTL(
node: BytesLike,
ttl: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;
ttl(
node: BytesLike,
overrides?: CallOverrides
): Promise<PopulatedTransaction>;
};
}