UNPKG

baluni-contracts

Version:
141 lines (126 loc) 3.53 kB
/* 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 IBaluniV1SwapperInterface extends Interface { getFunction(nameOrSignature: "multiHopSwap" | "singleSwap"): FunctionFragment; encodeFunctionData( functionFragment: "multiHopSwap", values: [AddressLike, AddressLike, AddressLike, BigNumberish, AddressLike] ): string; encodeFunctionData( functionFragment: "singleSwap", values: [AddressLike, AddressLike, BigNumberish, AddressLike] ): string; decodeFunctionResult( functionFragment: "multiHopSwap", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "singleSwap", data: BytesLike): Result; } export interface IBaluniV1Swapper extends BaseContract { connect(runner?: ContractRunner | null): IBaluniV1Swapper; waitForDeployment(): Promise<this>; interface: IBaluniV1SwapperInterface; 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>; multiHopSwap: TypedContractMethod< [ token0: AddressLike, token1: AddressLike, token2: AddressLike, amount: BigNumberish, receiver: AddressLike ], [bigint], "nonpayable" >; singleSwap: TypedContractMethod< [ token0: AddressLike, token1: AddressLike, amount: BigNumberish, receiver: AddressLike ], [bigint], "nonpayable" >; getFunction<T extends ContractMethod = ContractMethod>( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "multiHopSwap" ): TypedContractMethod< [ token0: AddressLike, token1: AddressLike, token2: AddressLike, amount: BigNumberish, receiver: AddressLike ], [bigint], "nonpayable" >; getFunction( nameOrSignature: "singleSwap" ): TypedContractMethod< [ token0: AddressLike, token1: AddressLike, amount: BigNumberish, receiver: AddressLike ], [bigint], "nonpayable" >; filters: {}; }