/* 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 IUniswapV3PoolActions extends Contract { clone(): IUniswapV3PoolActions; methods: { initialize(sqrtPriceX96: number | string): CeloTxObject; mint( recipient: string, tickLower: number | string, tickUpper: number | string, amount: number | string, data: string | number[] ): CeloTxObject<{ amount0: string; amount1: string; 0: string; 1: string; }>; collect( recipient: string, tickLower: number | string, tickUpper: number | string, amount0Requested: number | string, amount1Requested: number | string ): CeloTxObject<{ amount0: string; amount1: string; 0: string; 1: string; }>; burn( tickLower: number | string, tickUpper: number | string, amount: number | string ): CeloTxObject<{ amount0: string; amount1: string; 0: string; 1: string; }>; swap( recipient: string, zeroForOne: boolean, amountSpecified: number | string, sqrtPriceLimitX96: number | string, data: string | number[] ): CeloTxObject<{ amount0: string; amount1: string; 0: string; 1: string; }>; flash( recipient: string, amount0: number | string, amount1: number | string, data: string | number[] ): CeloTxObject; increaseObservationCardinalityNext( observationCardinalityNext: number | string ): CeloTxObject; }; events: { allEvents: ( options?: EventOptions, cb?: Callback ) => EventEmitter; }; } export const ABI: AbiItem[] = [ { inputs: [ { internalType: "uint160", name: "sqrtPriceX96", type: "uint160" }, ], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "recipient", type: "address" }, { internalType: "int24", name: "tickLower", type: "int24" }, { internalType: "int24", name: "tickUpper", type: "int24" }, { internalType: "uint128", name: "amount", type: "uint128" }, { internalType: "bytes", name: "data", type: "bytes" }, ], name: "mint", outputs: [ { internalType: "uint256", name: "amount0", type: "uint256" }, { internalType: "uint256", name: "amount1", type: "uint256" }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "recipient", type: "address" }, { internalType: "int24", name: "tickLower", type: "int24" }, { internalType: "int24", name: "tickUpper", type: "int24" }, { internalType: "uint128", name: "amount0Requested", type: "uint128" }, { internalType: "uint128", name: "amount1Requested", type: "uint128" }, ], name: "collect", outputs: [ { internalType: "uint128", name: "amount0", type: "uint128" }, { internalType: "uint128", name: "amount1", type: "uint128" }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "int24", name: "tickLower", type: "int24" }, { internalType: "int24", name: "tickUpper", type: "int24" }, { internalType: "uint128", name: "amount", type: "uint128" }, ], name: "burn", outputs: [ { internalType: "uint256", name: "amount0", type: "uint256" }, { internalType: "uint256", name: "amount1", type: "uint256" }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "recipient", type: "address" }, { internalType: "bool", name: "zeroForOne", type: "bool" }, { internalType: "int256", name: "amountSpecified", type: "int256" }, { internalType: "uint160", name: "sqrtPriceLimitX96", type: "uint160" }, { internalType: "bytes", name: "data", type: "bytes" }, ], name: "swap", outputs: [ { internalType: "int256", name: "amount0", type: "int256" }, { internalType: "int256", name: "amount1", type: "int256" }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "recipient", type: "address" }, { internalType: "uint256", name: "amount0", type: "uint256" }, { internalType: "uint256", name: "amount1", type: "uint256" }, { internalType: "bytes", name: "data", type: "bytes" }, ], name: "flash", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint16", name: "observationCardinalityNext", type: "uint16", }, ], name: "increaseObservationCardinalityNext", outputs: [], stateMutability: "nonpayable", type: "function", }, ]; export function newIUniswapV3PoolActions( web3: Web3, address: string ): IUniswapV3PoolActions { return new web3.eth.Contract(ABI, address) as any; }