From 07d973faf8533ef5a91ba6c2e14c9a47600d3115 Mon Sep 17 00:00:00 2001 From: Jack Ellis Date: Fri, 17 May 2024 12:18:01 +0100 Subject: [PATCH] feat(@nftx/abi): add Pool ABI for liquidity pool contracts --- packages/abi/src/abis/Pool.json | 59 +++ packages/abi/src/index.ts | 2 + packages/abi/src/json/Pool.json | 751 ++++++++++++++++++++++++++++++++ 3 files changed, 812 insertions(+) create mode 100644 packages/abi/src/abis/Pool.json create mode 100644 packages/abi/src/json/Pool.json diff --git a/packages/abi/src/abis/Pool.json b/packages/abi/src/abis/Pool.json new file mode 100644 index 00000000..005f4bb5 --- /dev/null +++ b/packages/abi/src/abis/Pool.json @@ -0,0 +1,59 @@ +[ + "error AI()", + "error AS()", + "error F0()", + "error F1()", + "error I()", + "error IIA()", + "error L()", + "error LO()", + "error LOK()", + "error M0()", + "error M1()", + "error NP()", + "error OLD()", + "error R()", + "error T()", + "error TF()", + "error TLM()", + "error TLU()", + "error TUM()", + "event Burn(address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1)", + "event Collect(address indexed owner, address recipient, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount0, uint128 amount1)", + "event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1)", + "event Flash(address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1, uint256 paid0, uint256 paid1)", + "event IncreaseObservationCardinalityNext(uint16 observationCardinalityNextOld, uint16 observationCardinalityNextNew)", + "event Initialize(uint160 sqrtPriceX96, int24 tick)", + "event Initialized(uint8 version)", + "event Mint(address sender, address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1)", + "event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New)", + "event Swap(address indexed sender, address indexed recipient, int256 amount0, int256 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick)", + "function __UniswapV3PoolUpgradeable_init(address factory_, address token0_, address token1_, uint24 fee_, int24 tickSpacing_, uint16 observationCardinalityNext_)", + "function burn(int24 tickLower, int24 tickUpper, uint128 amount) returns (uint256 amount0, uint256 amount1)", + "function collect(address recipient, int24 tickLower, int24 tickUpper, uint128 amount0Requested, uint128 amount1Requested) returns (uint128 amount0, uint128 amount1)", + "function collectProtocol(address recipient, uint128 amount0Requested, uint128 amount1Requested) returns (uint128 amount0, uint128 amount1)", + "function distributeRewards(uint256 rewardsAmount, bool isToken0)", + "function factory() view returns (address)", + "function fee() view returns (uint24)", + "function feeGrowthGlobal0X128() view returns (uint256)", + "function feeGrowthGlobal1X128() view returns (uint256)", + "function flash(address recipient, uint256 amount0, uint256 amount1, bytes data)", + "function increaseObservationCardinalityNext(uint16 observationCardinalityNext)", + "function initialize(uint160 sqrtPriceX96)", + "function liquidity() view returns (uint128)", + "function maxLiquidityPerTick() view returns (uint128)", + "function mint(address recipient, int24 tickLower, int24 tickUpper, uint128 amount, bytes data) returns (uint256 amount0, uint256 amount1)", + "function observations(uint256) view returns (uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128, bool initialized)", + "function observe(uint32[] secondsAgos) view returns (int56[] tickCumulatives, uint160[] secondsPerLiquidityCumulativeX128s)", + "function positions(bytes32) view returns (uint128 liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1)", + "function protocolFees() view returns (uint128 token0, uint128 token1)", + "function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1)", + "function slot0() view returns (uint160 sqrtPriceX96, int24 tick, uint16 observationIndex, uint16 observationCardinality, uint16 observationCardinalityNext, uint8 feeProtocol, bool unlocked)", + "function snapshotCumulativesInside(int24 tickLower, int24 tickUpper) view returns (int56 tickCumulativeInside, uint160 secondsPerLiquidityInsideX128, uint32 secondsInside)", + "function swap(address recipient, bool zeroForOne, int256 amountSpecified, uint160 sqrtPriceLimitX96, bytes data) returns (int256 amount0, int256 amount1)", + "function tickBitmap(int16) view returns (uint256)", + "function tickSpacing() view returns (int24)", + "function ticks(int24) view returns (uint128 liquidityGross, int128 liquidityNet, uint256 feeGrowthOutside0X128, uint256 feeGrowthOutside1X128, int56 tickCumulativeOutside, uint160 secondsPerLiquidityOutsideX128, uint32 secondsOutside, bool initialized)", + "function token0() view returns (address)", + "function token1() view returns (address)" +] \ No newline at end of file diff --git a/packages/abi/src/index.ts b/packages/abi/src/index.ts index 612c57f1..e98d0110 100644 --- a/packages/abi/src/index.ts +++ b/packages/abi/src/index.ts @@ -28,6 +28,8 @@ export const NonfungiblePositionManager = [{"type":"constructor","payable":false export const Permit2 = [{"type":"error","name":"AllowanceExpired","inputs":[{"type":"uint256","name":"deadline"}],"stateMutability":"view"},{"type":"error","name":"ExcessiveInvalidation","inputs":[],"stateMutability":"view"},{"type":"error","name":"InsufficientAllowance","inputs":[{"type":"uint256","name":"amount"}],"stateMutability":"view"},{"type":"error","name":"InvalidAmount","inputs":[{"type":"uint256","name":"maxAmount"}],"stateMutability":"view"},{"type":"error","name":"InvalidContractSignature","inputs":[],"stateMutability":"view"},{"type":"error","name":"InvalidNonce","inputs":[],"stateMutability":"view"},{"type":"error","name":"InvalidSignature","inputs":[],"stateMutability":"view"},{"type":"error","name":"InvalidSignatureLength","inputs":[],"stateMutability":"view"},{"type":"error","name":"InvalidSigner","inputs":[],"stateMutability":"view"},{"type":"error","name":"LengthMismatch","inputs":[],"stateMutability":"view"},{"type":"error","name":"SignatureExpired","inputs":[{"type":"uint256","name":"signatureDeadline"}],"stateMutability":"view"},{"type":"event","anonymous":false,"name":"Approval","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"address","name":"token","indexed":true},{"type":"address","name":"spender","indexed":true},{"type":"uint160","name":"amount"},{"type":"uint48","name":"expiration"}],"stateMutability":"view"},{"type":"event","anonymous":false,"name":"Lockdown","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"address","name":"token"},{"type":"address","name":"spender"}],"stateMutability":"view"},{"type":"event","anonymous":false,"name":"NonceInvalidation","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"address","name":"token","indexed":true},{"type":"address","name":"spender","indexed":true},{"type":"uint48","name":"newNonce"},{"type":"uint48","name":"oldNonce"}],"stateMutability":"view"},{"type":"event","anonymous":false,"name":"Permit","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"address","name":"token","indexed":true},{"type":"address","name":"spender","indexed":true},{"type":"uint160","name":"amount"},{"type":"uint48","name":"expiration"},{"type":"uint48","name":"nonce"}],"stateMutability":"view"},{"type":"event","anonymous":false,"name":"UnorderedNonceInvalidation","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"uint256","name":"word"},{"type":"uint256","name":"mask"}],"stateMutability":"view"},{"type":"function","name":"DOMAIN_SEPARATOR","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"bytes32"}]},{"type":"function","name":"allowance","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"address"},{"type":"address"},{"type":"address"}],"outputs":[{"type":"uint160","name":"amount"},{"type":"uint48","name":"expiration"},{"type":"uint48","name":"nonce"}]},{"type":"function","name":"approve","constant":false,"payable":false,"inputs":[{"type":"address","name":"token"},{"type":"address","name":"spender"},{"type":"uint160","name":"amount"},{"type":"uint48","name":"expiration"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"invalidateNonces","constant":false,"payable":false,"inputs":[{"type":"address","name":"token"},{"type":"address","name":"spender"},{"type":"uint48","name":"newNonce"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"invalidateUnorderedNonces","constant":false,"payable":false,"inputs":[{"type":"uint256","name":"wordPos"},{"type":"uint256","name":"mask"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"lockdown","constant":false,"payable":false,"inputs":[{"type":"tuple[]","name":"approvals","components":[{"type":"address","name":"token"},{"type":"address","name":"spender"}]}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"nonceBitmap","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"address"},{"type":"uint256"}],"outputs":[{"type":"uint256"}]},{"type":"function","name":"permit","constant":false,"payable":false,"inputs":[{"type":"address","name":"owner"},{"type":"tuple","name":"permitBatch","components":[{"type":"tuple[]","name":"details","components":[{"type":"address","name":"token"},{"type":"uint160","name":"amount"},{"type":"uint48","name":"expiration"},{"type":"uint48","name":"nonce"}]},{"type":"address","name":"spender"},{"type":"uint256","name":"sigDeadline"}]},{"type":"bytes","name":"signature"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"permit","constant":false,"payable":false,"inputs":[{"type":"address","name":"owner"},{"type":"tuple","name":"permitSingle","components":[{"type":"tuple","name":"details","components":[{"type":"address","name":"token"},{"type":"uint160","name":"amount"},{"type":"uint48","name":"expiration"},{"type":"uint48","name":"nonce"}]},{"type":"address","name":"spender"},{"type":"uint256","name":"sigDeadline"}]},{"type":"bytes","name":"signature"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"permitTransferFrom","constant":false,"payable":false,"inputs":[{"type":"tuple","name":"permit","components":[{"type":"tuple","name":"permitted","components":[{"type":"address","name":"token"},{"type":"uint256","name":"amount"}]},{"type":"uint256","name":"nonce"},{"type":"uint256","name":"deadline"}]},{"type":"tuple","name":"transferDetails","components":[{"type":"address","name":"to"},{"type":"uint256","name":"requestedAmount"}]},{"type":"address","name":"owner"},{"type":"bytes","name":"signature"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"permitTransferFrom","constant":false,"payable":false,"inputs":[{"type":"tuple","name":"permit","components":[{"type":"tuple[]","name":"permitted","components":[{"type":"address","name":"token"},{"type":"uint256","name":"amount"}]},{"type":"uint256","name":"nonce"},{"type":"uint256","name":"deadline"}]},{"type":"tuple[]","name":"transferDetails","components":[{"type":"address","name":"to"},{"type":"uint256","name":"requestedAmount"}]},{"type":"address","name":"owner"},{"type":"bytes","name":"signature"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"permitWitnessTransferFrom","constant":false,"payable":false,"inputs":[{"type":"tuple","name":"permit","components":[{"type":"tuple","name":"permitted","components":[{"type":"address","name":"token"},{"type":"uint256","name":"amount"}]},{"type":"uint256","name":"nonce"},{"type":"uint256","name":"deadline"}]},{"type":"tuple","name":"transferDetails","components":[{"type":"address","name":"to"},{"type":"uint256","name":"requestedAmount"}]},{"type":"address","name":"owner"},{"type":"bytes32","name":"witness"},{"type":"string","name":"witnessTypeString"},{"type":"bytes","name":"signature"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"permitWitnessTransferFrom","constant":false,"payable":false,"inputs":[{"type":"tuple","name":"permit","components":[{"type":"tuple[]","name":"permitted","components":[{"type":"address","name":"token"},{"type":"uint256","name":"amount"}]},{"type":"uint256","name":"nonce"},{"type":"uint256","name":"deadline"}]},{"type":"tuple[]","name":"transferDetails","components":[{"type":"address","name":"to"},{"type":"uint256","name":"requestedAmount"}]},{"type":"address","name":"owner"},{"type":"bytes32","name":"witness"},{"type":"string","name":"witnessTypeString"},{"type":"bytes","name":"signature"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"transferFrom","constant":false,"payable":false,"inputs":[{"type":"tuple[]","name":"transferDetails","components":[{"type":"address","name":"from"},{"type":"address","name":"to"},{"type":"uint160","name":"amount"},{"type":"address","name":"token"}]}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"transferFrom","constant":false,"payable":false,"inputs":[{"type":"address","name":"from"},{"type":"address","name":"to"},{"type":"uint160","name":"amount"},{"type":"address","name":"token"}],"outputs":[],"stateMutability":"nonpayable"}] as const +export const Pool = [{"type":"error","name":"AI","inputs":[],"stateMutability":"view"},{"type":"error","name":"AS","inputs":[],"stateMutability":"view"},{"type":"error","name":"F0","inputs":[],"stateMutability":"view"},{"type":"error","name":"F1","inputs":[],"stateMutability":"view"},{"type":"error","name":"I","inputs":[],"stateMutability":"view"},{"type":"error","name":"IIA","inputs":[],"stateMutability":"view"},{"type":"error","name":"L","inputs":[],"stateMutability":"view"},{"type":"error","name":"LO","inputs":[],"stateMutability":"view"},{"type":"error","name":"LOK","inputs":[],"stateMutability":"view"},{"type":"error","name":"M0","inputs":[],"stateMutability":"view"},{"type":"error","name":"M1","inputs":[],"stateMutability":"view"},{"type":"error","name":"NP","inputs":[],"stateMutability":"view"},{"type":"error","name":"OLD","inputs":[],"stateMutability":"view"},{"type":"error","name":"R","inputs":[],"stateMutability":"view"},{"type":"error","name":"T","inputs":[],"stateMutability":"view"},{"type":"error","name":"TF","inputs":[],"stateMutability":"view"},{"type":"error","name":"TLM","inputs":[],"stateMutability":"view"},{"type":"error","name":"TLU","inputs":[],"stateMutability":"view"},{"type":"error","name":"TUM","inputs":[],"stateMutability":"view"},{"type":"event","anonymous":false,"name":"Burn","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"int24","name":"tickLower","indexed":true},{"type":"int24","name":"tickUpper","indexed":true},{"type":"uint128","name":"amount"},{"type":"uint256","name":"amount0"},{"type":"uint256","name":"amount1"}],"stateMutability":"view"},{"type":"event","anonymous":false,"name":"Collect","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"address","name":"recipient"},{"type":"int24","name":"tickLower","indexed":true},{"type":"int24","name":"tickUpper","indexed":true},{"type":"uint128","name":"amount0"},{"type":"uint128","name":"amount1"}],"stateMutability":"view"},{"type":"event","anonymous":false,"name":"CollectProtocol","inputs":[{"type":"address","name":"sender","indexed":true},{"type":"address","name":"recipient","indexed":true},{"type":"uint128","name":"amount0"},{"type":"uint128","name":"amount1"}],"stateMutability":"view"},{"type":"event","anonymous":false,"name":"Flash","inputs":[{"type":"address","name":"sender","indexed":true},{"type":"address","name":"recipient","indexed":true},{"type":"uint256","name":"amount0"},{"type":"uint256","name":"amount1"},{"type":"uint256","name":"paid0"},{"type":"uint256","name":"paid1"}],"stateMutability":"view"},{"type":"event","anonymous":false,"name":"IncreaseObservationCardinalityNext","inputs":[{"type":"uint16","name":"observationCardinalityNextOld"},{"type":"uint16","name":"observationCardinalityNextNew"}],"stateMutability":"view"},{"type":"event","anonymous":false,"name":"Initialize","inputs":[{"type":"uint160","name":"sqrtPriceX96"},{"type":"int24","name":"tick"}],"stateMutability":"view"},{"type":"event","anonymous":false,"name":"Initialized","inputs":[{"type":"uint8","name":"version"}],"stateMutability":"view"},{"type":"event","anonymous":false,"name":"Mint","inputs":[{"type":"address","name":"sender"},{"type":"address","name":"owner","indexed":true},{"type":"int24","name":"tickLower","indexed":true},{"type":"int24","name":"tickUpper","indexed":true},{"type":"uint128","name":"amount"},{"type":"uint256","name":"amount0"},{"type":"uint256","name":"amount1"}],"stateMutability":"view"},{"type":"event","anonymous":false,"name":"SetFeeProtocol","inputs":[{"type":"uint8","name":"feeProtocol0Old"},{"type":"uint8","name":"feeProtocol1Old"},{"type":"uint8","name":"feeProtocol0New"},{"type":"uint8","name":"feeProtocol1New"}],"stateMutability":"view"},{"type":"event","anonymous":false,"name":"Swap","inputs":[{"type":"address","name":"sender","indexed":true},{"type":"address","name":"recipient","indexed":true},{"type":"int256","name":"amount0"},{"type":"int256","name":"amount1"},{"type":"uint160","name":"sqrtPriceX96"},{"type":"uint128","name":"liquidity"},{"type":"int24","name":"tick"}],"stateMutability":"view"},{"type":"function","name":"__UniswapV3PoolUpgradeable_init","constant":false,"payable":false,"inputs":[{"type":"address","name":"factory_"},{"type":"address","name":"token0_"},{"type":"address","name":"token1_"},{"type":"uint24","name":"fee_"},{"type":"int24","name":"tickSpacing_"},{"type":"uint16","name":"observationCardinalityNext_"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"burn","constant":false,"payable":false,"inputs":[{"type":"int24","name":"tickLower"},{"type":"int24","name":"tickUpper"},{"type":"uint128","name":"amount"}],"outputs":[{"type":"uint256","name":"amount0"},{"type":"uint256","name":"amount1"}],"stateMutability":"nonpayable"},{"type":"function","name":"collect","constant":false,"payable":false,"inputs":[{"type":"address","name":"recipient"},{"type":"int24","name":"tickLower"},{"type":"int24","name":"tickUpper"},{"type":"uint128","name":"amount0Requested"},{"type":"uint128","name":"amount1Requested"}],"outputs":[{"type":"uint128","name":"amount0"},{"type":"uint128","name":"amount1"}],"stateMutability":"nonpayable"},{"type":"function","name":"collectProtocol","constant":false,"payable":false,"inputs":[{"type":"address","name":"recipient"},{"type":"uint128","name":"amount0Requested"},{"type":"uint128","name":"amount1Requested"}],"outputs":[{"type":"uint128","name":"amount0"},{"type":"uint128","name":"amount1"}],"stateMutability":"nonpayable"},{"type":"function","name":"distributeRewards","constant":false,"payable":false,"inputs":[{"type":"uint256","name":"rewardsAmount"},{"type":"bool","name":"isToken0"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"factory","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"address"}]},{"type":"function","name":"fee","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"uint24"}]},{"type":"function","name":"feeGrowthGlobal0X128","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"uint256"}]},{"type":"function","name":"feeGrowthGlobal1X128","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"uint256"}]},{"type":"function","name":"flash","constant":false,"payable":false,"inputs":[{"type":"address","name":"recipient"},{"type":"uint256","name":"amount0"},{"type":"uint256","name":"amount1"},{"type":"bytes","name":"data"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"increaseObservationCardinalityNext","constant":false,"payable":false,"inputs":[{"type":"uint16","name":"observationCardinalityNext"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"initialize","constant":false,"payable":false,"inputs":[{"type":"uint160","name":"sqrtPriceX96"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"liquidity","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"uint128"}]},{"type":"function","name":"maxLiquidityPerTick","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"uint128"}]},{"type":"function","name":"mint","constant":false,"payable":false,"inputs":[{"type":"address","name":"recipient"},{"type":"int24","name":"tickLower"},{"type":"int24","name":"tickUpper"},{"type":"uint128","name":"amount"},{"type":"bytes","name":"data"}],"outputs":[{"type":"uint256","name":"amount0"},{"type":"uint256","name":"amount1"}],"stateMutability":"nonpayable"},{"type":"function","name":"observations","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"uint256"}],"outputs":[{"type":"uint32","name":"blockTimestamp"},{"type":"int56","name":"tickCumulative"},{"type":"uint160","name":"secondsPerLiquidityCumulativeX128"},{"type":"bool","name":"initialized"}]},{"type":"function","name":"observe","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"uint32[]","name":"secondsAgos"}],"outputs":[{"type":"int56[]","name":"tickCumulatives"},{"type":"uint160[]","name":"secondsPerLiquidityCumulativeX128s"}]},{"type":"function","name":"positions","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"bytes32"}],"outputs":[{"type":"uint128","name":"liquidity"},{"type":"uint256","name":"feeGrowthInside0LastX128"},{"type":"uint256","name":"feeGrowthInside1LastX128"},{"type":"uint128","name":"tokensOwed0"},{"type":"uint128","name":"tokensOwed1"}]},{"type":"function","name":"protocolFees","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"uint128","name":"token0"},{"type":"uint128","name":"token1"}]},{"type":"function","name":"setFeeProtocol","constant":false,"payable":false,"inputs":[{"type":"uint8","name":"feeProtocol0"},{"type":"uint8","name":"feeProtocol1"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"slot0","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"uint160","name":"sqrtPriceX96"},{"type":"int24","name":"tick"},{"type":"uint16","name":"observationIndex"},{"type":"uint16","name":"observationCardinality"},{"type":"uint16","name":"observationCardinalityNext"},{"type":"uint8","name":"feeProtocol"},{"type":"bool","name":"unlocked"}]},{"type":"function","name":"snapshotCumulativesInside","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"int24","name":"tickLower"},{"type":"int24","name":"tickUpper"}],"outputs":[{"type":"int56","name":"tickCumulativeInside"},{"type":"uint160","name":"secondsPerLiquidityInsideX128"},{"type":"uint32","name":"secondsInside"}]},{"type":"function","name":"swap","constant":false,"payable":false,"inputs":[{"type":"address","name":"recipient"},{"type":"bool","name":"zeroForOne"},{"type":"int256","name":"amountSpecified"},{"type":"uint160","name":"sqrtPriceLimitX96"},{"type":"bytes","name":"data"}],"outputs":[{"type":"int256","name":"amount0"},{"type":"int256","name":"amount1"}],"stateMutability":"nonpayable"},{"type":"function","name":"tickBitmap","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"int16"}],"outputs":[{"type":"uint256"}]},{"type":"function","name":"tickSpacing","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"int24"}]},{"type":"function","name":"ticks","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"int24"}],"outputs":[{"type":"uint128","name":"liquidityGross"},{"type":"int128","name":"liquidityNet"},{"type":"uint256","name":"feeGrowthOutside0X128"},{"type":"uint256","name":"feeGrowthOutside1X128"},{"type":"int56","name":"tickCumulativeOutside"},{"type":"uint160","name":"secondsPerLiquidityOutsideX128"},{"type":"uint32","name":"secondsOutside"},{"type":"bool","name":"initialized"}]},{"type":"function","name":"token0","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"address"}]},{"type":"function","name":"token1","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"address"}]}] as const + export const PoolRouter = [{"type":"constructor","payable":false,"inputs":[{"type":"address","name":"positionManager_"},{"type":"address","name":"router_"},{"type":"address","name":"quoter_"},{"type":"address","name":"nftxVaultFactory_"},{"type":"address","name":"PERMIT2_"},{"type":"uint256","name":"lpTimelock_"},{"type":"uint256","name":"earlyWithdrawPenaltyInWei_"},{"type":"uint256","name":"vTokenDustThreshold_"},{"type":"address","name":"inventoryStaking_"}],"stateMutability":"nonpayable"},{"type":"error","name":"ETHValueLowerThanMin","inputs":[],"stateMutability":"view"},{"type":"error","name":"InsufficientVTokens","inputs":[],"stateMutability":"view"},{"type":"error","name":"InvalidEarlyWithdrawPenalty","inputs":[],"stateMutability":"view"},{"type":"error","name":"NoETHFundsNeeded","inputs":[],"stateMutability":"view"},{"type":"error","name":"NotNFTOwner","inputs":[],"stateMutability":"view"},{"type":"error","name":"NotPositionOwner","inputs":[],"stateMutability":"view"},{"type":"error","name":"UnableToSendETH","inputs":[],"stateMutability":"view"},{"type":"error","name":"ZeroLPTimelock","inputs":[],"stateMutability":"view"},{"type":"event","anonymous":false,"name":"AddLiquidity","inputs":[{"type":"uint256","name":"positionId","indexed":true},{"type":"uint256","name":"vaultId"},{"type":"uint256","name":"vTokensAmount"},{"type":"uint256[]","name":"nftIds"},{"type":"address","name":"pool"},{"type":"address","name":"recipient"}],"stateMutability":"view"},{"type":"event","anonymous":false,"name":"BuyNFTs","inputs":[{"type":"uint256","name":"nftCount"},{"type":"uint256","name":"ethSpent"}],"stateMutability":"view"},{"type":"event","anonymous":false,"name":"IncreaseLiquidity","inputs":[{"type":"uint256","name":"positionId","indexed":true},{"type":"uint256","name":"vaultId"},{"type":"uint256","name":"vTokensAmount"},{"type":"uint256[]","name":"nftIds"}],"stateMutability":"view"},{"type":"event","anonymous":false,"name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","indexed":true},{"type":"address","name":"newOwner","indexed":true}],"stateMutability":"view"},{"type":"event","anonymous":false,"name":"RemoveLiquidity","inputs":[{"type":"uint256","name":"positionId","indexed":true},{"type":"uint256","name":"vaultId"},{"type":"uint256","name":"vTokenAmt"},{"type":"uint256","name":"wethAmt"}],"stateMutability":"view"},{"type":"event","anonymous":false,"name":"SellNFTs","inputs":[{"type":"uint256","name":"nftCount"},{"type":"uint256","name":"ethReceived"}],"stateMutability":"view"},{"type":"function","name":"PERMIT2","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"address"}]},{"type":"function","name":"WETH","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"address"}]},{"type":"function","name":"addLiquidity","constant":false,"stateMutability":"payable","payable":true,"inputs":[{"type":"tuple","name":"params","components":[{"type":"uint256","name":"vaultId"},{"type":"uint256","name":"vTokensAmount"},{"type":"uint256[]","name":"nftIds"},{"type":"uint256[]","name":"nftAmounts"},{"type":"int24","name":"tickLower"},{"type":"int24","name":"tickUpper"},{"type":"uint24","name":"fee"},{"type":"uint160","name":"sqrtPriceX96"},{"type":"uint256","name":"vTokenMin"},{"type":"uint256","name":"wethMin"},{"type":"uint256","name":"deadline"},{"type":"bool","name":"forceTimelock"},{"type":"address","name":"recipient"}]}],"outputs":[{"type":"uint256","name":"positionId"}]},{"type":"function","name":"addLiquidityWithPermit2","constant":false,"stateMutability":"payable","payable":true,"inputs":[{"type":"tuple","name":"params","components":[{"type":"uint256","name":"vaultId"},{"type":"uint256","name":"vTokensAmount"},{"type":"uint256[]","name":"nftIds"},{"type":"uint256[]","name":"nftAmounts"},{"type":"int24","name":"tickLower"},{"type":"int24","name":"tickUpper"},{"type":"uint24","name":"fee"},{"type":"uint160","name":"sqrtPriceX96"},{"type":"uint256","name":"vTokenMin"},{"type":"uint256","name":"wethMin"},{"type":"uint256","name":"deadline"},{"type":"bool","name":"forceTimelock"},{"type":"address","name":"recipient"}]},{"type":"bytes","name":"encodedPermit2"}],"outputs":[{"type":"uint256","name":"positionId"}]},{"type":"function","name":"buyNFTs","constant":false,"stateMutability":"payable","payable":true,"inputs":[{"type":"tuple","name":"params","components":[{"type":"uint256","name":"vaultId"},{"type":"uint256[]","name":"nftIds"},{"type":"uint256","name":"vTokenPremiumLimit"},{"type":"uint256","name":"deadline"},{"type":"uint24","name":"fee"},{"type":"uint160","name":"sqrtPriceLimitX96"}]}],"outputs":[]},{"type":"function","name":"computePool","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"address","name":"vToken_"},{"type":"uint24","name":"fee"}],"outputs":[{"type":"address"}]},{"type":"function","name":"earlyWithdrawPenaltyInWei","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"uint256"}]},{"type":"function","name":"getPool","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"address","name":"vToken_"},{"type":"uint24","name":"fee"}],"outputs":[{"type":"address","name":"pool"}]},{"type":"function","name":"getPoolExists","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"uint256","name":"vaultId"},{"type":"uint24","name":"fee"}],"outputs":[{"type":"address","name":"pool"},{"type":"bool","name":"exists"}]},{"type":"function","name":"getPoolExists","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"address","name":"vToken_"},{"type":"uint24","name":"fee"}],"outputs":[{"type":"address","name":"pool"},{"type":"bool","name":"exists"}]},{"type":"function","name":"increaseLiquidity","constant":false,"stateMutability":"payable","payable":true,"inputs":[{"type":"tuple","name":"params","components":[{"type":"uint256","name":"positionId"},{"type":"uint256","name":"vaultId"},{"type":"uint256","name":"vTokensAmount"},{"type":"uint256[]","name":"nftIds"},{"type":"uint256[]","name":"nftAmounts"},{"type":"uint256","name":"vTokenMin"},{"type":"uint256","name":"wethMin"},{"type":"uint256","name":"deadline"},{"type":"bool","name":"forceTimelock"}]}],"outputs":[]},{"type":"function","name":"increaseLiquidityWithPermit2","constant":false,"stateMutability":"payable","payable":true,"inputs":[{"type":"tuple","name":"params","components":[{"type":"uint256","name":"positionId"},{"type":"uint256","name":"vaultId"},{"type":"uint256","name":"vTokensAmount"},{"type":"uint256[]","name":"nftIds"},{"type":"uint256[]","name":"nftAmounts"},{"type":"uint256","name":"vTokenMin"},{"type":"uint256","name":"wethMin"},{"type":"uint256","name":"deadline"},{"type":"bool","name":"forceTimelock"}]},{"type":"bytes","name":"encodedPermit2"}],"outputs":[]},{"type":"function","name":"inventoryStaking","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"address"}]},{"type":"function","name":"isVToken0","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"address","name":"vtoken"}],"outputs":[{"type":"bool"}]},{"type":"function","name":"lpTimelock","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"uint256"}]},{"type":"function","name":"nftxVaultFactory","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"address"}]},{"type":"function","name":"onERC1155BatchReceived","constant":false,"payable":false,"inputs":[{"type":"address"},{"type":"address"},{"type":"uint256[]"},{"type":"uint256[]"},{"type":"bytes"}],"outputs":[{"type":"bytes4"}],"stateMutability":"nonpayable"},{"type":"function","name":"onERC1155Received","constant":false,"payable":false,"inputs":[{"type":"address"},{"type":"address"},{"type":"uint256"},{"type":"uint256"},{"type":"bytes"}],"outputs":[{"type":"bytes4"}],"stateMutability":"nonpayable"},{"type":"function","name":"onERC721Received","constant":false,"payable":false,"inputs":[{"type":"address"},{"type":"address"},{"type":"uint256"},{"type":"bytes"}],"outputs":[{"type":"bytes4"}],"stateMutability":"nonpayable"},{"type":"function","name":"owner","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"address"}]},{"type":"function","name":"positionManager","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"address"}]},{"type":"function","name":"quoteBuyNFTs","constant":false,"payable":false,"inputs":[{"type":"address","name":"vtoken"},{"type":"uint256","name":"nftsCount"},{"type":"uint24","name":"fee"},{"type":"uint160","name":"sqrtPriceLimitX96"}],"outputs":[{"type":"uint256","name":"ethRequired"}],"stateMutability":"nonpayable"},{"type":"function","name":"quoter","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"address"}]},{"type":"function","name":"removeLiquidity","constant":false,"stateMutability":"payable","payable":true,"inputs":[{"type":"tuple","name":"params","components":[{"type":"uint256","name":"positionId"},{"type":"uint256","name":"vaultId"},{"type":"uint256[]","name":"nftIds"},{"type":"uint256","name":"vTokenPremiumLimit"},{"type":"uint128","name":"liquidity"},{"type":"uint256","name":"amount0Min"},{"type":"uint256","name":"amount1Min"},{"type":"uint256","name":"deadline"}]}],"outputs":[]},{"type":"function","name":"renounceOwnership","constant":false,"payable":false,"inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"rescueTokens","constant":false,"payable":false,"inputs":[{"type":"address","name":"token"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"router","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"address"}]},{"type":"function","name":"sellNFTs","constant":false,"stateMutability":"payable","payable":true,"inputs":[{"type":"tuple","name":"params","components":[{"type":"uint256","name":"vaultId"},{"type":"uint256[]","name":"nftIds"},{"type":"uint256[]","name":"nftAmounts"},{"type":"uint256","name":"deadline"},{"type":"uint24","name":"fee"},{"type":"uint256","name":"amountOutMinimum"},{"type":"uint160","name":"sqrtPriceLimitX96"}]}],"outputs":[{"type":"uint256","name":"wethReceived"}]},{"type":"function","name":"setEarlyWithdrawPenalty","constant":false,"payable":false,"inputs":[{"type":"uint256","name":"earlyWithdrawPenaltyInWei_"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setLpTimelock","constant":false,"payable":false,"inputs":[{"type":"uint256","name":"lpTimelock_"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setVTokenDustThreshold","constant":false,"payable":false,"inputs":[{"type":"uint256","name":"vTokenDustThreshold_"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"supportsInterface","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"bytes4","name":"interfaceId"}],"outputs":[{"type":"bool"}]},{"type":"function","name":"transferOwnership","constant":false,"payable":false,"inputs":[{"type":"address","name":"newOwner"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"vTokenDustThreshold","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"uint256"}]}] as const export const UniversalRouter = [{"type":"constructor","payable":false,"inputs":[{"type":"tuple","name":"params","components":[{"type":"address","name":"permit2"},{"type":"address","name":"weth9"},{"type":"address","name":"seaportV1_5"},{"type":"address","name":"seaportV1_4"},{"type":"address","name":"openseaConduit"},{"type":"address","name":"nftxZap"},{"type":"address","name":"x2y2"},{"type":"address","name":"foundation"},{"type":"address","name":"sudoswap"},{"type":"address","name":"elementMarket"},{"type":"address","name":"nft20Zap"},{"type":"address","name":"cryptopunks"},{"type":"address","name":"looksRareV2"},{"type":"address","name":"routerRewardsDistributor"},{"type":"address","name":"looksRareRewardsDistributor"},{"type":"address","name":"looksRareToken"},{"type":"address","name":"v2Factory"},{"type":"address","name":"v3Factory"},{"type":"bytes32","name":"pairInitCodeHash"},{"type":"bytes32","name":"poolInitCodeHash"}]}],"stateMutability":"nonpayable"},{"type":"error","name":"BalanceTooLow","inputs":[],"stateMutability":"view"},{"type":"error","name":"BuyPunkFailed","inputs":[],"stateMutability":"view"},{"type":"error","name":"ContractLocked","inputs":[],"stateMutability":"view"},{"type":"error","name":"ETHNotAccepted","inputs":[],"stateMutability":"view"},{"type":"error","name":"ExecutionFailed","inputs":[{"type":"uint256","name":"commandIndex"},{"type":"bytes","name":"message"}],"stateMutability":"view"},{"type":"error","name":"FromAddressIsNotOwner","inputs":[],"stateMutability":"view"},{"type":"error","name":"InsufficientETH","inputs":[],"stateMutability":"view"},{"type":"error","name":"InsufficientToken","inputs":[],"stateMutability":"view"},{"type":"error","name":"InvalidBips","inputs":[],"stateMutability":"view"},{"type":"error","name":"InvalidCommandType","inputs":[{"type":"uint256","name":"commandType"}],"stateMutability":"view"},{"type":"error","name":"InvalidOwnerERC1155","inputs":[],"stateMutability":"view"},{"type":"error","name":"InvalidOwnerERC721","inputs":[],"stateMutability":"view"},{"type":"error","name":"InvalidPath","inputs":[],"stateMutability":"view"},{"type":"error","name":"InvalidReserves","inputs":[],"stateMutability":"view"},{"type":"error","name":"InvalidSpender","inputs":[],"stateMutability":"view"},{"type":"error","name":"LengthMismatch","inputs":[],"stateMutability":"view"},{"type":"error","name":"SliceOutOfBounds","inputs":[],"stateMutability":"view"},{"type":"error","name":"TransactionDeadlinePassed","inputs":[],"stateMutability":"view"},{"type":"error","name":"UnableToClaim","inputs":[],"stateMutability":"view"},{"type":"error","name":"UnsafeCast","inputs":[],"stateMutability":"view"},{"type":"error","name":"V2InvalidPath","inputs":[],"stateMutability":"view"},{"type":"error","name":"V2TooLittleReceived","inputs":[],"stateMutability":"view"},{"type":"error","name":"V2TooMuchRequested","inputs":[],"stateMutability":"view"},{"type":"error","name":"V3InvalidAmountOut","inputs":[],"stateMutability":"view"},{"type":"error","name":"V3InvalidCaller","inputs":[],"stateMutability":"view"},{"type":"error","name":"V3InvalidSwap","inputs":[],"stateMutability":"view"},{"type":"error","name":"V3TooLittleReceived","inputs":[],"stateMutability":"view"},{"type":"error","name":"V3TooMuchRequested","inputs":[],"stateMutability":"view"},{"type":"event","anonymous":false,"name":"RewardsSent","inputs":[{"type":"uint256","name":"amount"}],"stateMutability":"view"},{"type":"function","name":"collectRewards","constant":false,"payable":false,"inputs":[{"type":"bytes","name":"looksRareClaim"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"execute","constant":false,"stateMutability":"payable","payable":true,"inputs":[{"type":"bytes","name":"commands"},{"type":"bytes[]","name":"inputs"}],"outputs":[]},{"type":"function","name":"execute","constant":false,"stateMutability":"payable","payable":true,"inputs":[{"type":"bytes","name":"commands"},{"type":"bytes[]","name":"inputs"},{"type":"uint256","name":"deadline"}],"outputs":[]},{"type":"function","name":"onERC1155BatchReceived","constant":true,"stateMutability":"pure","payable":false,"inputs":[{"type":"address"},{"type":"address"},{"type":"uint256[]"},{"type":"uint256[]"},{"type":"bytes"}],"outputs":[{"type":"bytes4"}]},{"type":"function","name":"onERC1155Received","constant":true,"stateMutability":"pure","payable":false,"inputs":[{"type":"address"},{"type":"address"},{"type":"uint256"},{"type":"uint256"},{"type":"bytes"}],"outputs":[{"type":"bytes4"}]},{"type":"function","name":"onERC721Received","constant":true,"stateMutability":"pure","payable":false,"inputs":[{"type":"address"},{"type":"address"},{"type":"uint256"},{"type":"bytes"}],"outputs":[{"type":"bytes4"}]},{"type":"function","name":"supportsInterface","constant":true,"stateMutability":"pure","payable":false,"inputs":[{"type":"bytes4","name":"interfaceId"}],"outputs":[{"type":"bool"}]},{"type":"function","name":"uniswapV3SwapCallback","constant":false,"payable":false,"inputs":[{"type":"int256","name":"amount0Delta"},{"type":"int256","name":"amount1Delta"},{"type":"bytes","name":"data"}],"outputs":[],"stateMutability":"nonpayable"}] as const diff --git a/packages/abi/src/json/Pool.json b/packages/abi/src/json/Pool.json new file mode 100644 index 00000000..72f314ff --- /dev/null +++ b/packages/abi/src/json/Pool.json @@ -0,0 +1,751 @@ +[ + { "inputs": [], "name": "AI", "type": "error" }, + { "inputs": [], "name": "AS", "type": "error" }, + { "inputs": [], "name": "F0", "type": "error" }, + { "inputs": [], "name": "F1", "type": "error" }, + { "inputs": [], "name": "I", "type": "error" }, + { "inputs": [], "name": "IIA", "type": "error" }, + { "inputs": [], "name": "L", "type": "error" }, + { "inputs": [], "name": "LO", "type": "error" }, + { "inputs": [], "name": "LOK", "type": "error" }, + { "inputs": [], "name": "M0", "type": "error" }, + { "inputs": [], "name": "M1", "type": "error" }, + { "inputs": [], "name": "NP", "type": "error" }, + { "inputs": [], "name": "OLD", "type": "error" }, + { "inputs": [], "name": "R", "type": "error" }, + { "inputs": [], "name": "T", "type": "error" }, + { "inputs": [], "name": "TF", "type": "error" }, + { "inputs": [], "name": "TLM", "type": "error" }, + { "inputs": [], "name": "TLU", "type": "error" }, + { "inputs": [], "name": "TUM", "type": "error" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "int24", + "name": "tickLower", + "type": "int24" + }, + { + "indexed": true, + "internalType": "int24", + "name": "tickUpper", + "type": "int24" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "amount", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount0", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount1", + "type": "uint256" + } + ], + "name": "Burn", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "indexed": true, + "internalType": "int24", + "name": "tickLower", + "type": "int24" + }, + { + "indexed": true, + "internalType": "int24", + "name": "tickUpper", + "type": "int24" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "amount0", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "amount1", + "type": "uint128" + } + ], + "name": "Collect", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "amount0", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "amount1", + "type": "uint128" + } + ], + "name": "CollectProtocol", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount0", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount1", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "paid0", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "paid1", + "type": "uint256" + } + ], + "name": "Flash", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint16", + "name": "observationCardinalityNextOld", + "type": "uint16" + }, + { + "indexed": false, + "internalType": "uint16", + "name": "observationCardinalityNextNew", + "type": "uint16" + } + ], + "name": "IncreaseObservationCardinalityNext", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint160", + "name": "sqrtPriceX96", + "type": "uint160" + }, + { + "indexed": false, + "internalType": "int24", + "name": "tick", + "type": "int24" + } + ], + "name": "Initialize", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "int24", + "name": "tickLower", + "type": "int24" + }, + { + "indexed": true, + "internalType": "int24", + "name": "tickUpper", + "type": "int24" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "amount", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount0", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount1", + "type": "uint256" + } + ], + "name": "Mint", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "feeProtocol0Old", + "type": "uint8" + }, + { + "indexed": false, + "internalType": "uint8", + "name": "feeProtocol1Old", + "type": "uint8" + }, + { + "indexed": false, + "internalType": "uint8", + "name": "feeProtocol0New", + "type": "uint8" + }, + { + "indexed": false, + "internalType": "uint8", + "name": "feeProtocol1New", + "type": "uint8" + } + ], + "name": "SetFeeProtocol", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "indexed": false, + "internalType": "int256", + "name": "amount0", + "type": "int256" + }, + { + "indexed": false, + "internalType": "int256", + "name": "amount1", + "type": "int256" + }, + { + "indexed": false, + "internalType": "uint160", + "name": "sqrtPriceX96", + "type": "uint160" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "liquidity", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "int24", + "name": "tick", + "type": "int24" + } + ], + "name": "Swap", + "type": "event" + }, + { + "inputs": [ + { "internalType": "address", "name": "factory_", "type": "address" }, + { "internalType": "address", "name": "token0_", "type": "address" }, + { "internalType": "address", "name": "token1_", "type": "address" }, + { "internalType": "uint24", "name": "fee_", "type": "uint24" }, + { "internalType": "int24", "name": "tickSpacing_", "type": "int24" }, + { + "internalType": "uint16", + "name": "observationCardinalityNext_", + "type": "uint16" + } + ], + "name": "__UniswapV3PoolUpgradeable_init", + "outputs": [], + "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": "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": "address", "name": "recipient", "type": "address" }, + { + "internalType": "uint128", + "name": "amount0Requested", + "type": "uint128" + }, + { + "internalType": "uint128", + "name": "amount1Requested", + "type": "uint128" + } + ], + "name": "collectProtocol", + "outputs": [ + { "internalType": "uint128", "name": "amount0", "type": "uint128" }, + { "internalType": "uint128", "name": "amount1", "type": "uint128" } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { "internalType": "uint256", "name": "rewardsAmount", "type": "uint256" }, + { "internalType": "bool", "name": "isToken0", "type": "bool" } + ], + "name": "distributeRewards", + "outputs": [], + "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": "", "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": "uint32[]", "name": "secondsAgos", "type": "uint32[]" } + ], + "name": "observe", + "outputs": [ + { + "internalType": "int56[]", + "name": "tickCumulatives", + "type": "int56[]" + }, + { + "internalType": "uint160[]", + "name": "secondsPerLiquidityCumulativeX128s", + "type": "uint160[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [{ "internalType": "bytes32", "name": "", "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": [ + { "internalType": "uint8", "name": "feeProtocol0", "type": "uint8" }, + { "internalType": "uint8", "name": "feeProtocol1", "type": "uint8" } + ], + "name": "setFeeProtocol", + "outputs": [], + "stateMutability": "nonpayable", + "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": "int24", "name": "tickLower", "type": "int24" }, + { "internalType": "int24", "name": "tickUpper", "type": "int24" } + ], + "name": "snapshotCumulativesInside", + "outputs": [ + { + "internalType": "int56", + "name": "tickCumulativeInside", + "type": "int56" + }, + { + "internalType": "uint160", + "name": "secondsPerLiquidityInsideX128", + "type": "uint160" + }, + { "internalType": "uint32", "name": "secondsInside", "type": "uint32" } + ], + "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": "", "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": "", "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" + } +]