@paraswap/dex-lib 2.42.22 → 2.42.23

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 (225) hide show
  1. package/build/abi/hashflow/HashflowRouter.abi.json +816 -246
  2. package/build/abi/kyberswap-elastic/IAntiSnipAttackPositionManager.json +1276 -0
  3. package/build/abi/kyberswap-elastic/IFactory.json +550 -0
  4. package/build/abi/kyberswap-elastic/IPool.json +1042 -0
  5. package/build/abi/kyberswap-elastic/IQuoterV2.json +226 -0
  6. package/build/abi/kyberswap-elastic/IRouter.json +239 -0
  7. package/build/abi/kyberswap-elastic/TicksFeesReader.json +142 -0
  8. package/build/abi/wombat/asset.json +769 -0
  9. package/build/abi/wombat/bmw.json +1247 -0
  10. package/build/abi/wombat/pool.json +1364 -0
  11. package/build/config.js +14 -14
  12. package/build/dex/baseswap-v3/baseswap-v3-factory.d.ts +26 -0
  13. package/build/dex/baseswap-v3/baseswap-v3-factory.js +44 -0
  14. package/build/dex/baseswap-v3/baseswap-v3-factory.js.map +1 -0
  15. package/build/dex/baseswap-v3/baseswap-v3-pool.d.ts +46 -0
  16. package/build/dex/baseswap-v3/baseswap-v3-pool.js +312 -0
  17. package/build/dex/baseswap-v3/baseswap-v3-pool.js.map +1 -0
  18. package/build/dex/baseswap-v3/baseswap-v3.d.ts +71 -0
  19. package/build/dex/baseswap-v3/baseswap-v3.js +752 -0
  20. package/build/dex/baseswap-v3/baseswap-v3.js.map +1 -0
  21. package/build/dex/baseswap-v3/config.d.ts +9 -0
  22. package/build/dex/baseswap-v3/config.js +48 -0
  23. package/build/dex/baseswap-v3/config.js.map +1 -0
  24. package/build/dex/baseswap-v3/constants.d.ts +28 -0
  25. package/build/dex/baseswap-v3/constants.js +35 -0
  26. package/build/dex/baseswap-v3/constants.js.map +1 -0
  27. package/build/dex/baseswap-v3/contract-math/BitMath.d.ts +4 -0
  28. package/build/dex/baseswap-v3/contract-math/BitMath.js +93 -0
  29. package/build/dex/baseswap-v3/contract-math/BitMath.js.map +1 -0
  30. package/build/dex/baseswap-v3/contract-math/FixedPoint128.d.ts +3 -0
  31. package/build/dex/baseswap-v3/contract-math/FixedPoint128.js +8 -0
  32. package/build/dex/baseswap-v3/contract-math/FixedPoint128.js.map +1 -0
  33. package/build/dex/baseswap-v3/contract-math/FixedPoint96.d.ts +4 -0
  34. package/build/dex/baseswap-v3/contract-math/FixedPoint96.js +9 -0
  35. package/build/dex/baseswap-v3/contract-math/FixedPoint96.js.map +1 -0
  36. package/build/dex/baseswap-v3/contract-math/FullMath.d.ts +4 -0
  37. package/build/dex/baseswap-v3/contract-math/FullMath.js +19 -0
  38. package/build/dex/baseswap-v3/contract-math/FullMath.js.map +1 -0
  39. package/build/dex/baseswap-v3/contract-math/LiquidityMath.d.ts +3 -0
  40. package/build/dex/baseswap-v3/contract-math/LiquidityMath.js +22 -0
  41. package/build/dex/baseswap-v3/contract-math/LiquidityMath.js.map +1 -0
  42. package/build/dex/baseswap-v3/contract-math/Oracle.d.ts +10 -0
  43. package/build/dex/baseswap-v3/contract-math/Oracle.js +133 -0
  44. package/build/dex/baseswap-v3/contract-math/Oracle.js.map +1 -0
  45. package/build/dex/baseswap-v3/contract-math/SqrtPriceMath.d.ts +10 -0
  46. package/build/dex/baseswap-v3/contract-math/SqrtPriceMath.js +91 -0
  47. package/build/dex/baseswap-v3/contract-math/SqrtPriceMath.js.map +1 -0
  48. package/build/dex/baseswap-v3/contract-math/SwapMath.d.ts +8 -0
  49. package/build/dex/baseswap-v3/contract-math/SwapMath.js +70 -0
  50. package/build/dex/baseswap-v3/contract-math/SwapMath.js.map +1 -0
  51. package/build/dex/baseswap-v3/contract-math/Tick.d.ts +7 -0
  52. package/build/dex/baseswap-v3/contract-math/Tick.js +45 -0
  53. package/build/dex/baseswap-v3/contract-math/Tick.js.map +1 -0
  54. package/build/dex/baseswap-v3/contract-math/TickBitMap.d.ts +7 -0
  55. package/build/dex/baseswap-v3/contract-math/TickBitMap.js +84 -0
  56. package/build/dex/baseswap-v3/contract-math/TickBitMap.js.map +1 -0
  57. package/build/dex/baseswap-v3/contract-math/TickMath.d.ts +8 -0
  58. package/build/dex/baseswap-v3/contract-math/TickMath.js +162 -0
  59. package/build/dex/baseswap-v3/contract-math/TickMath.js.map +1 -0
  60. package/build/dex/baseswap-v3/contract-math/UnsafeMath.d.ts +3 -0
  61. package/build/dex/baseswap-v3/contract-math/UnsafeMath.js +10 -0
  62. package/build/dex/baseswap-v3/contract-math/UnsafeMath.js.map +1 -0
  63. package/build/dex/baseswap-v3/contract-math/uniswap-v3-math.d.ts +37 -0
  64. package/build/dex/baseswap-v3/contract-math/uniswap-v3-math.js +393 -0
  65. package/build/dex/baseswap-v3/contract-math/uniswap-v3-math.js.map +1 -0
  66. package/build/dex/baseswap-v3/contract-math/utils.d.ts +7 -0
  67. package/build/dex/baseswap-v3/contract-math/utils.js +42 -0
  68. package/build/dex/baseswap-v3/contract-math/utils.js.map +1 -0
  69. package/build/dex/baseswap-v3/types.d.ts +164 -0
  70. package/build/dex/baseswap-v3/types.js +9 -0
  71. package/build/dex/baseswap-v3/types.js.map +1 -0
  72. package/build/dex/baseswap-v3/utils.d.ts +6 -0
  73. package/build/dex/baseswap-v3/utils.js +65 -0
  74. package/build/dex/baseswap-v3/utils.js.map +1 -0
  75. package/build/dex/hashflow/config.d.ts +1 -1
  76. package/build/dex/hashflow/config.js +6 -6
  77. package/build/dex/hashflow/config.js.map +1 -1
  78. package/build/dex/hashflow/hashflow.d.ts +7 -7
  79. package/build/dex/hashflow/hashflow.js +47 -54
  80. package/build/dex/hashflow/hashflow.js.map +1 -1
  81. package/build/dex/hashflow/rate-fetcher.d.ts +1 -1
  82. package/build/dex/hashflow/rate-fetcher.js +2 -4
  83. package/build/dex/hashflow/rate-fetcher.js.map +1 -1
  84. package/build/dex/hashflow/types.d.ts +5 -6
  85. package/build/dex/hashflow/types.js.map +1 -1
  86. package/build/dex/hashflow/validators.js +11 -4
  87. package/build/dex/hashflow/validators.js.map +1 -1
  88. package/build/dex/hello/config.d.ts +4 -0
  89. package/build/dex/hello/config.js +15 -0
  90. package/build/dex/hello/config.js.map +1 -0
  91. package/build/dex/hello/hello-pool.d.ts +39 -0
  92. package/build/dex/hello/hello-pool.js +64 -0
  93. package/build/dex/hello/hello-pool.js.map +1 -0
  94. package/build/dex/hello/hello.d.ts +37 -0
  95. package/build/dex/hello/hello.js +126 -0
  96. package/build/dex/hello/hello.js.map +1 -0
  97. package/build/dex/hello/types.d.ts +6 -0
  98. package/build/dex/hello/types.js +3 -0
  99. package/build/dex/hello/types.js.map +1 -0
  100. package/build/dex/kyberswap-elastic/config.d.ts +4 -0
  101. package/build/dex/kyberswap-elastic/config.js +80 -0
  102. package/build/dex/kyberswap-elastic/config.js.map +1 -0
  103. package/build/dex/kyberswap-elastic/constants.d.ts +17 -0
  104. package/build/dex/kyberswap-elastic/constants.js +42 -0
  105. package/build/dex/kyberswap-elastic/constants.js.map +1 -0
  106. package/build/dex/kyberswap-elastic/contract-math/FixedPoint96.d.ts +4 -0
  107. package/build/dex/kyberswap-elastic/contract-math/FixedPoint96.js +9 -0
  108. package/build/dex/kyberswap-elastic/contract-math/FixedPoint96.js.map +1 -0
  109. package/build/dex/kyberswap-elastic/contract-math/FullMath.d.ts +5 -0
  110. package/build/dex/kyberswap-elastic/contract-math/FullMath.js +22 -0
  111. package/build/dex/kyberswap-elastic/contract-math/FullMath.js.map +1 -0
  112. package/build/dex/kyberswap-elastic/contract-math/LiqDeltaMath.d.ts +3 -0
  113. package/build/dex/kyberswap-elastic/contract-math/LiqDeltaMath.js +12 -0
  114. package/build/dex/kyberswap-elastic/contract-math/LiqDeltaMath.js.map +1 -0
  115. package/build/dex/kyberswap-elastic/contract-math/LiquidityMath.d.ts +3 -0
  116. package/build/dex/kyberswap-elastic/contract-math/LiquidityMath.js +22 -0
  117. package/build/dex/kyberswap-elastic/contract-math/LiquidityMath.js.map +1 -0
  118. package/build/dex/kyberswap-elastic/contract-math/QtyDeltaMath.d.ts +5 -0
  119. package/build/dex/kyberswap-elastic/contract-math/QtyDeltaMath.js +25 -0
  120. package/build/dex/kyberswap-elastic/contract-math/QtyDeltaMath.js.map +1 -0
  121. package/build/dex/kyberswap-elastic/contract-math/QuadMath.d.ts +4 -0
  122. package/build/dex/kyberswap-elastic/contract-math/QuadMath.js +27 -0
  123. package/build/dex/kyberswap-elastic/contract-math/QuadMath.js.map +1 -0
  124. package/build/dex/kyberswap-elastic/contract-math/ReinvestmentMath.d.ts +3 -0
  125. package/build/dex/kyberswap-elastic/contract-math/ReinvestmentMath.js +14 -0
  126. package/build/dex/kyberswap-elastic/contract-math/ReinvestmentMath.js.map +1 -0
  127. package/build/dex/kyberswap-elastic/contract-math/SafeCast.d.ts +8 -0
  128. package/build/dex/kyberswap-elastic/contract-math/SafeCast.js +30 -0
  129. package/build/dex/kyberswap-elastic/contract-math/SafeCast.js.map +1 -0
  130. package/build/dex/kyberswap-elastic/contract-math/SqrtPriceMath.d.ts +10 -0
  131. package/build/dex/kyberswap-elastic/contract-math/SqrtPriceMath.js +91 -0
  132. package/build/dex/kyberswap-elastic/contract-math/SqrtPriceMath.js.map +1 -0
  133. package/build/dex/kyberswap-elastic/contract-math/SwapMath.d.ts +13 -0
  134. package/build/dex/kyberswap-elastic/contract-math/SwapMath.js +188 -0
  135. package/build/dex/kyberswap-elastic/contract-math/SwapMath.js.map +1 -0
  136. package/build/dex/kyberswap-elastic/contract-math/TickLinkedList.d.ts +6 -0
  137. package/build/dex/kyberswap-elastic/contract-math/TickLinkedList.js +41 -0
  138. package/build/dex/kyberswap-elastic/contract-math/TickLinkedList.js.map +1 -0
  139. package/build/dex/kyberswap-elastic/contract-math/TickMath.d.ts +9 -0
  140. package/build/dex/kyberswap-elastic/contract-math/TickMath.js +165 -0
  141. package/build/dex/kyberswap-elastic/contract-math/TickMath.js.map +1 -0
  142. package/build/dex/kyberswap-elastic/contract-math/UnsafeMath.d.ts +3 -0
  143. package/build/dex/kyberswap-elastic/contract-math/UnsafeMath.js +10 -0
  144. package/build/dex/kyberswap-elastic/contract-math/UnsafeMath.js.map +1 -0
  145. package/build/dex/kyberswap-elastic/contract-math/kyberswap-elastic-math.d.ts +28 -0
  146. package/build/dex/kyberswap-elastic/contract-math/kyberswap-elastic-math.js +502 -0
  147. package/build/dex/kyberswap-elastic/contract-math/kyberswap-elastic-math.js.map +1 -0
  148. package/build/dex/kyberswap-elastic/contract-math/utils.d.ts +3 -0
  149. package/build/dex/kyberswap-elastic/contract-math/utils.js +16 -0
  150. package/build/dex/kyberswap-elastic/contract-math/utils.js.map +1 -0
  151. package/build/dex/kyberswap-elastic/errors.d.ts +2 -0
  152. package/build/dex/kyberswap-elastic/errors.js +6 -0
  153. package/build/dex/kyberswap-elastic/errors.js.map +1 -0
  154. package/build/dex/kyberswap-elastic/kyberswap-elastic-pool.d.ts +80 -0
  155. package/build/dex/kyberswap-elastic/kyberswap-elastic-pool.js +458 -0
  156. package/build/dex/kyberswap-elastic/kyberswap-elastic-pool.js.map +1 -0
  157. package/build/dex/kyberswap-elastic/kyberswap-elastic.d.ts +53 -0
  158. package/build/dex/kyberswap-elastic/kyberswap-elastic.js +610 -0
  159. package/build/dex/kyberswap-elastic/kyberswap-elastic.js.map +1 -0
  160. package/build/dex/kyberswap-elastic/types.d.ts +134 -0
  161. package/build/dex/kyberswap-elastic/types.js +9 -0
  162. package/build/dex/kyberswap-elastic/types.js.map +1 -0
  163. package/build/dex/kyberswap-elastic/utils/decoders.d.ts +9 -0
  164. package/build/dex/kyberswap-elastic/utils/decoders.js +78 -0
  165. package/build/dex/kyberswap-elastic/utils/decoders.js.map +1 -0
  166. package/build/dex/morphex/config.d.ts +11 -0
  167. package/build/dex/morphex/config.js +43 -0
  168. package/build/dex/morphex/config.js.map +1 -0
  169. package/build/dex/morphex/morphex.d.ts +25 -0
  170. package/build/dex/morphex/morphex.js +19 -0
  171. package/build/dex/morphex/morphex.js.map +1 -0
  172. package/build/dex/my-test-dex/config.d.ts +4 -0
  173. package/build/dex/my-test-dex/config.js +15 -0
  174. package/build/dex/my-test-dex/config.js.map +1 -0
  175. package/build/dex/my-test-dex/my-test-dex-pool.d.ts +39 -0
  176. package/build/dex/my-test-dex/my-test-dex-pool.js +64 -0
  177. package/build/dex/my-test-dex/my-test-dex-pool.js.map +1 -0
  178. package/build/dex/my-test-dex/my-test-dex.d.ts +37 -0
  179. package/build/dex/my-test-dex/my-test-dex.js +126 -0
  180. package/build/dex/my-test-dex/my-test-dex.js.map +1 -0
  181. package/build/dex/my-test-dex/types.d.ts +6 -0
  182. package/build/dex/my-test-dex/types.js +3 -0
  183. package/build/dex/my-test-dex/types.js.map +1 -0
  184. package/build/dex/solidly/forks-override/fvm.d.ts +20 -0
  185. package/build/dex/solidly/forks-override/fvm.js +42 -0
  186. package/build/dex/solidly/forks-override/fvm.js.map +1 -0
  187. package/build/dex/wombat/config.d.ts +4 -0
  188. package/build/dex/wombat/config.js +99 -0
  189. package/build/dex/wombat/config.js.map +1 -0
  190. package/build/dex/wombat/types.d.ts +33 -0
  191. package/build/dex/wombat/types.js +3 -0
  192. package/build/dex/wombat/types.js.map +1 -0
  193. package/build/dex/wombat/utils.d.ts +9 -0
  194. package/build/dex/wombat/utils.js +66 -0
  195. package/build/dex/wombat/utils.js.map +1 -0
  196. package/build/dex/wombat/wombat-bmw.d.ts +40 -0
  197. package/build/dex/wombat/wombat-bmw.js +147 -0
  198. package/build/dex/wombat/wombat-bmw.js.map +1 -0
  199. package/build/dex/wombat/wombat-pool.d.ts +22 -0
  200. package/build/dex/wombat/wombat-pool.js +161 -0
  201. package/build/dex/wombat/wombat-pool.js.map +1 -0
  202. package/build/dex/wombat/wombat-quoter.d.ts +16 -0
  203. package/build/dex/wombat/wombat-quoter.js +176 -0
  204. package/build/dex/wombat/wombat-quoter.js.map +1 -0
  205. package/build/dex/wombat/wombat.d.ts +55 -0
  206. package/build/dex/wombat/wombat.js +290 -0
  207. package/build/dex/wombat/wombat.js.map +1 -0
  208. package/build/lib/fetcher/fetcher.d.ts +1 -1
  209. package/build/lib/fetcher/fetcher.js.map +1 -1
  210. package/package.json +2 -2
  211. package/src/abi/hashflow/HashflowRouter.abi.json +816 -246
  212. package/src/config.ts +14 -14
  213. package/src/dex/hashflow/config.ts +8 -8
  214. package/src/dex/hashflow/hashflow-e2e.test.ts +4 -4
  215. package/src/dex/hashflow/hashflow-integration.test.ts +9 -6
  216. package/src/dex/hashflow/hashflow.ts +70 -87
  217. package/src/dex/hashflow/rate-fetcher.ts +6 -8
  218. package/src/dex/hashflow/types.ts +5 -6
  219. package/src/dex/hashflow/validators.ts +11 -4
  220. package/src/lib/fetcher/fetcher.ts +2 -2
  221. package/tests/constants-e2e.ts +1 -1
  222. package/tests/tenderly-simulation.ts +5 -2
  223. package/.vscode/launch.json +0 -39
  224. package/.vscode/settings.json +0 -2
  225. package/.vscode/tasks.json +0 -15
@@ -0,0 +1,1042 @@
1
+ [
2
+ {
3
+ "inputs": [],
4
+ "stateMutability": "nonpayable",
5
+ "type": "constructor"
6
+ },
7
+ {
8
+ "anonymous": false,
9
+ "inputs": [
10
+ {
11
+ "indexed": true,
12
+ "internalType": "address",
13
+ "name": "owner",
14
+ "type": "address"
15
+ },
16
+ {
17
+ "indexed": true,
18
+ "internalType": "address",
19
+ "name": "spender",
20
+ "type": "address"
21
+ },
22
+ {
23
+ "indexed": false,
24
+ "internalType": "uint256",
25
+ "name": "value",
26
+ "type": "uint256"
27
+ }
28
+ ],
29
+ "name": "Approval",
30
+ "type": "event"
31
+ },
32
+ {
33
+ "anonymous": false,
34
+ "inputs": [
35
+ {
36
+ "indexed": true,
37
+ "internalType": "address",
38
+ "name": "owner",
39
+ "type": "address"
40
+ },
41
+ {
42
+ "indexed": true,
43
+ "internalType": "int24",
44
+ "name": "tickLower",
45
+ "type": "int24"
46
+ },
47
+ {
48
+ "indexed": true,
49
+ "internalType": "int24",
50
+ "name": "tickUpper",
51
+ "type": "int24"
52
+ },
53
+ {
54
+ "indexed": false,
55
+ "internalType": "uint128",
56
+ "name": "qty",
57
+ "type": "uint128"
58
+ },
59
+ {
60
+ "indexed": false,
61
+ "internalType": "uint256",
62
+ "name": "qty0",
63
+ "type": "uint256"
64
+ },
65
+ {
66
+ "indexed": false,
67
+ "internalType": "uint256",
68
+ "name": "qty1",
69
+ "type": "uint256"
70
+ }
71
+ ],
72
+ "name": "Burn",
73
+ "type": "event"
74
+ },
75
+ {
76
+ "anonymous": false,
77
+ "inputs": [
78
+ {
79
+ "indexed": true,
80
+ "internalType": "address",
81
+ "name": "owner",
82
+ "type": "address"
83
+ },
84
+ {
85
+ "indexed": false,
86
+ "internalType": "uint256",
87
+ "name": "qty",
88
+ "type": "uint256"
89
+ },
90
+ {
91
+ "indexed": false,
92
+ "internalType": "uint256",
93
+ "name": "qty0",
94
+ "type": "uint256"
95
+ },
96
+ {
97
+ "indexed": false,
98
+ "internalType": "uint256",
99
+ "name": "qty1",
100
+ "type": "uint256"
101
+ }
102
+ ],
103
+ "name": "BurnRTokens",
104
+ "type": "event"
105
+ },
106
+ {
107
+ "anonymous": false,
108
+ "inputs": [
109
+ {
110
+ "indexed": true,
111
+ "internalType": "address",
112
+ "name": "sender",
113
+ "type": "address"
114
+ },
115
+ {
116
+ "indexed": true,
117
+ "internalType": "address",
118
+ "name": "recipient",
119
+ "type": "address"
120
+ },
121
+ {
122
+ "indexed": false,
123
+ "internalType": "uint256",
124
+ "name": "qty0",
125
+ "type": "uint256"
126
+ },
127
+ {
128
+ "indexed": false,
129
+ "internalType": "uint256",
130
+ "name": "qty1",
131
+ "type": "uint256"
132
+ },
133
+ {
134
+ "indexed": false,
135
+ "internalType": "uint256",
136
+ "name": "paid0",
137
+ "type": "uint256"
138
+ },
139
+ {
140
+ "indexed": false,
141
+ "internalType": "uint256",
142
+ "name": "paid1",
143
+ "type": "uint256"
144
+ }
145
+ ],
146
+ "name": "Flash",
147
+ "type": "event"
148
+ },
149
+ {
150
+ "anonymous": false,
151
+ "inputs": [
152
+ {
153
+ "indexed": false,
154
+ "internalType": "uint160",
155
+ "name": "sqrtP",
156
+ "type": "uint160"
157
+ },
158
+ {
159
+ "indexed": false,
160
+ "internalType": "int24",
161
+ "name": "tick",
162
+ "type": "int24"
163
+ }
164
+ ],
165
+ "name": "Initialize",
166
+ "type": "event"
167
+ },
168
+ {
169
+ "anonymous": false,
170
+ "inputs": [
171
+ {
172
+ "indexed": false,
173
+ "internalType": "address",
174
+ "name": "sender",
175
+ "type": "address"
176
+ },
177
+ {
178
+ "indexed": true,
179
+ "internalType": "address",
180
+ "name": "owner",
181
+ "type": "address"
182
+ },
183
+ {
184
+ "indexed": true,
185
+ "internalType": "int24",
186
+ "name": "tickLower",
187
+ "type": "int24"
188
+ },
189
+ {
190
+ "indexed": true,
191
+ "internalType": "int24",
192
+ "name": "tickUpper",
193
+ "type": "int24"
194
+ },
195
+ {
196
+ "indexed": false,
197
+ "internalType": "uint128",
198
+ "name": "qty",
199
+ "type": "uint128"
200
+ },
201
+ {
202
+ "indexed": false,
203
+ "internalType": "uint256",
204
+ "name": "qty0",
205
+ "type": "uint256"
206
+ },
207
+ {
208
+ "indexed": false,
209
+ "internalType": "uint256",
210
+ "name": "qty1",
211
+ "type": "uint256"
212
+ }
213
+ ],
214
+ "name": "Mint",
215
+ "type": "event"
216
+ },
217
+ {
218
+ "anonymous": false,
219
+ "inputs": [
220
+ {
221
+ "indexed": true,
222
+ "internalType": "address",
223
+ "name": "sender",
224
+ "type": "address"
225
+ },
226
+ {
227
+ "indexed": true,
228
+ "internalType": "address",
229
+ "name": "recipient",
230
+ "type": "address"
231
+ },
232
+ {
233
+ "indexed": false,
234
+ "internalType": "int256",
235
+ "name": "deltaQty0",
236
+ "type": "int256"
237
+ },
238
+ {
239
+ "indexed": false,
240
+ "internalType": "int256",
241
+ "name": "deltaQty1",
242
+ "type": "int256"
243
+ },
244
+ {
245
+ "indexed": false,
246
+ "internalType": "uint160",
247
+ "name": "sqrtP",
248
+ "type": "uint160"
249
+ },
250
+ {
251
+ "indexed": false,
252
+ "internalType": "uint128",
253
+ "name": "liquidity",
254
+ "type": "uint128"
255
+ },
256
+ {
257
+ "indexed": false,
258
+ "internalType": "int24",
259
+ "name": "currentTick",
260
+ "type": "int24"
261
+ }
262
+ ],
263
+ "name": "Swap",
264
+ "type": "event"
265
+ },
266
+ {
267
+ "anonymous": false,
268
+ "inputs": [
269
+ {
270
+ "indexed": true,
271
+ "internalType": "address",
272
+ "name": "from",
273
+ "type": "address"
274
+ },
275
+ {
276
+ "indexed": true,
277
+ "internalType": "address",
278
+ "name": "to",
279
+ "type": "address"
280
+ },
281
+ {
282
+ "indexed": false,
283
+ "internalType": "uint256",
284
+ "name": "value",
285
+ "type": "uint256"
286
+ }
287
+ ],
288
+ "name": "Transfer",
289
+ "type": "event"
290
+ },
291
+ {
292
+ "inputs": [
293
+ {
294
+ "internalType": "address",
295
+ "name": "owner",
296
+ "type": "address"
297
+ },
298
+ {
299
+ "internalType": "address",
300
+ "name": "spender",
301
+ "type": "address"
302
+ }
303
+ ],
304
+ "name": "allowance",
305
+ "outputs": [
306
+ {
307
+ "internalType": "uint256",
308
+ "name": "",
309
+ "type": "uint256"
310
+ }
311
+ ],
312
+ "stateMutability": "view",
313
+ "type": "function"
314
+ },
315
+ {
316
+ "inputs": [
317
+ {
318
+ "internalType": "address",
319
+ "name": "spender",
320
+ "type": "address"
321
+ },
322
+ {
323
+ "internalType": "uint256",
324
+ "name": "amount",
325
+ "type": "uint256"
326
+ }
327
+ ],
328
+ "name": "approve",
329
+ "outputs": [
330
+ {
331
+ "internalType": "bool",
332
+ "name": "",
333
+ "type": "bool"
334
+ }
335
+ ],
336
+ "stateMutability": "nonpayable",
337
+ "type": "function"
338
+ },
339
+ {
340
+ "inputs": [
341
+ {
342
+ "internalType": "address",
343
+ "name": "account",
344
+ "type": "address"
345
+ }
346
+ ],
347
+ "name": "balanceOf",
348
+ "outputs": [
349
+ {
350
+ "internalType": "uint256",
351
+ "name": "",
352
+ "type": "uint256"
353
+ }
354
+ ],
355
+ "stateMutability": "view",
356
+ "type": "function"
357
+ },
358
+ {
359
+ "inputs": [
360
+ {
361
+ "internalType": "int24",
362
+ "name": "tickLower",
363
+ "type": "int24"
364
+ },
365
+ {
366
+ "internalType": "int24",
367
+ "name": "tickUpper",
368
+ "type": "int24"
369
+ },
370
+ {
371
+ "internalType": "uint128",
372
+ "name": "qty",
373
+ "type": "uint128"
374
+ }
375
+ ],
376
+ "name": "burn",
377
+ "outputs": [
378
+ {
379
+ "internalType": "uint256",
380
+ "name": "qty0",
381
+ "type": "uint256"
382
+ },
383
+ {
384
+ "internalType": "uint256",
385
+ "name": "qty1",
386
+ "type": "uint256"
387
+ },
388
+ {
389
+ "internalType": "uint256",
390
+ "name": "feeGrowthInsideLast",
391
+ "type": "uint256"
392
+ }
393
+ ],
394
+ "stateMutability": "nonpayable",
395
+ "type": "function"
396
+ },
397
+ {
398
+ "inputs": [
399
+ {
400
+ "internalType": "uint256",
401
+ "name": "_qty",
402
+ "type": "uint256"
403
+ },
404
+ {
405
+ "internalType": "bool",
406
+ "name": "isLogicalBurn",
407
+ "type": "bool"
408
+ }
409
+ ],
410
+ "name": "burnRTokens",
411
+ "outputs": [
412
+ {
413
+ "internalType": "uint256",
414
+ "name": "qty0",
415
+ "type": "uint256"
416
+ },
417
+ {
418
+ "internalType": "uint256",
419
+ "name": "qty1",
420
+ "type": "uint256"
421
+ }
422
+ ],
423
+ "stateMutability": "nonpayable",
424
+ "type": "function"
425
+ },
426
+ {
427
+ "inputs": [],
428
+ "name": "decimals",
429
+ "outputs": [
430
+ {
431
+ "internalType": "uint8",
432
+ "name": "",
433
+ "type": "uint8"
434
+ }
435
+ ],
436
+ "stateMutability": "view",
437
+ "type": "function"
438
+ },
439
+ {
440
+ "inputs": [
441
+ {
442
+ "internalType": "address",
443
+ "name": "spender",
444
+ "type": "address"
445
+ },
446
+ {
447
+ "internalType": "uint256",
448
+ "name": "subtractedValue",
449
+ "type": "uint256"
450
+ }
451
+ ],
452
+ "name": "decreaseAllowance",
453
+ "outputs": [
454
+ {
455
+ "internalType": "bool",
456
+ "name": "",
457
+ "type": "bool"
458
+ }
459
+ ],
460
+ "stateMutability": "nonpayable",
461
+ "type": "function"
462
+ },
463
+ {
464
+ "inputs": [],
465
+ "name": "factory",
466
+ "outputs": [
467
+ {
468
+ "internalType": "contract IFactory",
469
+ "name": "",
470
+ "type": "address"
471
+ }
472
+ ],
473
+ "stateMutability": "view",
474
+ "type": "function"
475
+ },
476
+ {
477
+ "inputs": [
478
+ {
479
+ "internalType": "address",
480
+ "name": "recipient",
481
+ "type": "address"
482
+ },
483
+ {
484
+ "internalType": "uint256",
485
+ "name": "qty0",
486
+ "type": "uint256"
487
+ },
488
+ {
489
+ "internalType": "uint256",
490
+ "name": "qty1",
491
+ "type": "uint256"
492
+ },
493
+ {
494
+ "internalType": "bytes",
495
+ "name": "data",
496
+ "type": "bytes"
497
+ }
498
+ ],
499
+ "name": "flash",
500
+ "outputs": [],
501
+ "stateMutability": "nonpayable",
502
+ "type": "function"
503
+ },
504
+ {
505
+ "inputs": [],
506
+ "name": "getFeeGrowthGlobal",
507
+ "outputs": [
508
+ {
509
+ "internalType": "uint256",
510
+ "name": "",
511
+ "type": "uint256"
512
+ }
513
+ ],
514
+ "stateMutability": "view",
515
+ "type": "function"
516
+ },
517
+ {
518
+ "inputs": [],
519
+ "name": "getLiquidityState",
520
+ "outputs": [
521
+ {
522
+ "internalType": "uint128",
523
+ "name": "baseL",
524
+ "type": "uint128"
525
+ },
526
+ {
527
+ "internalType": "uint128",
528
+ "name": "reinvestL",
529
+ "type": "uint128"
530
+ },
531
+ {
532
+ "internalType": "uint128",
533
+ "name": "reinvestLLast",
534
+ "type": "uint128"
535
+ }
536
+ ],
537
+ "stateMutability": "view",
538
+ "type": "function"
539
+ },
540
+ {
541
+ "inputs": [],
542
+ "name": "getPoolState",
543
+ "outputs": [
544
+ {
545
+ "internalType": "uint160",
546
+ "name": "sqrtP",
547
+ "type": "uint160"
548
+ },
549
+ {
550
+ "internalType": "int24",
551
+ "name": "currentTick",
552
+ "type": "int24"
553
+ },
554
+ {
555
+ "internalType": "int24",
556
+ "name": "nearestCurrentTick",
557
+ "type": "int24"
558
+ },
559
+ {
560
+ "internalType": "bool",
561
+ "name": "locked",
562
+ "type": "bool"
563
+ }
564
+ ],
565
+ "stateMutability": "view",
566
+ "type": "function"
567
+ },
568
+ {
569
+ "inputs": [
570
+ {
571
+ "internalType": "address",
572
+ "name": "owner",
573
+ "type": "address"
574
+ },
575
+ {
576
+ "internalType": "int24",
577
+ "name": "tickLower",
578
+ "type": "int24"
579
+ },
580
+ {
581
+ "internalType": "int24",
582
+ "name": "tickUpper",
583
+ "type": "int24"
584
+ }
585
+ ],
586
+ "name": "getPositions",
587
+ "outputs": [
588
+ {
589
+ "internalType": "uint128",
590
+ "name": "liquidity",
591
+ "type": "uint128"
592
+ },
593
+ {
594
+ "internalType": "uint256",
595
+ "name": "feeGrowthInsideLast",
596
+ "type": "uint256"
597
+ }
598
+ ],
599
+ "stateMutability": "view",
600
+ "type": "function"
601
+ },
602
+ {
603
+ "inputs": [],
604
+ "name": "getSecondsPerLiquidityData",
605
+ "outputs": [
606
+ {
607
+ "internalType": "uint128",
608
+ "name": "secondsPerLiquidityGlobal",
609
+ "type": "uint128"
610
+ },
611
+ {
612
+ "internalType": "uint32",
613
+ "name": "lastUpdateTime",
614
+ "type": "uint32"
615
+ }
616
+ ],
617
+ "stateMutability": "view",
618
+ "type": "function"
619
+ },
620
+ {
621
+ "inputs": [
622
+ {
623
+ "internalType": "int24",
624
+ "name": "tickLower",
625
+ "type": "int24"
626
+ },
627
+ {
628
+ "internalType": "int24",
629
+ "name": "tickUpper",
630
+ "type": "int24"
631
+ }
632
+ ],
633
+ "name": "getSecondsPerLiquidityInside",
634
+ "outputs": [
635
+ {
636
+ "internalType": "uint128",
637
+ "name": "secondsPerLiquidityInside",
638
+ "type": "uint128"
639
+ }
640
+ ],
641
+ "stateMutability": "view",
642
+ "type": "function"
643
+ },
644
+ {
645
+ "inputs": [
646
+ {
647
+ "internalType": "address",
648
+ "name": "spender",
649
+ "type": "address"
650
+ },
651
+ {
652
+ "internalType": "uint256",
653
+ "name": "addedValue",
654
+ "type": "uint256"
655
+ }
656
+ ],
657
+ "name": "increaseAllowance",
658
+ "outputs": [
659
+ {
660
+ "internalType": "bool",
661
+ "name": "",
662
+ "type": "bool"
663
+ }
664
+ ],
665
+ "stateMutability": "nonpayable",
666
+ "type": "function"
667
+ },
668
+ {
669
+ "inputs": [
670
+ {
671
+ "internalType": "int24",
672
+ "name": "",
673
+ "type": "int24"
674
+ }
675
+ ],
676
+ "name": "initializedTicks",
677
+ "outputs": [
678
+ {
679
+ "internalType": "int24",
680
+ "name": "previous",
681
+ "type": "int24"
682
+ },
683
+ {
684
+ "internalType": "int24",
685
+ "name": "next",
686
+ "type": "int24"
687
+ }
688
+ ],
689
+ "stateMutability": "view",
690
+ "type": "function"
691
+ },
692
+ {
693
+ "inputs": [],
694
+ "name": "maxTickLiquidity",
695
+ "outputs": [
696
+ {
697
+ "internalType": "uint128",
698
+ "name": "",
699
+ "type": "uint128"
700
+ }
701
+ ],
702
+ "stateMutability": "view",
703
+ "type": "function"
704
+ },
705
+ {
706
+ "inputs": [
707
+ {
708
+ "internalType": "address",
709
+ "name": "recipient",
710
+ "type": "address"
711
+ },
712
+ {
713
+ "internalType": "int24",
714
+ "name": "tickLower",
715
+ "type": "int24"
716
+ },
717
+ {
718
+ "internalType": "int24",
719
+ "name": "tickUpper",
720
+ "type": "int24"
721
+ },
722
+ {
723
+ "internalType": "int24[2]",
724
+ "name": "ticksPrevious",
725
+ "type": "int24[2]"
726
+ },
727
+ {
728
+ "internalType": "uint128",
729
+ "name": "qty",
730
+ "type": "uint128"
731
+ },
732
+ {
733
+ "internalType": "bytes",
734
+ "name": "data",
735
+ "type": "bytes"
736
+ }
737
+ ],
738
+ "name": "mint",
739
+ "outputs": [
740
+ {
741
+ "internalType": "uint256",
742
+ "name": "qty0",
743
+ "type": "uint256"
744
+ },
745
+ {
746
+ "internalType": "uint256",
747
+ "name": "qty1",
748
+ "type": "uint256"
749
+ },
750
+ {
751
+ "internalType": "uint256",
752
+ "name": "feeGrowthInsideLast",
753
+ "type": "uint256"
754
+ }
755
+ ],
756
+ "stateMutability": "nonpayable",
757
+ "type": "function"
758
+ },
759
+ {
760
+ "inputs": [],
761
+ "name": "name",
762
+ "outputs": [
763
+ {
764
+ "internalType": "string",
765
+ "name": "",
766
+ "type": "string"
767
+ }
768
+ ],
769
+ "stateMutability": "view",
770
+ "type": "function"
771
+ },
772
+ {
773
+ "inputs": [],
774
+ "name": "poolOracle",
775
+ "outputs": [
776
+ {
777
+ "internalType": "contract IPoolOracle",
778
+ "name": "",
779
+ "type": "address"
780
+ }
781
+ ],
782
+ "stateMutability": "view",
783
+ "type": "function"
784
+ },
785
+ {
786
+ "inputs": [
787
+ {
788
+ "internalType": "address",
789
+ "name": "recipient",
790
+ "type": "address"
791
+ },
792
+ {
793
+ "internalType": "int256",
794
+ "name": "swapQty",
795
+ "type": "int256"
796
+ },
797
+ {
798
+ "internalType": "bool",
799
+ "name": "isToken0",
800
+ "type": "bool"
801
+ },
802
+ {
803
+ "internalType": "uint160",
804
+ "name": "limitSqrtP",
805
+ "type": "uint160"
806
+ },
807
+ {
808
+ "internalType": "bytes",
809
+ "name": "data",
810
+ "type": "bytes"
811
+ }
812
+ ],
813
+ "name": "swap",
814
+ "outputs": [
815
+ {
816
+ "internalType": "int256",
817
+ "name": "deltaQty0",
818
+ "type": "int256"
819
+ },
820
+ {
821
+ "internalType": "int256",
822
+ "name": "deltaQty1",
823
+ "type": "int256"
824
+ }
825
+ ],
826
+ "stateMutability": "nonpayable",
827
+ "type": "function"
828
+ },
829
+ {
830
+ "inputs": [],
831
+ "name": "swapFeeUnits",
832
+ "outputs": [
833
+ {
834
+ "internalType": "uint24",
835
+ "name": "",
836
+ "type": "uint24"
837
+ }
838
+ ],
839
+ "stateMutability": "view",
840
+ "type": "function"
841
+ },
842
+ {
843
+ "inputs": [],
844
+ "name": "symbol",
845
+ "outputs": [
846
+ {
847
+ "internalType": "string",
848
+ "name": "",
849
+ "type": "string"
850
+ }
851
+ ],
852
+ "stateMutability": "view",
853
+ "type": "function"
854
+ },
855
+ {
856
+ "inputs": [],
857
+ "name": "tickDistance",
858
+ "outputs": [
859
+ {
860
+ "internalType": "int24",
861
+ "name": "",
862
+ "type": "int24"
863
+ }
864
+ ],
865
+ "stateMutability": "view",
866
+ "type": "function"
867
+ },
868
+ {
869
+ "inputs": [
870
+ {
871
+ "internalType": "int24",
872
+ "name": "",
873
+ "type": "int24"
874
+ }
875
+ ],
876
+ "name": "ticks",
877
+ "outputs": [
878
+ {
879
+ "internalType": "uint128",
880
+ "name": "liquidityGross",
881
+ "type": "uint128"
882
+ },
883
+ {
884
+ "internalType": "int128",
885
+ "name": "liquidityNet",
886
+ "type": "int128"
887
+ },
888
+ {
889
+ "internalType": "uint256",
890
+ "name": "feeGrowthOutside",
891
+ "type": "uint256"
892
+ },
893
+ {
894
+ "internalType": "uint128",
895
+ "name": "secondsPerLiquidityOutside",
896
+ "type": "uint128"
897
+ }
898
+ ],
899
+ "stateMutability": "view",
900
+ "type": "function"
901
+ },
902
+ {
903
+ "inputs": [],
904
+ "name": "token0",
905
+ "outputs": [
906
+ {
907
+ "internalType": "contract IERC20",
908
+ "name": "",
909
+ "type": "address"
910
+ }
911
+ ],
912
+ "stateMutability": "view",
913
+ "type": "function"
914
+ },
915
+ {
916
+ "inputs": [],
917
+ "name": "token1",
918
+ "outputs": [
919
+ {
920
+ "internalType": "contract IERC20",
921
+ "name": "",
922
+ "type": "address"
923
+ }
924
+ ],
925
+ "stateMutability": "view",
926
+ "type": "function"
927
+ },
928
+ {
929
+ "inputs": [],
930
+ "name": "totalSupply",
931
+ "outputs": [
932
+ {
933
+ "internalType": "uint256",
934
+ "name": "",
935
+ "type": "uint256"
936
+ }
937
+ ],
938
+ "stateMutability": "view",
939
+ "type": "function"
940
+ },
941
+ {
942
+ "inputs": [
943
+ {
944
+ "internalType": "address",
945
+ "name": "recipient",
946
+ "type": "address"
947
+ },
948
+ {
949
+ "internalType": "uint256",
950
+ "name": "amount",
951
+ "type": "uint256"
952
+ }
953
+ ],
954
+ "name": "transfer",
955
+ "outputs": [
956
+ {
957
+ "internalType": "bool",
958
+ "name": "",
959
+ "type": "bool"
960
+ }
961
+ ],
962
+ "stateMutability": "nonpayable",
963
+ "type": "function"
964
+ },
965
+ {
966
+ "inputs": [
967
+ {
968
+ "internalType": "address",
969
+ "name": "sender",
970
+ "type": "address"
971
+ },
972
+ {
973
+ "internalType": "address",
974
+ "name": "recipient",
975
+ "type": "address"
976
+ },
977
+ {
978
+ "internalType": "uint256",
979
+ "name": "amount",
980
+ "type": "uint256"
981
+ }
982
+ ],
983
+ "name": "transferFrom",
984
+ "outputs": [
985
+ {
986
+ "internalType": "bool",
987
+ "name": "",
988
+ "type": "bool"
989
+ }
990
+ ],
991
+ "stateMutability": "nonpayable",
992
+ "type": "function"
993
+ },
994
+ {
995
+ "inputs": [
996
+ {
997
+ "internalType": "int24",
998
+ "name": "tickLower",
999
+ "type": "int24"
1000
+ },
1001
+ {
1002
+ "internalType": "int24",
1003
+ "name": "tickUpper",
1004
+ "type": "int24"
1005
+ }
1006
+ ],
1007
+ "name": "tweakPosZeroLiq",
1008
+ "outputs": [
1009
+ {
1010
+ "internalType": "uint256",
1011
+ "name": "feeGrowthInsideLast",
1012
+ "type": "uint256"
1013
+ }
1014
+ ],
1015
+ "stateMutability": "nonpayable",
1016
+ "type": "function"
1017
+ },
1018
+ {
1019
+ "inputs": [
1020
+ {
1021
+ "internalType": "uint160",
1022
+ "name": "initialSqrtP",
1023
+ "type": "uint160"
1024
+ }
1025
+ ],
1026
+ "name": "unlockPool",
1027
+ "outputs": [
1028
+ {
1029
+ "internalType": "uint256",
1030
+ "name": "qty0",
1031
+ "type": "uint256"
1032
+ },
1033
+ {
1034
+ "internalType": "uint256",
1035
+ "name": "qty1",
1036
+ "type": "uint256"
1037
+ }
1038
+ ],
1039
+ "stateMutability": "nonpayable",
1040
+ "type": "function"
1041
+ }
1042
+ ]