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 declare namespace Registry { type RegistryEntryStruct = { implementation: AddressLike; version: BigNumberish; deprecated: boolean; name: string; nameIndex: BigNumberish; }; type RegistryEntryStructOutput = [ implementation: string, version: bigint, deprecated: boolean, name: string, nameIndex: bigint ] & { implementation: string; version: bigint; deprecated: boolean; name: string; nameIndex: bigint; }; } export interface RegistryInterface extends Interface { getFunction(nameOrSignature: "deprecateContract" | "getAllContracts" | "getContract" | "getContractAddress" | "isDeployed" | "nameIndex" | "owner" | "registryIndex" | "renounceOwnership" | "setContract" | "transferOwnership"): FunctionFragment; getEvent(nameOrSignatureOrTopic: "ContractDeprecated" | "ContractSet" | "OwnershipTransferred" | "Registered"): EventFragment; encodeFunctionData(functionFragment: "deprecateContract", values: [string]): string; encodeFunctionData(functionFragment: "getAllContracts", values?: undefined): string; encodeFunctionData(functionFragment: "getContract", values: [string]): string; encodeFunctionData(functionFragment: "getContractAddress", values: [string]): string; encodeFunctionData(functionFragment: "isDeployed", values: [AddressLike]): string; encodeFunctionData(functionFragment: "nameIndex", values: [BytesLike]): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData(functionFragment: "registryIndex", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string; encodeFunctionData(functionFragment: "setContract", values: [string, AddressLike, BigNumberish]): string; encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string; decodeFunctionResult(functionFragment: "deprecateContract", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getAllContracts", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getContract", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getContractAddress", data: BytesLike): Result; decodeFunctionResult(functionFragment: "isDeployed", data: BytesLike): Result; decodeFunctionResult(functionFragment: "nameIndex", data: BytesLike): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult(functionFragment: "registryIndex", data: BytesLike): Result; decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setContract", data: BytesLike): Result; decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result; } export declare namespace ContractDeprecatedEvent { type InputTuple = [name: string, contractAddress: AddressLike]; type OutputTuple = [name: string, contractAddress: string]; interface OutputObject { name: string; contractAddress: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace ContractSetEvent { type InputTuple = [ name: string, contractAddress: AddressLike, version: BigNumberish, deprecated: boolean ]; type OutputTuple = [ name: string, contractAddress: string, version: bigint, deprecated: boolean ]; interface OutputObject { name: string; contractAddress: string; version: bigint; deprecated: boolean; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace OwnershipTransferredEvent { type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; type OutputTuple = [previousOwner: string, newOwner: string]; interface OutputObject { previousOwner: string; newOwner: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace RegisteredEvent { type InputTuple = [deployment: AddressLike]; type OutputTuple = [deployment: string]; interface OutputObject { deployment: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export interface Registry extends BaseContract { connect(runner?: ContractRunner | null): BaseContract; attach(addressOrName: AddressLike): this; deployed(): Promise; interface: RegistryInterface; queryFilter(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>>; queryFilter(filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>>; on(event: TCEvent, listener: TypedListener): Promise; on(filter: TypedDeferredTopicFilter, listener: TypedListener): Promise; once(event: TCEvent, listener: TypedListener): Promise; once(filter: TypedDeferredTopicFilter, listener: TypedListener): Promise; listeners(event: TCEvent): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners(event?: TCEvent): Promise; deprecateContract: TypedContractMethod<[name: string], [void], "nonpayable">; getAllContracts: TypedContractMethod<[ ], [ Registry.RegistryEntryStructOutput[] ], "view">; getContract: TypedContractMethod<[ name: string ], [ Registry.RegistryEntryStructOutput ], "view">; getContractAddress: TypedContractMethod<[name: string], [string], "view">; isDeployed: TypedContractMethod<[arg0: AddressLike], [boolean], "view">; nameIndex: TypedContractMethod<[arg0: BytesLike], [bigint], "view">; owner: TypedContractMethod<[], [string], "view">; registryIndex: TypedContractMethod<[ arg0: BigNumberish ], [ [ string, bigint, boolean, string, bigint ] & { implementation: string; version: bigint; deprecated: boolean; name: string; nameIndex: bigint; } ], "view">; renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; setContract: TypedContractMethod<[ name: string, contractAddress: AddressLike, version: BigNumberish ], [ void ], "nonpayable">; transferOwnership: TypedContractMethod<[ newOwner: AddressLike ], [ void ], "nonpayable">; getFunction(key: string | FunctionFragment): T; getFunction(nameOrSignature: "deprecateContract"): TypedContractMethod<[name: string], [void], "nonpayable">; getFunction(nameOrSignature: "getAllContracts"): TypedContractMethod<[], [Registry.RegistryEntryStructOutput[]], "view">; getFunction(nameOrSignature: "getContract"): TypedContractMethod<[ name: string ], [ Registry.RegistryEntryStructOutput ], "view">; getFunction(nameOrSignature: "getContractAddress"): TypedContractMethod<[name: string], [string], "view">; getFunction(nameOrSignature: "isDeployed"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">; getFunction(nameOrSignature: "nameIndex"): TypedContractMethod<[arg0: BytesLike], [bigint], "view">; getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "registryIndex"): TypedContractMethod<[ arg0: BigNumberish ], [ [ string, bigint, boolean, string, bigint ] & { implementation: string; version: bigint; deprecated: boolean; name: string; nameIndex: bigint; } ], "view">; getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">; getFunction(nameOrSignature: "setContract"): TypedContractMethod<[ name: string, contractAddress: AddressLike, version: BigNumberish ], [ void ], "nonpayable">; getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; getEvent(key: "ContractDeprecated"): TypedContractEvent; getEvent(key: "ContractSet"): TypedContractEvent; getEvent(key: "OwnershipTransferred"): TypedContractEvent; getEvent(key: "Registered"): TypedContractEvent; filters: { "ContractDeprecated(string,address)": TypedContractEvent; ContractDeprecated: TypedContractEvent; "ContractSet(string,address,uint256,bool)": TypedContractEvent; ContractSet: TypedContractEvent; "OwnershipTransferred(address,address)": TypedContractEvent; OwnershipTransferred: TypedContractEvent; "Registered(address)": TypedContractEvent; Registered: TypedContractEvent; }; }