@alephium/powfi-sdk 0.0.1-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/README.md +4 -0
  2. package/clmm/artifacts/BitmapWord.ral.json +125 -0
  3. package/clmm/artifacts/BitmapWordDeployer.ral.json +31 -0
  4. package/clmm/artifacts/CreateConfig.ral.json +37 -0
  5. package/clmm/artifacts/CreateLiquidPool.ral.json +55 -0
  6. package/clmm/artifacts/DexAccount.ral.json +110 -0
  7. package/clmm/artifacts/LiquidityAmountsTest.ral.json +161 -0
  8. package/clmm/artifacts/LiquidityManagmentTest.ral.json +384 -0
  9. package/clmm/artifacts/Pool.ral.json +1530 -0
  10. package/clmm/artifacts/PoolConfig.ral.json +31 -0
  11. package/clmm/artifacts/PoolFactory.ral.json +300 -0
  12. package/clmm/artifacts/PoolRouterDemo.ral.json +49 -0
  13. package/clmm/artifacts/PoolUser.ral.json +89 -0
  14. package/clmm/artifacts/Position.ral.json +183 -0
  15. package/clmm/artifacts/PositionManager.ral.json +416 -0
  16. package/clmm/artifacts/SwapWithoutAccount.ral.json +46 -0
  17. package/clmm/artifacts/TestToken.ral.json +68 -0
  18. package/clmm/artifacts/Tick.ral.json +161 -0
  19. package/clmm/artifacts/TickBitmapTest.ral.json +220 -0
  20. package/clmm/artifacts/constants.ral.json +81 -0
  21. package/clmm/artifacts/structs.ral.json +335 -0
  22. package/clmm/artifacts/ts/BitmapWord.ts +337 -0
  23. package/clmm/artifacts/ts/BitmapWordDeployer.ts +164 -0
  24. package/clmm/artifacts/ts/DexAccount.ts +330 -0
  25. package/clmm/artifacts/ts/LiquidityAmountsTest.ts +464 -0
  26. package/clmm/artifacts/ts/LiquidityManagmentTest.ts +859 -0
  27. package/clmm/artifacts/ts/Pool.ts +2535 -0
  28. package/clmm/artifacts/ts/PoolConfig.ts +179 -0
  29. package/clmm/artifacts/ts/PoolFactory.ts +640 -0
  30. package/clmm/artifacts/ts/PoolUser.ts +237 -0
  31. package/clmm/artifacts/ts/Position.ts +440 -0
  32. package/clmm/artifacts/ts/PositionManager.ts +929 -0
  33. package/clmm/artifacts/ts/TestToken.ts +277 -0
  34. package/clmm/artifacts/ts/Tick.ts +351 -0
  35. package/clmm/artifacts/ts/TickBitmapTest.ts +512 -0
  36. package/clmm/artifacts/ts/constants.ts +17 -0
  37. package/clmm/artifacts/ts/contracts.ts +26 -0
  38. package/clmm/artifacts/ts/deployments.ts +160 -0
  39. package/clmm/artifacts/ts/index.ts +20 -0
  40. package/clmm/artifacts/ts/scripts.ts +76 -0
  41. package/clmm/artifacts/ts/types.ts +105 -0
  42. package/clmm/deployments/.deployments.devnet.json +350 -0
  43. package/clmm/deployments/.deployments.testnet.json +350 -0
  44. package/cpmm/artifacts/dex/DexAccount.ral.json +110 -0
  45. package/cpmm/artifacts/dex/Router.ral.json +361 -0
  46. package/cpmm/artifacts/dex/TokenPair.ral.json +512 -0
  47. package/cpmm/artifacts/dex/TokenPairFactory.ral.json +297 -0
  48. package/cpmm/artifacts/examples/ExampleOracleSimple.ral.json +192 -0
  49. package/cpmm/artifacts/examples/FeeCollectorFactoryImpl.ral.json +185 -0
  50. package/cpmm/artifacts/examples/FeeCollectorPerTokenPairImpl.ral.json +216 -0
  51. package/cpmm/artifacts/examples/FullMathTest.ral.json +123 -0
  52. package/cpmm/artifacts/scripts/AddLiquidity.ral.json +46 -0
  53. package/cpmm/artifacts/scripts/Burn.ral.json +31 -0
  54. package/cpmm/artifacts/scripts/CollectFee.ral.json +25 -0
  55. package/cpmm/artifacts/scripts/CreatePair.ral.json +37 -0
  56. package/cpmm/artifacts/scripts/CreatePairAndAddLiquidity.ral.json +43 -0
  57. package/cpmm/artifacts/scripts/EnableFeeCollector.ral.json +28 -0
  58. package/cpmm/artifacts/scripts/Mint.ral.json +34 -0
  59. package/cpmm/artifacts/scripts/RemoveLiquidity.ral.json +43 -0
  60. package/cpmm/artifacts/scripts/SetFeeCollectorFactory.ral.json +28 -0
  61. package/cpmm/artifacts/scripts/Swap.ral.json +46 -0
  62. package/cpmm/artifacts/scripts/SwapMaxIn.ral.json +46 -0
  63. package/cpmm/artifacts/scripts/SwapMinOut.ral.json +46 -0
  64. package/cpmm/artifacts/test/GetToken.ral.json +31 -0
  65. package/cpmm/artifacts/test/MathTest.ral.json +49 -0
  66. package/cpmm/artifacts/test/TestToken.ral.json +87 -0
  67. package/cpmm/artifacts/ts/DexAccount.ts +329 -0
  68. package/cpmm/artifacts/ts/ExampleOracleSimple.ts +383 -0
  69. package/cpmm/artifacts/ts/FeeCollectorFactoryImpl.ts +227 -0
  70. package/cpmm/artifacts/ts/FeeCollectorPerTokenPairImpl.ts +327 -0
  71. package/cpmm/artifacts/ts/FullMathTest.ts +251 -0
  72. package/cpmm/artifacts/ts/MathTest.ts +183 -0
  73. package/cpmm/artifacts/ts/Router.ts +554 -0
  74. package/cpmm/artifacts/ts/TestToken.ts +312 -0
  75. package/cpmm/artifacts/ts/TokenPair.ts +947 -0
  76. package/cpmm/artifacts/ts/TokenPairFactory.ts +501 -0
  77. package/cpmm/artifacts/ts/contracts.ts +26 -0
  78. package/cpmm/artifacts/ts/deployments.ts +109 -0
  79. package/cpmm/artifacts/ts/index.ts +16 -0
  80. package/cpmm/artifacts/ts/scripts.ts +142 -0
  81. package/cpmm/deployments/.deployments.devnet.json +77 -0
  82. package/cpmm/deployments/.deployments.testnet.json +79 -0
  83. package/lib/index.d.mts +8800 -0
  84. package/lib/index.d.ts +8800 -0
  85. package/lib/index.js +21769 -0
  86. package/lib/index.js.map +1 -0
  87. package/lib/index.mjs +22118 -0
  88. package/lib/index.mjs.map +1 -0
  89. package/package.json +80 -0
  90. package/src/clmm/clmm.ts +607 -0
  91. package/src/clmm/constants.ts +7 -0
  92. package/src/clmm/index.ts +6 -0
  93. package/src/clmm/liquidity.ts +163 -0
  94. package/src/clmm/pool.ts +154 -0
  95. package/src/clmm/tick.ts +335 -0
  96. package/src/clmm/types.ts +155 -0
  97. package/src/common/constants.ts +1 -0
  98. package/src/common/error.ts +46 -0
  99. package/src/common/index.ts +7 -0
  100. package/src/common/logger.ts +82 -0
  101. package/src/common/math.ts +88 -0
  102. package/src/common/numeric.ts +64 -0
  103. package/src/common/types.ts +49 -0
  104. package/src/common/utils.ts +3 -0
  105. package/src/cpmm/constants.ts +2 -0
  106. package/src/cpmm/cpmm.ts +631 -0
  107. package/src/cpmm/index.ts +3 -0
  108. package/src/cpmm/types.ts +113 -0
  109. package/src/index.ts +25 -0
  110. package/src/moduleBase.ts +64 -0
  111. package/src/staking/index.ts +4 -0
  112. package/src/staking/settings.ts +38 -0
  113. package/src/staking/staking.ts +277 -0
  114. package/src/staking/types.ts +15 -0
  115. package/src/staking/utils.ts +25 -0
  116. package/src/token/index.ts +1 -0
  117. package/src/token/token.ts +163 -0
  118. package/src/zeta.ts +105 -0
  119. package/staking/artifacts/AlphStakeAndLock.ral.json +31 -0
  120. package/staking/artifacts/AlphUnstakeVault.ral.json +151 -0
  121. package/staking/artifacts/XAlphStakeVault.ral.json +559 -0
  122. package/staking/artifacts/XAlphToken.ral.json +404 -0
  123. package/staking/artifacts/XAlphUnlockAndStartUnstake.ral.json +31 -0
  124. package/staking/artifacts/examples/GovernanceDemo.ral.json +282 -0
  125. package/staking/artifacts/examples/RewardSharingVault.ral.json +253 -0
  126. package/staking/artifacts/structs.ral.json +47 -0
  127. package/staking/artifacts/ts/AlphUnstakeVault.ts +354 -0
  128. package/staking/artifacts/ts/FullMathTest.ts +175 -0
  129. package/staking/artifacts/ts/GovernanceDemo.ts +726 -0
  130. package/staking/artifacts/ts/RewardSharingVault.ts +559 -0
  131. package/staking/artifacts/ts/TestDynamicArrayByteVec32.ts +431 -0
  132. package/staking/artifacts/ts/TestDynamicSortedArrayForU256.ts +516 -0
  133. package/staking/artifacts/ts/TestMerkleProof.ts +343 -0
  134. package/staking/artifacts/ts/XAlphStakeVault.ts +1120 -0
  135. package/staking/artifacts/ts/XAlphToken.ts +835 -0
  136. package/staking/artifacts/ts/contracts.ts +26 -0
  137. package/staking/artifacts/ts/deployments.ts +109 -0
  138. package/staking/artifacts/ts/index.ts +15 -0
  139. package/staking/artifacts/ts/scripts.ts +35 -0
  140. package/staking/artifacts/ts/types.ts +19 -0
  141. package/staking/artifacts/utils/FullMathTest.ral.json +57 -0
  142. package/staking/artifacts/utils/TestDynamicArrayByteVec32.ral.json +165 -0
  143. package/staking/artifacts/utils/TestDynamicSortedArrayForU256.ral.json +189 -0
  144. package/staking/artifacts/utils/TestMerkleProof.ral.json +134 -0
  145. package/staking/deployments/.deployments.devnet.json +77 -0
  146. package/staking/deployments/.deployments.testnet.json +78 -0
@@ -0,0 +1,1530 @@
1
+ {
2
+ "version": "v4.3.0",
3
+ "name": "Pool",
4
+ "bytecode": "4020403609124023403843b747b34916493049ca4a3c4a6c4a9c4ad04afc4b3b4b674c494c6c4c8a4cbc4cd84d0b4d6c4d824d9d4da74dbc4dd24df94e064e1b4e714e854eef4f5f4feb508b512f51b45206524e535c562056ae572f57af57c5589258af597a5a125a4b5bfe5c55010000000102140002010000000102a0000201000101010716000c3413406e7bce0102010002030008160100021702160016024113406d7b0000010301413816000c3f264c061600057c203d4a0216003d1701160112800d89e83d321340ca7b16010d380c304c0213ccfffcb933bd6fad37aa2d162d1a5940014a0113cd0100000000000000000000000000000000170216010e380c304c06160213ccfff97272373d413259a46990580e213a2c1340803c4a0116021702160110380c304c06160213ccfff2e50f5f656932ef12357cf3c7fdcc2c1340803c4a011602170216011308380c304c06160213ccffe5caca7e10e4e61c3624eaa0941cd02c1340803c4a011602170216011310380c304c06160213ccffcb9843d60f6159c9db58835c9266442c1340803c4a011602170216011320380c304c06160213ccff973b41fa98c081472e6896dfb254c02c1340803c4a01160217021601134040380c304c06160213ccff2ea16466c96a3843ec78b326b528612c1340803c4a01160217021601134080380c304c06160213ccfe5dee046a99a2a811c461f1969c30532c1340803c4a01160217021601134100380c304c06160213ccfcbe86c7900a88aedcffc83b479aa3a42c1340803c4a01160217021601134200380c304c06160213ccf987a7253ac413176f2b074cf7815e542c1340803c4a01160217021601134400380c304c06160213ccf3392b0822b70005940c7a398e4b70f32c1340803c4a01160217021601134800380c304c06160213cce7159475a2c29b7443b29c7fa6e889d92c1340803c4a01160217021601135000380c304c06160213ccd097f3bdfd2022b8845ad8f792aa58252c1340803c4a01160217021601136000380c304c06160213cca9f746462d870fdf8a65dc1f90e061e52c1340803c4a011602170216011380004000380c304c06160213cc70d869a156d2a1b890bb3df62baf32f72c1340803c4a011602170216011380008000380c304c06160213cc31be135f97d08fd981231505542fcfa62c1340803c4a011602170216011380010000380c304c06160213cc09aa508b5b7a84e1c677de54f3e99bc92c1340803c4a011602170216011380020000380c304c06160213cb5d6af8dedb81196699c329225ee6042c1340803c4a011602170216011380040000380c304c06160213ca2216e584f5fa1ea926041bedfe982c1340803c4a011602170216011380080000380c304c06160213c8048a170391f7dc42444e8fa22c1340803c4a0116021702160005284c060c0d3616022d4a0116021702160213c1010000000091020100010b0141f2d3c6eb44f3160013c101000276a3347a4c0418160013d0fffd8963efd1fc6a506488495d951d5263988d26311340c97b160013203b1701160117020c1703160213cd01000000000000000000000000000000000d2b334c08160313408039170316021340803c1702160213c50100000000000000000d2b334c08160313404039170316021340403c1702160213c101000000000d2b334c0816031320391703160213203c17021602138000ffff334c0816031310391703160213103c170216021340ff334c0816031308391703160213083c17021602130f334c081603103917031602103c170216020f334c0816030e39170316020e3c170216020d334c0416030d3917031603134080344c071601160313407f2b3c17024a06160113407f16032b3b17021603134080314c0e0c0d3613407f2b16032a0c0d361340403c384a0316031340802b1340403b17040c1705160216022c13407f3c170216021340803c170516041605133f3b391704160216053c1702160216022c13407f3c170216021340803c170516041605133e3b391704160216053c1702160216022c13407f3c170216021340803c170516041605133d3b391704160216053c1702160216022c13407f3c170216021340803c170516041605133c3b391704160216053c1702160216022c13407f3c170216021340803c170516041605133b3b391704160216053c1702160216022c13407f3c170216021340803c170516041605133a3b391704160216053c1702160216022c13407f3c170216021340803c17051604160513393b391704160216053c1702160216022c13407f3c170216021340803c17051604160513383b391704160216053c1702160216022c13407f3c170216021340803c17051604160513373b391704160216053c1702160216022c13407f3c170216021340803c17051604160513363b391704160216053c1702160216022c13407f3c170216021340803c17051604160513353b391704160216053c1702160216022c13407f3c170216021340803c17051604160513343b391704160216053c1702160216022c13407f3c170216021340803c17051604160513333b391704160216053c1702160216022c13407f3c170216021340803c17051604160513323b391704160413c63627a301d71055774c85371706160613dcfffffffffffffffffffffffffffffffffd709b7e5480fba5a50fed5e62ffc556351340803c1707160613ccdb2df09e81959a81455e260799a0632f351340803c170816071380800000314c0316073f4a0616071380ffffff383f128100000020170916081380800000314c0316083f4a0616081380ffffff383f128100000020170a1609160a244c031609024a0a160a00041600324c03160a024a021609020000050d0440c5160016013417051603052917060c17070c17080c17090c170a16064c402316033d13800f424016042b13800f42400010170b16054c0616011600160203000c4a0516001601160203000e1707160b1607344c0216014a0516001602160b1605000a17094a402216054c0616011600160204000e4a0516001601160204000c17081603057c203d1608344c0216014a09160016021603057c203d1605000b1709160116092f170c16054c1e160c7a4c021816064c0216074a0516091600160203000c1707160c7a4c03181606194c0216084a0516091600160204000e17084a1d160c7a4c021816064c0216074a0516001609160203000e1707160c7a4c03181606194c0216084a0516001609160204000c17081606197a4c0818160316083f057c20284c061603057c203d170816067a4c041816091601304c0616033d16072b170a4a071607160413800f424016042b0011170a160916071608160a0200000202010e160016012d160016012e0c2f4c020c4a010d2a020000040901404916020c2f4c0216000216011340603b17041602160037170516034c1c160516022d16002f4c0d1604160535170616061604344c051604160016060011021604160416002d16022a0007024a1d160516022d16002f7a4c041816041605331340dd7b160416052b170716041600160700111708160813d1010000000000000000000000000000000000000000311340e17b1608020000040701402116034c11160213c901000000000000000000000000160100101704160016042a1705160513d1010000000000000000000000000000000000000000311340e17b1605024a0e160213c90100000000000000000000000016010011170616001606331340de7b160016062b0200000404011916000c331340df7b16010c331340e07b16034c07160016011602030008024a061600160116020300090200000404011916000c331340df7b16010c331340e07b16034c07160016011602040009024a061600160116020400080200000406011916021340603b1704160116002b170516034c08160416051601001116000007024a07160416051601001016002d0200000303011b16020b274c0f160016011602057c203d04000c3f057c20024a081600160116023d03000c3f02000004050111160116002b170416034c061602160413c9010000000000000000000000000011024a051602160413c90100000000000000000000000000100200000303011b160205264c0f160016011602057c203d04000e3f057c20024a081600160116023d03000e3f020000030901408d160016010c0d3687170316001601371704160316043616031604314c020d4a010c36170516050c2f4c04160416022d02160216053313415f7b160016011602871706160516061604334c020d4a010c361705160416063617040c1602361602381707160216072d1702160416072d17040c16073616072d0d351707160416051607373917040f1602370e3a170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816041608370200000304011216001601160200101703160016011602870c334c0416030d2a021603020000010101120e16007a7a1241003a7a05294b033a904a023a221302640200000105011b1600001217011601cb17021602c54c02160202b21301640c130164170417031601ce0416031604c11816020200000103010d1600001217011601cb17021602c54c02160202ce040200000103001e1600ce0a23052413412d7b16007a7ace0a3a7a05294b033a904a023a22170116010013170216010d0c160201020000020602403016007a7ace0a3a7a05294b033a904a023a2216014c02054a01061f170216020014170316021601ce0a0f0e1603010317051704160412bff27618264c0212bff276181704160412800d89e8284c0212800d89e817041604160502010003030108d37afb14100d1600160116021304640201000405010ad35b19984c1601160216030017170416001604cc0200000101010316004002000003040109160016020019cc1703160116034402000003040109160016011602001a170316001603cc0200000202000f16001601261340667b160012bff27618291340677b160112800d89e8271340687b0000010101050c160013026402010001020107d30949c5981600001d17011601cb02000001080240301600001d17011601cb17021602c54c03160204021600a002274c04a00ea00fa0104a030c0c0c170517041703b216001302640c05160316041605130564170717061601ce0316061607c11816020302000003040108160016011602001717031603cb020000030d024039160016011602001717031603cb17041604c54c03160404020c0c0c1709170817070c0c0c170c170b170ab2a0001406414c504800031303640c160716081609160a160b160c13076417061705a0000d2aa1001603ce01160516060d1600c9181604030200000209034047a002a00ea00fa010100f16000101170417031702a002a00ea00fa010100f160101021707170617050c170816080f314c402716087a0f314d130e2ac316087a0f314d0e2a782b16087a0f314d112a783616087a0f314d0e2a7916080d2a17084a7fd5160216031604020000051103404b1602001f170617051603001f17081707ce0b1604040f0d160501001709ce0b1604030f0d16070100170a16097a4b021816064c0216020015160a7a4b021816084c0216030015160516070022170d170c170b1604160b160c160d100f160001041710170f170e16094c0516010d0c16050103160a4c0516010d0c16070103160e160f1610020003050f05405416021603001c560030160016011602160316040023170717061705160405254c403ca004170816020004170916030004170aa0021602264c0b1609160a1604000d170b160b0516051606160702a0021603264c16a001160a1604000d170c1609a0011604000f170d16083f16041f3da104160c160d160516061607021609160a1604000f170e05160e1605160616070205051605160616070201070513024056d3e58379f416011602160300211706170516064c0d16040c2f170716071913406b7b160016014513406c7b16011602160316043f170b170a170917081600160516064c020c4a010da3160516081609160a160b00241710170f170e170d170c160c3d1711160d3d17121600ce061611ac1600ce071612ac1207160116021603160e160f161056750916001601160216031604161116125676161116120201030511024048d39d5023b316011602160316043f057c20170817071706170516011602160300201709160016090da3160916051606160716080024170e170d170c170b170a160a057c203d170f160b057c203d1710160f16100e0c160901051207160116021603160c160d160e56750a16001601160216031604160f161075160f1610020103080c034027d3417830ee160216031604002017081605160616070f0f16080106170b170a1709160016080da316011609160a160b00281206160016011602160316041609160a160b761609160a160b020001040800402ece06ce07ce081706170517040c170716070f314c402216077a0f314d0d2a780c334c12160016077a0f314d102a7816077a0f314d0d2a78ab16070d2a17074a7fda01000418004097d34c88990ba0011704a0021705a00417061601052817070517081605160019001618170906160900045e16030c334c407c16030d2b1703160516000016170b170a160a0004170c1604160c16061601ce0900061710170f170e170d16074c0d1601160e16102a3f2017011608160f3f2017084a0c1601160f3f1f17011608160e16102a3f1f1708160b4c17160a001e17110c0d16110105171216004c051612057c204a011612171316063f16131f3d170616004c04160a06204a01160a1705160d170407160416065f160105244c1f1602430c2f4c0102160016071c4c02ce074a01ce061714160216141607002b171717161817151615160816171603100c16160129024a7f80010307403402416dd3d6407a21160405251340697b560030160405281707a001a002a003170a1709170816034c0c16051608317a4c0418160513c101000276a33313406a7b4a0b16051608337a4c0418160513d0fffd8963efd1fc6a506488495d951d5263988d263113406a7ba00416034c04160a13102e4a03160a103c170c170b1604051608160916034c02a00e4a01a00f160b0c1713171217111710170f170e170d160d05257a4c0418160f1605304c409b1610160300161715171416140004171616034c0416161605314a031616160533171716174c0216054a0116161718160f16181612160dce090006171c171b171a1719160f161416151616161a161b161c1723172217211720171f171e171d1619170f16074c0d160d162116232a3f20170d160e16223f20170e4a0c160d16223f1f170d160e162116232a3f1f170e160c0c334c041623160c2d4a010c1724161316242a171316120c334c091611162316242b13cd0100000000000000000000000000000000161200102a1711160f16202f4c4027161f4c1c161e001e1725a00ea00fa01016031611110d16250104172616034c051626057c204a011626172716123f16271f3d171216034c04161e06204a01161e17104a07160f161d304c03160f000517104a7f5b160fa1011610a1021612a1041613130a2d1728161316282b171316034c071611a10ea01116132aa1114a061611a10fa01216132aa1121604160d201729160e172a160316071d4c041629172a160e172916034c0e160016011602ce0616293dce07162a057c203d16064a0d160016011602ce07162a3dce061629057c203d1606173217311730172f172e172d172c172b16074c0f1600162e162fa3162b162c162d162e162f1630163116321628002d4a1216001602a51733160016021633a3162b162c162d162e162f1630163116321628002c08160016011629162aa001a004a002751629162a020000030d04404116000c13206217030e170416001320132016042a62170516056d1706160171160371311707160716021c170816084c0413c101000276a30d2a4a0313d0fffd8963efd1fc6a506488495d951d5263988d260d2b17091600132016042a16004362170a16074c0416011603444a031603160144170bce00160b1606001b170c16081609160c160a020001091000404716031602414c1e160016031604acce02160047cc1709ce00ce06ce0744ce05001a170a160016031608a3160016031608160a0c110c160901004a40211607160304002b170e170d170c170b16001602a5170f16001602160fa31600b21602160b16043f057c20160c160e13070e160d012a1818160116051606ab00010910004046160016031604acce02160147cc17091609c51340717b1609170ace00ce06ce0744ce05001a170b160016031608a3160016031608160b0c110c160a010016051602414c05160116051606ab4a1a1607160503002b170f170e170d170cb216051606a3b216011602160c16063f160d160f13070e160e012a1818010002020307d3c62bf5cfa0011600000416010004020000020800408716007a0f314d0f2c112ac3170216007a0f314d0f2c112a0d2ac3170316020c2f7a4b041816011602327a4b041816031602324c0102a0040c304c404f160116022b170416007a0f314d0f2c112a0e2ac31705160316022b170616041606314c0516041605160600104a011605170716007a0f314d130e2ac3160713cd0100000000000000000000000000000000a00400102a16007a0f314d130e2ac416007a0f314d0f2c112a0e2ac316072b16007a0f314d0f2c112a0e2ac4160116007a0f314d0f2c112ac400000102000e0c170116010f314c0816011600002f16010d2a17014a340107030a004096d34ca91e1416010f311340727b16020c331340747bce06ce07ce0817051704170316017a0f314d0f2a7817065617071607003016017a0f314d0f2c112a0e2ac3170816017a0f314d0f2c112a0d2ac31607337a4c041816080c331340737b16017a0f314d0f2c112a0d2ac316072b1709160716017a0f314d0f2c112ac416017a0f314d0f2c112a0d2ac316091602160800102a16017a0f314d0f2c112a0d2ac416017a0f314d0f2c112a0e2ac316022a16017a0f314d0f2c112a0e2ac4160016061602ac0107050a004065d375c252e5b4ce00774513406f7b16010f311340727b16040c331340747b56170516021605334c0216024a011605170616061603311340707b16050030ce06ce07ce08170917081707160616017a0f314d0f2c112ac4160316017a0f314d0f2c112a0d2ac416017a0f314d0f2c112a0e2ac316042a16017a0f314d0f2c112a0e2ac4160016017a0f314d13072a781604ac01020103001cd3960b26b3b3ce00411341937ba0111701a01217021600ce061601ab1600ce071602ab0ca1110ca1121208b41600160116026101000840270840d1d300611b5f1601001e17081602001e17091600160116020020170a0c10160a0107170e170d170c170b16081609002217111710170f160100041712160200041713051714051715160b3f1716a0021601264c06161216131616000d17144a14a0021602264c0ba00116131616000d17141612a0011616000f17154a05161216131616000f17150c0c0c171917181717160b0c334c40290c171a161a0f314c4023161a7a0f314d130f2a78161a7a0f314d130c2a782b171b161b160b13cd01000000000000000000000000000000000010161a7a0f314d13172a79161a0d2a171a4a7fd905171c05171d56171e161e16062b171f1607161f2a17201603160b161f2c2a3f1721a0021601264c06161216131621000d171c4a14a0021602264c0ba00116131621000d171c1612a0011621000f171d4a05161216131621000f171da001a00113c901000000000000000000000000001017221622161c3d13c9010000000000000000000000000010161d3d2a1723160416172a1724160516182a17251622162413c901000000000000000000000000001016252a17261614161516171618161916231626162002010000000103d3ee6a5cd514404868747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f616c65706869756d2f746f6b656e2d6c6973742f6d61737465722f636f72652f6d2e6a736f6e02",
5
+ "codeHash": "cdb37fb2772ba9c976a4dc34db15994ecaeef82d8690b9a94c600a81c67f98c4",
6
+ "fieldsSig": {
7
+ "names": [
8
+ "parent",
9
+ "positionTemplate",
10
+ "dexAccountTemplate",
11
+ "tickTemplate",
12
+ "wordTemplate",
13
+ "configIndex",
14
+ "token0",
15
+ "token1",
16
+ "token2",
17
+ "fee",
18
+ "tickSpacing",
19
+ "maxLiquidityPerTick",
20
+ "nextNftIndex",
21
+ "slot0",
22
+ "liquidity",
23
+ "rewardInfos",
24
+ "feeGrowths",
25
+ "protocolFees",
26
+ "__stdInterfaceId"
27
+ ],
28
+ "types": [
29
+ "PoolFactory",
30
+ "ByteVec",
31
+ "ByteVec",
32
+ "ByteVec",
33
+ "ByteVec",
34
+ "U256",
35
+ "ByteVec",
36
+ "ByteVec",
37
+ "ByteVec",
38
+ "U256",
39
+ "I256",
40
+ "U256",
41
+ "U256",
42
+ "Slot0",
43
+ "U256",
44
+ "[Reward;3]",
45
+ "[U256;3]",
46
+ "ProtocolFees",
47
+ "ByteVec"
48
+ ],
49
+ "isMutable": [
50
+ false,
51
+ false,
52
+ false,
53
+ false,
54
+ false,
55
+ false,
56
+ false,
57
+ false,
58
+ false,
59
+ false,
60
+ false,
61
+ false,
62
+ true,
63
+ true,
64
+ true,
65
+ true,
66
+ true,
67
+ true,
68
+ false
69
+ ]
70
+ },
71
+ "eventsSig": [
72
+ {
73
+ "name": "Initialize",
74
+ "fieldNames": [
75
+ "sqrtPriceX96",
76
+ "tick"
77
+ ],
78
+ "fieldTypes": [
79
+ "U256",
80
+ "I256"
81
+ ]
82
+ },
83
+ {
84
+ "name": "SwapStart",
85
+ "fieldNames": [
86
+ "sqrtPriceX96"
87
+ ],
88
+ "fieldTypes": [
89
+ "U256"
90
+ ]
91
+ },
92
+ {
93
+ "name": "SwapStep",
94
+ "fieldNames": [
95
+ "sqrtPriceX96",
96
+ "liquidity"
97
+ ],
98
+ "fieldTypes": [
99
+ "U256",
100
+ "U256"
101
+ ]
102
+ },
103
+ {
104
+ "name": "Swap",
105
+ "fieldNames": [
106
+ "sender",
107
+ "recipient",
108
+ "amount0",
109
+ "amount1",
110
+ "sqrtPriceX96",
111
+ "liquidity",
112
+ "tick"
113
+ ],
114
+ "fieldTypes": [
115
+ "Address",
116
+ "Address",
117
+ "I256",
118
+ "I256",
119
+ "U256",
120
+ "U256",
121
+ "I256"
122
+ ]
123
+ },
124
+ {
125
+ "name": "Mint",
126
+ "fieldNames": [
127
+ "sender",
128
+ "owner",
129
+ "tickLower",
130
+ "tickUpper",
131
+ "liquidity",
132
+ "amount0",
133
+ "amount1",
134
+ "timestamp"
135
+ ],
136
+ "fieldTypes": [
137
+ "Address",
138
+ "Address",
139
+ "I256",
140
+ "I256",
141
+ "U256",
142
+ "U256",
143
+ "U256",
144
+ "U256"
145
+ ]
146
+ },
147
+ {
148
+ "name": "Burn",
149
+ "fieldNames": [
150
+ "operator",
151
+ "owner",
152
+ "tickLower",
153
+ "tickUpper",
154
+ "liquidity",
155
+ "amount0",
156
+ "amount1"
157
+ ],
158
+ "fieldTypes": [
159
+ "Address",
160
+ "Address",
161
+ "I256",
162
+ "I256",
163
+ "U256",
164
+ "U256",
165
+ "U256"
166
+ ]
167
+ },
168
+ {
169
+ "name": "Collect",
170
+ "fieldNames": [
171
+ "operator",
172
+ "recipient",
173
+ "owner",
174
+ "tickLower",
175
+ "tickUpper",
176
+ "amount0",
177
+ "amount1",
178
+ "amount2"
179
+ ],
180
+ "fieldTypes": [
181
+ "Address",
182
+ "Address",
183
+ "Address",
184
+ "I256",
185
+ "I256",
186
+ "U256",
187
+ "U256",
188
+ "U256"
189
+ ]
190
+ },
191
+ {
192
+ "name": "Fees",
193
+ "fieldNames": [
194
+ "owner",
195
+ "tickLower",
196
+ "tickUpper",
197
+ "amount0",
198
+ "amount1",
199
+ "amount2",
200
+ "timestamp"
201
+ ],
202
+ "fieldTypes": [
203
+ "Address",
204
+ "I256",
205
+ "I256",
206
+ "U256",
207
+ "U256",
208
+ "U256",
209
+ "U256"
210
+ ]
211
+ },
212
+ {
213
+ "name": "CollectProtocol",
214
+ "fieldNames": [
215
+ "sender",
216
+ "recipient",
217
+ "amount0",
218
+ "amount1"
219
+ ],
220
+ "fieldTypes": [
221
+ "Address",
222
+ "Address",
223
+ "U256",
224
+ "U256"
225
+ ]
226
+ }
227
+ ],
228
+ "functions": [
229
+ {
230
+ "name": "getCollectionUri",
231
+ "paramNames": [],
232
+ "paramTypes": [],
233
+ "paramIsMutable": [],
234
+ "returnTypes": [
235
+ "ByteVec"
236
+ ]
237
+ },
238
+ {
239
+ "name": "totalSupply",
240
+ "paramNames": [],
241
+ "paramTypes": [],
242
+ "paramIsMutable": [],
243
+ "returnTypes": [
244
+ "U256"
245
+ ]
246
+ },
247
+ {
248
+ "name": "nftByIndex",
249
+ "paramNames": [
250
+ "index"
251
+ ],
252
+ "paramTypes": [
253
+ "U256"
254
+ ],
255
+ "paramIsMutable": [
256
+ false
257
+ ],
258
+ "returnTypes": [
259
+ "INFT"
260
+ ]
261
+ },
262
+ {
263
+ "name": "validateNFT",
264
+ "paramNames": [
265
+ "nftId",
266
+ "nftIndex"
267
+ ],
268
+ "paramTypes": [
269
+ "ByteVec",
270
+ "U256"
271
+ ],
272
+ "paramIsMutable": [
273
+ false,
274
+ false
275
+ ],
276
+ "returnTypes": []
277
+ },
278
+ {
279
+ "name": "getSqrtRatioAtTick",
280
+ "paramNames": [
281
+ "tick"
282
+ ],
283
+ "paramTypes": [
284
+ "I256"
285
+ ],
286
+ "paramIsMutable": [
287
+ false
288
+ ],
289
+ "returnTypes": [
290
+ "U256"
291
+ ]
292
+ },
293
+ {
294
+ "name": "getTickAtSqrtRatio",
295
+ "paramNames": [
296
+ "sqrtPriceX96"
297
+ ],
298
+ "paramTypes": [
299
+ "U256"
300
+ ],
301
+ "paramIsMutable": [
302
+ false
303
+ ],
304
+ "returnTypes": [
305
+ "I256"
306
+ ]
307
+ },
308
+ {
309
+ "name": "computeSwapStep",
310
+ "paramNames": [
311
+ "sqrtRatioCurrentX96",
312
+ "sqrtRatioTargetX96",
313
+ "liquidity_",
314
+ "amountRemaining",
315
+ "feePips"
316
+ ],
317
+ "paramTypes": [
318
+ "U256",
319
+ "U256",
320
+ "U256",
321
+ "I256",
322
+ "U256"
323
+ ],
324
+ "paramIsMutable": [
325
+ false,
326
+ false,
327
+ false,
328
+ false,
329
+ false
330
+ ],
331
+ "returnTypes": [
332
+ "U256",
333
+ "U256",
334
+ "U256",
335
+ "U256"
336
+ ]
337
+ },
338
+ {
339
+ "name": "divRoundingUp",
340
+ "paramNames": [
341
+ "x",
342
+ "y"
343
+ ],
344
+ "paramTypes": [
345
+ "U256",
346
+ "U256"
347
+ ],
348
+ "paramIsMutable": [
349
+ false,
350
+ false
351
+ ],
352
+ "returnTypes": [
353
+ "U256"
354
+ ]
355
+ },
356
+ {
357
+ "name": "getNextSqrtPriceFromAmount0RoundingUp",
358
+ "paramNames": [
359
+ "sqrtPX96",
360
+ "liquidity_",
361
+ "amount",
362
+ "add"
363
+ ],
364
+ "paramTypes": [
365
+ "U256",
366
+ "U256",
367
+ "U256",
368
+ "Bool"
369
+ ],
370
+ "paramIsMutable": [
371
+ false,
372
+ false,
373
+ false,
374
+ false
375
+ ],
376
+ "returnTypes": [
377
+ "U256"
378
+ ]
379
+ },
380
+ {
381
+ "name": "getNextSqrtPriceFromAmount1RoundingDown",
382
+ "paramNames": [
383
+ "sqrtPX96",
384
+ "liquidity_",
385
+ "amount",
386
+ "add"
387
+ ],
388
+ "paramTypes": [
389
+ "U256",
390
+ "U256",
391
+ "U256",
392
+ "Bool"
393
+ ],
394
+ "paramIsMutable": [
395
+ false,
396
+ false,
397
+ false,
398
+ false
399
+ ],
400
+ "returnTypes": [
401
+ "U256"
402
+ ]
403
+ },
404
+ {
405
+ "name": "getNextSqrtPriceFromInput",
406
+ "paramNames": [
407
+ "sqrtPX96",
408
+ "liquidity_",
409
+ "amountIn",
410
+ "zeroForOne"
411
+ ],
412
+ "paramTypes": [
413
+ "U256",
414
+ "U256",
415
+ "U256",
416
+ "Bool"
417
+ ],
418
+ "paramIsMutable": [
419
+ false,
420
+ false,
421
+ false,
422
+ false
423
+ ],
424
+ "returnTypes": [
425
+ "U256"
426
+ ]
427
+ },
428
+ {
429
+ "name": "getNextSqrtPriceFromOutput",
430
+ "paramNames": [
431
+ "sqrtPX96",
432
+ "liquidity_",
433
+ "amountOut",
434
+ "zeroForOne"
435
+ ],
436
+ "paramTypes": [
437
+ "U256",
438
+ "U256",
439
+ "U256",
440
+ "Bool"
441
+ ],
442
+ "paramIsMutable": [
443
+ false,
444
+ false,
445
+ false,
446
+ false
447
+ ],
448
+ "returnTypes": [
449
+ "U256"
450
+ ]
451
+ },
452
+ {
453
+ "name": "getAmount0DeltaEx",
454
+ "paramNames": [
455
+ "sqrtRatioAX96",
456
+ "sqrtRatioBX96",
457
+ "liquidityDelta",
458
+ "roundUp"
459
+ ],
460
+ "paramTypes": [
461
+ "U256",
462
+ "U256",
463
+ "U256",
464
+ "Bool"
465
+ ],
466
+ "paramIsMutable": [
467
+ false,
468
+ false,
469
+ false,
470
+ false
471
+ ],
472
+ "returnTypes": [
473
+ "U256"
474
+ ]
475
+ },
476
+ {
477
+ "name": "getAmount0Delta",
478
+ "paramNames": [
479
+ "sqrtRatioAX96",
480
+ "sqrtRatioBX96",
481
+ "liquidityDelta"
482
+ ],
483
+ "paramTypes": [
484
+ "U256",
485
+ "U256",
486
+ "I256"
487
+ ],
488
+ "paramIsMutable": [
489
+ false,
490
+ false,
491
+ false
492
+ ],
493
+ "returnTypes": [
494
+ "I256"
495
+ ]
496
+ },
497
+ {
498
+ "name": "getAmount1DeltaEx",
499
+ "paramNames": [
500
+ "sqrtRatioAX96",
501
+ "sqrtRatioBX96",
502
+ "liquidityDelta",
503
+ "roundUp"
504
+ ],
505
+ "paramTypes": [
506
+ "U256",
507
+ "U256",
508
+ "U256",
509
+ "Bool"
510
+ ],
511
+ "paramIsMutable": [
512
+ false,
513
+ false,
514
+ false,
515
+ false
516
+ ],
517
+ "returnTypes": [
518
+ "U256"
519
+ ]
520
+ },
521
+ {
522
+ "name": "getAmount1Delta",
523
+ "paramNames": [
524
+ "sqrtRatioAX96",
525
+ "sqrtRatioBX96",
526
+ "liquidityDelta"
527
+ ],
528
+ "paramTypes": [
529
+ "U256",
530
+ "U256",
531
+ "I256"
532
+ ],
533
+ "paramIsMutable": [
534
+ false,
535
+ false,
536
+ false
537
+ ],
538
+ "returnTypes": [
539
+ "I256"
540
+ ]
541
+ },
542
+ {
543
+ "name": "mulDiv",
544
+ "paramNames": [
545
+ "a",
546
+ "b",
547
+ "denominator"
548
+ ],
549
+ "paramTypes": [
550
+ "U256",
551
+ "U256",
552
+ "U256"
553
+ ],
554
+ "paramIsMutable": [
555
+ false,
556
+ false,
557
+ true
558
+ ],
559
+ "returnTypes": [
560
+ "U256"
561
+ ]
562
+ },
563
+ {
564
+ "name": "mulDivRoundingUp",
565
+ "paramNames": [
566
+ "a",
567
+ "b",
568
+ "denominator"
569
+ ],
570
+ "paramTypes": [
571
+ "U256",
572
+ "U256",
573
+ "U256"
574
+ ],
575
+ "paramIsMutable": [
576
+ false,
577
+ false,
578
+ false
579
+ ],
580
+ "returnTypes": [
581
+ "U256"
582
+ ]
583
+ },
584
+ {
585
+ "name": "wordPath",
586
+ "paramNames": [
587
+ "compressed"
588
+ ],
589
+ "paramTypes": [
590
+ "I256"
591
+ ],
592
+ "paramIsMutable": [
593
+ false
594
+ ],
595
+ "returnTypes": [
596
+ "ByteVec"
597
+ ]
598
+ },
599
+ {
600
+ "name": "getWord",
601
+ "paramNames": [
602
+ "compressed"
603
+ ],
604
+ "paramTypes": [
605
+ "I256"
606
+ ],
607
+ "paramIsMutable": [
608
+ false
609
+ ],
610
+ "returnTypes": [
611
+ "BitmapWord"
612
+ ]
613
+ },
614
+ {
615
+ "name": "getWordOrTemplate",
616
+ "paramNames": [
617
+ "compressed"
618
+ ],
619
+ "paramTypes": [
620
+ "I256"
621
+ ],
622
+ "paramIsMutable": [
623
+ false
624
+ ],
625
+ "returnTypes": [
626
+ "BitmapWord"
627
+ ]
628
+ },
629
+ {
630
+ "name": "flipTick",
631
+ "paramNames": [
632
+ "tick"
633
+ ],
634
+ "paramTypes": [
635
+ "I256"
636
+ ],
637
+ "paramIsMutable": [
638
+ false
639
+ ],
640
+ "returnTypes": []
641
+ },
642
+ {
643
+ "name": "nextInitializedTickWithinOneWord",
644
+ "paramNames": [
645
+ "tick",
646
+ "zeroForOne"
647
+ ],
648
+ "paramTypes": [
649
+ "I256",
650
+ "Bool"
651
+ ],
652
+ "paramIsMutable": [
653
+ false,
654
+ false
655
+ ],
656
+ "returnTypes": [
657
+ "I256",
658
+ "Bool"
659
+ ]
660
+ },
661
+ {
662
+ "name": "positionPath",
663
+ "paramNames": [
664
+ "o",
665
+ "tickLower",
666
+ "tickUpper"
667
+ ],
668
+ "paramTypes": [
669
+ "Address",
670
+ "I256",
671
+ "I256"
672
+ ],
673
+ "paramIsMutable": [
674
+ false,
675
+ false,
676
+ false
677
+ ],
678
+ "returnTypes": [
679
+ "ByteVec"
680
+ ]
681
+ },
682
+ {
683
+ "name": "positionContractId",
684
+ "paramNames": [
685
+ "pool",
686
+ "o",
687
+ "tickLower",
688
+ "tickUpper"
689
+ ],
690
+ "paramTypes": [
691
+ "Pool",
692
+ "Address",
693
+ "I256",
694
+ "I256"
695
+ ],
696
+ "paramIsMutable": [
697
+ false,
698
+ false,
699
+ false,
700
+ false
701
+ ],
702
+ "returnTypes": [
703
+ "ByteVec"
704
+ ]
705
+ },
706
+ {
707
+ "name": "configPath",
708
+ "paramNames": [
709
+ "configIndex_"
710
+ ],
711
+ "paramTypes": [
712
+ "U256"
713
+ ],
714
+ "paramIsMutable": [
715
+ false
716
+ ],
717
+ "returnTypes": [
718
+ "ByteVec"
719
+ ]
720
+ },
721
+ {
722
+ "name": "poolPath",
723
+ "paramNames": [
724
+ "factory",
725
+ "tokens",
726
+ "configIndex_"
727
+ ],
728
+ "paramTypes": [
729
+ "PoolFactory",
730
+ "ByteVec",
731
+ "U256"
732
+ ],
733
+ "paramIsMutable": [
734
+ false,
735
+ false,
736
+ false
737
+ ],
738
+ "returnTypes": [
739
+ "ByteVec"
740
+ ]
741
+ },
742
+ {
743
+ "name": "poolContractId",
744
+ "paramNames": [
745
+ "factory",
746
+ "tokens",
747
+ "configIndex_"
748
+ ],
749
+ "paramTypes": [
750
+ "PoolFactory",
751
+ "ByteVec",
752
+ "U256"
753
+ ],
754
+ "paramIsMutable": [
755
+ false,
756
+ false,
757
+ false
758
+ ],
759
+ "returnTypes": [
760
+ "ByteVec"
761
+ ]
762
+ },
763
+ {
764
+ "name": "checkTicks",
765
+ "paramNames": [
766
+ "tickLower",
767
+ "tickUpper"
768
+ ],
769
+ "paramTypes": [
770
+ "I256",
771
+ "I256"
772
+ ],
773
+ "paramIsMutable": [
774
+ false,
775
+ false
776
+ ],
777
+ "returnTypes": []
778
+ },
779
+ {
780
+ "name": "tickPath",
781
+ "paramNames": [
782
+ "tick"
783
+ ],
784
+ "paramTypes": [
785
+ "I256"
786
+ ],
787
+ "paramIsMutable": [
788
+ false
789
+ ],
790
+ "returnTypes": [
791
+ "ByteVec"
792
+ ]
793
+ },
794
+ {
795
+ "name": "toTick",
796
+ "paramNames": [
797
+ "tick"
798
+ ],
799
+ "paramTypes": [
800
+ "I256"
801
+ ],
802
+ "paramIsMutable": [
803
+ false
804
+ ],
805
+ "returnTypes": [
806
+ "Tick"
807
+ ]
808
+ },
809
+ {
810
+ "name": "getTick",
811
+ "paramNames": [
812
+ "tick"
813
+ ],
814
+ "paramTypes": [
815
+ "I256"
816
+ ],
817
+ "paramIsMutable": [
818
+ false
819
+ ],
820
+ "returnTypes": [
821
+ "Tick",
822
+ "Bool"
823
+ ]
824
+ },
825
+ {
826
+ "name": "toPosition",
827
+ "paramNames": [
828
+ "owner",
829
+ "tickLower",
830
+ "tickUpper"
831
+ ],
832
+ "paramTypes": [
833
+ "Address",
834
+ "I256",
835
+ "I256"
836
+ ],
837
+ "paramIsMutable": [
838
+ false,
839
+ false,
840
+ false
841
+ ],
842
+ "returnTypes": [
843
+ "Position"
844
+ ]
845
+ },
846
+ {
847
+ "name": "getPosition",
848
+ "paramNames": [
849
+ "owner",
850
+ "tickLower",
851
+ "tickUpper"
852
+ ],
853
+ "paramTypes": [
854
+ "Address",
855
+ "I256",
856
+ "I256"
857
+ ],
858
+ "paramIsMutable": [
859
+ false,
860
+ false,
861
+ false
862
+ ],
863
+ "returnTypes": [
864
+ "Position",
865
+ "Bool"
866
+ ]
867
+ },
868
+ {
869
+ "name": "getFeeGrowthInside",
870
+ "paramNames": [
871
+ "tickLower",
872
+ "tickUpper"
873
+ ],
874
+ "paramTypes": [
875
+ "Tick",
876
+ "Tick"
877
+ ],
878
+ "paramIsMutable": [
879
+ false,
880
+ false
881
+ ],
882
+ "returnTypes": [
883
+ "[U256;3]"
884
+ ]
885
+ },
886
+ {
887
+ "name": "updatePosition",
888
+ "paramNames": [
889
+ "position",
890
+ "owner",
891
+ "tickLower",
892
+ "tickUpper",
893
+ "liquidityDelta"
894
+ ],
895
+ "paramTypes": [
896
+ "Position",
897
+ "Address",
898
+ "I256",
899
+ "I256",
900
+ "I256"
901
+ ],
902
+ "paramIsMutable": [
903
+ false,
904
+ false,
905
+ false,
906
+ false,
907
+ false
908
+ ],
909
+ "returnTypes": [
910
+ "[U256;3]"
911
+ ]
912
+ },
913
+ {
914
+ "name": "modifyPosition",
915
+ "paramNames": [
916
+ "position",
917
+ "params"
918
+ ],
919
+ "paramTypes": [
920
+ "Position",
921
+ "ModifyPositionParams"
922
+ ],
923
+ "paramIsMutable": [
924
+ false,
925
+ false
926
+ ],
927
+ "returnTypes": [
928
+ "I256",
929
+ "I256",
930
+ "[U256;3]"
931
+ ]
932
+ },
933
+ {
934
+ "name": "mint",
935
+ "paramNames": [
936
+ "payer",
937
+ "owner",
938
+ "tickLower",
939
+ "tickUpper",
940
+ "amount"
941
+ ],
942
+ "paramTypes": [
943
+ "Address",
944
+ "Address",
945
+ "I256",
946
+ "I256",
947
+ "U256"
948
+ ],
949
+ "paramIsMutable": [
950
+ false,
951
+ false,
952
+ false,
953
+ false,
954
+ false
955
+ ],
956
+ "returnTypes": [
957
+ "U256",
958
+ "U256"
959
+ ]
960
+ },
961
+ {
962
+ "name": "burn",
963
+ "paramNames": [
964
+ "operator",
965
+ "owner",
966
+ "tickLower",
967
+ "tickUpper",
968
+ "amount"
969
+ ],
970
+ "paramTypes": [
971
+ "Address",
972
+ "Address",
973
+ "I256",
974
+ "I256",
975
+ "U256"
976
+ ],
977
+ "paramIsMutable": [
978
+ false,
979
+ false,
980
+ false,
981
+ false,
982
+ false
983
+ ],
984
+ "returnTypes": [
985
+ "U256",
986
+ "U256"
987
+ ]
988
+ },
989
+ {
990
+ "name": "collect",
991
+ "paramNames": [
992
+ "operator",
993
+ "recipient",
994
+ "owner",
995
+ "tickLower",
996
+ "tickUpper",
997
+ "maxAmounts"
998
+ ],
999
+ "paramTypes": [
1000
+ "Address",
1001
+ "Address",
1002
+ "Address",
1003
+ "I256",
1004
+ "I256",
1005
+ "[U256;3]"
1006
+ ],
1007
+ "paramIsMutable": [
1008
+ false,
1009
+ false,
1010
+ false,
1011
+ false,
1012
+ false,
1013
+ false
1014
+ ],
1015
+ "returnTypes": [
1016
+ "[U256;3]"
1017
+ ]
1018
+ },
1019
+ {
1020
+ "name": "withdraw",
1021
+ "paramNames": [
1022
+ "recipient",
1023
+ "amounts"
1024
+ ],
1025
+ "paramTypes": [
1026
+ "Address",
1027
+ "[U256;3]"
1028
+ ],
1029
+ "paramIsMutable": [
1030
+ false,
1031
+ false
1032
+ ],
1033
+ "returnTypes": []
1034
+ },
1035
+ {
1036
+ "name": "simulateSwap",
1037
+ "paramNames": [
1038
+ "zeroForOne",
1039
+ "amountSpecified",
1040
+ "data",
1041
+ "maxSteps"
1042
+ ],
1043
+ "paramTypes": [
1044
+ "Bool",
1045
+ "I256",
1046
+ "ByteVec",
1047
+ "U256"
1048
+ ],
1049
+ "paramIsMutable": [
1050
+ false,
1051
+ true,
1052
+ false,
1053
+ true
1054
+ ],
1055
+ "returnTypes": []
1056
+ },
1057
+ {
1058
+ "name": "swap",
1059
+ "paramNames": [
1060
+ "payer",
1061
+ "recipient",
1062
+ "token",
1063
+ "zeroForOne",
1064
+ "amountSpecified",
1065
+ "sqrtPriceLimitX96",
1066
+ "data"
1067
+ ],
1068
+ "paramTypes": [
1069
+ "Address",
1070
+ "Address",
1071
+ "ByteVec",
1072
+ "Bool",
1073
+ "I256",
1074
+ "U256",
1075
+ "ByteVec"
1076
+ ],
1077
+ "paramIsMutable": [
1078
+ false,
1079
+ false,
1080
+ false,
1081
+ false,
1082
+ false,
1083
+ false,
1084
+ false
1085
+ ],
1086
+ "returnTypes": [
1087
+ "I256",
1088
+ "I256"
1089
+ ]
1090
+ },
1091
+ {
1092
+ "name": "pop",
1093
+ "paramNames": [
1094
+ "data",
1095
+ "t",
1096
+ "exactInput"
1097
+ ],
1098
+ "paramTypes": [
1099
+ "ByteVec",
1100
+ "ByteVec",
1101
+ "Bool"
1102
+ ],
1103
+ "paramIsMutable": [
1104
+ false,
1105
+ false,
1106
+ false
1107
+ ],
1108
+ "returnTypes": [
1109
+ "Bool",
1110
+ "U256",
1111
+ "Pool",
1112
+ "ByteVec"
1113
+ ]
1114
+ },
1115
+ {
1116
+ "name": "swapExactOut",
1117
+ "paramNames": [
1118
+ "p",
1119
+ "refRewards"
1120
+ ],
1121
+ "paramTypes": [
1122
+ "SwapParams",
1123
+ "U256"
1124
+ ],
1125
+ "paramIsMutable": [
1126
+ false,
1127
+ false
1128
+ ],
1129
+ "returnTypes": []
1130
+ },
1131
+ {
1132
+ "name": "swapExactIn",
1133
+ "paramNames": [
1134
+ "p",
1135
+ "refRewards"
1136
+ ],
1137
+ "paramTypes": [
1138
+ "SwapParams",
1139
+ "U256"
1140
+ ],
1141
+ "paramIsMutable": [
1142
+ false,
1143
+ false
1144
+ ],
1145
+ "returnTypes": []
1146
+ },
1147
+ {
1148
+ "name": "getSqrtPricesX96",
1149
+ "paramNames": [
1150
+ "tickLower",
1151
+ "tickUpper"
1152
+ ],
1153
+ "paramTypes": [
1154
+ "I256",
1155
+ "I256"
1156
+ ],
1157
+ "paramIsMutable": [
1158
+ false,
1159
+ false
1160
+ ],
1161
+ "returnTypes": [
1162
+ "U256",
1163
+ "U256",
1164
+ "U256"
1165
+ ]
1166
+ },
1167
+ {
1168
+ "name": "updateReward",
1169
+ "paramNames": [
1170
+ "index",
1171
+ "blockTime"
1172
+ ],
1173
+ "paramTypes": [
1174
+ "U256",
1175
+ "U256"
1176
+ ],
1177
+ "paramIsMutable": [
1178
+ false,
1179
+ false
1180
+ ],
1181
+ "returnTypes": []
1182
+ },
1183
+ {
1184
+ "name": "updateRewards",
1185
+ "paramNames": [
1186
+ "blockTime"
1187
+ ],
1188
+ "paramTypes": [
1189
+ "U256"
1190
+ ],
1191
+ "paramIsMutable": [
1192
+ false
1193
+ ],
1194
+ "returnTypes": []
1195
+ },
1196
+ {
1197
+ "name": "extendRewards",
1198
+ "paramNames": [
1199
+ "payer",
1200
+ "index",
1201
+ "amount"
1202
+ ],
1203
+ "paramTypes": [
1204
+ "Address",
1205
+ "U256",
1206
+ "U256"
1207
+ ],
1208
+ "paramIsMutable": [
1209
+ false,
1210
+ false,
1211
+ false
1212
+ ],
1213
+ "returnTypes": []
1214
+ },
1215
+ {
1216
+ "name": "setRewardParams",
1217
+ "paramNames": [
1218
+ "payer",
1219
+ "index",
1220
+ "openTime",
1221
+ "endTime",
1222
+ "amount"
1223
+ ],
1224
+ "paramTypes": [
1225
+ "Address",
1226
+ "U256",
1227
+ "U256",
1228
+ "U256",
1229
+ "U256"
1230
+ ],
1231
+ "paramIsMutable": [
1232
+ false,
1233
+ false,
1234
+ false,
1235
+ false,
1236
+ false
1237
+ ],
1238
+ "returnTypes": []
1239
+ },
1240
+ {
1241
+ "name": "collectProtocolFees",
1242
+ "paramNames": [
1243
+ "recipient"
1244
+ ],
1245
+ "paramTypes": [
1246
+ "Address"
1247
+ ],
1248
+ "paramIsMutable": [
1249
+ false
1250
+ ],
1251
+ "returnTypes": []
1252
+ },
1253
+ {
1254
+ "name": "positionInfo",
1255
+ "paramNames": [
1256
+ "owner",
1257
+ "tickLower",
1258
+ "tickUpper",
1259
+ "acc",
1260
+ "iacc0",
1261
+ "iacc1",
1262
+ "t0",
1263
+ "acct0"
1264
+ ],
1265
+ "paramTypes": [
1266
+ "Address",
1267
+ "I256",
1268
+ "I256",
1269
+ "U256",
1270
+ "U256",
1271
+ "U256",
1272
+ "U256",
1273
+ "U256"
1274
+ ],
1275
+ "paramIsMutable": [
1276
+ false,
1277
+ false,
1278
+ false,
1279
+ false,
1280
+ false,
1281
+ false,
1282
+ false,
1283
+ false
1284
+ ],
1285
+ "returnTypes": [
1286
+ "PositionInfo"
1287
+ ]
1288
+ },
1289
+ {
1290
+ "name": "getTokenUri",
1291
+ "paramNames": [],
1292
+ "paramTypes": [],
1293
+ "paramIsMutable": [],
1294
+ "returnTypes": [
1295
+ "ByteVec"
1296
+ ]
1297
+ }
1298
+ ],
1299
+ "constants": [
1300
+ {
1301
+ "name": "MAX_PIPS",
1302
+ "value": {
1303
+ "type": "U256",
1304
+ "value": "1000000"
1305
+ }
1306
+ }
1307
+ ],
1308
+ "enums": [
1309
+ {
1310
+ "name": "TickMathError",
1311
+ "fields": [
1312
+ {
1313
+ "name": "SqrtPriceX96OutOfBounds",
1314
+ "value": {
1315
+ "type": "U256",
1316
+ "value": "201"
1317
+ }
1318
+ },
1319
+ {
1320
+ "name": "TickOutOfBounds",
1321
+ "value": {
1322
+ "type": "U256",
1323
+ "value": "202"
1324
+ }
1325
+ }
1326
+ ]
1327
+ },
1328
+ {
1329
+ "name": "SqrtPriceMathError",
1330
+ "fields": [
1331
+ {
1332
+ "name": "SqrtFromAmountOverflow",
1333
+ "value": {
1334
+ "type": "U256",
1335
+ "value": "221"
1336
+ }
1337
+ },
1338
+ {
1339
+ "name": "QuotientTooHigh",
1340
+ "value": {
1341
+ "type": "U256",
1342
+ "value": "222"
1343
+ }
1344
+ },
1345
+ {
1346
+ "name": "PriceZero",
1347
+ "value": {
1348
+ "type": "U256",
1349
+ "value": "223"
1350
+ }
1351
+ },
1352
+ {
1353
+ "name": "NoLiquidity",
1354
+ "value": {
1355
+ "type": "U256",
1356
+ "value": "224"
1357
+ }
1358
+ },
1359
+ {
1360
+ "name": "PriceNotFitIn160",
1361
+ "value": {
1362
+ "type": "U256",
1363
+ "value": "225"
1364
+ }
1365
+ }
1366
+ ]
1367
+ },
1368
+ {
1369
+ "name": "FullMathError",
1370
+ "fields": [
1371
+ {
1372
+ "name": "MulDivOverflow",
1373
+ "value": {
1374
+ "type": "U256",
1375
+ "value": "351"
1376
+ }
1377
+ }
1378
+ ]
1379
+ },
1380
+ {
1381
+ "name": "TickBitmapError",
1382
+ "fields": [
1383
+ {
1384
+ "name": "TickNotAligned",
1385
+ "value": {
1386
+ "type": "U256",
1387
+ "value": "301"
1388
+ }
1389
+ }
1390
+ ]
1391
+ },
1392
+ {
1393
+ "name": "PathPrefixes",
1394
+ "fields": [
1395
+ {
1396
+ "name": "Tick",
1397
+ "value": {
1398
+ "type": "U256",
1399
+ "value": "0"
1400
+ }
1401
+ },
1402
+ {
1403
+ "name": "Position",
1404
+ "value": {
1405
+ "type": "U256",
1406
+ "value": "1"
1407
+ }
1408
+ },
1409
+ {
1410
+ "name": "Word",
1411
+ "value": {
1412
+ "type": "U256",
1413
+ "value": "2"
1414
+ }
1415
+ }
1416
+ ]
1417
+ },
1418
+ {
1419
+ "name": "PoolError",
1420
+ "fields": [
1421
+ {
1422
+ "name": "TLU",
1423
+ "value": {
1424
+ "type": "U256",
1425
+ "value": "102"
1426
+ }
1427
+ },
1428
+ {
1429
+ "name": "TLM",
1430
+ "value": {
1431
+ "type": "U256",
1432
+ "value": "103"
1433
+ }
1434
+ },
1435
+ {
1436
+ "name": "TUM",
1437
+ "value": {
1438
+ "type": "U256",
1439
+ "value": "104"
1440
+ }
1441
+ },
1442
+ {
1443
+ "name": "AS",
1444
+ "value": {
1445
+ "type": "U256",
1446
+ "value": "105"
1447
+ }
1448
+ },
1449
+ {
1450
+ "name": "SPL",
1451
+ "value": {
1452
+ "type": "U256",
1453
+ "value": "106"
1454
+ }
1455
+ },
1456
+ {
1457
+ "name": "NP",
1458
+ "value": {
1459
+ "type": "U256",
1460
+ "value": "107"
1461
+ }
1462
+ },
1463
+ {
1464
+ "name": "UnauthorizedMint",
1465
+ "value": {
1466
+ "type": "U256",
1467
+ "value": "108"
1468
+ }
1469
+ },
1470
+ {
1471
+ "name": "NFTNotPartOfCollection",
1472
+ "value": {
1473
+ "type": "U256",
1474
+ "value": "109"
1475
+ }
1476
+ },
1477
+ {
1478
+ "name": "NFTByIndexNotSupported",
1479
+ "value": {
1480
+ "type": "U256",
1481
+ "value": "110"
1482
+ }
1483
+ },
1484
+ {
1485
+ "name": "UnauthorizedRewardSender",
1486
+ "value": {
1487
+ "type": "U256",
1488
+ "value": "111"
1489
+ }
1490
+ },
1491
+ {
1492
+ "name": "InvalidRewardParams",
1493
+ "value": {
1494
+ "type": "U256",
1495
+ "value": "112"
1496
+ }
1497
+ },
1498
+ {
1499
+ "name": "DexAccountNotFound",
1500
+ "value": {
1501
+ "type": "U256",
1502
+ "value": "113"
1503
+ }
1504
+ },
1505
+ {
1506
+ "name": "InvalidRewardIndex",
1507
+ "value": {
1508
+ "type": "U256",
1509
+ "value": "114"
1510
+ }
1511
+ },
1512
+ {
1513
+ "name": "RewardPeriodEnded",
1514
+ "value": {
1515
+ "type": "U256",
1516
+ "value": "115"
1517
+ }
1518
+ },
1519
+ {
1520
+ "name": "ZeroRewardAmount",
1521
+ "value": {
1522
+ "type": "U256",
1523
+ "value": "116"
1524
+ }
1525
+ }
1526
+ ]
1527
+ }
1528
+ ],
1529
+ "stdInterfaceId": "0002"
1530
+ }