UNPKG

@descent-protocol/sdk

Version:

A Typescript library for interacting with the Descent Protocol

330 lines (301 loc) 9.85 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener, } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod, } from "./common"; export interface VaultRouterInterface extends Interface { getFunction( nameOrSignature: | "approveTokenForVault" | "cancelOwnershipHandover" | "completeOwnershipHandover" | "multiInteract" | "owner" | "ownershipHandoverExpiresAt" | "renounceOwnership" | "requestOwnershipHandover" | "transferOwnership" ): FunctionFragment; getEvent( nameOrSignatureOrTopic: | "OwnershipHandoverCanceled" | "OwnershipHandoverRequested" | "OwnershipTransferred" ): EventFragment; encodeFunctionData( functionFragment: "approveTokenForVault", values: [AddressLike, AddressLike, boolean] ): string; encodeFunctionData( functionFragment: "cancelOwnershipHandover", values?: undefined ): string; encodeFunctionData( functionFragment: "completeOwnershipHandover", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "multiInteract", values: [BytesLike, BytesLike[]] ): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "ownershipHandoverExpiresAt", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "renounceOwnership", values?: undefined ): string; encodeFunctionData( functionFragment: "requestOwnershipHandover", values?: undefined ): string; encodeFunctionData( functionFragment: "transferOwnership", values: [AddressLike] ): string; decodeFunctionResult( functionFragment: "approveTokenForVault", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "cancelOwnershipHandover", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "completeOwnershipHandover", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "multiInteract", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult( functionFragment: "ownershipHandoverExpiresAt", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "renounceOwnership", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "requestOwnershipHandover", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "transferOwnership", data: BytesLike ): Result; } export namespace OwnershipHandoverCanceledEvent { export type InputTuple = [pendingOwner: AddressLike]; export type OutputTuple = [pendingOwner: string]; export interface OutputObject { pendingOwner: string; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace OwnershipHandoverRequestedEvent { export type InputTuple = [pendingOwner: AddressLike]; export type OutputTuple = [pendingOwner: string]; export interface OutputObject { pendingOwner: string; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace OwnershipTransferredEvent { export type InputTuple = [oldOwner: AddressLike, newOwner: AddressLike]; export type OutputTuple = [oldOwner: string, newOwner: string]; export interface OutputObject { oldOwner: string; newOwner: string; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export interface VaultRouter extends BaseContract { connect(runner?: ContractRunner | null): VaultRouter; waitForDeployment(): Promise<this>; interface: VaultRouterInterface; 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>; approveTokenForVault: TypedContractMethod< [_token: AddressLike, _vaultAddress: AddressLike, isMax: boolean], [void], "nonpayable" >; cancelOwnershipHandover: TypedContractMethod<[], [void], "payable">; completeOwnershipHandover: TypedContractMethod< [pendingOwner: AddressLike], [void], "payable" >; multiInteract: TypedContractMethod< [_packedOperations: BytesLike, _encodedParameters: BytesLike[]], [void], "nonpayable" >; owner: TypedContractMethod<[], [string], "view">; ownershipHandoverExpiresAt: TypedContractMethod< [pendingOwner: AddressLike], [bigint], "view" >; renounceOwnership: TypedContractMethod<[], [void], "payable">; requestOwnershipHandover: TypedContractMethod<[], [void], "payable">; transferOwnership: TypedContractMethod< [newOwner: AddressLike], [void], "payable" >; getFunction<T extends ContractMethod = ContractMethod>( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "approveTokenForVault" ): TypedContractMethod< [_token: AddressLike, _vaultAddress: AddressLike, isMax: boolean], [void], "nonpayable" >; getFunction( nameOrSignature: "cancelOwnershipHandover" ): TypedContractMethod<[], [void], "payable">; getFunction( nameOrSignature: "completeOwnershipHandover" ): TypedContractMethod<[pendingOwner: AddressLike], [void], "payable">; getFunction( nameOrSignature: "multiInteract" ): TypedContractMethod< [_packedOperations: BytesLike, _encodedParameters: BytesLike[]], [void], "nonpayable" >; getFunction( nameOrSignature: "owner" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "ownershipHandoverExpiresAt" ): TypedContractMethod<[pendingOwner: AddressLike], [bigint], "view">; getFunction( nameOrSignature: "renounceOwnership" ): TypedContractMethod<[], [void], "payable">; getFunction( nameOrSignature: "requestOwnershipHandover" ): TypedContractMethod<[], [void], "payable">; getFunction( nameOrSignature: "transferOwnership" ): TypedContractMethod<[newOwner: AddressLike], [void], "payable">; getEvent( key: "OwnershipHandoverCanceled" ): TypedContractEvent< OwnershipHandoverCanceledEvent.InputTuple, OwnershipHandoverCanceledEvent.OutputTuple, OwnershipHandoverCanceledEvent.OutputObject >; getEvent( key: "OwnershipHandoverRequested" ): TypedContractEvent< OwnershipHandoverRequestedEvent.InputTuple, OwnershipHandoverRequestedEvent.OutputTuple, OwnershipHandoverRequestedEvent.OutputObject >; getEvent( key: "OwnershipTransferred" ): TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; filters: { "OwnershipHandoverCanceled(address)": TypedContractEvent< OwnershipHandoverCanceledEvent.InputTuple, OwnershipHandoverCanceledEvent.OutputTuple, OwnershipHandoverCanceledEvent.OutputObject >; OwnershipHandoverCanceled: TypedContractEvent< OwnershipHandoverCanceledEvent.InputTuple, OwnershipHandoverCanceledEvent.OutputTuple, OwnershipHandoverCanceledEvent.OutputObject >; "OwnershipHandoverRequested(address)": TypedContractEvent< OwnershipHandoverRequestedEvent.InputTuple, OwnershipHandoverRequestedEvent.OutputTuple, OwnershipHandoverRequestedEvent.OutputObject >; OwnershipHandoverRequested: TypedContractEvent< OwnershipHandoverRequestedEvent.InputTuple, OwnershipHandoverRequestedEvent.OutputTuple, OwnershipHandoverRequestedEvent.OutputObject >; "OwnershipTransferred(address,address)": TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; OwnershipTransferred: TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; }; }