/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { AbiItem, Callback, CeloTxObject, Contract, EventLog, } from "@celo/connect"; import { EventEmitter } from "events"; import Web3 from "web3"; import { EventOptions } from "./types"; export interface IQuoterV2 extends Contract { clone(): IQuoterV2; methods: { quoteExactInputSingle(params: { tokenIn: string; tokenOut: string; amountIn: number | string; fee: number | string; sqrtPriceLimitX96: number | string; }): CeloTxObject<{ amountOut: string; sqrtPriceX96After: string; initializedTicksCrossed: string; gasEstimate: string; 0: string; 1: string; 2: string; 3: string; }>; quoteExactOutputSingle(params: { tokenIn: string; tokenOut: string; amount: number | string; fee: number | string; sqrtPriceLimitX96: number | string; }): CeloTxObject<{ amountIn: string; sqrtPriceX96After: string; initializedTicksCrossed: string; gasEstimate: string; 0: string; 1: string; 2: string; 3: string; }>; }; events: { allEvents: ( options?: EventOptions, cb?: Callback ) => EventEmitter; }; } export const ABI: AbiItem[] = [ { inputs: [ { components: [ { internalType: "address", name: "tokenIn", type: "address" }, { internalType: "address", name: "tokenOut", type: "address" }, { internalType: "uint256", name: "amountIn", type: "uint256" }, { internalType: "uint24", name: "fee", type: "uint24" }, { internalType: "uint160", name: "sqrtPriceLimitX96", type: "uint160", }, ], internalType: "struct IQuoterV2.QuoteExactInputSingleParams", name: "params", type: "tuple", }, ], name: "quoteExactInputSingle", outputs: [ { internalType: "uint256", name: "amountOut", type: "uint256" }, { internalType: "uint160", name: "sqrtPriceX96After", type: "uint160" }, { internalType: "uint32", name: "initializedTicksCrossed", type: "uint32", }, { internalType: "uint256", name: "gasEstimate", type: "uint256" }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "tokenIn", type: "address" }, { internalType: "address", name: "tokenOut", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "uint24", name: "fee", type: "uint24" }, { internalType: "uint160", name: "sqrtPriceLimitX96", type: "uint160", }, ], internalType: "struct IQuoterV2.QuoteExactOutputSingleParams", name: "params", type: "tuple", }, ], name: "quoteExactOutputSingle", outputs: [ { internalType: "uint256", name: "amountIn", type: "uint256" }, { internalType: "uint160", name: "sqrtPriceX96After", type: "uint160" }, { internalType: "uint32", name: "initializedTicksCrossed", type: "uint32", }, { internalType: "uint256", name: "gasEstimate", type: "uint256" }, ], stateMutability: "nonpayable", type: "function", }, ]; export function newIQuoterV2(web3: Web3, address: string): IQuoterV2 { return new web3.eth.Contract(ABI, address) as any; }