/* 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 IUniswapV3Pool extends Contract { clone(): IUniswapV3Pool; methods: { burn( tickLower: number | string, tickUpper: number | string, amount: number | string ): 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; }>; factory(): CeloTxObject; fee(): CeloTxObject; feeGrowthGlobal0X128(): CeloTxObject; feeGrowthGlobal1X128(): CeloTxObject; flash( recipient: string, amount0: number | string, amount1: number | string, data: string | number[] ): CeloTxObject; increaseObservationCardinalityNext( observationCardinalityNext: number | string ): CeloTxObject; initialize(sqrtPriceX96: number | string): CeloTxObject; liquidity(): CeloTxObject; maxLiquidityPerTick(): 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; }>; observations(index: number | string): CeloTxObject<{ blockTimestamp: string; tickCumulative: string; secondsPerLiquidityCumulativeX128: string; initialized: boolean; 0: string; 1: string; 2: string; 3: boolean; }>; positions(key: string | number[]): CeloTxObject<{ _liquidity: string; feeGrowthInside0LastX128: string; feeGrowthInside1LastX128: string; tokensOwed0: string; tokensOwed1: string; 0: string; 1: string; 2: string; 3: string; 4: string; }>; protocolFees(): CeloTxObject<{ token0: string; token1: string; 0: string; 1: string; }>; slot0(): CeloTxObject<{ sqrtPriceX96: string; tick: string; observationIndex: string; observationCardinality: string; observationCardinalityNext: string; feeProtocol: string; unlocked: boolean; 0: string; 1: string; 2: string; 3: string; 4: string; 5: string; 6: boolean; }>; swap( recipient: string, zeroForOne: boolean, amountSpecified: number | string, sqrtPriceLimitX96: number | string, data: string | number[] ): CeloTxObject<{ amount0: string; amount1: string; 0: string; 1: string; }>; tickBitmap(wordPosition: number | string): CeloTxObject; tickSpacing(): CeloTxObject; ticks(tick: number | string): CeloTxObject<{ liquidityGross: string; liquidityNet: string; feeGrowthOutside0X128: string; feeGrowthOutside1X128: string; tickCumulativeOutside: string; secondsPerLiquidityOutsideX128: string; secondsOutside: string; initialized: boolean; 0: string; 1: string; 2: string; 3: string; 4: string; 5: string; 6: string; 7: boolean; }>; token0(): CeloTxObject; token1(): CeloTxObject; }; events: { allEvents: ( options?: EventOptions, cb?: Callback ) => EventEmitter; }; } export const ABI: AbiItem[] = [ { 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: "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: [], name: "factory", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function", }, { inputs: [], name: "fee", outputs: [{ internalType: "uint24", name: "", type: "uint24" }], stateMutability: "view", type: "function", }, { inputs: [], name: "feeGrowthGlobal0X128", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function", }, { inputs: [], name: "feeGrowthGlobal1X128", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", 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", }, { inputs: [ { internalType: "uint160", name: "sqrtPriceX96", type: "uint160" }, ], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "liquidity", outputs: [{ internalType: "uint128", name: "", type: "uint128" }], stateMutability: "view", type: "function", }, { inputs: [], name: "maxLiquidityPerTick", outputs: [{ internalType: "uint128", name: "", type: "uint128" }], stateMutability: "view", 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: "uint256", name: "index", type: "uint256" }], name: "observations", outputs: [ { internalType: "uint32", name: "blockTimestamp", type: "uint32" }, { internalType: "int56", name: "tickCumulative", type: "int56" }, { internalType: "uint160", name: "secondsPerLiquidityCumulativeX128", type: "uint160", }, { internalType: "bool", name: "initialized", type: "bool" }, ], stateMutability: "view", type: "function", }, { inputs: [{ internalType: "bytes32", name: "key", type: "bytes32" }], name: "positions", outputs: [ { internalType: "uint128", name: "_liquidity", type: "uint128" }, { internalType: "uint256", name: "feeGrowthInside0LastX128", type: "uint256", }, { internalType: "uint256", name: "feeGrowthInside1LastX128", type: "uint256", }, { internalType: "uint128", name: "tokensOwed0", type: "uint128" }, { internalType: "uint128", name: "tokensOwed1", type: "uint128" }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "protocolFees", outputs: [ { internalType: "uint128", name: "token0", type: "uint128" }, { internalType: "uint128", name: "token1", type: "uint128" }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "slot0", outputs: [ { internalType: "uint160", name: "sqrtPriceX96", type: "uint160" }, { internalType: "int24", name: "tick", type: "int24" }, { internalType: "uint16", name: "observationIndex", type: "uint16" }, { internalType: "uint16", name: "observationCardinality", type: "uint16", }, { internalType: "uint16", name: "observationCardinalityNext", type: "uint16", }, { internalType: "uint8", name: "feeProtocol", type: "uint8" }, { internalType: "bool", name: "unlocked", type: "bool" }, ], stateMutability: "view", 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: "int16", name: "wordPosition", type: "int16" }], name: "tickBitmap", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function", }, { inputs: [], name: "tickSpacing", outputs: [{ internalType: "int24", name: "", type: "int24" }], stateMutability: "view", type: "function", }, { inputs: [{ internalType: "int24", name: "tick", type: "int24" }], name: "ticks", outputs: [ { internalType: "uint128", name: "liquidityGross", type: "uint128" }, { internalType: "int128", name: "liquidityNet", type: "int128" }, { internalType: "uint256", name: "feeGrowthOutside0X128", type: "uint256", }, { internalType: "uint256", name: "feeGrowthOutside1X128", type: "uint256", }, { internalType: "int56", name: "tickCumulativeOutside", type: "int56" }, { internalType: "uint160", name: "secondsPerLiquidityOutsideX128", type: "uint160", }, { internalType: "uint32", name: "secondsOutside", type: "uint32" }, { internalType: "bool", name: "initialized", type: "bool" }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "token0", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function", }, { inputs: [], name: "token1", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function", }, ]; export function newIUniswapV3Pool(web3: Web3, address: string): IUniswapV3Pool { return new web3.eth.Contract(ABI, address) as any; }