@paraswap/dex-lib 3.8.12 → 3.8.13

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 (172) hide show
  1. package/build/abi/concentrator/arUSD.json +568 -0
  2. package/build/abi/{wombat/pool.json → fx-protocol/FxUSD.json} +541 -603
  3. package/build/abi/inception/inception-ineth-pool.json +1062 -0
  4. package/build/abi/inception/inception-ineth.json +609 -0
  5. package/build/abi/inception/inception-ratio-feed.json +93 -0
  6. package/build/abi/inception/inception-vault.json +991 -0
  7. package/build/abi/infusion/InfusionFactory.json +147 -0
  8. package/build/abi/infusion/InfusionPair.json +658 -0
  9. package/build/abi/infusion/InfusionRouter.json +442 -0
  10. package/build/abi/oswap/oswap.abi.json +452 -0
  11. package/build/config.js +6 -6
  12. package/build/dex/aave-v1/aave-v1.js +0 -1
  13. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  14. package/build/dex/concentrator-arusd/concentrator-arusd.d.ts +38 -0
  15. package/build/dex/concentrator-arusd/concentrator-arusd.js +184 -0
  16. package/build/dex/concentrator-arusd/concentrator-arusd.js.map +1 -0
  17. package/build/dex/concentrator-arusd/config.d.ts +4 -0
  18. package/build/dex/concentrator-arusd/config.js +18 -0
  19. package/build/dex/concentrator-arusd/config.js.map +1 -0
  20. package/build/dex/concentrator-arusd/types.d.ts +10 -0
  21. package/build/dex/concentrator-arusd/types.js +3 -0
  22. package/build/dex/concentrator-arusd/types.js.map +1 -0
  23. package/build/dex/fx-protocol-rusd/config.d.ts +4 -0
  24. package/build/dex/fx-protocol-rusd/config.js +18 -0
  25. package/build/dex/fx-protocol-rusd/config.js.map +1 -0
  26. package/build/dex/fx-protocol-rusd/fx-protocol-rusd.d.ts +39 -0
  27. package/build/dex/fx-protocol-rusd/fx-protocol-rusd.js +196 -0
  28. package/build/dex/fx-protocol-rusd/fx-protocol-rusd.js.map +1 -0
  29. package/build/dex/fx-protocol-rusd/types.d.ts +10 -0
  30. package/build/dex/fx-protocol-rusd/types.js +3 -0
  31. package/build/dex/fx-protocol-rusd/types.js.map +1 -0
  32. package/build/dex/idle-dao/idle-dao-pool.d.ts +56 -0
  33. package/build/dex/idle-dao/idle-dao-pool.js +176 -0
  34. package/build/dex/idle-dao/idle-dao-pool.js.map +1 -0
  35. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +16 -0
  36. package/build/dex/idle-dao/idle-dao-pooling-pool.js +57 -0
  37. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +1 -0
  38. package/build/dex/idle-dao/scripts.d.ts +9 -0
  39. package/build/dex/idle-dao/scripts.js +552 -0
  40. package/build/dex/idle-dao/scripts.js.map +1 -0
  41. package/build/dex/inception/config.d.ts +5 -0
  42. package/build/dex/inception/config.js +112 -0
  43. package/build/dex/inception/config.js.map +1 -0
  44. package/build/dex/inception/inception-event-pool.d.ts +23 -0
  45. package/build/dex/inception/inception-event-pool.js +34 -0
  46. package/build/dex/inception/inception-event-pool.js.map +1 -0
  47. package/build/dex/inception/inception-native.d.ts +43 -0
  48. package/build/dex/inception/inception-native.js +131 -0
  49. package/build/dex/inception/inception-native.js.map +1 -0
  50. package/build/dex/inception/inception-pool.d.ts +18 -0
  51. package/build/dex/inception/inception-pool.js +32 -0
  52. package/build/dex/inception/inception-pool.js.map +1 -0
  53. package/build/dex/inception/inception-price-feed.d.ts +19 -0
  54. package/build/dex/inception/inception-price-feed.js +51 -0
  55. package/build/dex/inception/inception-price-feed.js.map +1 -0
  56. package/build/dex/inception/inception.d.ts +44 -0
  57. package/build/dex/inception/inception.js +162 -0
  58. package/build/dex/inception/inception.js.map +1 -0
  59. package/build/dex/inception/tokens.d.ts +9 -0
  60. package/build/dex/inception/tokens.js +28 -0
  61. package/build/dex/inception/tokens.js.map +1 -0
  62. package/build/dex/inception/types.d.ts +22 -0
  63. package/build/dex/inception/types.js +3 -0
  64. package/build/dex/inception/types.js.map +1 -0
  65. package/build/dex/inception/utils.d.ts +7 -0
  66. package/build/dex/inception/utils.js +58 -0
  67. package/build/dex/inception/utils.js.map +1 -0
  68. package/build/dex/infusion/config.d.ts +4 -0
  69. package/build/dex/infusion/config.js +25 -0
  70. package/build/dex/infusion/config.js.map +1 -0
  71. package/build/dex/infusion/infusion-stable-pool.d.ts +4 -0
  72. package/build/dex/infusion/infusion-stable-pool.js +74 -0
  73. package/build/dex/infusion/infusion-stable-pool.js.map +1 -0
  74. package/build/dex/infusion/infusion.d.ts +54 -0
  75. package/build/dex/infusion/infusion.js +532 -0
  76. package/build/dex/infusion/infusion.js.map +1 -0
  77. package/build/dex/infusion/types.d.ts +47 -0
  78. package/build/dex/infusion/types.js +3 -0
  79. package/build/dex/infusion/types.js.map +1 -0
  80. package/build/dex/infusion/utils/isStablePair.d.ts +2 -0
  81. package/build/dex/infusion/utils/isStablePair.js +18 -0
  82. package/build/dex/infusion/utils/isStablePair.js.map +1 -0
  83. package/build/dex/oswap/config.d.ts +5 -0
  84. package/build/dex/oswap/config.js +31 -0
  85. package/build/dex/oswap/config.js.map +1 -0
  86. package/build/dex/oswap/oswap-pool.d.ts +51 -0
  87. package/build/dex/oswap/oswap-pool.js +150 -0
  88. package/build/dex/oswap/oswap-pool.js.map +1 -0
  89. package/build/dex/oswap/oswap.d.ts +46 -0
  90. package/build/dex/oswap/oswap.js +263 -0
  91. package/build/dex/oswap/oswap.js.map +1 -0
  92. package/build/dex/oswap/types.d.ts +20 -0
  93. package/build/dex/oswap/types.js +3 -0
  94. package/build/dex/oswap/types.js.map +1 -0
  95. package/build/dex/platypus/platypus.js +3 -17
  96. package/build/dex/platypus/platypus.js.map +1 -1
  97. package/build/dex/solidly-v3/config.js +39 -0
  98. package/build/dex/solidly-v3/config.js.map +1 -1
  99. package/build/dex/swaap-v1/swaap-v1.js +0 -4
  100. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  101. package/build/implementations/local-paraswap-sdk.d.ts +2 -0
  102. package/build/implementations/local-paraswap-sdk.js +7 -0
  103. package/build/implementations/local-paraswap-sdk.js.map +1 -1
  104. package/package.json +1 -1
  105. package/src/config.ts +6 -6
  106. package/src/dex/solidly-v3/config.ts +42 -0
  107. package/src/dex/solidly-v3/solidly-v3-e2e.test.ts +114 -3
  108. package/src/implementations/local-paraswap-sdk.ts +8 -0
  109. package/tests/constants-e2e.ts +1 -1
  110. package/.vscode/launch.json +0 -53
  111. package/.vscode/settings.json +0 -2
  112. package/.vscode/tasks.json +0 -15
  113. package/build/abi/maverick-v2/MaverickV2Router.json +0 -778
  114. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +0 -52
  115. package/build/dex/aave-v2/tokens-avalanche.json +0 -44
  116. package/build/dex/aave-v2/tokens-mainnet.json +0 -188
  117. package/build/dex/aave-v2/tokens-polygon.json +0 -44
  118. package/build/dex/bProtocol.d.ts +0 -18
  119. package/build/dex/bProtocol.js +0 -39
  120. package/build/dex/bProtocol.js.map +0 -1
  121. package/build/dex/bancor.d.ts +0 -26
  122. package/build/dex/bancor.js +0 -58
  123. package/build/dex/bancor.js.map +0 -1
  124. package/build/dex/compound.d.ts +0 -18
  125. package/build/dex/compound.js +0 -46
  126. package/build/dex/compound.js.map +0 -1
  127. package/build/dex/curve-v2.d.ts +0 -58
  128. package/build/dex/curve-v2.js +0 -180
  129. package/build/dex/curve-v2.js.map +0 -1
  130. package/build/dex/dodo-v1.d.ts +0 -33
  131. package/build/dex/dodo-v1.js +0 -63
  132. package/build/dex/dodo-v1.js.map +0 -1
  133. package/build/dex/lido.d.ts +0 -19
  134. package/build/dex/lido.js +0 -42
  135. package/build/dex/lido.js.map +0 -1
  136. package/build/dex/maker-psm/scripts/gem.abi.json +0 -136
  137. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  138. package/build/dex/maker-psm/scripts/validate-state.js +0 -185
  139. package/build/dex/maker-psm/scripts/validate-state.js.map +0 -1
  140. package/build/dex/maker-psm/scripts/vat.abi.json +0 -243
  141. package/build/dex/onebit.d.ts +0 -25
  142. package/build/dex/onebit.js +0 -42
  143. package/build/dex/onebit.js.map +0 -1
  144. package/build/dex/smoothy.d.ts +0 -26
  145. package/build/dex/smoothy.js +0 -48
  146. package/build/dex/smoothy.js.map +0 -1
  147. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +0 -1
  148. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +0 -53
  149. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +0 -1
  150. package/build/dex/stable-pool.d.ts +0 -28
  151. package/build/dex/stable-pool.js +0 -55
  152. package/build/dex/stable-pool.js.map +0 -1
  153. package/build/dex/trader-joe-v2.1/base.d.ts +0 -18
  154. package/build/dex/trader-joe-v2.1/base.js +0 -99
  155. package/build/dex/trader-joe-v2.1/base.js.map +0 -1
  156. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +0 -7
  157. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +0 -20
  158. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +0 -1
  159. package/build/dex/trader-joe-v2.1/trader-joe-v2.2.d.ts +0 -7
  160. package/build/dex/trader-joe-v2.1/trader-joe-v2.2.js +0 -20
  161. package/build/dex/trader-joe-v2.1/trader-joe-v2.2.js.map +0 -1
  162. package/build/dex/trader-joe-v2.1.d.ts +0 -43
  163. package/build/dex/trader-joe-v2.1.js +0 -79
  164. package/build/dex/trader-joe-v2.1.js.map +0 -1
  165. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +0 -17
  166. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +0 -64
  167. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +0 -1
  168. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +0 -17
  169. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +0 -79
  170. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +0 -1
  171. package/config.ts +0 -1946
  172. package/src/dex/dexs.txt +0 -58
@@ -1,778 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "contract IMaverickV2Factory",
6
- "name": "_factory",
7
- "type": "address"
8
- },
9
- {
10
- "internalType": "contract IWETH9",
11
- "name": "_weth",
12
- "type": "address"
13
- }
14
- ],
15
- "stateMutability": "nonpayable",
16
- "type": "constructor"
17
- },
18
- {
19
- "inputs": [
20
- {
21
- "internalType": "address",
22
- "name": "target",
23
- "type": "address"
24
- }
25
- ],
26
- "name": "AddressEmptyCode",
27
- "type": "error"
28
- },
29
- {
30
- "inputs": [
31
- {
32
- "internalType": "address",
33
- "name": "account",
34
- "type": "address"
35
- }
36
- ],
37
- "name": "AddressInsufficientBalance",
38
- "type": "error"
39
- },
40
- {
41
- "inputs": [
42
- {
43
- "internalType": "uint256",
44
- "name": "inputLength",
45
- "type": "uint256"
46
- },
47
- {
48
- "internalType": "uint256",
49
- "name": "expectedLength",
50
- "type": "uint256"
51
- }
52
- ],
53
- "name": "BytesLibInvalidLength",
54
- "type": "error"
55
- },
56
- {
57
- "inputs": [],
58
- "name": "BytesLibSliceOutOfBounds",
59
- "type": "error"
60
- },
61
- {
62
- "inputs": [],
63
- "name": "BytesLibSliceOverflow",
64
- "type": "error"
65
- },
66
- {
67
- "inputs": [],
68
- "name": "BytesLibToAddressOutOfBounds",
69
- "type": "error"
70
- },
71
- {
72
- "inputs": [],
73
- "name": "BytesLibToBoolOutOfBounds",
74
- "type": "error"
75
- },
76
- {
77
- "inputs": [],
78
- "name": "FailedInnerCall",
79
- "type": "error"
80
- },
81
- {
82
- "inputs": [],
83
- "name": "MathOverflowedMulDiv",
84
- "type": "error"
85
- },
86
- {
87
- "inputs": [
88
- {
89
- "internalType": "address",
90
- "name": "token",
91
- "type": "address"
92
- },
93
- {
94
- "internalType": "uint256",
95
- "name": "amountMinimum",
96
- "type": "uint256"
97
- },
98
- {
99
- "internalType": "uint256",
100
- "name": "contractBalance",
101
- "type": "uint256"
102
- }
103
- ],
104
- "name": "PaymentInsufficientBalance",
105
- "type": "error"
106
- },
107
- {
108
- "inputs": [],
109
- "name": "PaymentSenderNotWETH9",
110
- "type": "error"
111
- },
112
- {
113
- "inputs": [
114
- {
115
- "internalType": "uint256",
116
- "name": "deadline",
117
- "type": "uint256"
118
- },
119
- {
120
- "internalType": "uint256",
121
- "name": "blockTimestamp",
122
- "type": "uint256"
123
- }
124
- ],
125
- "name": "PositionDeadlinePassed",
126
- "type": "error"
127
- },
128
- {
129
- "inputs": [
130
- {
131
- "internalType": "uint256",
132
- "name": "sqrtPrice",
133
- "type": "uint256"
134
- },
135
- {
136
- "internalType": "uint256",
137
- "name": "minSqrtPrice",
138
- "type": "uint256"
139
- },
140
- {
141
- "internalType": "uint256",
142
- "name": "maxSqrtPrice",
143
- "type": "uint256"
144
- }
145
- ],
146
- "name": "PositionExceededPriceBounds",
147
- "type": "error"
148
- },
149
- {
150
- "inputs": [],
151
- "name": "RouterNotFactoryPool",
152
- "type": "error"
153
- },
154
- {
155
- "inputs": [
156
- {
157
- "internalType": "uint256",
158
- "name": "amountOutMinimum",
159
- "type": "uint256"
160
- },
161
- {
162
- "internalType": "uint256",
163
- "name": "amountOut",
164
- "type": "uint256"
165
- }
166
- ],
167
- "name": "RouterTooLittleReceived",
168
- "type": "error"
169
- },
170
- {
171
- "inputs": [
172
- {
173
- "internalType": "uint256",
174
- "name": "amountInMaximum",
175
- "type": "uint256"
176
- },
177
- {
178
- "internalType": "uint256",
179
- "name": "amountIn",
180
- "type": "uint256"
181
- }
182
- ],
183
- "name": "RouterTooMuchRequested",
184
- "type": "error"
185
- },
186
- {
187
- "inputs": [],
188
- "name": "RouterZeroSwap",
189
- "type": "error"
190
- },
191
- {
192
- "inputs": [
193
- {
194
- "internalType": "int256",
195
- "name": "tick",
196
- "type": "int256"
197
- }
198
- ],
199
- "name": "TickMaxExceeded",
200
- "type": "error"
201
- },
202
- {
203
- "inputs": [
204
- {
205
- "internalType": "contract IERC20",
206
- "name": "token",
207
- "type": "address"
208
- },
209
- {
210
- "internalType": "address",
211
- "name": "to",
212
- "type": "address"
213
- },
214
- {
215
- "internalType": "uint256",
216
- "name": "amount",
217
- "type": "uint256"
218
- }
219
- ],
220
- "name": "TransferFailed",
221
- "type": "error"
222
- },
223
- {
224
- "inputs": [
225
- {
226
- "internalType": "contract IERC20",
227
- "name": "token",
228
- "type": "address"
229
- },
230
- {
231
- "internalType": "address",
232
- "name": "from",
233
- "type": "address"
234
- },
235
- {
236
- "internalType": "address",
237
- "name": "to",
238
- "type": "address"
239
- },
240
- {
241
- "internalType": "uint256",
242
- "name": "amount",
243
- "type": "uint256"
244
- }
245
- ],
246
- "name": "TransferFromFailed",
247
- "type": "error"
248
- },
249
- {
250
- "inputs": [
251
- {
252
- "internalType": "uint256",
253
- "name": "deadline",
254
- "type": "uint256"
255
- }
256
- ],
257
- "name": "checkDeadline",
258
- "outputs": [],
259
- "stateMutability": "payable",
260
- "type": "function"
261
- },
262
- {
263
- "inputs": [
264
- {
265
- "internalType": "contract IMaverickV2Pool",
266
- "name": "pool",
267
- "type": "address"
268
- },
269
- {
270
- "internalType": "uint256",
271
- "name": "minSqrtPrice",
272
- "type": "uint256"
273
- },
274
- {
275
- "internalType": "uint256",
276
- "name": "maxSqrtPrice",
277
- "type": "uint256"
278
- }
279
- ],
280
- "name": "checkSqrtPrice",
281
- "outputs": [],
282
- "stateMutability": "payable",
283
- "type": "function"
284
- },
285
- {
286
- "inputs": [
287
- {
288
- "internalType": "address",
289
- "name": "recipient",
290
- "type": "address"
291
- },
292
- {
293
- "internalType": "bytes",
294
- "name": "path",
295
- "type": "bytes"
296
- },
297
- {
298
- "internalType": "uint256",
299
- "name": "amountIn",
300
- "type": "uint256"
301
- },
302
- {
303
- "internalType": "uint256",
304
- "name": "amountOutMinimum",
305
- "type": "uint256"
306
- }
307
- ],
308
- "name": "exactInputMultiHop",
309
- "outputs": [
310
- {
311
- "internalType": "uint256",
312
- "name": "amountOut",
313
- "type": "uint256"
314
- }
315
- ],
316
- "stateMutability": "payable",
317
- "type": "function"
318
- },
319
- {
320
- "inputs": [
321
- {
322
- "internalType": "address",
323
- "name": "recipient",
324
- "type": "address"
325
- },
326
- {
327
- "internalType": "contract IMaverickV2Pool",
328
- "name": "pool",
329
- "type": "address"
330
- },
331
- {
332
- "internalType": "bool",
333
- "name": "tokenAIn",
334
- "type": "bool"
335
- },
336
- {
337
- "internalType": "uint256",
338
- "name": "amountIn",
339
- "type": "uint256"
340
- },
341
- {
342
- "internalType": "uint256",
343
- "name": "amountOutMinimum",
344
- "type": "uint256"
345
- }
346
- ],
347
- "name": "exactInputSingle",
348
- "outputs": [
349
- {
350
- "internalType": "uint256",
351
- "name": "amountOut",
352
- "type": "uint256"
353
- }
354
- ],
355
- "stateMutability": "payable",
356
- "type": "function"
357
- },
358
- {
359
- "inputs": [
360
- {
361
- "internalType": "bytes",
362
- "name": "argsPacked",
363
- "type": "bytes"
364
- }
365
- ],
366
- "name": "exactInputSinglePackedArgs",
367
- "outputs": [
368
- {
369
- "internalType": "uint256",
370
- "name": "amountOut",
371
- "type": "uint256"
372
- }
373
- ],
374
- "stateMutability": "payable",
375
- "type": "function"
376
- },
377
- {
378
- "inputs": [
379
- {
380
- "internalType": "address",
381
- "name": "recipient",
382
- "type": "address"
383
- },
384
- {
385
- "internalType": "bytes",
386
- "name": "path",
387
- "type": "bytes"
388
- },
389
- {
390
- "internalType": "uint256",
391
- "name": "amountOut",
392
- "type": "uint256"
393
- },
394
- {
395
- "internalType": "uint256",
396
- "name": "amountInMaximum",
397
- "type": "uint256"
398
- }
399
- ],
400
- "name": "exactOutputMultiHop",
401
- "outputs": [
402
- {
403
- "internalType": "uint256",
404
- "name": "amountIn",
405
- "type": "uint256"
406
- }
407
- ],
408
- "stateMutability": "payable",
409
- "type": "function"
410
- },
411
- {
412
- "inputs": [
413
- {
414
- "internalType": "address",
415
- "name": "recipient",
416
- "type": "address"
417
- },
418
- {
419
- "internalType": "contract IMaverickV2Pool",
420
- "name": "pool",
421
- "type": "address"
422
- },
423
- {
424
- "internalType": "bool",
425
- "name": "tokenAIn",
426
- "type": "bool"
427
- },
428
- {
429
- "internalType": "uint256",
430
- "name": "amountOut",
431
- "type": "uint256"
432
- },
433
- {
434
- "internalType": "uint256",
435
- "name": "amountInMaximum",
436
- "type": "uint256"
437
- }
438
- ],
439
- "name": "exactOutputSingle",
440
- "outputs": [
441
- {
442
- "internalType": "uint256",
443
- "name": "amountIn",
444
- "type": "uint256"
445
- },
446
- {
447
- "internalType": "uint256",
448
- "name": "amountOut_",
449
- "type": "uint256"
450
- }
451
- ],
452
- "stateMutability": "payable",
453
- "type": "function"
454
- },
455
- {
456
- "inputs": [
457
- {
458
- "internalType": "address",
459
- "name": "recipient",
460
- "type": "address"
461
- },
462
- {
463
- "internalType": "contract IMaverickV2Pool",
464
- "name": "pool",
465
- "type": "address"
466
- },
467
- {
468
- "internalType": "bool",
469
- "name": "tokenAIn",
470
- "type": "bool"
471
- },
472
- {
473
- "internalType": "uint256",
474
- "name": "amountOut",
475
- "type": "uint256"
476
- },
477
- {
478
- "internalType": "int32",
479
- "name": "tickLimit",
480
- "type": "int32"
481
- }
482
- ],
483
- "name": "exactOutputSingleMinimal",
484
- "outputs": [
485
- {
486
- "internalType": "uint256",
487
- "name": "amountIn",
488
- "type": "uint256"
489
- },
490
- {
491
- "internalType": "uint256",
492
- "name": "amountOut_",
493
- "type": "uint256"
494
- }
495
- ],
496
- "stateMutability": "payable",
497
- "type": "function"
498
- },
499
- {
500
- "inputs": [],
501
- "name": "factory",
502
- "outputs": [
503
- {
504
- "internalType": "contract IMaverickV2Factory",
505
- "name": "factory_",
506
- "type": "address"
507
- }
508
- ],
509
- "stateMutability": "view",
510
- "type": "function"
511
- },
512
- {
513
- "inputs": [
514
- {
515
- "internalType": "address",
516
- "name": "recipient",
517
- "type": "address"
518
- },
519
- {
520
- "internalType": "contract IMaverickV2Pool",
521
- "name": "pool",
522
- "type": "address"
523
- },
524
- {
525
- "internalType": "bool",
526
- "name": "tokenAIn",
527
- "type": "bool"
528
- },
529
- {
530
- "internalType": "uint256",
531
- "name": "amountIn",
532
- "type": "uint256"
533
- },
534
- {
535
- "internalType": "int32",
536
- "name": "tickLimit",
537
- "type": "int32"
538
- },
539
- {
540
- "internalType": "uint256",
541
- "name": "amountOutMinimum",
542
- "type": "uint256"
543
- }
544
- ],
545
- "name": "inputSingleWithTickLimit",
546
- "outputs": [
547
- {
548
- "internalType": "uint256",
549
- "name": "amountIn_",
550
- "type": "uint256"
551
- },
552
- {
553
- "internalType": "uint256",
554
- "name": "amountOut",
555
- "type": "uint256"
556
- }
557
- ],
558
- "stateMutability": "payable",
559
- "type": "function"
560
- },
561
- {
562
- "inputs": [
563
- {
564
- "internalType": "contract IERC20",
565
- "name": "tokenIn",
566
- "type": "address"
567
- },
568
- {
569
- "internalType": "uint256",
570
- "name": "amountToPay",
571
- "type": "uint256"
572
- },
573
- {
574
- "internalType": "uint256",
575
- "name": "",
576
- "type": "uint256"
577
- },
578
- {
579
- "internalType": "bytes",
580
- "name": "_data",
581
- "type": "bytes"
582
- }
583
- ],
584
- "name": "maverickV2SwapCallback",
585
- "outputs": [],
586
- "stateMutability": "nonpayable",
587
- "type": "function"
588
- },
589
- {
590
- "inputs": [
591
- {
592
- "internalType": "bytes[]",
593
- "name": "data",
594
- "type": "bytes[]"
595
- }
596
- ],
597
- "name": "multicall",
598
- "outputs": [
599
- {
600
- "internalType": "bytes[]",
601
- "name": "results",
602
- "type": "bytes[]"
603
- }
604
- ],
605
- "stateMutability": "payable",
606
- "type": "function"
607
- },
608
- {
609
- "inputs": [
610
- {
611
- "internalType": "address",
612
- "name": "recipient",
613
- "type": "address"
614
- },
615
- {
616
- "internalType": "contract IMaverickV2Pool",
617
- "name": "pool",
618
- "type": "address"
619
- },
620
- {
621
- "internalType": "bool",
622
- "name": "tokenAIn",
623
- "type": "bool"
624
- },
625
- {
626
- "internalType": "uint256",
627
- "name": "amountOut",
628
- "type": "uint256"
629
- },
630
- {
631
- "internalType": "int32",
632
- "name": "tickLimit",
633
- "type": "int32"
634
- },
635
- {
636
- "internalType": "uint256",
637
- "name": "amountInMaximum",
638
- "type": "uint256"
639
- },
640
- {
641
- "internalType": "uint256",
642
- "name": "amountOutMinimum",
643
- "type": "uint256"
644
- }
645
- ],
646
- "name": "outputSingleWithTickLimit",
647
- "outputs": [
648
- {
649
- "internalType": "uint256",
650
- "name": "amountIn_",
651
- "type": "uint256"
652
- },
653
- {
654
- "internalType": "uint256",
655
- "name": "amountOut_",
656
- "type": "uint256"
657
- }
658
- ],
659
- "stateMutability": "payable",
660
- "type": "function"
661
- },
662
- {
663
- "inputs": [],
664
- "name": "refundETH",
665
- "outputs": [],
666
- "stateMutability": "payable",
667
- "type": "function"
668
- },
669
- {
670
- "inputs": [
671
- {
672
- "internalType": "contract IERC20",
673
- "name": "token",
674
- "type": "address"
675
- },
676
- {
677
- "internalType": "uint256",
678
- "name": "amountMinimum",
679
- "type": "uint256"
680
- },
681
- {
682
- "internalType": "address",
683
- "name": "recipient",
684
- "type": "address"
685
- }
686
- ],
687
- "name": "sweepToken",
688
- "outputs": [],
689
- "stateMutability": "payable",
690
- "type": "function"
691
- },
692
- {
693
- "inputs": [
694
- {
695
- "internalType": "contract IERC20",
696
- "name": "token",
697
- "type": "address"
698
- },
699
- {
700
- "internalType": "uint256",
701
- "name": "amount",
702
- "type": "uint256"
703
- },
704
- {
705
- "internalType": "address",
706
- "name": "recipient",
707
- "type": "address"
708
- }
709
- ],
710
- "name": "sweepTokenAmount",
711
- "outputs": [],
712
- "stateMutability": "payable",
713
- "type": "function"
714
- },
715
- {
716
- "inputs": [
717
- {
718
- "internalType": "contract IERC20",
719
- "name": "tokenA",
720
- "type": "address"
721
- },
722
- {
723
- "internalType": "contract IERC20",
724
- "name": "tokenB",
725
- "type": "address"
726
- },
727
- {
728
- "internalType": "uint256",
729
- "name": "tokenAAmountMin",
730
- "type": "uint256"
731
- },
732
- {
733
- "internalType": "uint256",
734
- "name": "tokenBAmountMin",
735
- "type": "uint256"
736
- }
737
- ],
738
- "name": "unwrapAndSweep",
739
- "outputs": [],
740
- "stateMutability": "payable",
741
- "type": "function"
742
- },
743
- {
744
- "inputs": [
745
- {
746
- "internalType": "uint256",
747
- "name": "amountMinimum",
748
- "type": "uint256"
749
- },
750
- {
751
- "internalType": "address",
752
- "name": "recipient",
753
- "type": "address"
754
- }
755
- ],
756
- "name": "unwrapWETH9",
757
- "outputs": [],
758
- "stateMutability": "payable",
759
- "type": "function"
760
- },
761
- {
762
- "inputs": [],
763
- "name": "weth",
764
- "outputs": [
765
- {
766
- "internalType": "contract IWETH9",
767
- "name": "weth_",
768
- "type": "address"
769
- }
770
- ],
771
- "stateMutability": "view",
772
- "type": "function"
773
- },
774
- {
775
- "stateMutability": "payable",
776
- "type": "receive"
777
- }
778
- ]