UNPKG

baluni-contracts

Version:
176 lines (157 loc) 4.44 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 declare namespace MockSwapRouter { export type ExactInputParamsStruct = { path: AddressLike[]; recipient: AddressLike; deadline: BigNumberish; amountIn: BigNumberish; amountOutMinimum: BigNumberish; }; export type ExactInputParamsStructOutput = [ path: string[], recipient: string, deadline: bigint, amountIn: bigint, amountOutMinimum: bigint ] & { path: string[]; recipient: string; deadline: bigint; amountIn: bigint; amountOutMinimum: bigint; }; export type ExactInputSingleParamsStruct = { tokenIn: AddressLike; tokenOut: AddressLike; fee: BigNumberish; recipient: AddressLike; deadline: BigNumberish; amountIn: BigNumberish; amountOutMinimum: BigNumberish; sqrtPriceLimitX96: BigNumberish; }; export type ExactInputSingleParamsStructOutput = [ tokenIn: string, tokenOut: string, fee: bigint, recipient: string, deadline: bigint, amountIn: bigint, amountOutMinimum: bigint, sqrtPriceLimitX96: bigint ] & { tokenIn: string; tokenOut: string; fee: bigint; recipient: string; deadline: bigint; amountIn: bigint; amountOutMinimum: bigint; sqrtPriceLimitX96: bigint; }; } export interface MockSwapRouterInterface extends Interface { getFunction( nameOrSignature: "exactInput" | "exactInputSingle" ): FunctionFragment; encodeFunctionData( functionFragment: "exactInput", values: [MockSwapRouter.ExactInputParamsStruct] ): string; encodeFunctionData( functionFragment: "exactInputSingle", values: [MockSwapRouter.ExactInputSingleParamsStruct] ): string; decodeFunctionResult(functionFragment: "exactInput", data: BytesLike): Result; decodeFunctionResult( functionFragment: "exactInputSingle", data: BytesLike ): Result; } export interface MockSwapRouter extends BaseContract { connect(runner?: ContractRunner | null): MockSwapRouter; waitForDeployment(): Promise<this>; interface: MockSwapRouterInterface; 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>; exactInput: TypedContractMethod< [params: MockSwapRouter.ExactInputParamsStruct], [bigint], "payable" >; exactInputSingle: TypedContractMethod< [params: MockSwapRouter.ExactInputSingleParamsStruct], [bigint], "payable" >; getFunction<T extends ContractMethod = ContractMethod>( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "exactInput" ): TypedContractMethod< [params: MockSwapRouter.ExactInputParamsStruct], [bigint], "payable" >; getFunction( nameOrSignature: "exactInputSingle" ): TypedContractMethod< [params: MockSwapRouter.ExactInputSingleParamsStruct], [bigint], "payable" >; filters: {}; }