@paraswap/dex-lib 2.42.4-baseswap.2 → 2.42.4

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 (194) hide show
  1. package/.vscode/launch.json +16 -0
  2. package/build/dex/uniswap-v3/config.js +0 -14
  3. package/build/dex/uniswap-v3/config.js.map +1 -1
  4. package/build/test.js +26 -0
  5. package/package.json +1 -1
  6. package/src/dex/uniswap-v3/config.ts +0 -14
  7. package/src/dex/uniswap-v3/uniswap-v3-e2e.test.ts +0 -24
  8. package/src/dex/uniswap-v3/uniswap-v3-integration.test.ts +0 -375
  9. package/build/abi/kyberswap-elastic/IAntiSnipAttackPositionManager.json +0 -1276
  10. package/build/abi/kyberswap-elastic/IFactory.json +0 -550
  11. package/build/abi/kyberswap-elastic/IPool.json +0 -1042
  12. package/build/abi/kyberswap-elastic/IQuoterV2.json +0 -226
  13. package/build/abi/kyberswap-elastic/IRouter.json +0 -239
  14. package/build/abi/kyberswap-elastic/TicksFeesReader.json +0 -142
  15. package/build/abi/wombat/asset.json +0 -769
  16. package/build/abi/wombat/bmw.json +0 -1247
  17. package/build/abi/wombat/pool.json +0 -1364
  18. package/build/dex/baseswap-v3/baseswap-v3-factory.d.ts +0 -26
  19. package/build/dex/baseswap-v3/baseswap-v3-factory.js +0 -44
  20. package/build/dex/baseswap-v3/baseswap-v3-factory.js.map +0 -1
  21. package/build/dex/baseswap-v3/baseswap-v3-pool.d.ts +0 -46
  22. package/build/dex/baseswap-v3/baseswap-v3-pool.js +0 -312
  23. package/build/dex/baseswap-v3/baseswap-v3-pool.js.map +0 -1
  24. package/build/dex/baseswap-v3/baseswap-v3.d.ts +0 -71
  25. package/build/dex/baseswap-v3/baseswap-v3.js +0 -752
  26. package/build/dex/baseswap-v3/baseswap-v3.js.map +0 -1
  27. package/build/dex/baseswap-v3/config.d.ts +0 -9
  28. package/build/dex/baseswap-v3/config.js +0 -48
  29. package/build/dex/baseswap-v3/config.js.map +0 -1
  30. package/build/dex/baseswap-v3/constants.d.ts +0 -28
  31. package/build/dex/baseswap-v3/constants.js +0 -35
  32. package/build/dex/baseswap-v3/constants.js.map +0 -1
  33. package/build/dex/baseswap-v3/contract-math/BitMath.d.ts +0 -4
  34. package/build/dex/baseswap-v3/contract-math/BitMath.js +0 -93
  35. package/build/dex/baseswap-v3/contract-math/BitMath.js.map +0 -1
  36. package/build/dex/baseswap-v3/contract-math/FixedPoint128.d.ts +0 -3
  37. package/build/dex/baseswap-v3/contract-math/FixedPoint128.js +0 -8
  38. package/build/dex/baseswap-v3/contract-math/FixedPoint128.js.map +0 -1
  39. package/build/dex/baseswap-v3/contract-math/FixedPoint96.d.ts +0 -4
  40. package/build/dex/baseswap-v3/contract-math/FixedPoint96.js +0 -9
  41. package/build/dex/baseswap-v3/contract-math/FixedPoint96.js.map +0 -1
  42. package/build/dex/baseswap-v3/contract-math/FullMath.d.ts +0 -4
  43. package/build/dex/baseswap-v3/contract-math/FullMath.js +0 -19
  44. package/build/dex/baseswap-v3/contract-math/FullMath.js.map +0 -1
  45. package/build/dex/baseswap-v3/contract-math/LiquidityMath.d.ts +0 -3
  46. package/build/dex/baseswap-v3/contract-math/LiquidityMath.js +0 -22
  47. package/build/dex/baseswap-v3/contract-math/LiquidityMath.js.map +0 -1
  48. package/build/dex/baseswap-v3/contract-math/Oracle.d.ts +0 -10
  49. package/build/dex/baseswap-v3/contract-math/Oracle.js +0 -133
  50. package/build/dex/baseswap-v3/contract-math/Oracle.js.map +0 -1
  51. package/build/dex/baseswap-v3/contract-math/SqrtPriceMath.d.ts +0 -10
  52. package/build/dex/baseswap-v3/contract-math/SqrtPriceMath.js +0 -91
  53. package/build/dex/baseswap-v3/contract-math/SqrtPriceMath.js.map +0 -1
  54. package/build/dex/baseswap-v3/contract-math/SwapMath.d.ts +0 -8
  55. package/build/dex/baseswap-v3/contract-math/SwapMath.js +0 -70
  56. package/build/dex/baseswap-v3/contract-math/SwapMath.js.map +0 -1
  57. package/build/dex/baseswap-v3/contract-math/Tick.d.ts +0 -7
  58. package/build/dex/baseswap-v3/contract-math/Tick.js +0 -45
  59. package/build/dex/baseswap-v3/contract-math/Tick.js.map +0 -1
  60. package/build/dex/baseswap-v3/contract-math/TickBitMap.d.ts +0 -7
  61. package/build/dex/baseswap-v3/contract-math/TickBitMap.js +0 -84
  62. package/build/dex/baseswap-v3/contract-math/TickBitMap.js.map +0 -1
  63. package/build/dex/baseswap-v3/contract-math/TickMath.d.ts +0 -8
  64. package/build/dex/baseswap-v3/contract-math/TickMath.js +0 -162
  65. package/build/dex/baseswap-v3/contract-math/TickMath.js.map +0 -1
  66. package/build/dex/baseswap-v3/contract-math/UnsafeMath.d.ts +0 -3
  67. package/build/dex/baseswap-v3/contract-math/UnsafeMath.js +0 -10
  68. package/build/dex/baseswap-v3/contract-math/UnsafeMath.js.map +0 -1
  69. package/build/dex/baseswap-v3/contract-math/uniswap-v3-math.d.ts +0 -37
  70. package/build/dex/baseswap-v3/contract-math/uniswap-v3-math.js +0 -393
  71. package/build/dex/baseswap-v3/contract-math/uniswap-v3-math.js.map +0 -1
  72. package/build/dex/baseswap-v3/contract-math/utils.d.ts +0 -7
  73. package/build/dex/baseswap-v3/contract-math/utils.js +0 -42
  74. package/build/dex/baseswap-v3/contract-math/utils.js.map +0 -1
  75. package/build/dex/baseswap-v3/types.d.ts +0 -164
  76. package/build/dex/baseswap-v3/types.js +0 -9
  77. package/build/dex/baseswap-v3/types.js.map +0 -1
  78. package/build/dex/baseswap-v3/utils.d.ts +0 -6
  79. package/build/dex/baseswap-v3/utils.js +0 -65
  80. package/build/dex/baseswap-v3/utils.js.map +0 -1
  81. package/build/dex/hello/config.d.ts +0 -4
  82. package/build/dex/hello/config.js +0 -15
  83. package/build/dex/hello/config.js.map +0 -1
  84. package/build/dex/hello/hello-pool.d.ts +0 -39
  85. package/build/dex/hello/hello-pool.js +0 -64
  86. package/build/dex/hello/hello-pool.js.map +0 -1
  87. package/build/dex/hello/hello.d.ts +0 -37
  88. package/build/dex/hello/hello.js +0 -126
  89. package/build/dex/hello/hello.js.map +0 -1
  90. package/build/dex/hello/types.d.ts +0 -6
  91. package/build/dex/hello/types.js +0 -3
  92. package/build/dex/hello/types.js.map +0 -1
  93. package/build/dex/kyberswap-elastic/config.d.ts +0 -4
  94. package/build/dex/kyberswap-elastic/config.js +0 -80
  95. package/build/dex/kyberswap-elastic/config.js.map +0 -1
  96. package/build/dex/kyberswap-elastic/constants.d.ts +0 -17
  97. package/build/dex/kyberswap-elastic/constants.js +0 -42
  98. package/build/dex/kyberswap-elastic/constants.js.map +0 -1
  99. package/build/dex/kyberswap-elastic/contract-math/FixedPoint96.d.ts +0 -4
  100. package/build/dex/kyberswap-elastic/contract-math/FixedPoint96.js +0 -9
  101. package/build/dex/kyberswap-elastic/contract-math/FixedPoint96.js.map +0 -1
  102. package/build/dex/kyberswap-elastic/contract-math/FullMath.d.ts +0 -5
  103. package/build/dex/kyberswap-elastic/contract-math/FullMath.js +0 -22
  104. package/build/dex/kyberswap-elastic/contract-math/FullMath.js.map +0 -1
  105. package/build/dex/kyberswap-elastic/contract-math/LiqDeltaMath.d.ts +0 -3
  106. package/build/dex/kyberswap-elastic/contract-math/LiqDeltaMath.js +0 -12
  107. package/build/dex/kyberswap-elastic/contract-math/LiqDeltaMath.js.map +0 -1
  108. package/build/dex/kyberswap-elastic/contract-math/LiquidityMath.d.ts +0 -3
  109. package/build/dex/kyberswap-elastic/contract-math/LiquidityMath.js +0 -22
  110. package/build/dex/kyberswap-elastic/contract-math/LiquidityMath.js.map +0 -1
  111. package/build/dex/kyberswap-elastic/contract-math/QtyDeltaMath.d.ts +0 -5
  112. package/build/dex/kyberswap-elastic/contract-math/QtyDeltaMath.js +0 -25
  113. package/build/dex/kyberswap-elastic/contract-math/QtyDeltaMath.js.map +0 -1
  114. package/build/dex/kyberswap-elastic/contract-math/QuadMath.d.ts +0 -4
  115. package/build/dex/kyberswap-elastic/contract-math/QuadMath.js +0 -27
  116. package/build/dex/kyberswap-elastic/contract-math/QuadMath.js.map +0 -1
  117. package/build/dex/kyberswap-elastic/contract-math/ReinvestmentMath.d.ts +0 -3
  118. package/build/dex/kyberswap-elastic/contract-math/ReinvestmentMath.js +0 -14
  119. package/build/dex/kyberswap-elastic/contract-math/ReinvestmentMath.js.map +0 -1
  120. package/build/dex/kyberswap-elastic/contract-math/SafeCast.d.ts +0 -8
  121. package/build/dex/kyberswap-elastic/contract-math/SafeCast.js +0 -30
  122. package/build/dex/kyberswap-elastic/contract-math/SafeCast.js.map +0 -1
  123. package/build/dex/kyberswap-elastic/contract-math/SqrtPriceMath.d.ts +0 -10
  124. package/build/dex/kyberswap-elastic/contract-math/SqrtPriceMath.js +0 -91
  125. package/build/dex/kyberswap-elastic/contract-math/SqrtPriceMath.js.map +0 -1
  126. package/build/dex/kyberswap-elastic/contract-math/SwapMath.d.ts +0 -13
  127. package/build/dex/kyberswap-elastic/contract-math/SwapMath.js +0 -188
  128. package/build/dex/kyberswap-elastic/contract-math/SwapMath.js.map +0 -1
  129. package/build/dex/kyberswap-elastic/contract-math/TickLinkedList.d.ts +0 -6
  130. package/build/dex/kyberswap-elastic/contract-math/TickLinkedList.js +0 -41
  131. package/build/dex/kyberswap-elastic/contract-math/TickLinkedList.js.map +0 -1
  132. package/build/dex/kyberswap-elastic/contract-math/TickMath.d.ts +0 -9
  133. package/build/dex/kyberswap-elastic/contract-math/TickMath.js +0 -165
  134. package/build/dex/kyberswap-elastic/contract-math/TickMath.js.map +0 -1
  135. package/build/dex/kyberswap-elastic/contract-math/UnsafeMath.d.ts +0 -3
  136. package/build/dex/kyberswap-elastic/contract-math/UnsafeMath.js +0 -10
  137. package/build/dex/kyberswap-elastic/contract-math/UnsafeMath.js.map +0 -1
  138. package/build/dex/kyberswap-elastic/contract-math/kyberswap-elastic-math.d.ts +0 -28
  139. package/build/dex/kyberswap-elastic/contract-math/kyberswap-elastic-math.js +0 -502
  140. package/build/dex/kyberswap-elastic/contract-math/kyberswap-elastic-math.js.map +0 -1
  141. package/build/dex/kyberswap-elastic/contract-math/utils.d.ts +0 -3
  142. package/build/dex/kyberswap-elastic/contract-math/utils.js +0 -16
  143. package/build/dex/kyberswap-elastic/contract-math/utils.js.map +0 -1
  144. package/build/dex/kyberswap-elastic/errors.d.ts +0 -2
  145. package/build/dex/kyberswap-elastic/errors.js +0 -6
  146. package/build/dex/kyberswap-elastic/errors.js.map +0 -1
  147. package/build/dex/kyberswap-elastic/kyberswap-elastic-pool.d.ts +0 -80
  148. package/build/dex/kyberswap-elastic/kyberswap-elastic-pool.js +0 -458
  149. package/build/dex/kyberswap-elastic/kyberswap-elastic-pool.js.map +0 -1
  150. package/build/dex/kyberswap-elastic/kyberswap-elastic.d.ts +0 -53
  151. package/build/dex/kyberswap-elastic/kyberswap-elastic.js +0 -610
  152. package/build/dex/kyberswap-elastic/kyberswap-elastic.js.map +0 -1
  153. package/build/dex/kyberswap-elastic/types.d.ts +0 -134
  154. package/build/dex/kyberswap-elastic/types.js +0 -9
  155. package/build/dex/kyberswap-elastic/types.js.map +0 -1
  156. package/build/dex/kyberswap-elastic/utils/decoders.d.ts +0 -9
  157. package/build/dex/kyberswap-elastic/utils/decoders.js +0 -78
  158. package/build/dex/kyberswap-elastic/utils/decoders.js.map +0 -1
  159. package/build/dex/my-test-dex/config.d.ts +0 -4
  160. package/build/dex/my-test-dex/config.js +0 -15
  161. package/build/dex/my-test-dex/config.js.map +0 -1
  162. package/build/dex/my-test-dex/my-test-dex-pool.d.ts +0 -39
  163. package/build/dex/my-test-dex/my-test-dex-pool.js +0 -64
  164. package/build/dex/my-test-dex/my-test-dex-pool.js.map +0 -1
  165. package/build/dex/my-test-dex/my-test-dex.d.ts +0 -37
  166. package/build/dex/my-test-dex/my-test-dex.js +0 -126
  167. package/build/dex/my-test-dex/my-test-dex.js.map +0 -1
  168. package/build/dex/my-test-dex/types.d.ts +0 -6
  169. package/build/dex/my-test-dex/types.js +0 -3
  170. package/build/dex/my-test-dex/types.js.map +0 -1
  171. package/build/dex/solidly/forks-override/fvm.d.ts +0 -20
  172. package/build/dex/solidly/forks-override/fvm.js +0 -42
  173. package/build/dex/solidly/forks-override/fvm.js.map +0 -1
  174. package/build/dex/wombat/config.d.ts +0 -5
  175. package/build/dex/wombat/config.js +0 -36
  176. package/build/dex/wombat/config.js.map +0 -1
  177. package/build/dex/wombat/types.d.ts +0 -33
  178. package/build/dex/wombat/types.js +0 -3
  179. package/build/dex/wombat/types.js.map +0 -1
  180. package/build/dex/wombat/utils.d.ts +0 -9
  181. package/build/dex/wombat/utils.js +0 -66
  182. package/build/dex/wombat/utils.js.map +0 -1
  183. package/build/dex/wombat/wombat-bmw.d.ts +0 -40
  184. package/build/dex/wombat/wombat-bmw.js +0 -145
  185. package/build/dex/wombat/wombat-bmw.js.map +0 -1
  186. package/build/dex/wombat/wombat-pool.d.ts +0 -22
  187. package/build/dex/wombat/wombat-pool.js +0 -161
  188. package/build/dex/wombat/wombat-pool.js.map +0 -1
  189. package/build/dex/wombat/wombat-quoter.d.ts +0 -16
  190. package/build/dex/wombat/wombat-quoter.js +0 -176
  191. package/build/dex/wombat/wombat-quoter.js.map +0 -1
  192. package/build/dex/wombat/wombat.d.ts +0 -55
  193. package/build/dex/wombat/wombat.js +0 -292
  194. package/build/dex/wombat/wombat.js.map +0 -1
@@ -1,1042 +0,0 @@
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
- ]