@paraswap/dex-lib 2.16.7 → 2.16.8-pancakeswapv3.0

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