@paraswap/dex-lib 2.28.11-ramses-v2 → 2.28.11

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 (140) hide show
  1. package/build/config.d.ts +0 -1
  2. package/build/config.js +9 -1
  3. package/build/config.js.map +1 -1
  4. package/build/dex/algebra/algebra.d.ts +1 -1
  5. package/build/dex/algebra/algebra.js +2 -0
  6. package/build/dex/algebra/algebra.js.map +1 -1
  7. package/build/dex/algebra/config.js +0 -1
  8. package/build/dex/algebra/config.js.map +1 -1
  9. package/build/dex/algebra/lib/TickTable.js +51 -40
  10. package/build/dex/algebra/lib/TickTable.js.map +1 -1
  11. package/build/dex/{ramses-v2 → test-dex}/config.d.ts +1 -1
  12. package/build/dex/test-dex/config.js +15 -0
  13. package/build/dex/test-dex/config.js.map +1 -0
  14. package/build/dex/test-dex/test-dex-pool.d.ts +39 -0
  15. package/build/dex/test-dex/test-dex-pool.js +63 -0
  16. package/build/dex/test-dex/test-dex-pool.js.map +1 -0
  17. package/build/dex/test-dex/test-dex.d.ts +37 -0
  18. package/build/dex/test-dex/test-dex.js +126 -0
  19. package/build/dex/test-dex/test-dex.js.map +1 -0
  20. package/build/dex/test-dex/types.d.ts +6 -0
  21. package/build/dex/{pancakeswap-v3 → test-dex}/types.js.map +1 -1
  22. package/build/dex/uniswap-v3/config.js +0 -22
  23. package/build/dex/uniswap-v3/config.js.map +1 -1
  24. package/build/dex/uniswap-v3/types.d.ts +1 -6
  25. package/build/dex/uniswap-v3/types.js.map +1 -1
  26. package/build/dex/uniswap-v3/uniswap-v3-pool.d.ts +2 -3
  27. package/build/dex/uniswap-v3/uniswap-v3-pool.js +2 -5
  28. package/build/dex/uniswap-v3/uniswap-v3-pool.js.map +1 -1
  29. package/build/dex/uniswap-v3/uniswap-v3.js +3 -7
  30. package/build/dex/uniswap-v3/uniswap-v3.js.map +1 -1
  31. package/build/dex/woo-fi-v2/woo-fi-math.d.ts +16 -0
  32. package/build/dex/woo-fi-v2/woo-fi-math.js +137 -0
  33. package/build/dex/woo-fi-v2/woo-fi-math.js.map +1 -0
  34. package/build/types.d.ts +1 -0
  35. package/package.json +1 -1
  36. package/src/config.ts +11 -1
  37. package/src/dex/algebra/algebra-integration.test.ts +194 -16
  38. package/src/dex/algebra/algebra.ts +5 -1
  39. package/src/dex/algebra/config.ts +0 -1
  40. package/src/dex/algebra/lib/TickTable.ts +75 -74
  41. package/src/dex/uniswap-v3/config.ts +0 -22
  42. package/src/dex/uniswap-v3/types.ts +1 -7
  43. package/src/dex/uniswap-v3/uniswap-v3-e2e.test.ts +354 -445
  44. package/src/dex/uniswap-v3/uniswap-v3-integration.test.ts +13 -171
  45. package/src/dex/uniswap-v3/uniswap-v3-pool.ts +4 -9
  46. package/src/dex/uniswap-v3/uniswap-v3.ts +2 -7
  47. package/src/types.ts +1 -0
  48. package/tests/constants-e2e.ts +5 -1
  49. package/.idea/aws.xml +0 -17
  50. package/.idea/codeStyles/Project.xml +0 -19
  51. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  52. package/.idea/misc.xml +0 -6
  53. package/.idea/modules.xml +0 -8
  54. package/.idea/paraswap-dex-lib.iml +0 -9
  55. package/.idea/vcs.xml +0 -6
  56. package/build/abi/RamsesV2StateMulticall.abi.json +0 -891
  57. package/build/abi/algebra/AlgebraPool.abi.json +0 -727
  58. package/build/abi/curve-v1/StableSwapFRXETH.json +0 -889
  59. package/build/abi/curve-v1/StableSwapWBETH.json +0 -1223
  60. package/build/abi/wBETH.json +0 -1527
  61. package/build/dex/algebra/algebra-pool.d.ts +0 -46
  62. package/build/dex/algebra/algebra-pool.js +0 -336
  63. package/build/dex/algebra/algebra-pool.js.map +0 -1
  64. package/build/dex/curve-v1/pools/frxETHpool.d.ts +0 -7
  65. package/build/dex/curve-v1/pools/frxETHpool.js +0 -27
  66. package/build/dex/curve-v1/pools/frxETHpool.js.map +0 -1
  67. package/build/dex/curve-v1/pools/wbETHpool.d.ts +0 -29
  68. package/build/dex/curve-v1/pools/wbETHpool.js +0 -408
  69. package/build/dex/curve-v1/pools/wbETHpool.js.map +0 -1
  70. package/build/dex/pancakeswap-v3/types.d.ts +0 -14
  71. package/build/dex/ramses-v2/config.js +0 -28
  72. package/build/dex/ramses-v2/config.js.map +0 -1
  73. package/build/dex/ramses-v2/constants.d.ts +0 -28
  74. package/build/dex/ramses-v2/constants.js +0 -35
  75. package/build/dex/ramses-v2/constants.js.map +0 -1
  76. package/build/dex/ramses-v2/contract-math/BitMath.d.ts +0 -4
  77. package/build/dex/ramses-v2/contract-math/BitMath.js +0 -93
  78. package/build/dex/ramses-v2/contract-math/BitMath.js.map +0 -1
  79. package/build/dex/ramses-v2/contract-math/FixedPoint128.d.ts +0 -3
  80. package/build/dex/ramses-v2/contract-math/FixedPoint128.js +0 -8
  81. package/build/dex/ramses-v2/contract-math/FixedPoint128.js.map +0 -1
  82. package/build/dex/ramses-v2/contract-math/FixedPoint96.d.ts +0 -4
  83. package/build/dex/ramses-v2/contract-math/FixedPoint96.js +0 -9
  84. package/build/dex/ramses-v2/contract-math/FixedPoint96.js.map +0 -1
  85. package/build/dex/ramses-v2/contract-math/FullMath.d.ts +0 -4
  86. package/build/dex/ramses-v2/contract-math/FullMath.js +0 -19
  87. package/build/dex/ramses-v2/contract-math/FullMath.js.map +0 -1
  88. package/build/dex/ramses-v2/contract-math/LiquidityMath.d.ts +0 -3
  89. package/build/dex/ramses-v2/contract-math/LiquidityMath.js +0 -22
  90. package/build/dex/ramses-v2/contract-math/LiquidityMath.js.map +0 -1
  91. package/build/dex/ramses-v2/contract-math/Oracle.d.ts +0 -10
  92. package/build/dex/ramses-v2/contract-math/Oracle.js +0 -133
  93. package/build/dex/ramses-v2/contract-math/Oracle.js.map +0 -1
  94. package/build/dex/ramses-v2/contract-math/SqrtPriceMath.d.ts +0 -10
  95. package/build/dex/ramses-v2/contract-math/SqrtPriceMath.js +0 -91
  96. package/build/dex/ramses-v2/contract-math/SqrtPriceMath.js.map +0 -1
  97. package/build/dex/ramses-v2/contract-math/SwapMath.d.ts +0 -8
  98. package/build/dex/ramses-v2/contract-math/SwapMath.js +0 -70
  99. package/build/dex/ramses-v2/contract-math/SwapMath.js.map +0 -1
  100. package/build/dex/ramses-v2/contract-math/Tick.d.ts +0 -7
  101. package/build/dex/ramses-v2/contract-math/Tick.js +0 -45
  102. package/build/dex/ramses-v2/contract-math/Tick.js.map +0 -1
  103. package/build/dex/ramses-v2/contract-math/TickBitMap.d.ts +0 -8
  104. package/build/dex/ramses-v2/contract-math/TickBitMap.js +0 -87
  105. package/build/dex/ramses-v2/contract-math/TickBitMap.js.map +0 -1
  106. package/build/dex/ramses-v2/contract-math/TickMath.d.ts +0 -8
  107. package/build/dex/ramses-v2/contract-math/TickMath.js +0 -162
  108. package/build/dex/ramses-v2/contract-math/TickMath.js.map +0 -1
  109. package/build/dex/ramses-v2/contract-math/UnsafeMath.d.ts +0 -3
  110. package/build/dex/ramses-v2/contract-math/UnsafeMath.js +0 -10
  111. package/build/dex/ramses-v2/contract-math/UnsafeMath.js.map +0 -1
  112. package/build/dex/ramses-v2/contract-math/uniswap-v3-math.d.ts +0 -18
  113. package/build/dex/ramses-v2/contract-math/uniswap-v3-math.js +0 -392
  114. package/build/dex/ramses-v2/contract-math/uniswap-v3-math.js.map +0 -1
  115. package/build/dex/ramses-v2/contract-math/utils.d.ts +0 -3
  116. package/build/dex/ramses-v2/contract-math/utils.js +0 -16
  117. package/build/dex/ramses-v2/contract-math/utils.js.map +0 -1
  118. package/build/dex/ramses-v2/ramses-v2-pool.d.ts +0 -42
  119. package/build/dex/ramses-v2/ramses-v2-pool.js +0 -307
  120. package/build/dex/ramses-v2/ramses-v2-pool.js.map +0 -1
  121. package/build/dex/ramses-v2/ramses-v2.d.ts +0 -61
  122. package/build/dex/ramses-v2/ramses-v2.js +0 -690
  123. package/build/dex/ramses-v2/ramses-v2.js.map +0 -1
  124. package/build/dex/ramses-v2/types.d.ts +0 -154
  125. package/build/dex/ramses-v2/types.js +0 -9
  126. package/build/dex/ramses-v2/types.js.map +0 -1
  127. package/build/dex/ramses-v2/utils.d.ts +0 -6
  128. package/build/dex/ramses-v2/utils.js +0 -71
  129. package/build/dex/ramses-v2/utils.js.map +0 -1
  130. package/build/dex/solidly/forks-override/ramses.d.ts +0 -8
  131. package/build/dex/solidly/forks-override/ramses.js +0 -15
  132. package/build/dex/solidly/forks-override/ramses.js.map +0 -1
  133. package/build/dex/uniswap-v3/forks/ramses-v2/utils.d.ts +0 -4
  134. package/build/dex/uniswap-v3/forks/ramses-v2/utils.js +0 -63
  135. package/build/dex/uniswap-v3/forks/ramses-v2/utils.js.map +0 -1
  136. package/src/abi/RamsesV2Pool.abi.json +0 -1554
  137. package/src/abi/RamsesV2Quoter.abi.json +0 -274
  138. package/src/abi/RamsesV2StateMulticall.abi.json +0 -891
  139. package/src/dex/uniswap-v3/forks/ramses-v2/utils.ts +0 -72
  140. /package/build/dex/{pancakeswap-v3 → test-dex}/types.js +0 -0
@@ -1,891 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "contract IRamsesV2Factory",
6
- "name": "factory",
7
- "type": "address"
8
- },
9
- {
10
- "internalType": "address",
11
- "name": "tokenIn",
12
- "type": "address"
13
- },
14
- {
15
- "internalType": "address",
16
- "name": "tokenOut",
17
- "type": "address"
18
- },
19
- {
20
- "internalType": "uint24",
21
- "name": "fee",
22
- "type": "uint24"
23
- },
24
- {
25
- "internalType": "int16",
26
- "name": "tickBitmapStart",
27
- "type": "int16"
28
- },
29
- {
30
- "internalType": "int16",
31
- "name": "tickBitmapEnd",
32
- "type": "int16"
33
- }
34
- ],
35
- "name": "getAdditionalBitmapWithTicks",
36
- "outputs": [
37
- {
38
- "components": [
39
- {
40
- "internalType": "int16",
41
- "name": "index",
42
- "type": "int16"
43
- },
44
- {
45
- "internalType": "uint256",
46
- "name": "value",
47
- "type": "uint256"
48
- }
49
- ],
50
- "internalType": "struct IRamsesV2StateMulticall.TickBitMapMappings[]",
51
- "name": "tickBitmap",
52
- "type": "tuple[]"
53
- },
54
- {
55
- "components": [
56
- {
57
- "internalType": "int24",
58
- "name": "index",
59
- "type": "int24"
60
- },
61
- {
62
- "components": [
63
- {
64
- "internalType": "uint128",
65
- "name": "liquidityGross",
66
- "type": "uint128"
67
- },
68
- {
69
- "internalType": "int128",
70
- "name": "liquidityNet",
71
- "type": "int128"
72
- },
73
- {
74
- "internalType": "uint128",
75
- "name": "cleanUnusedSlot",
76
- "type": "uint128"
77
- },
78
- {
79
- "internalType": "int128",
80
- "name": "cleanUnusedSlot2",
81
- "type": "int128"
82
- },
83
- {
84
- "internalType": "uint256",
85
- "name": "feeGrowthOutside0X128",
86
- "type": "uint256"
87
- },
88
- {
89
- "internalType": "uint256",
90
- "name": "feeGrowthOutside1X128",
91
- "type": "uint256"
92
- },
93
- {
94
- "internalType": "int56",
95
- "name": "tickCumulativeOutside",
96
- "type": "int56"
97
- },
98
- {
99
- "internalType": "uint160",
100
- "name": "secondsPerLiquidityOutsideX128",
101
- "type": "uint160"
102
- },
103
- {
104
- "internalType": "uint32",
105
- "name": "secondsOutside",
106
- "type": "uint32"
107
- },
108
- {
109
- "internalType": "bool",
110
- "name": "initialized",
111
- "type": "bool"
112
- }
113
- ],
114
- "internalType": "struct IRamsesV2StateMulticall.TickInfo",
115
- "name": "value",
116
- "type": "tuple"
117
- }
118
- ],
119
- "internalType": "struct IRamsesV2StateMulticall.TickInfoMappings[]",
120
- "name": "ticks",
121
- "type": "tuple[]"
122
- }
123
- ],
124
- "stateMutability": "view",
125
- "type": "function"
126
- },
127
- {
128
- "inputs": [
129
- {
130
- "internalType": "contract IRamsesV2Factory",
131
- "name": "factory",
132
- "type": "address"
133
- },
134
- {
135
- "internalType": "address",
136
- "name": "tokenIn",
137
- "type": "address"
138
- },
139
- {
140
- "internalType": "address",
141
- "name": "tokenOut",
142
- "type": "address"
143
- },
144
- {
145
- "internalType": "uint24",
146
- "name": "fee",
147
- "type": "uint24"
148
- },
149
- {
150
- "internalType": "int16",
151
- "name": "tickBitmapStart",
152
- "type": "int16"
153
- },
154
- {
155
- "internalType": "int16",
156
- "name": "tickBitmapEnd",
157
- "type": "int16"
158
- }
159
- ],
160
- "name": "getAdditionalBitmapWithoutTicks",
161
- "outputs": [
162
- {
163
- "components": [
164
- {
165
- "internalType": "int16",
166
- "name": "index",
167
- "type": "int16"
168
- },
169
- {
170
- "internalType": "uint256",
171
- "name": "value",
172
- "type": "uint256"
173
- }
174
- ],
175
- "internalType": "struct IRamsesV2StateMulticall.TickBitMapMappings[]",
176
- "name": "tickBitmap",
177
- "type": "tuple[]"
178
- }
179
- ],
180
- "stateMutability": "view",
181
- "type": "function"
182
- },
183
- {
184
- "inputs": [
185
- {
186
- "internalType": "contract IRamsesV2Factory",
187
- "name": "factory",
188
- "type": "address"
189
- },
190
- {
191
- "internalType": "address",
192
- "name": "tokenIn",
193
- "type": "address"
194
- },
195
- {
196
- "internalType": "address",
197
- "name": "tokenOut",
198
- "type": "address"
199
- },
200
- {
201
- "internalType": "uint24",
202
- "name": "fee",
203
- "type": "uint24"
204
- },
205
- {
206
- "internalType": "int16",
207
- "name": "tickBitmapStart",
208
- "type": "int16"
209
- },
210
- {
211
- "internalType": "int16",
212
- "name": "tickBitmapEnd",
213
- "type": "int16"
214
- }
215
- ],
216
- "name": "getFullState",
217
- "outputs": [
218
- {
219
- "components": [
220
- {
221
- "internalType": "contract IRamsesV2Pool",
222
- "name": "pool",
223
- "type": "address"
224
- },
225
- {
226
- "internalType": "uint256",
227
- "name": "blockTimestamp",
228
- "type": "uint256"
229
- },
230
- {
231
- "components": [
232
- {
233
- "internalType": "uint160",
234
- "name": "sqrtPriceX96",
235
- "type": "uint160"
236
- },
237
- {
238
- "internalType": "int24",
239
- "name": "tick",
240
- "type": "int24"
241
- },
242
- {
243
- "internalType": "uint16",
244
- "name": "observationIndex",
245
- "type": "uint16"
246
- },
247
- {
248
- "internalType": "uint16",
249
- "name": "observationCardinality",
250
- "type": "uint16"
251
- },
252
- {
253
- "internalType": "uint16",
254
- "name": "observationCardinalityNext",
255
- "type": "uint16"
256
- },
257
- {
258
- "internalType": "uint8",
259
- "name": "feeProtocol",
260
- "type": "uint8"
261
- },
262
- {
263
- "internalType": "bool",
264
- "name": "unlocked",
265
- "type": "bool"
266
- }
267
- ],
268
- "internalType": "struct IRamsesV2StateMulticall.Slot0",
269
- "name": "slot0",
270
- "type": "tuple"
271
- },
272
- {
273
- "internalType": "uint128",
274
- "name": "liquidity",
275
- "type": "uint128"
276
- },
277
- {
278
- "internalType": "int24",
279
- "name": "tickSpacing",
280
- "type": "int24"
281
- },
282
- {
283
- "internalType": "uint128",
284
- "name": "maxLiquidityPerTick",
285
- "type": "uint128"
286
- },
287
- {
288
- "components": [
289
- {
290
- "internalType": "uint32",
291
- "name": "blockTimestamp",
292
- "type": "uint32"
293
- },
294
- {
295
- "internalType": "int56",
296
- "name": "tickCumulative",
297
- "type": "int56"
298
- },
299
- {
300
- "internalType": "uint160",
301
- "name": "secondsPerLiquidityCumulativeX128",
302
- "type": "uint160"
303
- },
304
- {
305
- "internalType": "bool",
306
- "name": "initialized",
307
- "type": "bool"
308
- },
309
- {
310
- "internalType": "uint160",
311
- "name": "secondsPerBoostedLiquidityPeriodX128",
312
- "type": "uint160"
313
- },
314
- {
315
- "internalType": "uint32",
316
- "name": "boostedInRange",
317
- "type": "uint32"
318
- }
319
- ],
320
- "internalType": "struct IRamsesV2StateMulticall.Observation",
321
- "name": "observation",
322
- "type": "tuple"
323
- },
324
- {
325
- "components": [
326
- {
327
- "internalType": "int16",
328
- "name": "index",
329
- "type": "int16"
330
- },
331
- {
332
- "internalType": "uint256",
333
- "name": "value",
334
- "type": "uint256"
335
- }
336
- ],
337
- "internalType": "struct IRamsesV2StateMulticall.TickBitMapMappings[]",
338
- "name": "tickBitmap",
339
- "type": "tuple[]"
340
- },
341
- {
342
- "components": [
343
- {
344
- "internalType": "int24",
345
- "name": "index",
346
- "type": "int24"
347
- },
348
- {
349
- "components": [
350
- {
351
- "internalType": "uint128",
352
- "name": "liquidityGross",
353
- "type": "uint128"
354
- },
355
- {
356
- "internalType": "int128",
357
- "name": "liquidityNet",
358
- "type": "int128"
359
- },
360
- {
361
- "internalType": "uint128",
362
- "name": "cleanUnusedSlot",
363
- "type": "uint128"
364
- },
365
- {
366
- "internalType": "int128",
367
- "name": "cleanUnusedSlot2",
368
- "type": "int128"
369
- },
370
- {
371
- "internalType": "uint256",
372
- "name": "feeGrowthOutside0X128",
373
- "type": "uint256"
374
- },
375
- {
376
- "internalType": "uint256",
377
- "name": "feeGrowthOutside1X128",
378
- "type": "uint256"
379
- },
380
- {
381
- "internalType": "int56",
382
- "name": "tickCumulativeOutside",
383
- "type": "int56"
384
- },
385
- {
386
- "internalType": "uint160",
387
- "name": "secondsPerLiquidityOutsideX128",
388
- "type": "uint160"
389
- },
390
- {
391
- "internalType": "uint32",
392
- "name": "secondsOutside",
393
- "type": "uint32"
394
- },
395
- {
396
- "internalType": "bool",
397
- "name": "initialized",
398
- "type": "bool"
399
- }
400
- ],
401
- "internalType": "struct IRamsesV2StateMulticall.TickInfo",
402
- "name": "value",
403
- "type": "tuple"
404
- }
405
- ],
406
- "internalType": "struct IRamsesV2StateMulticall.TickInfoMappings[]",
407
- "name": "ticks",
408
- "type": "tuple[]"
409
- }
410
- ],
411
- "internalType": "struct IRamsesV2StateMulticall.StateResult",
412
- "name": "state",
413
- "type": "tuple"
414
- }
415
- ],
416
- "stateMutability": "view",
417
- "type": "function"
418
- },
419
- {
420
- "inputs": [
421
- {
422
- "internalType": "contract IRamsesV2Factory",
423
- "name": "factory",
424
- "type": "address"
425
- },
426
- {
427
- "internalType": "address",
428
- "name": "tokenIn",
429
- "type": "address"
430
- },
431
- {
432
- "internalType": "address",
433
- "name": "tokenOut",
434
- "type": "address"
435
- },
436
- {
437
- "internalType": "uint24",
438
- "name": "fee",
439
- "type": "uint24"
440
- },
441
- {
442
- "internalType": "int16",
443
- "name": "leftBitmapAmount",
444
- "type": "int16"
445
- },
446
- {
447
- "internalType": "int16",
448
- "name": "rightBitmapAmount",
449
- "type": "int16"
450
- }
451
- ],
452
- "name": "getFullStateWithRelativeBitmaps",
453
- "outputs": [
454
- {
455
- "components": [
456
- {
457
- "internalType": "contract IRamsesV2Pool",
458
- "name": "pool",
459
- "type": "address"
460
- },
461
- {
462
- "internalType": "uint256",
463
- "name": "blockTimestamp",
464
- "type": "uint256"
465
- },
466
- {
467
- "components": [
468
- {
469
- "internalType": "uint160",
470
- "name": "sqrtPriceX96",
471
- "type": "uint160"
472
- },
473
- {
474
- "internalType": "int24",
475
- "name": "tick",
476
- "type": "int24"
477
- },
478
- {
479
- "internalType": "uint16",
480
- "name": "observationIndex",
481
- "type": "uint16"
482
- },
483
- {
484
- "internalType": "uint16",
485
- "name": "observationCardinality",
486
- "type": "uint16"
487
- },
488
- {
489
- "internalType": "uint16",
490
- "name": "observationCardinalityNext",
491
- "type": "uint16"
492
- },
493
- {
494
- "internalType": "uint8",
495
- "name": "feeProtocol",
496
- "type": "uint8"
497
- },
498
- {
499
- "internalType": "bool",
500
- "name": "unlocked",
501
- "type": "bool"
502
- }
503
- ],
504
- "internalType": "struct IRamsesV2StateMulticall.Slot0",
505
- "name": "slot0",
506
- "type": "tuple"
507
- },
508
- {
509
- "internalType": "uint128",
510
- "name": "liquidity",
511
- "type": "uint128"
512
- },
513
- {
514
- "internalType": "int24",
515
- "name": "tickSpacing",
516
- "type": "int24"
517
- },
518
- {
519
- "internalType": "uint128",
520
- "name": "maxLiquidityPerTick",
521
- "type": "uint128"
522
- },
523
- {
524
- "components": [
525
- {
526
- "internalType": "uint32",
527
- "name": "blockTimestamp",
528
- "type": "uint32"
529
- },
530
- {
531
- "internalType": "int56",
532
- "name": "tickCumulative",
533
- "type": "int56"
534
- },
535
- {
536
- "internalType": "uint160",
537
- "name": "secondsPerLiquidityCumulativeX128",
538
- "type": "uint160"
539
- },
540
- {
541
- "internalType": "bool",
542
- "name": "initialized",
543
- "type": "bool"
544
- },
545
- {
546
- "internalType": "uint160",
547
- "name": "secondsPerBoostedLiquidityPeriodX128",
548
- "type": "uint160"
549
- },
550
- {
551
- "internalType": "uint32",
552
- "name": "boostedInRange",
553
- "type": "uint32"
554
- }
555
- ],
556
- "internalType": "struct IRamsesV2StateMulticall.Observation",
557
- "name": "observation",
558
- "type": "tuple"
559
- },
560
- {
561
- "components": [
562
- {
563
- "internalType": "int16",
564
- "name": "index",
565
- "type": "int16"
566
- },
567
- {
568
- "internalType": "uint256",
569
- "name": "value",
570
- "type": "uint256"
571
- }
572
- ],
573
- "internalType": "struct IRamsesV2StateMulticall.TickBitMapMappings[]",
574
- "name": "tickBitmap",
575
- "type": "tuple[]"
576
- },
577
- {
578
- "components": [
579
- {
580
- "internalType": "int24",
581
- "name": "index",
582
- "type": "int24"
583
- },
584
- {
585
- "components": [
586
- {
587
- "internalType": "uint128",
588
- "name": "liquidityGross",
589
- "type": "uint128"
590
- },
591
- {
592
- "internalType": "int128",
593
- "name": "liquidityNet",
594
- "type": "int128"
595
- },
596
- {
597
- "internalType": "uint128",
598
- "name": "cleanUnusedSlot",
599
- "type": "uint128"
600
- },
601
- {
602
- "internalType": "int128",
603
- "name": "cleanUnusedSlot2",
604
- "type": "int128"
605
- },
606
- {
607
- "internalType": "uint256",
608
- "name": "feeGrowthOutside0X128",
609
- "type": "uint256"
610
- },
611
- {
612
- "internalType": "uint256",
613
- "name": "feeGrowthOutside1X128",
614
- "type": "uint256"
615
- },
616
- {
617
- "internalType": "int56",
618
- "name": "tickCumulativeOutside",
619
- "type": "int56"
620
- },
621
- {
622
- "internalType": "uint160",
623
- "name": "secondsPerLiquidityOutsideX128",
624
- "type": "uint160"
625
- },
626
- {
627
- "internalType": "uint32",
628
- "name": "secondsOutside",
629
- "type": "uint32"
630
- },
631
- {
632
- "internalType": "bool",
633
- "name": "initialized",
634
- "type": "bool"
635
- }
636
- ],
637
- "internalType": "struct IRamsesV2StateMulticall.TickInfo",
638
- "name": "value",
639
- "type": "tuple"
640
- }
641
- ],
642
- "internalType": "struct IRamsesV2StateMulticall.TickInfoMappings[]",
643
- "name": "ticks",
644
- "type": "tuple[]"
645
- }
646
- ],
647
- "internalType": "struct IRamsesV2StateMulticall.StateResult",
648
- "name": "state",
649
- "type": "tuple"
650
- }
651
- ],
652
- "stateMutability": "view",
653
- "type": "function"
654
- },
655
- {
656
- "inputs": [
657
- {
658
- "internalType": "contract IRamsesV2Factory",
659
- "name": "factory",
660
- "type": "address"
661
- },
662
- {
663
- "internalType": "address",
664
- "name": "tokenIn",
665
- "type": "address"
666
- },
667
- {
668
- "internalType": "address",
669
- "name": "tokenOut",
670
- "type": "address"
671
- },
672
- {
673
- "internalType": "uint24",
674
- "name": "fee",
675
- "type": "uint24"
676
- },
677
- {
678
- "internalType": "int16",
679
- "name": "tickBitmapStart",
680
- "type": "int16"
681
- },
682
- {
683
- "internalType": "int16",
684
- "name": "tickBitmapEnd",
685
- "type": "int16"
686
- }
687
- ],
688
- "name": "getFullStateWithoutTicks",
689
- "outputs": [
690
- {
691
- "components": [
692
- {
693
- "internalType": "contract IRamsesV2Pool",
694
- "name": "pool",
695
- "type": "address"
696
- },
697
- {
698
- "internalType": "uint256",
699
- "name": "blockTimestamp",
700
- "type": "uint256"
701
- },
702
- {
703
- "components": [
704
- {
705
- "internalType": "uint160",
706
- "name": "sqrtPriceX96",
707
- "type": "uint160"
708
- },
709
- {
710
- "internalType": "int24",
711
- "name": "tick",
712
- "type": "int24"
713
- },
714
- {
715
- "internalType": "uint16",
716
- "name": "observationIndex",
717
- "type": "uint16"
718
- },
719
- {
720
- "internalType": "uint16",
721
- "name": "observationCardinality",
722
- "type": "uint16"
723
- },
724
- {
725
- "internalType": "uint16",
726
- "name": "observationCardinalityNext",
727
- "type": "uint16"
728
- },
729
- {
730
- "internalType": "uint8",
731
- "name": "feeProtocol",
732
- "type": "uint8"
733
- },
734
- {
735
- "internalType": "bool",
736
- "name": "unlocked",
737
- "type": "bool"
738
- }
739
- ],
740
- "internalType": "struct IRamsesV2StateMulticall.Slot0",
741
- "name": "slot0",
742
- "type": "tuple"
743
- },
744
- {
745
- "internalType": "uint128",
746
- "name": "liquidity",
747
- "type": "uint128"
748
- },
749
- {
750
- "internalType": "int24",
751
- "name": "tickSpacing",
752
- "type": "int24"
753
- },
754
- {
755
- "internalType": "uint128",
756
- "name": "maxLiquidityPerTick",
757
- "type": "uint128"
758
- },
759
- {
760
- "components": [
761
- {
762
- "internalType": "uint32",
763
- "name": "blockTimestamp",
764
- "type": "uint32"
765
- },
766
- {
767
- "internalType": "int56",
768
- "name": "tickCumulative",
769
- "type": "int56"
770
- },
771
- {
772
- "internalType": "uint160",
773
- "name": "secondsPerLiquidityCumulativeX128",
774
- "type": "uint160"
775
- },
776
- {
777
- "internalType": "bool",
778
- "name": "initialized",
779
- "type": "bool"
780
- },
781
- {
782
- "internalType": "uint160",
783
- "name": "secondsPerBoostedLiquidityPeriodX128",
784
- "type": "uint160"
785
- },
786
- {
787
- "internalType": "uint32",
788
- "name": "boostedInRange",
789
- "type": "uint32"
790
- }
791
- ],
792
- "internalType": "struct IRamsesV2StateMulticall.Observation",
793
- "name": "observation",
794
- "type": "tuple"
795
- },
796
- {
797
- "components": [
798
- {
799
- "internalType": "int16",
800
- "name": "index",
801
- "type": "int16"
802
- },
803
- {
804
- "internalType": "uint256",
805
- "name": "value",
806
- "type": "uint256"
807
- }
808
- ],
809
- "internalType": "struct IRamsesV2StateMulticall.TickBitMapMappings[]",
810
- "name": "tickBitmap",
811
- "type": "tuple[]"
812
- },
813
- {
814
- "components": [
815
- {
816
- "internalType": "int24",
817
- "name": "index",
818
- "type": "int24"
819
- },
820
- {
821
- "components": [
822
- {
823
- "internalType": "uint128",
824
- "name": "liquidityGross",
825
- "type": "uint128"
826
- },
827
- {
828
- "internalType": "int128",
829
- "name": "liquidityNet",
830
- "type": "int128"
831
- },
832
- {
833
- "internalType": "uint128",
834
- "name": "cleanUnusedSlot",
835
- "type": "uint128"
836
- },
837
- {
838
- "internalType": "int128",
839
- "name": "cleanUnusedSlot2",
840
- "type": "int128"
841
- },
842
- {
843
- "internalType": "uint256",
844
- "name": "feeGrowthOutside0X128",
845
- "type": "uint256"
846
- },
847
- {
848
- "internalType": "uint256",
849
- "name": "feeGrowthOutside1X128",
850
- "type": "uint256"
851
- },
852
- {
853
- "internalType": "int56",
854
- "name": "tickCumulativeOutside",
855
- "type": "int56"
856
- },
857
- {
858
- "internalType": "uint160",
859
- "name": "secondsPerLiquidityOutsideX128",
860
- "type": "uint160"
861
- },
862
- {
863
- "internalType": "uint32",
864
- "name": "secondsOutside",
865
- "type": "uint32"
866
- },
867
- {
868
- "internalType": "bool",
869
- "name": "initialized",
870
- "type": "bool"
871
- }
872
- ],
873
- "internalType": "struct IRamsesV2StateMulticall.TickInfo",
874
- "name": "value",
875
- "type": "tuple"
876
- }
877
- ],
878
- "internalType": "struct IRamsesV2StateMulticall.TickInfoMappings[]",
879
- "name": "ticks",
880
- "type": "tuple[]"
881
- }
882
- ],
883
- "internalType": "struct IRamsesV2StateMulticall.StateResult",
884
- "name": "state",
885
- "type": "tuple"
886
- }
887
- ],
888
- "stateMutability": "view",
889
- "type": "function"
890
- }
891
- ]