@paraswap/dex-lib 4.7.13 → 4.7.14-multi-route.1

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 (153) hide show
  1. package/build/abi/pharaoh-v3/PharaohV3Factory.abi.json +39 -0
  2. package/build/abi/pharaoh-v3/PharaohV3Pool.abi.json +802 -0
  3. package/build/abi/pharaoh-v3/PharaohV3StateMulticall.abi.json +781 -0
  4. package/build/abi/uniswap-v4/hooks/arena/arena-fee-helper.abi.json +476 -0
  5. package/build/dex/idle-dao/idle-dao.d.ts +1 -0
  6. package/build/dex/idle-dao/idle-dao.js +23 -11
  7. package/build/dex/idle-dao/idle-dao.js.map +1 -1
  8. package/build/dex/{se-vlr/se-vlr-pool.d.ts → maker-psm/maker-psm-event-pool.d.ts} +15 -11
  9. package/build/dex/maker-psm/maker-psm-event-pool.js +132 -0
  10. package/build/dex/maker-psm/maker-psm-event-pool.js.map +1 -0
  11. package/build/dex/maker-psm/maker-psm.d.ts +4 -41
  12. package/build/dex/maker-psm/maker-psm.js +40 -143
  13. package/build/dex/maker-psm/maker-psm.js.map +1 -1
  14. package/build/dex/uniswap-v3/forks/pharaoh-v3/pharaoh-v3-factory.d.ts +7 -0
  15. package/build/dex/uniswap-v3/forks/pharaoh-v3/pharaoh-v3-factory.js +20 -0
  16. package/build/dex/uniswap-v3/forks/pharaoh-v3/pharaoh-v3-factory.js.map +1 -0
  17. package/build/dex/uniswap-v3/forks/pharaoh-v3/pharaoh-v3-pool.d.ts +12 -0
  18. package/build/dex/uniswap-v3/forks/pharaoh-v3/pharaoh-v3-pool.js +139 -0
  19. package/build/dex/uniswap-v3/forks/pharaoh-v3/pharaoh-v3-pool.js.map +1 -0
  20. package/build/dex/uniswap-v3/forks/pharaoh-v3/pharaoh-v3.d.ts +11 -0
  21. package/build/dex/uniswap-v3/forks/pharaoh-v3/pharaoh-v3.js +128 -0
  22. package/build/dex/uniswap-v3/forks/pharaoh-v3/pharaoh-v3.js.map +1 -0
  23. package/build/dex/uniswap-v3/forks/pharaoh-v3/utils.d.ts +4 -0
  24. package/build/dex/uniswap-v3/forks/pharaoh-v3/utils.js +56 -0
  25. package/build/dex/uniswap-v3/forks/pharaoh-v3/utils.js.map +1 -0
  26. package/build/dex/uniswap-v4/contract-math/Position.d.ts +6 -0
  27. package/build/dex/uniswap-v4/contract-math/Position.js +29 -0
  28. package/build/dex/uniswap-v4/contract-math/Position.js.map +1 -1
  29. package/build/dex/uniswap-v4/hooks/arena/arena-fee-helper.d.ts +36 -0
  30. package/build/dex/uniswap-v4/hooks/arena/arena-fee-helper.js +125 -0
  31. package/build/dex/uniswap-v4/hooks/arena/arena-fee-helper.js.map +1 -0
  32. package/build/dex/uniswap-v4/hooks/arena/arena-hook.d.ts +21 -0
  33. package/build/dex/uniswap-v4/hooks/arena/arena-hook.js +93 -0
  34. package/build/dex/uniswap-v4/hooks/arena/arena-hook.js.map +1 -0
  35. package/build/dex/uniswap-v4/hooks/arena/config.d.ts +3 -0
  36. package/build/dex/uniswap-v4/hooks/arena/config.js +11 -0
  37. package/build/dex/uniswap-v4/hooks/arena/config.js.map +1 -0
  38. package/build/dex/uniswap-v4/hooks/arena/types.d.ts +5 -0
  39. package/build/dex/uniswap-v4/hooks/arena/types.js.map +1 -0
  40. package/build/dex/uniswap-v4/hooks/types.d.ts +60 -0
  41. package/build/dex/uniswap-v4/hooks/types.js.map +1 -0
  42. package/build/executor/Executor01BytecodeBuilder.d.ts +5 -5
  43. package/build/executor/Executor01BytecodeBuilder.js +17 -14
  44. package/build/executor/Executor01BytecodeBuilder.js.map +1 -1
  45. package/build/executor/Executor02BytecodeBuilder.d.ts +11 -8
  46. package/build/executor/Executor02BytecodeBuilder.js +107 -103
  47. package/build/executor/Executor02BytecodeBuilder.js.map +1 -1
  48. package/build/executor/Executor03BytecodeBuilder.d.ts +5 -5
  49. package/build/executor/Executor03BytecodeBuilder.js +14 -11
  50. package/build/executor/Executor03BytecodeBuilder.js.map +1 -1
  51. package/build/executor/ExecutorBytecodeBuilder.d.ts +8 -8
  52. package/build/executor/ExecutorBytecodeBuilder.js +8 -8
  53. package/build/executor/ExecutorBytecodeBuilder.js.map +1 -1
  54. package/build/executor/WETHBytecodeBuilder.d.ts +2 -2
  55. package/build/executor/WETHBytecodeBuilder.js +1 -1
  56. package/build/executor/WETHBytecodeBuilder.js.map +1 -1
  57. package/build/executor/types.d.ts +21 -0
  58. package/build/executor/types.js.map +1 -1
  59. package/build/executor/utils.d.ts +20 -0
  60. package/build/executor/utils.js +129 -0
  61. package/build/executor/utils.js.map +1 -1
  62. package/build/generic-swap-transaction-builder.d.ts +4 -0
  63. package/build/generic-swap-transaction-builder.js +134 -52
  64. package/build/generic-swap-transaction-builder.js.map +1 -1
  65. package/package.json +12 -3
  66. package/build/abi/BProtocol.json +0 -1155
  67. package/build/abi/Jarvis.json +0 -1172
  68. package/build/abi/MStableAsset.json +0 -1545
  69. package/build/abi/OneInchLp.json +0 -1304
  70. package/build/abi/Onebit.json +0 -736
  71. package/build/abi/Shell.json +0 -1294
  72. package/build/abi/TraderJoeV2Router.json +0 -50
  73. package/build/abi/wUSDM.json +0 -757
  74. package/build/abi/zrx.v2.json +0 -1967
  75. package/build/abi/zrx.v3.json +0 -3454
  76. package/build/abi/zrx.v4.json +0 -2193
  77. package/build/dex/OneInchLp.d.ts +0 -24
  78. package/build/dex/OneInchLp.js +0 -43
  79. package/build/dex/OneInchLp.js.map +0 -1
  80. package/build/dex/bProtocol/bProtocol.d.ts +0 -15
  81. package/build/dex/bProtocol/bProtocol.js +0 -56
  82. package/build/dex/bProtocol/bProtocol.js.map +0 -1
  83. package/build/dex/bProtocol/types.d.ts +0 -11
  84. package/build/dex/bProtocol/types.js +0 -8
  85. package/build/dex/bProtocol/types.js.map +0 -1
  86. package/build/dex/jarvis.d.ts +0 -56
  87. package/build/dex/jarvis.js +0 -163
  88. package/build/dex/jarvis.js.map +0 -1
  89. package/build/dex/mStable.d.ts +0 -44
  90. package/build/dex/mStable.js +0 -75
  91. package/build/dex/mStable.js.map +0 -1
  92. package/build/dex/onebit/onebit.d.ts +0 -16
  93. package/build/dex/onebit/onebit.js +0 -61
  94. package/build/dex/onebit/onebit.js.map +0 -1
  95. package/build/dex/onebit/types.d.ts +0 -14
  96. package/build/dex/onebit/types.js +0 -8
  97. package/build/dex/onebit/types.js.map +0 -1
  98. package/build/dex/se-vlr/config.d.ts +0 -3
  99. package/build/dex/se-vlr/config.js +0 -24
  100. package/build/dex/se-vlr/config.js.map +0 -1
  101. package/build/dex/se-vlr/se-vlr-pool.js +0 -70
  102. package/build/dex/se-vlr/se-vlr-pool.js.map +0 -1
  103. package/build/dex/se-vlr/se-vlr.d.ts +0 -35
  104. package/build/dex/se-vlr/se-vlr.js +0 -131
  105. package/build/dex/se-vlr/se-vlr.js.map +0 -1
  106. package/build/dex/se-vlr/types.d.ts +0 -6
  107. package/build/dex/se-vlr/types.js.map +0 -1
  108. package/build/dex/shell.d.ts +0 -25
  109. package/build/dex/shell.js +0 -41
  110. package/build/dex/shell.js.map +0 -1
  111. package/build/dex/trader-joe-v2.d.ts +0 -40
  112. package/build/dex/trader-joe-v2.js +0 -74
  113. package/build/dex/trader-joe-v2.js.map +0 -1
  114. package/build/dex/uniswap-v3/uniswap-v3-new.d.ts +0 -94
  115. package/build/dex/uniswap-v3/uniswap-v3-new.js +0 -923
  116. package/build/dex/uniswap-v3/uniswap-v3-new.js.map +0 -1
  117. package/build/dex/usual-bond/config.d.ts +0 -3
  118. package/build/dex/usual-bond/config.js +0 -13
  119. package/build/dex/usual-bond/config.js.map +0 -1
  120. package/build/dex/usual-bond/types.d.ts +0 -7
  121. package/build/dex/usual-bond/types.js.map +0 -1
  122. package/build/dex/usual-bond/usual-bond.d.ts +0 -35
  123. package/build/dex/usual-bond/usual-bond.js +0 -176
  124. package/build/dex/usual-bond/usual-bond.js.map +0 -1
  125. package/build/dex/wusdm/config.d.ts +0 -3
  126. package/build/dex/wusdm/config.js +0 -43
  127. package/build/dex/wusdm/config.js.map +0 -1
  128. package/build/dex/wusdm/constants.d.ts +0 -2
  129. package/build/dex/wusdm/constants.js +0 -6
  130. package/build/dex/wusdm/constants.js.map +0 -1
  131. package/build/dex/wusdm/types.d.ts +0 -18
  132. package/build/dex/wusdm/types.js +0 -11
  133. package/build/dex/wusdm/types.js.map +0 -1
  134. package/build/dex/wusdm/wusdm-pool.d.ts +0 -21
  135. package/build/dex/wusdm/wusdm-pool.js +0 -74
  136. package/build/dex/wusdm/wusdm-pool.js.map +0 -1
  137. package/build/dex/wusdm/wusdm.d.ts +0 -46
  138. package/build/dex/wusdm/wusdm.js +0 -243
  139. package/build/dex/wusdm/wusdm.js.map +0 -1
  140. package/build/dex/zerox/config.d.ts +0 -2
  141. package/build/dex/zerox/config.js +0 -33
  142. package/build/dex/zerox/config.js.map +0 -1
  143. package/build/dex/zerox/index.d.ts +0 -22
  144. package/build/dex/zerox/index.js +0 -225
  145. package/build/dex/zerox/index.js.map +0 -1
  146. package/build/dex/zerox/order.d.ts +0 -88
  147. package/build/dex/zerox/order.js +0 -53
  148. package/build/dex/zerox/order.js.map +0 -1
  149. package/build/dex/zerox/types.d.ts +0 -73
  150. package/build/dex/zerox/types.js +0 -21
  151. package/build/dex/zerox/types.js.map +0 -1
  152. /package/build/dex/{se-vlr → uniswap-v4/hooks/arena}/types.js +0 -0
  153. /package/build/dex/{usual-bond → uniswap-v4/hooks}/types.js +0 -0
@@ -0,0 +1,802 @@
1
+ [
2
+ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" },
3
+ { "inputs": [], "name": "AI", "type": "error" },
4
+ { "inputs": [], "name": "AS", "type": "error" },
5
+ { "inputs": [], "name": "F0", "type": "error" },
6
+ { "inputs": [], "name": "F1", "type": "error" },
7
+ { "inputs": [], "name": "I", "type": "error" },
8
+ { "inputs": [], "name": "IIA", "type": "error" },
9
+ { "inputs": [], "name": "L", "type": "error" },
10
+ { "inputs": [], "name": "LOK", "type": "error" },
11
+ { "inputs": [], "name": "M0", "type": "error" },
12
+ { "inputs": [], "name": "M1", "type": "error" },
13
+ { "inputs": [], "name": "NOT_AUTHORIZED", "type": "error" },
14
+ { "inputs": [], "name": "OLD", "type": "error" },
15
+ { "inputs": [], "name": "R", "type": "error" },
16
+ { "inputs": [], "name": "SPL", "type": "error" },
17
+ { "inputs": [], "name": "T", "type": "error" },
18
+ { "inputs": [], "name": "TF", "type": "error" },
19
+ { "inputs": [], "name": "TLM", "type": "error" },
20
+ { "inputs": [], "name": "TLU", "type": "error" },
21
+ { "inputs": [], "name": "TUM", "type": "error" },
22
+ {
23
+ "anonymous": false,
24
+ "inputs": [
25
+ {
26
+ "indexed": true,
27
+ "internalType": "address",
28
+ "name": "owner",
29
+ "type": "address"
30
+ },
31
+ {
32
+ "indexed": true,
33
+ "internalType": "int24",
34
+ "name": "tickLower",
35
+ "type": "int24"
36
+ },
37
+ {
38
+ "indexed": true,
39
+ "internalType": "int24",
40
+ "name": "tickUpper",
41
+ "type": "int24"
42
+ },
43
+ {
44
+ "indexed": false,
45
+ "internalType": "uint128",
46
+ "name": "amount",
47
+ "type": "uint128"
48
+ },
49
+ {
50
+ "indexed": false,
51
+ "internalType": "uint256",
52
+ "name": "amount0",
53
+ "type": "uint256"
54
+ },
55
+ {
56
+ "indexed": false,
57
+ "internalType": "uint256",
58
+ "name": "amount1",
59
+ "type": "uint256"
60
+ }
61
+ ],
62
+ "name": "Burn",
63
+ "type": "event"
64
+ },
65
+ {
66
+ "anonymous": false,
67
+ "inputs": [
68
+ {
69
+ "indexed": true,
70
+ "internalType": "address",
71
+ "name": "owner",
72
+ "type": "address"
73
+ },
74
+ {
75
+ "indexed": false,
76
+ "internalType": "address",
77
+ "name": "recipient",
78
+ "type": "address"
79
+ },
80
+ {
81
+ "indexed": true,
82
+ "internalType": "int24",
83
+ "name": "tickLower",
84
+ "type": "int24"
85
+ },
86
+ {
87
+ "indexed": true,
88
+ "internalType": "int24",
89
+ "name": "tickUpper",
90
+ "type": "int24"
91
+ },
92
+ {
93
+ "indexed": false,
94
+ "internalType": "uint128",
95
+ "name": "amount0",
96
+ "type": "uint128"
97
+ },
98
+ {
99
+ "indexed": false,
100
+ "internalType": "uint128",
101
+ "name": "amount1",
102
+ "type": "uint128"
103
+ }
104
+ ],
105
+ "name": "Collect",
106
+ "type": "event"
107
+ },
108
+ {
109
+ "anonymous": false,
110
+ "inputs": [
111
+ {
112
+ "indexed": true,
113
+ "internalType": "address",
114
+ "name": "sender",
115
+ "type": "address"
116
+ },
117
+ {
118
+ "indexed": true,
119
+ "internalType": "address",
120
+ "name": "recipient",
121
+ "type": "address"
122
+ },
123
+ {
124
+ "indexed": false,
125
+ "internalType": "uint128",
126
+ "name": "amount0",
127
+ "type": "uint128"
128
+ },
129
+ {
130
+ "indexed": false,
131
+ "internalType": "uint128",
132
+ "name": "amount1",
133
+ "type": "uint128"
134
+ }
135
+ ],
136
+ "name": "CollectProtocol",
137
+ "type": "event"
138
+ },
139
+ {
140
+ "anonymous": false,
141
+ "inputs": [
142
+ {
143
+ "indexed": true,
144
+ "internalType": "address",
145
+ "name": "sender",
146
+ "type": "address"
147
+ },
148
+ {
149
+ "indexed": true,
150
+ "internalType": "address",
151
+ "name": "recipient",
152
+ "type": "address"
153
+ },
154
+ {
155
+ "indexed": false,
156
+ "internalType": "uint256",
157
+ "name": "amount0",
158
+ "type": "uint256"
159
+ },
160
+ {
161
+ "indexed": false,
162
+ "internalType": "uint256",
163
+ "name": "amount1",
164
+ "type": "uint256"
165
+ },
166
+ {
167
+ "indexed": false,
168
+ "internalType": "uint256",
169
+ "name": "paid0",
170
+ "type": "uint256"
171
+ },
172
+ {
173
+ "indexed": false,
174
+ "internalType": "uint256",
175
+ "name": "paid1",
176
+ "type": "uint256"
177
+ }
178
+ ],
179
+ "name": "Flash",
180
+ "type": "event"
181
+ },
182
+ {
183
+ "anonymous": false,
184
+ "inputs": [
185
+ {
186
+ "indexed": false,
187
+ "internalType": "uint16",
188
+ "name": "observationCardinalityNextOld",
189
+ "type": "uint16"
190
+ },
191
+ {
192
+ "indexed": false,
193
+ "internalType": "uint16",
194
+ "name": "observationCardinalityNextNew",
195
+ "type": "uint16"
196
+ }
197
+ ],
198
+ "name": "IncreaseObservationCardinalityNext",
199
+ "type": "event"
200
+ },
201
+ {
202
+ "anonymous": false,
203
+ "inputs": [
204
+ {
205
+ "indexed": false,
206
+ "internalType": "uint160",
207
+ "name": "sqrtPriceX96",
208
+ "type": "uint160"
209
+ },
210
+ {
211
+ "indexed": false,
212
+ "internalType": "int24",
213
+ "name": "tick",
214
+ "type": "int24"
215
+ }
216
+ ],
217
+ "name": "Initialize",
218
+ "type": "event"
219
+ },
220
+ {
221
+ "anonymous": false,
222
+ "inputs": [
223
+ {
224
+ "indexed": false,
225
+ "internalType": "address",
226
+ "name": "sender",
227
+ "type": "address"
228
+ },
229
+ {
230
+ "indexed": true,
231
+ "internalType": "address",
232
+ "name": "owner",
233
+ "type": "address"
234
+ },
235
+ {
236
+ "indexed": false,
237
+ "internalType": "uint256",
238
+ "name": "index",
239
+ "type": "uint256"
240
+ },
241
+ {
242
+ "indexed": true,
243
+ "internalType": "int24",
244
+ "name": "tickLower",
245
+ "type": "int24"
246
+ },
247
+ {
248
+ "indexed": true,
249
+ "internalType": "int24",
250
+ "name": "tickUpper",
251
+ "type": "int24"
252
+ },
253
+ {
254
+ "indexed": false,
255
+ "internalType": "uint128",
256
+ "name": "amount",
257
+ "type": "uint128"
258
+ },
259
+ {
260
+ "indexed": false,
261
+ "internalType": "uint256",
262
+ "name": "amount0",
263
+ "type": "uint256"
264
+ },
265
+ {
266
+ "indexed": false,
267
+ "internalType": "uint256",
268
+ "name": "amount1",
269
+ "type": "uint256"
270
+ }
271
+ ],
272
+ "name": "Mint",
273
+ "type": "event"
274
+ },
275
+ {
276
+ "anonymous": false,
277
+ "inputs": [
278
+ {
279
+ "indexed": false,
280
+ "internalType": "uint8",
281
+ "name": "feeProtocol0Old",
282
+ "type": "uint8"
283
+ },
284
+ {
285
+ "indexed": false,
286
+ "internalType": "uint8",
287
+ "name": "feeProtocol1Old",
288
+ "type": "uint8"
289
+ },
290
+ {
291
+ "indexed": false,
292
+ "internalType": "uint8",
293
+ "name": "feeProtocol0New",
294
+ "type": "uint8"
295
+ },
296
+ {
297
+ "indexed": false,
298
+ "internalType": "uint8",
299
+ "name": "feeProtocol1New",
300
+ "type": "uint8"
301
+ }
302
+ ],
303
+ "name": "SetFeeProtocol",
304
+ "type": "event"
305
+ },
306
+ {
307
+ "anonymous": false,
308
+ "inputs": [
309
+ {
310
+ "indexed": true,
311
+ "internalType": "address",
312
+ "name": "sender",
313
+ "type": "address"
314
+ },
315
+ {
316
+ "indexed": true,
317
+ "internalType": "address",
318
+ "name": "recipient",
319
+ "type": "address"
320
+ },
321
+ {
322
+ "indexed": false,
323
+ "internalType": "int256",
324
+ "name": "amount0",
325
+ "type": "int256"
326
+ },
327
+ {
328
+ "indexed": false,
329
+ "internalType": "int256",
330
+ "name": "amount1",
331
+ "type": "int256"
332
+ },
333
+ {
334
+ "indexed": false,
335
+ "internalType": "uint160",
336
+ "name": "sqrtPriceX96",
337
+ "type": "uint160"
338
+ },
339
+ {
340
+ "indexed": false,
341
+ "internalType": "uint128",
342
+ "name": "liquidity",
343
+ "type": "uint128"
344
+ },
345
+ {
346
+ "indexed": false,
347
+ "internalType": "int24",
348
+ "name": "tick",
349
+ "type": "int24"
350
+ }
351
+ ],
352
+ "name": "Swap",
353
+ "type": "event"
354
+ },
355
+ {
356
+ "inputs": [],
357
+ "name": "_advancePeriod",
358
+ "outputs": [],
359
+ "stateMutability": "nonpayable",
360
+ "type": "function"
361
+ },
362
+ {
363
+ "inputs": [
364
+ { "internalType": "uint256", "name": "index", "type": "uint256" },
365
+ { "internalType": "int24", "name": "tickLower", "type": "int24" },
366
+ { "internalType": "int24", "name": "tickUpper", "type": "int24" },
367
+ { "internalType": "uint128", "name": "amount", "type": "uint128" }
368
+ ],
369
+ "name": "burn",
370
+ "outputs": [
371
+ { "internalType": "uint256", "name": "amount0", "type": "uint256" },
372
+ { "internalType": "uint256", "name": "amount1", "type": "uint256" }
373
+ ],
374
+ "stateMutability": "nonpayable",
375
+ "type": "function"
376
+ },
377
+ {
378
+ "inputs": [
379
+ { "internalType": "address", "name": "recipient", "type": "address" },
380
+ { "internalType": "uint256", "name": "index", "type": "uint256" },
381
+ { "internalType": "int24", "name": "tickLower", "type": "int24" },
382
+ { "internalType": "int24", "name": "tickUpper", "type": "int24" },
383
+ {
384
+ "internalType": "uint128",
385
+ "name": "amount0Requested",
386
+ "type": "uint128"
387
+ },
388
+ {
389
+ "internalType": "uint128",
390
+ "name": "amount1Requested",
391
+ "type": "uint128"
392
+ }
393
+ ],
394
+ "name": "collect",
395
+ "outputs": [
396
+ { "internalType": "uint128", "name": "amount0", "type": "uint128" },
397
+ { "internalType": "uint128", "name": "amount1", "type": "uint128" }
398
+ ],
399
+ "stateMutability": "nonpayable",
400
+ "type": "function"
401
+ },
402
+ {
403
+ "inputs": [
404
+ { "internalType": "address", "name": "recipient", "type": "address" },
405
+ {
406
+ "internalType": "uint128",
407
+ "name": "amount0Requested",
408
+ "type": "uint128"
409
+ },
410
+ {
411
+ "internalType": "uint128",
412
+ "name": "amount1Requested",
413
+ "type": "uint128"
414
+ }
415
+ ],
416
+ "name": "collectProtocol",
417
+ "outputs": [
418
+ { "internalType": "uint128", "name": "amount0", "type": "uint128" },
419
+ { "internalType": "uint128", "name": "amount1", "type": "uint128" }
420
+ ],
421
+ "stateMutability": "nonpayable",
422
+ "type": "function"
423
+ },
424
+ {
425
+ "inputs": [],
426
+ "name": "factory",
427
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
428
+ "stateMutability": "view",
429
+ "type": "function"
430
+ },
431
+ {
432
+ "inputs": [],
433
+ "name": "fee",
434
+ "outputs": [{ "internalType": "uint24", "name": "", "type": "uint24" }],
435
+ "stateMutability": "view",
436
+ "type": "function"
437
+ },
438
+ {
439
+ "inputs": [],
440
+ "name": "feeGrowthGlobal0X128",
441
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
442
+ "stateMutability": "view",
443
+ "type": "function"
444
+ },
445
+ {
446
+ "inputs": [],
447
+ "name": "feeGrowthGlobal1X128",
448
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
449
+ "stateMutability": "view",
450
+ "type": "function"
451
+ },
452
+ {
453
+ "inputs": [
454
+ { "internalType": "address", "name": "recipient", "type": "address" },
455
+ { "internalType": "uint256", "name": "amount0", "type": "uint256" },
456
+ { "internalType": "uint256", "name": "amount1", "type": "uint256" },
457
+ { "internalType": "bytes", "name": "data", "type": "bytes" }
458
+ ],
459
+ "name": "flash",
460
+ "outputs": [],
461
+ "stateMutability": "nonpayable",
462
+ "type": "function"
463
+ },
464
+ {
465
+ "inputs": [],
466
+ "name": "grossFeeGrowthGlobal0X128",
467
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
468
+ "stateMutability": "view",
469
+ "type": "function"
470
+ },
471
+ {
472
+ "inputs": [],
473
+ "name": "grossFeeGrowthGlobal1X128",
474
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
475
+ "stateMutability": "view",
476
+ "type": "function"
477
+ },
478
+ {
479
+ "inputs": [
480
+ {
481
+ "internalType": "uint16",
482
+ "name": "observationCardinalityNext",
483
+ "type": "uint16"
484
+ }
485
+ ],
486
+ "name": "increaseObservationCardinalityNext",
487
+ "outputs": [],
488
+ "stateMutability": "nonpayable",
489
+ "type": "function"
490
+ },
491
+ {
492
+ "inputs": [
493
+ { "internalType": "uint160", "name": "sqrtPriceX96", "type": "uint160" }
494
+ ],
495
+ "name": "initialize",
496
+ "outputs": [],
497
+ "stateMutability": "nonpayable",
498
+ "type": "function"
499
+ },
500
+ {
501
+ "inputs": [],
502
+ "name": "lastPeriod",
503
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
504
+ "stateMutability": "view",
505
+ "type": "function"
506
+ },
507
+ {
508
+ "inputs": [],
509
+ "name": "liquidity",
510
+ "outputs": [{ "internalType": "uint128", "name": "", "type": "uint128" }],
511
+ "stateMutability": "view",
512
+ "type": "function"
513
+ },
514
+ {
515
+ "inputs": [],
516
+ "name": "maxLiquidityPerTick",
517
+ "outputs": [{ "internalType": "uint128", "name": "", "type": "uint128" }],
518
+ "stateMutability": "view",
519
+ "type": "function"
520
+ },
521
+ {
522
+ "inputs": [
523
+ { "internalType": "address", "name": "recipient", "type": "address" },
524
+ { "internalType": "uint256", "name": "index", "type": "uint256" },
525
+ { "internalType": "int24", "name": "tickLower", "type": "int24" },
526
+ { "internalType": "int24", "name": "tickUpper", "type": "int24" },
527
+ { "internalType": "uint128", "name": "amount", "type": "uint128" },
528
+ { "internalType": "bytes", "name": "data", "type": "bytes" }
529
+ ],
530
+ "name": "mint",
531
+ "outputs": [
532
+ { "internalType": "uint256", "name": "amount0", "type": "uint256" },
533
+ { "internalType": "uint256", "name": "amount1", "type": "uint256" }
534
+ ],
535
+ "stateMutability": "nonpayable",
536
+ "type": "function"
537
+ },
538
+ {
539
+ "inputs": [
540
+ { "internalType": "uint256", "name": "index", "type": "uint256" }
541
+ ],
542
+ "name": "observations",
543
+ "outputs": [
544
+ { "internalType": "uint32", "name": "blockTimestamp", "type": "uint32" },
545
+ { "internalType": "int56", "name": "tickCumulative", "type": "int56" },
546
+ {
547
+ "internalType": "uint160",
548
+ "name": "secondsPerLiquidityCumulativeX128",
549
+ "type": "uint160"
550
+ },
551
+ { "internalType": "bool", "name": "initialized", "type": "bool" }
552
+ ],
553
+ "stateMutability": "view",
554
+ "type": "function"
555
+ },
556
+ {
557
+ "inputs": [
558
+ { "internalType": "uint32[]", "name": "secondsAgos", "type": "uint32[]" }
559
+ ],
560
+ "name": "observe",
561
+ "outputs": [
562
+ {
563
+ "internalType": "int56[]",
564
+ "name": "tickCumulatives",
565
+ "type": "int56[]"
566
+ },
567
+ {
568
+ "internalType": "uint160[]",
569
+ "name": "secondsPerLiquidityCumulativeX128s",
570
+ "type": "uint160[]"
571
+ }
572
+ ],
573
+ "stateMutability": "view",
574
+ "type": "function"
575
+ },
576
+ {
577
+ "inputs": [
578
+ { "internalType": "uint256", "name": "period", "type": "uint256" }
579
+ ],
580
+ "name": "periods",
581
+ "outputs": [
582
+ { "internalType": "uint32", "name": "previousPeriod", "type": "uint32" },
583
+ { "internalType": "int24", "name": "startTick", "type": "int24" },
584
+ { "internalType": "int24", "name": "lastTick", "type": "int24" },
585
+ {
586
+ "internalType": "uint160",
587
+ "name": "endSecondsPerLiquidityPeriodX128",
588
+ "type": "uint160"
589
+ }
590
+ ],
591
+ "stateMutability": "view",
592
+ "type": "function"
593
+ },
594
+ {
595
+ "inputs": [
596
+ { "internalType": "uint256", "name": "period", "type": "uint256" },
597
+ { "internalType": "address", "name": "owner", "type": "address" },
598
+ { "internalType": "uint256", "name": "index", "type": "uint256" },
599
+ { "internalType": "int24", "name": "tickLower", "type": "int24" },
600
+ { "internalType": "int24", "name": "tickUpper", "type": "int24" }
601
+ ],
602
+ "name": "positionPeriodSecondsInRange",
603
+ "outputs": [
604
+ {
605
+ "internalType": "uint256",
606
+ "name": "periodSecondsInsideX96",
607
+ "type": "uint256"
608
+ }
609
+ ],
610
+ "stateMutability": "view",
611
+ "type": "function"
612
+ },
613
+ {
614
+ "inputs": [{ "internalType": "bytes32", "name": "key", "type": "bytes32" }],
615
+ "name": "positions",
616
+ "outputs": [
617
+ { "internalType": "uint128", "name": "liquidity", "type": "uint128" },
618
+ {
619
+ "internalType": "uint256",
620
+ "name": "feeGrowthInside0LastX128",
621
+ "type": "uint256"
622
+ },
623
+ {
624
+ "internalType": "uint256",
625
+ "name": "feeGrowthInside1LastX128",
626
+ "type": "uint256"
627
+ },
628
+ { "internalType": "uint128", "name": "tokensOwed0", "type": "uint128" },
629
+ { "internalType": "uint128", "name": "tokensOwed1", "type": "uint128" }
630
+ ],
631
+ "stateMutability": "view",
632
+ "type": "function"
633
+ },
634
+ {
635
+ "inputs": [],
636
+ "name": "protocolFees",
637
+ "outputs": [
638
+ { "internalType": "uint128", "name": "", "type": "uint128" },
639
+ { "internalType": "uint128", "name": "", "type": "uint128" }
640
+ ],
641
+ "stateMutability": "view",
642
+ "type": "function"
643
+ },
644
+ {
645
+ "inputs": [
646
+ { "internalType": "bytes32[]", "name": "slots", "type": "bytes32[]" }
647
+ ],
648
+ "name": "readStorage",
649
+ "outputs": [
650
+ { "internalType": "bytes32[]", "name": "returnData", "type": "bytes32[]" }
651
+ ],
652
+ "stateMutability": "view",
653
+ "type": "function"
654
+ },
655
+ {
656
+ "inputs": [{ "internalType": "uint24", "name": "_fee", "type": "uint24" }],
657
+ "name": "setFee",
658
+ "outputs": [],
659
+ "stateMutability": "nonpayable",
660
+ "type": "function"
661
+ },
662
+ {
663
+ "inputs": [],
664
+ "name": "setFeeProtocol",
665
+ "outputs": [],
666
+ "stateMutability": "nonpayable",
667
+ "type": "function"
668
+ },
669
+ {
670
+ "inputs": [],
671
+ "name": "slot0",
672
+ "outputs": [
673
+ { "internalType": "uint160", "name": "sqrtPriceX96", "type": "uint160" },
674
+ { "internalType": "int24", "name": "tick", "type": "int24" },
675
+ {
676
+ "internalType": "uint16",
677
+ "name": "observationIndex",
678
+ "type": "uint16"
679
+ },
680
+ {
681
+ "internalType": "uint16",
682
+ "name": "observationCardinality",
683
+ "type": "uint16"
684
+ },
685
+ {
686
+ "internalType": "uint16",
687
+ "name": "observationCardinalityNext",
688
+ "type": "uint16"
689
+ },
690
+ { "internalType": "uint24", "name": "feeProtocol", "type": "uint24" },
691
+ { "internalType": "bool", "name": "unlocked", "type": "bool" }
692
+ ],
693
+ "stateMutability": "view",
694
+ "type": "function"
695
+ },
696
+ {
697
+ "inputs": [
698
+ { "internalType": "int24", "name": "tickLower", "type": "int24" },
699
+ { "internalType": "int24", "name": "tickUpper", "type": "int24" }
700
+ ],
701
+ "name": "snapshotCumulativesInside",
702
+ "outputs": [
703
+ {
704
+ "internalType": "int56",
705
+ "name": "tickCumulativeInside",
706
+ "type": "int56"
707
+ },
708
+ {
709
+ "internalType": "uint160",
710
+ "name": "secondsPerLiquidityInsideX128",
711
+ "type": "uint160"
712
+ },
713
+ { "internalType": "uint32", "name": "secondsInside", "type": "uint32" }
714
+ ],
715
+ "stateMutability": "view",
716
+ "type": "function"
717
+ },
718
+ {
719
+ "inputs": [
720
+ { "internalType": "address", "name": "recipient", "type": "address" },
721
+ { "internalType": "bool", "name": "zeroForOne", "type": "bool" },
722
+ { "internalType": "int256", "name": "amountSpecified", "type": "int256" },
723
+ {
724
+ "internalType": "uint160",
725
+ "name": "sqrtPriceLimitX96",
726
+ "type": "uint160"
727
+ },
728
+ { "internalType": "bytes", "name": "data", "type": "bytes" }
729
+ ],
730
+ "name": "swap",
731
+ "outputs": [
732
+ { "internalType": "int256", "name": "amount0", "type": "int256" },
733
+ { "internalType": "int256", "name": "amount1", "type": "int256" }
734
+ ],
735
+ "stateMutability": "nonpayable",
736
+ "type": "function"
737
+ },
738
+ {
739
+ "inputs": [{ "internalType": "int16", "name": "tick", "type": "int16" }],
740
+ "name": "tickBitmap",
741
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
742
+ "stateMutability": "view",
743
+ "type": "function"
744
+ },
745
+ {
746
+ "inputs": [],
747
+ "name": "tickSpacing",
748
+ "outputs": [{ "internalType": "int24", "name": "", "type": "int24" }],
749
+ "stateMutability": "view",
750
+ "type": "function"
751
+ },
752
+ {
753
+ "inputs": [{ "internalType": "int24", "name": "tick", "type": "int24" }],
754
+ "name": "ticks",
755
+ "outputs": [
756
+ {
757
+ "internalType": "uint128",
758
+ "name": "liquidityGross",
759
+ "type": "uint128"
760
+ },
761
+ { "internalType": "int128", "name": "liquidityNet", "type": "int128" },
762
+ {
763
+ "internalType": "uint256",
764
+ "name": "feeGrowthOutside0X128",
765
+ "type": "uint256"
766
+ },
767
+ {
768
+ "internalType": "uint256",
769
+ "name": "feeGrowthOutside1X128",
770
+ "type": "uint256"
771
+ },
772
+ {
773
+ "internalType": "int56",
774
+ "name": "tickCumulativeOutside",
775
+ "type": "int56"
776
+ },
777
+ {
778
+ "internalType": "uint160",
779
+ "name": "secondsPerLiquidityOutsideX128",
780
+ "type": "uint160"
781
+ },
782
+ { "internalType": "uint32", "name": "secondsOutside", "type": "uint32" },
783
+ { "internalType": "bool", "name": "initialized", "type": "bool" }
784
+ ],
785
+ "stateMutability": "view",
786
+ "type": "function"
787
+ },
788
+ {
789
+ "inputs": [],
790
+ "name": "token0",
791
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
792
+ "stateMutability": "view",
793
+ "type": "function"
794
+ },
795
+ {
796
+ "inputs": [],
797
+ "name": "token1",
798
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
799
+ "stateMutability": "view",
800
+ "type": "function"
801
+ }
802
+ ]