-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
UNS Release bot
committed
Oct 17, 2024
1 parent
c022d8e
commit 7fb4874
Showing
28 changed files
with
2,358 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
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 IRegistrarCustodyInterface extends Interface { | ||
getFunction(nameOrSignature: "isValidSignature" | "registerDomain" | "safeTransfer" | "virtualOwners"): FunctionFragment; | ||
getEvent(nameOrSignatureOrTopic: "AdminChanged" | "DomainLocked" | "Upgraded"): EventFragment; | ||
encodeFunctionData(functionFragment: "isValidSignature", values: [BytesLike, BytesLike]): string; | ||
encodeFunctionData(functionFragment: "registerDomain", values: [AddressLike, string[], string[], string[], BigNumberish]): string; | ||
encodeFunctionData(functionFragment: "safeTransfer", values: [AddressLike, BigNumberish]): string; | ||
encodeFunctionData(functionFragment: "virtualOwners", values: [BigNumberish]): string; | ||
decodeFunctionResult(functionFragment: "isValidSignature", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "registerDomain", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "safeTransfer", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "virtualOwners", data: BytesLike): Result; | ||
} | ||
export declare namespace AdminChangedEvent { | ||
type InputTuple = [previousAdmin: AddressLike, newAdmin: AddressLike]; | ||
type OutputTuple = [previousAdmin: string, newAdmin: string]; | ||
interface OutputObject { | ||
previousAdmin: string; | ||
newAdmin: string; | ||
} | ||
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; | ||
type Filter = TypedDeferredTopicFilter<Event>; | ||
type Log = TypedEventLog<Event>; | ||
type LogDescription = TypedLogDescription<Event>; | ||
} | ||
export declare namespace DomainLockedEvent { | ||
type InputTuple = [tokenId: BigNumberish, owner: AddressLike]; | ||
type OutputTuple = [tokenId: bigint, owner: string]; | ||
interface OutputObject { | ||
tokenId: bigint; | ||
owner: string; | ||
} | ||
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; | ||
type Filter = TypedDeferredTopicFilter<Event>; | ||
type Log = TypedEventLog<Event>; | ||
type LogDescription = TypedLogDescription<Event>; | ||
} | ||
export declare namespace UpgradedEvent { | ||
type InputTuple = [implementation: AddressLike]; | ||
type OutputTuple = [implementation: string]; | ||
interface OutputObject { | ||
implementation: string; | ||
} | ||
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; | ||
type Filter = TypedDeferredTopicFilter<Event>; | ||
type Log = TypedEventLog<Event>; | ||
type LogDescription = TypedLogDescription<Event>; | ||
} | ||
export interface IRegistrarCustody extends BaseContract { | ||
connect(runner?: ContractRunner | null): IRegistrarCustody; | ||
waitForDeployment(): Promise<this>; | ||
interface: IRegistrarCustodyInterface; | ||
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>; | ||
isValidSignature: TypedContractMethod<[ | ||
hash: BytesLike, | ||
signature: BytesLike | ||
], [ | ||
string | ||
], "view">; | ||
registerDomain: TypedContractMethod<[ | ||
virtualOwner: AddressLike, | ||
labels: string[], | ||
keys: string[], | ||
values: string[], | ||
expiry: BigNumberish | ||
], [ | ||
void | ||
], "nonpayable">; | ||
safeTransfer: TypedContractMethod<[ | ||
to: AddressLike, | ||
tokenId: BigNumberish | ||
], [ | ||
void | ||
], "nonpayable">; | ||
virtualOwners: TypedContractMethod<[tokenId: BigNumberish], [string], "view">; | ||
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T; | ||
getFunction(nameOrSignature: "isValidSignature"): TypedContractMethod<[ | ||
hash: BytesLike, | ||
signature: BytesLike | ||
], [ | ||
string | ||
], "view">; | ||
getFunction(nameOrSignature: "registerDomain"): TypedContractMethod<[ | ||
virtualOwner: AddressLike, | ||
labels: string[], | ||
keys: string[], | ||
values: string[], | ||
expiry: BigNumberish | ||
], [ | ||
void | ||
], "nonpayable">; | ||
getFunction(nameOrSignature: "safeTransfer"): TypedContractMethod<[ | ||
to: AddressLike, | ||
tokenId: BigNumberish | ||
], [ | ||
void | ||
], "nonpayable">; | ||
getFunction(nameOrSignature: "virtualOwners"): TypedContractMethod<[tokenId: BigNumberish], [string], "view">; | ||
getEvent(key: "AdminChanged"): TypedContractEvent<AdminChangedEvent.InputTuple, AdminChangedEvent.OutputTuple, AdminChangedEvent.OutputObject>; | ||
getEvent(key: "DomainLocked"): TypedContractEvent<DomainLockedEvent.InputTuple, DomainLockedEvent.OutputTuple, DomainLockedEvent.OutputObject>; | ||
getEvent(key: "Upgraded"): TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>; | ||
filters: { | ||
"AdminChanged(address,address)": TypedContractEvent<AdminChangedEvent.InputTuple, AdminChangedEvent.OutputTuple, AdminChangedEvent.OutputObject>; | ||
AdminChanged: TypedContractEvent<AdminChangedEvent.InputTuple, AdminChangedEvent.OutputTuple, AdminChangedEvent.OutputObject>; | ||
"DomainLocked(uint256,address)": TypedContractEvent<DomainLockedEvent.InputTuple, DomainLockedEvent.OutputTuple, DomainLockedEvent.OutputObject>; | ||
DomainLocked: TypedContractEvent<DomainLockedEvent.InputTuple, DomainLockedEvent.OutputTuple, DomainLockedEvent.OutputObject>; | ||
"Upgraded(address)": TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>; | ||
Upgraded: TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>; | ||
}; | ||
} | ||
//# sourceMappingURL=IRegistrarCustody.d.ts.map |
Oops, something went wrong.