/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener, } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod, } from "../../common"; export interface IBaluniV1PoolPeripheryInterface extends Interface { getFunction( nameOrSignature: | "batchSwap" | "getAmountOut" | "getPoolsContainingToken" | "getVersion" | "initialize" | "reinitialize" | "swapTokenForToken" | "swapTokensForTokens" ): FunctionFragment; encodeFunctionData( functionFragment: "batchSwap", values: [AddressLike[], AddressLike[], BigNumberish[], AddressLike[]] ): string; encodeFunctionData( functionFragment: "getAmountOut", values: [AddressLike, AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "getPoolsContainingToken", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "getVersion", values?: undefined ): string; encodeFunctionData( functionFragment: "initialize", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "reinitialize", values: [AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "swapTokenForToken", values: [ AddressLike, AddressLike, BigNumberish, BigNumberish, AddressLike, AddressLike, BigNumberish ] ): string; encodeFunctionData( functionFragment: "swapTokensForTokens", values: [ AddressLike[], AddressLike[], BigNumberish, BigNumberish, AddressLike, BigNumberish ] ): string; decodeFunctionResult(functionFragment: "batchSwap", data: BytesLike): Result; decodeFunctionResult( functionFragment: "getAmountOut", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getPoolsContainingToken", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "getVersion", data: BytesLike): Result; decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result; decodeFunctionResult( functionFragment: "reinitialize", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "swapTokenForToken", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "swapTokensForTokens", data: BytesLike ): Result; } export interface IBaluniV1PoolPeriphery extends BaseContract { connect(runner?: ContractRunner | null): IBaluniV1PoolPeriphery; waitForDeployment(): Promise; interface: IBaluniV1PoolPeripheryInterface; 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; batchSwap: TypedContractMethod< [ fromTokens: AddressLike[], toTokens: AddressLike[], amounts: BigNumberish[], receivers: AddressLike[] ], [bigint[]], "nonpayable" >; getAmountOut: TypedContractMethod< [fromToken: AddressLike, toToken: AddressLike, amount: BigNumberish], [bigint], "view" >; getPoolsContainingToken: TypedContractMethod< [token: AddressLike], [string[]], "view" >; getVersion: TypedContractMethod<[], [bigint], "view">; initialize: TypedContractMethod< [_registry: AddressLike], [void], "nonpayable" >; reinitialize: TypedContractMethod< [_registry: AddressLike, version: BigNumberish], [void], "nonpayable" >; swapTokenForToken: TypedContractMethod< [ fromToken: AddressLike, toToken: AddressLike, fromAmount: BigNumberish, minAmount: BigNumberish, from: AddressLike, to: AddressLike, deadline: BigNumberish ], [[bigint, bigint] & { amountOut: bigint; haircut: bigint }], "nonpayable" >; swapTokensForTokens: TypedContractMethod< [ tokenPath: AddressLike[], poolPath: AddressLike[], fromAmount: BigNumberish, minimumToAmount: BigNumberish, to: AddressLike, deadline: BigNumberish ], [[bigint, bigint] & { amountOut: bigint; haircut: bigint }], "nonpayable" >; getFunction( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "batchSwap" ): TypedContractMethod< [ fromTokens: AddressLike[], toTokens: AddressLike[], amounts: BigNumberish[], receivers: AddressLike[] ], [bigint[]], "nonpayable" >; getFunction( nameOrSignature: "getAmountOut" ): TypedContractMethod< [fromToken: AddressLike, toToken: AddressLike, amount: BigNumberish], [bigint], "view" >; getFunction( nameOrSignature: "getPoolsContainingToken" ): TypedContractMethod<[token: AddressLike], [string[]], "view">; getFunction( nameOrSignature: "getVersion" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "initialize" ): TypedContractMethod<[_registry: AddressLike], [void], "nonpayable">; getFunction( nameOrSignature: "reinitialize" ): TypedContractMethod< [_registry: AddressLike, version: BigNumberish], [void], "nonpayable" >; getFunction( nameOrSignature: "swapTokenForToken" ): TypedContractMethod< [ fromToken: AddressLike, toToken: AddressLike, fromAmount: BigNumberish, minAmount: BigNumberish, from: AddressLike, to: AddressLike, deadline: BigNumberish ], [[bigint, bigint] & { amountOut: bigint; haircut: bigint }], "nonpayable" >; getFunction( nameOrSignature: "swapTokensForTokens" ): TypedContractMethod< [ tokenPath: AddressLike[], poolPath: AddressLike[], fromAmount: BigNumberish, minimumToAmount: BigNumberish, to: AddressLike, deadline: BigNumberish ], [[bigint, bigint] & { amountOut: bigint; haircut: bigint }], "nonpayable" >; filters: {}; }