UNPKG

baluni-contracts

Version:
506 lines (465 loc) 14.4 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ 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 BaluniV1DCAVaultRegistryInterface extends Interface { getFunction( nameOrSignature: | "UPGRADE_INTERFACE_VERSION" | "addVault" | "allVaults" | "getAllVaults" | "getVault" | "getVaultAsset" | "getVaultType1ByAssets" | "getVaultsByAsset" | "getVaultsCount" | "initialize" | "owner" | "proxiableUUID" | "registry" | "reinitialize" | "removeVault" | "renounceOwnership" | "transferOwnership" | "upgradeToAndCall" | "vaultExist" ): FunctionFragment; getEvent( nameOrSignatureOrTopic: | "Initialized" | "OwnershipTransferred" | "Upgraded" | "vaultCreated" ): EventFragment; encodeFunctionData( functionFragment: "UPGRADE_INTERFACE_VERSION", values?: undefined ): string; encodeFunctionData( functionFragment: "addVault", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "allVaults", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "getAllVaults", values?: undefined ): string; encodeFunctionData( functionFragment: "getVault", values: [AddressLike, AddressLike] ): string; encodeFunctionData( functionFragment: "getVaultAsset", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "getVaultType1ByAssets", values: [AddressLike, AddressLike] ): string; encodeFunctionData( functionFragment: "getVaultsByAsset", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "getVaultsCount", values?: undefined ): string; encodeFunctionData( functionFragment: "initialize", values: [AddressLike] ): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "proxiableUUID", values?: undefined ): string; encodeFunctionData(functionFragment: "registry", values?: undefined): string; encodeFunctionData( functionFragment: "reinitialize", values: [AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "removeVault", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "renounceOwnership", values?: undefined ): string; encodeFunctionData( functionFragment: "transferOwnership", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "upgradeToAndCall", values: [AddressLike, BytesLike] ): string; encodeFunctionData( functionFragment: "vaultExist", values: [AddressLike] ): string; decodeFunctionResult( functionFragment: "UPGRADE_INTERFACE_VERSION", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "addVault", data: BytesLike): Result; decodeFunctionResult(functionFragment: "allVaults", data: BytesLike): Result; decodeFunctionResult( functionFragment: "getAllVaults", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "getVault", data: BytesLike): Result; decodeFunctionResult( functionFragment: "getVaultAsset", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getVaultType1ByAssets", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getVaultsByAsset", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getVaultsCount", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult( functionFragment: "proxiableUUID", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "registry", data: BytesLike): Result; decodeFunctionResult( functionFragment: "reinitialize", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "removeVault", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "renounceOwnership", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "transferOwnership", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "upgradeToAndCall", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "vaultExist", data: BytesLike): Result; } export namespace InitializedEvent { export type InputTuple = [version: BigNumberish]; export type OutputTuple = [version: bigint]; export interface OutputObject { version: bigint; } 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 = [previousOwner: AddressLike, newOwner: AddressLike]; export type OutputTuple = [previousOwner: string, newOwner: string]; export interface OutputObject { previousOwner: 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 namespace UpgradedEvent { export type InputTuple = [implementation: AddressLike]; export type OutputTuple = [implementation: string]; export interface OutputObject { implementation: 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 vaultCreatedEvent { export type InputTuple = [vault: AddressLike, assets: AddressLike[]]; export type OutputTuple = [vault: string, assets: string[]]; export interface OutputObject { vault: string; assets: 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 BaluniV1DCAVaultRegistry extends BaseContract { connect(runner?: ContractRunner | null): BaluniV1DCAVaultRegistry; waitForDeployment(): Promise<this>; interface: BaluniV1DCAVaultRegistryInterface; 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>; UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], "view">; addVault: TypedContractMethod< [vaultAddress: AddressLike], [void], "nonpayable" >; allVaults: TypedContractMethod<[arg0: BigNumberish], [string], "view">; getAllVaults: TypedContractMethod<[], [string[]], "view">; getVault: TypedContractMethod< [arg0: AddressLike, arg1: AddressLike], [string], "view" >; getVaultAsset: TypedContractMethod< [vaultAddress: AddressLike], [string[]], "view" >; getVaultType1ByAssets: TypedContractMethod< [asset1: AddressLike, asset2: AddressLike], [string], "view" >; getVaultsByAsset: TypedContractMethod< [token: AddressLike], [string[]], "view" >; getVaultsCount: TypedContractMethod<[], [bigint], "view">; initialize: TypedContractMethod< [_register: AddressLike], [void], "nonpayable" >; owner: TypedContractMethod<[], [string], "view">; proxiableUUID: TypedContractMethod<[], [string], "view">; registry: TypedContractMethod<[], [string], "view">; reinitialize: TypedContractMethod< [_register: AddressLike, _version: BigNumberish], [void], "nonpayable" >; removeVault: TypedContractMethod<[_vault: AddressLike], [void], "nonpayable">; renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; transferOwnership: TypedContractMethod< [newOwner: AddressLike], [void], "nonpayable" >; upgradeToAndCall: TypedContractMethod< [newImplementation: AddressLike, data: BytesLike], [void], "payable" >; vaultExist: TypedContractMethod<[_vault: AddressLike], [boolean], "view">; getFunction<T extends ContractMethod = ContractMethod>( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "UPGRADE_INTERFACE_VERSION" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "addVault" ): TypedContractMethod<[vaultAddress: AddressLike], [void], "nonpayable">; getFunction( nameOrSignature: "allVaults" ): TypedContractMethod<[arg0: BigNumberish], [string], "view">; getFunction( nameOrSignature: "getAllVaults" ): TypedContractMethod<[], [string[]], "view">; getFunction( nameOrSignature: "getVault" ): TypedContractMethod< [arg0: AddressLike, arg1: AddressLike], [string], "view" >; getFunction( nameOrSignature: "getVaultAsset" ): TypedContractMethod<[vaultAddress: AddressLike], [string[]], "view">; getFunction( nameOrSignature: "getVaultType1ByAssets" ): TypedContractMethod< [asset1: AddressLike, asset2: AddressLike], [string], "view" >; getFunction( nameOrSignature: "getVaultsByAsset" ): TypedContractMethod<[token: AddressLike], [string[]], "view">; getFunction( nameOrSignature: "getVaultsCount" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "initialize" ): TypedContractMethod<[_register: AddressLike], [void], "nonpayable">; getFunction( nameOrSignature: "owner" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "proxiableUUID" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "registry" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "reinitialize" ): TypedContractMethod< [_register: AddressLike, _version: BigNumberish], [void], "nonpayable" >; getFunction( nameOrSignature: "removeVault" ): TypedContractMethod<[_vault: AddressLike], [void], "nonpayable">; getFunction( nameOrSignature: "renounceOwnership" ): TypedContractMethod<[], [void], "nonpayable">; getFunction( nameOrSignature: "transferOwnership" ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; getFunction( nameOrSignature: "upgradeToAndCall" ): TypedContractMethod< [newImplementation: AddressLike, data: BytesLike], [void], "payable" >; getFunction( nameOrSignature: "vaultExist" ): TypedContractMethod<[_vault: AddressLike], [boolean], "view">; getEvent( key: "Initialized" ): TypedContractEvent< InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject >; getEvent( key: "OwnershipTransferred" ): TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; getEvent( key: "Upgraded" ): TypedContractEvent< UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject >; getEvent( key: "vaultCreated" ): TypedContractEvent< vaultCreatedEvent.InputTuple, vaultCreatedEvent.OutputTuple, vaultCreatedEvent.OutputObject >; filters: { "Initialized(uint64)": TypedContractEvent< InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject >; Initialized: TypedContractEvent< InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject >; "OwnershipTransferred(address,address)": TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; OwnershipTransferred: TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; "Upgraded(address)": TypedContractEvent< UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject >; Upgraded: TypedContractEvent< UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject >; "vaultCreated(address,address[])": TypedContractEvent< vaultCreatedEvent.InputTuple, vaultCreatedEvent.OutputTuple, vaultCreatedEvent.OutputObject >; vaultCreated: TypedContractEvent< vaultCreatedEvent.InputTuple, vaultCreatedEvent.OutputTuple, vaultCreatedEvent.OutputObject >; }; }