Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(@nftx/abi): add Pool ABI for liquidity pool contracts #26

Merged
merged 1 commit into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions packages/abi/src/abis/Pool.json
Original file line number Diff line number Diff line change
@@ -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)"
]
Loading
Loading