@paraswap/dex-lib 2.42.27-solidly-v3.2 → 2.42.28

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 (106) hide show
  1. package/build/abi/{solidly-v3/SolidlyV3Pool.abi.json → algebra/AlgebraPool.abi.json} +282 -293
  2. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +193 -0
  3. package/build/config.js +2 -2
  4. package/build/dex/{solidly-v3/solidly-v3-pool.d.ts → algebra/algebra-pool.d.ts} +16 -14
  5. package/build/dex/{solidly-v3/solidly-v3-pool.js → algebra/algebra-pool.js} +165 -127
  6. package/build/dex/algebra/algebra-pool.js.map +1 -0
  7. package/build/dex/index.js +2 -4
  8. package/build/dex/index.js.map +1 -1
  9. package/build/dex/quickswap/camelot-v3.d.ts +6 -0
  10. package/build/dex/quickswap/camelot-v3.js +19 -0
  11. package/build/dex/quickswap/camelot-v3.js.map +1 -0
  12. package/build/dex/quickswap/zyberswap-v3.d.ts +6 -0
  13. package/build/dex/quickswap/zyberswap-v3.js +19 -0
  14. package/build/dex/quickswap/zyberswap-v3.js.map +1 -0
  15. package/build/dex/uniswap-v2/rebase-tokens.json +7 -0
  16. package/package.json +1 -1
  17. package/src/config.ts +2 -2
  18. package/src/dex/index.ts +2 -4
  19. package/src/dex/uniswap-v3/uniswap-v3-events.test.ts +0 -3
  20. package/build/abi/solidly-v3/SolidlyV3StateMulticall.abi.json +0 -375
  21. package/build/dex/solidly-v3/config.d.ts +0 -9
  22. package/build/dex/solidly-v3/config.js +0 -58
  23. package/build/dex/solidly-v3/config.js.map +0 -1
  24. package/build/dex/solidly-v3/constants.d.ts +0 -27
  25. package/build/dex/solidly-v3/constants.js +0 -34
  26. package/build/dex/solidly-v3/constants.js.map +0 -1
  27. package/build/dex/solidly-v3/contract-math/BitMath.d.ts +0 -4
  28. package/build/dex/solidly-v3/contract-math/BitMath.js +0 -93
  29. package/build/dex/solidly-v3/contract-math/BitMath.js.map +0 -1
  30. package/build/dex/solidly-v3/contract-math/FixedPoint128.d.ts +0 -3
  31. package/build/dex/solidly-v3/contract-math/FixedPoint128.js +0 -8
  32. package/build/dex/solidly-v3/contract-math/FixedPoint128.js.map +0 -1
  33. package/build/dex/solidly-v3/contract-math/FixedPoint96.d.ts +0 -4
  34. package/build/dex/solidly-v3/contract-math/FixedPoint96.js +0 -9
  35. package/build/dex/solidly-v3/contract-math/FixedPoint96.js.map +0 -1
  36. package/build/dex/solidly-v3/contract-math/FullMath.d.ts +0 -4
  37. package/build/dex/solidly-v3/contract-math/FullMath.js +0 -19
  38. package/build/dex/solidly-v3/contract-math/FullMath.js.map +0 -1
  39. package/build/dex/solidly-v3/contract-math/LiquidityMath.d.ts +0 -3
  40. package/build/dex/solidly-v3/contract-math/LiquidityMath.js +0 -22
  41. package/build/dex/solidly-v3/contract-math/LiquidityMath.js.map +0 -1
  42. package/build/dex/solidly-v3/contract-math/SqrtPriceMath.d.ts +0 -10
  43. package/build/dex/solidly-v3/contract-math/SqrtPriceMath.js +0 -91
  44. package/build/dex/solidly-v3/contract-math/SqrtPriceMath.js.map +0 -1
  45. package/build/dex/solidly-v3/contract-math/SwapMath.d.ts +0 -8
  46. package/build/dex/solidly-v3/contract-math/SwapMath.js +0 -70
  47. package/build/dex/solidly-v3/contract-math/SwapMath.js.map +0 -1
  48. package/build/dex/solidly-v3/contract-math/Tick.d.ts +0 -7
  49. package/build/dex/solidly-v3/contract-math/Tick.js +0 -36
  50. package/build/dex/solidly-v3/contract-math/Tick.js.map +0 -1
  51. package/build/dex/solidly-v3/contract-math/TickBitMap.d.ts +0 -7
  52. package/build/dex/solidly-v3/contract-math/TickBitMap.js +0 -84
  53. package/build/dex/solidly-v3/contract-math/TickBitMap.js.map +0 -1
  54. package/build/dex/solidly-v3/contract-math/TickMath.d.ts +0 -8
  55. package/build/dex/solidly-v3/contract-math/TickMath.js +0 -162
  56. package/build/dex/solidly-v3/contract-math/TickMath.js.map +0 -1
  57. package/build/dex/solidly-v3/contract-math/UnsafeMath.d.ts +0 -3
  58. package/build/dex/solidly-v3/contract-math/UnsafeMath.js +0 -10
  59. package/build/dex/solidly-v3/contract-math/UnsafeMath.js.map +0 -1
  60. package/build/dex/solidly-v3/contract-math/uniswap-v3-math.d.ts +0 -31
  61. package/build/dex/solidly-v3/contract-math/uniswap-v3-math.js +0 -363
  62. package/build/dex/solidly-v3/contract-math/uniswap-v3-math.js.map +0 -1
  63. package/build/dex/solidly-v3/contract-math/utils.d.ts +0 -7
  64. package/build/dex/solidly-v3/contract-math/utils.js +0 -39
  65. package/build/dex/solidly-v3/contract-math/utils.js.map +0 -1
  66. package/build/dex/solidly-v3/solidly-v3-factory.d.ts +0 -26
  67. package/build/dex/solidly-v3/solidly-v3-factory.js +0 -44
  68. package/build/dex/solidly-v3/solidly-v3-factory.js.map +0 -1
  69. package/build/dex/solidly-v3/solidly-v3-pool.js.map +0 -1
  70. package/build/dex/solidly-v3/solidly-v3.d.ts +0 -67
  71. package/build/dex/solidly-v3/solidly-v3.js +0 -590
  72. package/build/dex/solidly-v3/solidly-v3.js.map +0 -1
  73. package/build/dex/solidly-v3/types.d.ts +0 -132
  74. package/build/dex/solidly-v3/types.js +0 -9
  75. package/build/dex/solidly-v3/types.js.map +0 -1
  76. package/build/dex/solidly-v3/utils.d.ts +0 -6
  77. package/build/dex/solidly-v3/utils.js +0 -53
  78. package/build/dex/solidly-v3/utils.js.map +0 -1
  79. package/build/dex/wombat/wombat-pool-poller.d.ts +0 -22
  80. package/build/dex/wombat/wombat-pool-poller.js +0 -164
  81. package/build/dex/wombat/wombat-pool-poller.js.map +0 -1
  82. package/src/abi/solidly-v3/SolidlyV3Pool.abi.json +0 -738
  83. package/src/abi/solidly-v3/SolidlyV3StateMulticall.abi.json +0 -375
  84. package/src/dex/solidly-v3/config.ts +0 -64
  85. package/src/dex/solidly-v3/constants.ts +0 -42
  86. package/src/dex/solidly-v3/contract-math/BitMath.ts +0 -90
  87. package/src/dex/solidly-v3/contract-math/FixedPoint128.ts +0 -3
  88. package/src/dex/solidly-v3/contract-math/FixedPoint96.ts +0 -4
  89. package/src/dex/solidly-v3/contract-math/FullMath.ts +0 -30
  90. package/src/dex/solidly-v3/contract-math/LiquidityMath.ts +0 -17
  91. package/src/dex/solidly-v3/contract-math/SqrtPriceMath.ts +0 -226
  92. package/src/dex/solidly-v3/contract-math/SwapMath.ts +0 -139
  93. package/src/dex/solidly-v3/contract-math/Tick.ts +0 -66
  94. package/src/dex/solidly-v3/contract-math/TickBitMap.ts +0 -123
  95. package/src/dex/solidly-v3/contract-math/TickMath.ts +0 -211
  96. package/src/dex/solidly-v3/contract-math/UnsafeMath.ts +0 -5
  97. package/src/dex/solidly-v3/contract-math/uniswap-v3-math.ts +0 -570
  98. package/src/dex/solidly-v3/contract-math/utils.ts +0 -50
  99. package/src/dex/solidly-v3/solidly-v3-e2e.test.ts +0 -124
  100. package/src/dex/solidly-v3/solidly-v3-events.test.ts +0 -144
  101. package/src/dex/solidly-v3/solidly-v3-factory.ts +0 -73
  102. package/src/dex/solidly-v3/solidly-v3-integration.test.ts +0 -358
  103. package/src/dex/solidly-v3/solidly-v3-pool.ts +0 -494
  104. package/src/dex/solidly-v3/solidly-v3.ts +0 -988
  105. package/src/dex/solidly-v3/types.ts +0 -158
  106. package/src/dex/solidly-v3/utils.ts +0 -71
@@ -12,19 +12,19 @@
12
12
  {
13
13
  "indexed": true,
14
14
  "internalType": "int24",
15
- "name": "tickLower",
15
+ "name": "bottomTick",
16
16
  "type": "int24"
17
17
  },
18
18
  {
19
19
  "indexed": true,
20
20
  "internalType": "int24",
21
- "name": "tickUpper",
21
+ "name": "topTick",
22
22
  "type": "int24"
23
23
  },
24
24
  {
25
25
  "indexed": false,
26
26
  "internalType": "uint128",
27
- "name": "amount",
27
+ "name": "liquidityAmount",
28
28
  "type": "uint128"
29
29
  },
30
30
  {
@@ -61,13 +61,13 @@
61
61
  {
62
62
  "indexed": true,
63
63
  "internalType": "int24",
64
- "name": "tickLower",
64
+ "name": "bottomTick",
65
65
  "type": "int24"
66
66
  },
67
67
  {
68
68
  "indexed": true,
69
69
  "internalType": "int24",
70
- "name": "tickUpper",
70
+ "name": "topTick",
71
71
  "type": "int24"
72
72
  },
73
73
  {
@@ -90,31 +90,32 @@
90
90
  "anonymous": false,
91
91
  "inputs": [
92
92
  {
93
- "indexed": true,
94
- "internalType": "address",
95
- "name": "sender",
96
- "type": "address"
97
- },
98
- {
99
- "indexed": true,
100
- "internalType": "address",
101
- "name": "recipient",
102
- "type": "address"
93
+ "indexed": false,
94
+ "internalType": "uint8",
95
+ "name": "communityFee0New",
96
+ "type": "uint8"
103
97
  },
104
98
  {
105
99
  "indexed": false,
106
- "internalType": "uint128",
107
- "name": "amount0",
108
- "type": "uint128"
109
- },
100
+ "internalType": "uint8",
101
+ "name": "communityFee1New",
102
+ "type": "uint8"
103
+ }
104
+ ],
105
+ "name": "CommunityFee",
106
+ "type": "event"
107
+ },
108
+ {
109
+ "anonymous": false,
110
+ "inputs": [
110
111
  {
111
112
  "indexed": false,
112
- "internalType": "uint128",
113
- "name": "amount1",
114
- "type": "uint128"
113
+ "internalType": "uint16",
114
+ "name": "fee",
115
+ "type": "uint16"
115
116
  }
116
117
  ],
117
- "name": "CollectProtocol",
118
+ "name": "Fee",
118
119
  "type": "event"
119
120
  },
120
121
  {
@@ -160,13 +161,26 @@
160
161
  "name": "Flash",
161
162
  "type": "event"
162
163
  },
164
+ {
165
+ "anonymous": false,
166
+ "inputs": [
167
+ {
168
+ "indexed": true,
169
+ "internalType": "address",
170
+ "name": "virtualPoolAddress",
171
+ "type": "address"
172
+ }
173
+ ],
174
+ "name": "Incentive",
175
+ "type": "event"
176
+ },
163
177
  {
164
178
  "anonymous": false,
165
179
  "inputs": [
166
180
  {
167
181
  "indexed": false,
168
182
  "internalType": "uint160",
169
- "name": "sqrtPriceX96",
183
+ "name": "price",
170
184
  "type": "uint160"
171
185
  },
172
186
  {
@@ -179,6 +193,19 @@
179
193
  "name": "Initialize",
180
194
  "type": "event"
181
195
  },
196
+ {
197
+ "anonymous": false,
198
+ "inputs": [
199
+ {
200
+ "indexed": false,
201
+ "internalType": "uint32",
202
+ "name": "liquidityCooldown",
203
+ "type": "uint32"
204
+ }
205
+ ],
206
+ "name": "LiquidityCooldown",
207
+ "type": "event"
208
+ },
182
209
  {
183
210
  "anonymous": false,
184
211
  "inputs": [
@@ -197,19 +224,19 @@
197
224
  {
198
225
  "indexed": true,
199
226
  "internalType": "int24",
200
- "name": "tickLower",
227
+ "name": "bottomTick",
201
228
  "type": "int24"
202
229
  },
203
230
  {
204
231
  "indexed": true,
205
232
  "internalType": "int24",
206
- "name": "tickUpper",
233
+ "name": "topTick",
207
234
  "type": "int24"
208
235
  },
209
236
  {
210
237
  "indexed": false,
211
238
  "internalType": "uint128",
212
- "name": "amount",
239
+ "name": "liquidityAmount",
213
240
  "type": "uint128"
214
241
  },
215
242
  {
@@ -228,25 +255,6 @@
228
255
  "name": "Mint",
229
256
  "type": "event"
230
257
  },
231
- {
232
- "anonymous": false,
233
- "inputs": [
234
- {
235
- "indexed": false,
236
- "internalType": "uint24",
237
- "name": "feeOld",
238
- "type": "uint24"
239
- },
240
- {
241
- "indexed": false,
242
- "internalType": "uint24",
243
- "name": "feeNew",
244
- "type": "uint24"
245
- }
246
- ],
247
- "name": "SetFee",
248
- "type": "event"
249
- },
250
258
  {
251
259
  "anonymous": false,
252
260
  "inputs": [
@@ -277,7 +285,7 @@
277
285
  {
278
286
  "indexed": false,
279
287
  "internalType": "uint160",
280
- "name": "sqrtPriceX96",
288
+ "name": "price",
281
289
  "type": "uint160"
282
290
  },
283
291
  {
@@ -297,26 +305,16 @@
297
305
  "type": "event"
298
306
  },
299
307
  {
300
- "inputs": [
301
- { "internalType": "int24", "name": "tickLower", "type": "int24" },
302
- { "internalType": "int24", "name": "tickUpper", "type": "int24" },
303
- { "internalType": "uint128", "name": "amount", "type": "uint128" },
304
- { "internalType": "uint256", "name": "amount0Min", "type": "uint256" },
305
- { "internalType": "uint256", "name": "amount1Min", "type": "uint256" },
306
- { "internalType": "uint256", "name": "deadline", "type": "uint256" }
307
- ],
308
- "name": "burn",
309
- "outputs": [
310
- { "internalType": "uint256", "name": "amount0", "type": "uint256" },
311
- { "internalType": "uint256", "name": "amount1", "type": "uint256" }
312
- ],
313
- "stateMutability": "nonpayable",
308
+ "inputs": [],
309
+ "name": "activeIncentive",
310
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
311
+ "stateMutability": "view",
314
312
  "type": "function"
315
313
  },
316
314
  {
317
315
  "inputs": [
318
- { "internalType": "int24", "name": "tickLower", "type": "int24" },
319
- { "internalType": "int24", "name": "tickUpper", "type": "int24" },
316
+ { "internalType": "int24", "name": "bottomTick", "type": "int24" },
317
+ { "internalType": "int24", "name": "topTick", "type": "int24" },
320
318
  { "internalType": "uint128", "name": "amount", "type": "uint128" }
321
319
  ],
322
320
  "name": "burn",
@@ -330,168 +328,135 @@
330
328
  {
331
329
  "inputs": [
332
330
  { "internalType": "address", "name": "recipient", "type": "address" },
333
- { "internalType": "int24", "name": "tickLower", "type": "int24" },
334
- { "internalType": "int24", "name": "tickUpper", "type": "int24" },
335
- { "internalType": "uint128", "name": "amountToBurn", "type": "uint128" },
331
+ { "internalType": "int24", "name": "bottomTick", "type": "int24" },
332
+ { "internalType": "int24", "name": "topTick", "type": "int24" },
336
333
  {
337
334
  "internalType": "uint128",
338
- "name": "amount0ToCollect",
335
+ "name": "amount0Requested",
339
336
  "type": "uint128"
340
337
  },
341
338
  {
342
339
  "internalType": "uint128",
343
- "name": "amount1ToCollect",
340
+ "name": "amount1Requested",
344
341
  "type": "uint128"
345
342
  }
346
343
  ],
347
- "name": "burnAndCollect",
344
+ "name": "collect",
348
345
  "outputs": [
349
- {
350
- "internalType": "uint256",
351
- "name": "amount0FromBurn",
352
- "type": "uint256"
353
- },
354
- {
355
- "internalType": "uint256",
356
- "name": "amount1FromBurn",
357
- "type": "uint256"
358
- },
359
- {
360
- "internalType": "uint128",
361
- "name": "amount0Collected",
362
- "type": "uint128"
363
- },
364
- {
365
- "internalType": "uint128",
366
- "name": "amount1Collected",
367
- "type": "uint128"
368
- }
346
+ { "internalType": "uint128", "name": "amount0", "type": "uint128" },
347
+ { "internalType": "uint128", "name": "amount1", "type": "uint128" }
369
348
  ],
370
349
  "stateMutability": "nonpayable",
371
350
  "type": "function"
372
351
  },
352
+ {
353
+ "inputs": [],
354
+ "name": "dataStorageOperator",
355
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
356
+ "stateMutability": "view",
357
+ "type": "function"
358
+ },
359
+ {
360
+ "inputs": [],
361
+ "name": "factory",
362
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
363
+ "stateMutability": "view",
364
+ "type": "function"
365
+ },
373
366
  {
374
367
  "inputs": [
375
368
  { "internalType": "address", "name": "recipient", "type": "address" },
376
- { "internalType": "int24", "name": "tickLower", "type": "int24" },
377
- { "internalType": "int24", "name": "tickUpper", "type": "int24" },
378
- { "internalType": "uint128", "name": "amountToBurn", "type": "uint128" },
379
- {
380
- "internalType": "uint256",
381
- "name": "amount0FromBurnMin",
382
- "type": "uint256"
383
- },
384
- {
385
- "internalType": "uint256",
386
- "name": "amount1FromBurnMin",
387
- "type": "uint256"
388
- },
389
- {
390
- "internalType": "uint128",
391
- "name": "amount0ToCollect",
392
- "type": "uint128"
393
- },
394
- {
395
- "internalType": "uint128",
396
- "name": "amount1ToCollect",
397
- "type": "uint128"
398
- },
399
- { "internalType": "uint256", "name": "deadline", "type": "uint256" }
369
+ { "internalType": "uint256", "name": "amount0", "type": "uint256" },
370
+ { "internalType": "uint256", "name": "amount1", "type": "uint256" },
371
+ { "internalType": "bytes", "name": "data", "type": "bytes" }
400
372
  ],
401
- "name": "burnAndCollect",
373
+ "name": "flash",
374
+ "outputs": [],
375
+ "stateMutability": "nonpayable",
376
+ "type": "function"
377
+ },
378
+ {
379
+ "inputs": [
380
+ { "internalType": "int24", "name": "bottomTick", "type": "int24" },
381
+ { "internalType": "int24", "name": "topTick", "type": "int24" }
382
+ ],
383
+ "name": "getInnerCumulatives",
402
384
  "outputs": [
403
385
  {
404
- "internalType": "uint256",
405
- "name": "amount0FromBurn",
406
- "type": "uint256"
386
+ "internalType": "int56",
387
+ "name": "innerTickCumulative",
388
+ "type": "int56"
407
389
  },
408
390
  {
409
- "internalType": "uint256",
410
- "name": "amount1FromBurn",
411
- "type": "uint256"
412
- },
413
- {
414
- "internalType": "uint128",
415
- "name": "amount0Collected",
416
- "type": "uint128"
391
+ "internalType": "uint160",
392
+ "name": "innerSecondsSpentPerLiquidity",
393
+ "type": "uint160"
417
394
  },
418
395
  {
419
- "internalType": "uint128",
420
- "name": "amount1Collected",
421
- "type": "uint128"
396
+ "internalType": "uint32",
397
+ "name": "innerSecondsSpent",
398
+ "type": "uint32"
422
399
  }
423
400
  ],
424
- "stateMutability": "nonpayable",
401
+ "stateMutability": "view",
425
402
  "type": "function"
426
403
  },
427
404
  {
428
405
  "inputs": [
429
- { "internalType": "address", "name": "recipient", "type": "address" },
430
- { "internalType": "int24", "name": "tickLower", "type": "int24" },
431
- { "internalType": "int24", "name": "tickUpper", "type": "int24" },
406
+ { "internalType": "uint32[]", "name": "secondsAgos", "type": "uint32[]" }
407
+ ],
408
+ "name": "getTimepoints",
409
+ "outputs": [
432
410
  {
433
- "internalType": "uint128",
434
- "name": "amount0Requested",
435
- "type": "uint128"
411
+ "internalType": "int56[]",
412
+ "name": "tickCumulatives",
413
+ "type": "int56[]"
436
414
  },
437
415
  {
438
- "internalType": "uint128",
439
- "name": "amount1Requested",
440
- "type": "uint128"
441
- }
442
- ],
443
- "name": "collect",
444
- "outputs": [
445
- { "internalType": "uint128", "name": "amount0", "type": "uint128" },
446
- { "internalType": "uint128", "name": "amount1", "type": "uint128" }
447
- ],
448
- "stateMutability": "nonpayable",
449
- "type": "function"
450
- },
451
- {
452
- "inputs": [
453
- { "internalType": "address", "name": "recipient", "type": "address" },
416
+ "internalType": "uint160[]",
417
+ "name": "secondsPerLiquidityCumulatives",
418
+ "type": "uint160[]"
419
+ },
454
420
  {
455
- "internalType": "uint128",
456
- "name": "amount0Requested",
457
- "type": "uint128"
421
+ "internalType": "uint112[]",
422
+ "name": "volatilityCumulatives",
423
+ "type": "uint112[]"
458
424
  },
459
425
  {
460
- "internalType": "uint128",
461
- "name": "amount1Requested",
462
- "type": "uint128"
426
+ "internalType": "uint256[]",
427
+ "name": "volumePerAvgLiquiditys",
428
+ "type": "uint256[]"
463
429
  }
464
430
  ],
465
- "name": "collectProtocol",
466
- "outputs": [
467
- { "internalType": "uint128", "name": "amount0", "type": "uint128" },
468
- { "internalType": "uint128", "name": "amount1", "type": "uint128" }
469
- ],
470
- "stateMutability": "nonpayable",
471
- "type": "function"
472
- },
473
- {
474
- "inputs": [],
475
- "name": "factory",
476
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
477
431
  "stateMutability": "view",
478
432
  "type": "function"
479
433
  },
480
434
  {
481
- "inputs": [
482
- { "internalType": "address", "name": "recipient", "type": "address" },
483
- { "internalType": "uint256", "name": "amount0", "type": "uint256" },
484
- { "internalType": "uint256", "name": "amount1", "type": "uint256" },
485
- { "internalType": "bytes", "name": "data", "type": "bytes" }
435
+ "inputs": [],
436
+ "name": "globalState",
437
+ "outputs": [
438
+ { "internalType": "uint160", "name": "price", "type": "uint160" },
439
+ { "internalType": "int24", "name": "tick", "type": "int24" },
440
+ { "internalType": "uint16", "name": "fee", "type": "uint16" },
441
+ { "internalType": "uint16", "name": "timepointIndex", "type": "uint16" },
442
+ {
443
+ "internalType": "uint8",
444
+ "name": "communityFeeToken0",
445
+ "type": "uint8"
446
+ },
447
+ {
448
+ "internalType": "uint8",
449
+ "name": "communityFeeToken1",
450
+ "type": "uint8"
451
+ },
452
+ { "internalType": "bool", "name": "unlocked", "type": "bool" }
486
453
  ],
487
- "name": "flash",
488
- "outputs": [],
489
- "stateMutability": "nonpayable",
454
+ "stateMutability": "view",
490
455
  "type": "function"
491
456
  },
492
457
  {
493
458
  "inputs": [
494
- { "internalType": "uint160", "name": "sqrtPriceX96", "type": "uint160" }
459
+ { "internalType": "uint160", "name": "initialPrice", "type": "uint160" }
495
460
  ],
496
461
  "name": "initialize",
497
462
  "outputs": [],
@@ -507,139 +472,114 @@
507
472
  },
508
473
  {
509
474
  "inputs": [],
510
- "name": "maxLiquidityPerTick",
511
- "outputs": [{ "internalType": "uint128", "name": "", "type": "uint128" }],
475
+ "name": "liquidityCooldown",
476
+ "outputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }],
512
477
  "stateMutability": "view",
513
478
  "type": "function"
514
479
  },
515
480
  {
516
- "inputs": [
517
- { "internalType": "address", "name": "recipient", "type": "address" },
518
- { "internalType": "int24", "name": "tickLower", "type": "int24" },
519
- { "internalType": "int24", "name": "tickUpper", "type": "int24" },
520
- { "internalType": "uint128", "name": "amount", "type": "uint128" },
521
- { "internalType": "uint256", "name": "amount0Min", "type": "uint256" },
522
- { "internalType": "uint256", "name": "amount1Min", "type": "uint256" },
523
- { "internalType": "uint256", "name": "deadline", "type": "uint256" }
524
- ],
525
- "name": "mint",
526
- "outputs": [
527
- { "internalType": "uint256", "name": "amount0", "type": "uint256" },
528
- { "internalType": "uint256", "name": "amount1", "type": "uint256" }
529
- ],
530
- "stateMutability": "nonpayable",
481
+ "inputs": [],
482
+ "name": "maxLiquidityPerTick",
483
+ "outputs": [{ "internalType": "uint128", "name": "", "type": "uint128" }],
484
+ "stateMutability": "pure",
531
485
  "type": "function"
532
486
  },
533
487
  {
534
488
  "inputs": [
489
+ { "internalType": "address", "name": "sender", "type": "address" },
535
490
  { "internalType": "address", "name": "recipient", "type": "address" },
536
- { "internalType": "int24", "name": "tickLower", "type": "int24" },
537
- { "internalType": "int24", "name": "tickUpper", "type": "int24" },
538
- { "internalType": "uint128", "name": "amount", "type": "uint128" }
491
+ { "internalType": "int24", "name": "bottomTick", "type": "int24" },
492
+ { "internalType": "int24", "name": "topTick", "type": "int24" },
493
+ {
494
+ "internalType": "uint128",
495
+ "name": "liquidityDesired",
496
+ "type": "uint128"
497
+ },
498
+ { "internalType": "bytes", "name": "data", "type": "bytes" }
539
499
  ],
540
500
  "name": "mint",
541
501
  "outputs": [
542
502
  { "internalType": "uint256", "name": "amount0", "type": "uint256" },
543
- { "internalType": "uint256", "name": "amount1", "type": "uint256" }
503
+ { "internalType": "uint256", "name": "amount1", "type": "uint256" },
504
+ {
505
+ "internalType": "uint128",
506
+ "name": "liquidityActual",
507
+ "type": "uint128"
508
+ }
544
509
  ],
545
510
  "stateMutability": "nonpayable",
546
511
  "type": "function"
547
512
  },
548
- {
549
- "inputs": [],
550
- "name": "poolFees",
551
- "outputs": [
552
- { "internalType": "uint128", "name": "token0", "type": "uint128" },
553
- { "internalType": "uint128", "name": "token1", "type": "uint128" }
554
- ],
555
- "stateMutability": "view",
556
- "type": "function"
557
- },
558
513
  {
559
514
  "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
560
515
  "name": "positions",
561
516
  "outputs": [
562
517
  { "internalType": "uint128", "name": "liquidity", "type": "uint128" },
563
- { "internalType": "uint128", "name": "tokensOwed0", "type": "uint128" },
564
- { "internalType": "uint128", "name": "tokensOwed1", "type": "uint128" }
565
- ],
566
- "stateMutability": "view",
567
- "type": "function"
568
- },
569
- {
570
- "inputs": [
571
- { "internalType": "bool", "name": "zeroForOne", "type": "bool" },
572
- { "internalType": "int256", "name": "amountSpecified", "type": "int256" },
573
518
  {
574
- "internalType": "uint160",
575
- "name": "sqrtPriceLimitX96",
576
- "type": "uint160"
577
- }
578
- ],
579
- "name": "quoteSwap",
580
- "outputs": [
581
- { "internalType": "int256", "name": "amount0", "type": "int256" },
582
- { "internalType": "int256", "name": "amount1", "type": "int256" },
519
+ "internalType": "uint32",
520
+ "name": "lastLiquidityAddTimestamp",
521
+ "type": "uint32"
522
+ },
583
523
  {
584
- "internalType": "uint160",
585
- "name": "sqrtPriceX96After",
586
- "type": "uint160"
524
+ "internalType": "uint256",
525
+ "name": "innerFeeGrowth0Token",
526
+ "type": "uint256"
587
527
  },
588
- { "internalType": "int24", "name": "tickAfter", "type": "int24" },
589
- { "internalType": "uint128", "name": "liquidityAfter", "type": "uint128" }
528
+ {
529
+ "internalType": "uint256",
530
+ "name": "innerFeeGrowth1Token",
531
+ "type": "uint256"
532
+ },
533
+ { "internalType": "uint128", "name": "fees0", "type": "uint128" },
534
+ { "internalType": "uint128", "name": "fees1", "type": "uint128" }
590
535
  ],
591
536
  "stateMutability": "view",
592
537
  "type": "function"
593
538
  },
594
539
  {
595
- "inputs": [{ "internalType": "uint24", "name": "fee", "type": "uint24" }],
596
- "name": "setFee",
540
+ "inputs": [
541
+ { "internalType": "uint8", "name": "communityFee0", "type": "uint8" },
542
+ { "internalType": "uint8", "name": "communityFee1", "type": "uint8" }
543
+ ],
544
+ "name": "setCommunityFee",
597
545
  "outputs": [],
598
546
  "stateMutability": "nonpayable",
599
547
  "type": "function"
600
548
  },
601
549
  {
602
- "inputs": [],
603
- "name": "slot0",
604
- "outputs": [
605
- { "internalType": "uint160", "name": "sqrtPriceX96", "type": "uint160" },
606
- { "internalType": "int24", "name": "tick", "type": "int24" },
607
- { "internalType": "uint24", "name": "fee", "type": "uint24" },
608
- { "internalType": "bool", "name": "unlocked", "type": "bool" }
550
+ "inputs": [
551
+ {
552
+ "internalType": "address",
553
+ "name": "virtualPoolAddress",
554
+ "type": "address"
555
+ }
609
556
  ],
610
- "stateMutability": "view",
557
+ "name": "setIncentive",
558
+ "outputs": [],
559
+ "stateMutability": "nonpayable",
611
560
  "type": "function"
612
561
  },
613
562
  {
614
563
  "inputs": [
615
- { "internalType": "address", "name": "recipient", "type": "address" },
616
- { "internalType": "bool", "name": "zeroForOne", "type": "bool" },
617
- { "internalType": "int256", "name": "amountSpecified", "type": "int256" },
618
564
  {
619
- "internalType": "uint160",
620
- "name": "sqrtPriceLimitX96",
621
- "type": "uint160"
622
- },
623
- { "internalType": "uint256", "name": "amountLimit", "type": "uint256" },
624
- { "internalType": "uint256", "name": "deadline", "type": "uint256" },
625
- { "internalType": "bytes", "name": "data", "type": "bytes" }
626
- ],
627
- "name": "swap",
628
- "outputs": [
629
- { "internalType": "int256", "name": "amount0", "type": "int256" },
630
- { "internalType": "int256", "name": "amount1", "type": "int256" }
565
+ "internalType": "uint32",
566
+ "name": "newLiquidityCooldown",
567
+ "type": "uint32"
568
+ }
631
569
  ],
570
+ "name": "setLiquidityCooldown",
571
+ "outputs": [],
632
572
  "stateMutability": "nonpayable",
633
573
  "type": "function"
634
574
  },
635
575
  {
636
576
  "inputs": [
637
577
  { "internalType": "address", "name": "recipient", "type": "address" },
638
- { "internalType": "bool", "name": "zeroForOne", "type": "bool" },
639
- { "internalType": "int256", "name": "amountSpecified", "type": "int256" },
578
+ { "internalType": "bool", "name": "zeroToOne", "type": "bool" },
579
+ { "internalType": "int256", "name": "amountRequired", "type": "int256" },
640
580
  {
641
581
  "internalType": "uint160",
642
- "name": "sqrtPriceLimitX96",
582
+ "name": "limitSqrtPrice",
643
583
  "type": "uint160"
644
584
  },
645
585
  { "internalType": "bytes", "name": "data", "type": "bytes" }
@@ -654,18 +594,18 @@
654
594
  },
655
595
  {
656
596
  "inputs": [
597
+ { "internalType": "address", "name": "sender", "type": "address" },
657
598
  { "internalType": "address", "name": "recipient", "type": "address" },
658
- { "internalType": "bool", "name": "zeroForOne", "type": "bool" },
659
- { "internalType": "int256", "name": "amountSpecified", "type": "int256" },
599
+ { "internalType": "bool", "name": "zeroToOne", "type": "bool" },
600
+ { "internalType": "int256", "name": "amountRequired", "type": "int256" },
660
601
  {
661
602
  "internalType": "uint160",
662
- "name": "sqrtPriceLimitX96",
603
+ "name": "limitSqrtPrice",
663
604
  "type": "uint160"
664
605
  },
665
- { "internalType": "uint256", "name": "amountLimit", "type": "uint256" },
666
- { "internalType": "uint256", "name": "deadline", "type": "uint256" }
606
+ { "internalType": "bytes", "name": "data", "type": "bytes" }
667
607
  ],
668
- "name": "swap",
608
+ "name": "swapSupportingFeeOnInputTokens",
669
609
  "outputs": [
670
610
  { "internalType": "int256", "name": "amount0", "type": "int256" },
671
611
  { "internalType": "int256", "name": "amount1", "type": "int256" }
@@ -674,53 +614,88 @@
674
614
  "type": "function"
675
615
  },
676
616
  {
677
- "inputs": [
678
- { "internalType": "address", "name": "recipient", "type": "address" },
679
- { "internalType": "bool", "name": "zeroForOne", "type": "bool" },
680
- { "internalType": "int256", "name": "amountSpecified", "type": "int256" },
681
- {
682
- "internalType": "uint160",
683
- "name": "sqrtPriceLimitX96",
684
- "type": "uint160"
685
- }
686
- ],
687
- "name": "swap",
688
- "outputs": [
689
- { "internalType": "int256", "name": "amount0", "type": "int256" },
690
- { "internalType": "int256", "name": "amount1", "type": "int256" }
691
- ],
692
- "stateMutability": "nonpayable",
617
+ "inputs": [],
618
+ "name": "tickSpacing",
619
+ "outputs": [{ "internalType": "int24", "name": "", "type": "int24" }],
620
+ "stateMutability": "pure",
693
621
  "type": "function"
694
622
  },
695
623
  {
696
624
  "inputs": [{ "internalType": "int16", "name": "", "type": "int16" }],
697
- "name": "tickBitmap",
625
+ "name": "tickTable",
698
626
  "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
699
627
  "stateMutability": "view",
700
628
  "type": "function"
701
629
  },
702
- {
703
- "inputs": [],
704
- "name": "tickSpacing",
705
- "outputs": [{ "internalType": "int24", "name": "", "type": "int24" }],
706
- "stateMutability": "view",
707
- "type": "function"
708
- },
709
630
  {
710
631
  "inputs": [{ "internalType": "int24", "name": "", "type": "int24" }],
711
632
  "name": "ticks",
712
633
  "outputs": [
713
634
  {
714
635
  "internalType": "uint128",
715
- "name": "liquidityGross",
636
+ "name": "liquidityTotal",
716
637
  "type": "uint128"
717
638
  },
718
- { "internalType": "int128", "name": "liquidityNet", "type": "int128" },
639
+ { "internalType": "int128", "name": "liquidityDelta", "type": "int128" },
640
+ {
641
+ "internalType": "uint256",
642
+ "name": "outerFeeGrowth0Token",
643
+ "type": "uint256"
644
+ },
645
+ {
646
+ "internalType": "uint256",
647
+ "name": "outerFeeGrowth1Token",
648
+ "type": "uint256"
649
+ },
650
+ {
651
+ "internalType": "int56",
652
+ "name": "outerTickCumulative",
653
+ "type": "int56"
654
+ },
655
+ {
656
+ "internalType": "uint160",
657
+ "name": "outerSecondsPerLiquidity",
658
+ "type": "uint160"
659
+ },
660
+ {
661
+ "internalType": "uint32",
662
+ "name": "outerSecondsSpent",
663
+ "type": "uint32"
664
+ },
719
665
  { "internalType": "bool", "name": "initialized", "type": "bool" }
720
666
  ],
721
667
  "stateMutability": "view",
722
668
  "type": "function"
723
669
  },
670
+ {
671
+ "inputs": [
672
+ { "internalType": "uint256", "name": "index", "type": "uint256" }
673
+ ],
674
+ "name": "timepoints",
675
+ "outputs": [
676
+ { "internalType": "bool", "name": "initialized", "type": "bool" },
677
+ { "internalType": "uint32", "name": "blockTimestamp", "type": "uint32" },
678
+ { "internalType": "int56", "name": "tickCumulative", "type": "int56" },
679
+ {
680
+ "internalType": "uint160",
681
+ "name": "secondsPerLiquidityCumulative",
682
+ "type": "uint160"
683
+ },
684
+ {
685
+ "internalType": "uint88",
686
+ "name": "volatilityCumulative",
687
+ "type": "uint88"
688
+ },
689
+ { "internalType": "int24", "name": "averageTick", "type": "int24" },
690
+ {
691
+ "internalType": "uint144",
692
+ "name": "volumePerLiquidityCumulative",
693
+ "type": "uint144"
694
+ }
695
+ ],
696
+ "stateMutability": "view",
697
+ "type": "function"
698
+ },
724
699
  {
725
700
  "inputs": [],
726
701
  "name": "token0",
@@ -734,5 +709,19 @@
734
709
  "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
735
710
  "stateMutability": "view",
736
711
  "type": "function"
712
+ },
713
+ {
714
+ "inputs": [],
715
+ "name": "totalFeeGrowth0Token",
716
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
717
+ "stateMutability": "view",
718
+ "type": "function"
719
+ },
720
+ {
721
+ "inputs": [],
722
+ "name": "totalFeeGrowth1Token",
723
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
724
+ "stateMutability": "view",
725
+ "type": "function"
737
726
  }
738
727
  ]