UNPKG

baluni-contracts

Version:
414 lines (381 loc) 11.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 BaluniV1SwapperInterface extends Interface { getFunction( nameOrSignature: | "UPGRADE_INTERFACE_VERSION" | "getSlippagePercentage" | "initialize" | "multiHopSwap" | "owner" | "proxiableUUID" | "registry" | "reinitialize" | "renounceOwnership" | "setSlippagePercentage" | "singleSwap" | "transferOwnership" | "upgradeToAndCall" ): FunctionFragment; getEvent( nameOrSignatureOrTopic: "Initialized" | "OwnershipTransferred" | "Upgraded" ): EventFragment; encodeFunctionData( functionFragment: "UPGRADE_INTERFACE_VERSION", values?: undefined ): string; encodeFunctionData( functionFragment: "getSlippagePercentage", values?: undefined ): string; encodeFunctionData( functionFragment: "initialize", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "multiHopSwap", values: [AddressLike, AddressLike, AddressLike, BigNumberish, 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: "renounceOwnership", values?: undefined ): string; encodeFunctionData( functionFragment: "setSlippagePercentage", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "singleSwap", values: [AddressLike, AddressLike, BigNumberish, AddressLike] ): string; encodeFunctionData( functionFragment: "transferOwnership", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "upgradeToAndCall", values: [AddressLike, BytesLike] ): string; decodeFunctionResult( functionFragment: "UPGRADE_INTERFACE_VERSION", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getSlippagePercentage", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result; decodeFunctionResult( functionFragment: "multiHopSwap", 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: "renounceOwnership", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setSlippagePercentage", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "singleSwap", data: BytesLike): Result; decodeFunctionResult( functionFragment: "transferOwnership", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "upgradeToAndCall", 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 interface BaluniV1Swapper extends BaseContract { connect(runner?: ContractRunner | null): BaluniV1Swapper; waitForDeployment(): Promise<this>; interface: BaluniV1SwapperInterface; 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">; getSlippagePercentage: TypedContractMethod<[], [bigint], "view">; initialize: TypedContractMethod< [_registry: AddressLike], [void], "nonpayable" >; multiHopSwap: TypedContractMethod< [ token0: AddressLike, token1: AddressLike, token2: AddressLike, amount: BigNumberish, receiver: AddressLike ], [bigint], "nonpayable" >; owner: TypedContractMethod<[], [string], "view">; proxiableUUID: TypedContractMethod<[], [string], "view">; registry: TypedContractMethod<[], [string], "view">; reinitialize: TypedContractMethod< [_registry: AddressLike, version: BigNumberish], [void], "nonpayable" >; renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; setSlippagePercentage: TypedContractMethod< [_slippagePercentage: BigNumberish], [void], "nonpayable" >; singleSwap: TypedContractMethod< [ token0: AddressLike, token1: AddressLike, amount: BigNumberish, receiver: AddressLike ], [bigint], "nonpayable" >; transferOwnership: TypedContractMethod< [newOwner: AddressLike], [void], "nonpayable" >; upgradeToAndCall: TypedContractMethod< [newImplementation: AddressLike, data: BytesLike], [void], "payable" >; getFunction<T extends ContractMethod = ContractMethod>( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "UPGRADE_INTERFACE_VERSION" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "getSlippagePercentage" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "initialize" ): TypedContractMethod<[_registry: AddressLike], [void], "nonpayable">; getFunction( nameOrSignature: "multiHopSwap" ): TypedContractMethod< [ token0: AddressLike, token1: AddressLike, token2: AddressLike, amount: BigNumberish, receiver: AddressLike ], [bigint], "nonpayable" >; getFunction( nameOrSignature: "owner" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "proxiableUUID" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "registry" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "reinitialize" ): TypedContractMethod< [_registry: AddressLike, version: BigNumberish], [void], "nonpayable" >; getFunction( nameOrSignature: "renounceOwnership" ): TypedContractMethod<[], [void], "nonpayable">; getFunction( nameOrSignature: "setSlippagePercentage" ): TypedContractMethod< [_slippagePercentage: BigNumberish], [void], "nonpayable" >; getFunction( nameOrSignature: "singleSwap" ): TypedContractMethod< [ token0: AddressLike, token1: AddressLike, amount: BigNumberish, receiver: AddressLike ], [bigint], "nonpayable" >; getFunction( nameOrSignature: "transferOwnership" ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; getFunction( nameOrSignature: "upgradeToAndCall" ): TypedContractMethod< [newImplementation: AddressLike, data: BytesLike], [void], "payable" >; 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 >; 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 >; }; }