@paraswap/dex-lib 3.8.7 → 3.8.8

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 (196) hide show
  1. package/.vscode/launch.json +53 -0
  2. package/.vscode/settings.json +2 -0
  3. package/.vscode/tasks.json +15 -0
  4. package/build/abi/AaveV1_lending_pool.json +27 -0
  5. package/build/abi/maverick-v2/MaverickV2Router.json +778 -0
  6. package/build/abi/platypus/asset.json +490 -0
  7. package/build/abi/platypus/avax-pool.json +820 -0
  8. package/build/abi/platypus/oracle.json +119 -0
  9. package/build/abi/platypus/pool.json +677 -0
  10. package/build/abi/smardex/all/smardex-router.json +648 -0
  11. package/build/abi/smardex/layer-1/smardex-factory.json +242 -0
  12. package/build/abi/smardex/layer-1/smardex-pool.json +506 -0
  13. package/build/abi/smardex/layer-2/smardex-factory.json +185 -0
  14. package/build/abi/smardex/layer-2/smardex-pool.json +578 -0
  15. package/build/abi/swaap-v1/pool.json +1346 -0
  16. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +52 -0
  17. package/build/abi/wombat/pool.json +1289 -0
  18. package/build/dex/aave-v1/aave-v1.d.ts +34 -0
  19. package/build/dex/aave-v1/aave-v1.js +181 -0
  20. package/build/dex/aave-v1/aave-v1.js.map +1 -0
  21. package/build/dex/aave-v1/config.d.ts +11 -0
  22. package/build/dex/aave-v1/config.js +20 -0
  23. package/build/dex/aave-v1/config.js.map +1 -0
  24. package/build/dex/aave-v1/tokens-mainnet.json +134 -0
  25. package/build/dex/aave-v1/tokens.d.ts +3 -0
  26. package/build/dex/aave-v1/tokens.js +50 -0
  27. package/build/dex/aave-v1/tokens.js.map +1 -0
  28. package/build/dex/aave-v1/types.d.ts +12 -0
  29. package/build/dex/aave-v1/types.js +3 -0
  30. package/build/dex/aave-v1/types.js.map +1 -0
  31. package/build/dex/aave-v2/tokens-avalanche.json +44 -0
  32. package/build/dex/aave-v2/tokens-mainnet.json +188 -0
  33. package/build/dex/aave-v2/tokens-polygon.json +44 -0
  34. package/build/dex/aave-v3-stata/aave-v3-stata.js +1 -1
  35. package/build/dex/aave-v3-stata/aave-v3-stata.js.map +1 -1
  36. package/build/dex/bProtocol.d.ts +18 -0
  37. package/build/dex/bProtocol.js +39 -0
  38. package/build/dex/bProtocol.js.map +1 -0
  39. package/build/dex/bancor.d.ts +26 -0
  40. package/build/dex/bancor.js +58 -0
  41. package/build/dex/bancor.js.map +1 -0
  42. package/build/dex/compound.d.ts +18 -0
  43. package/build/dex/compound.js +46 -0
  44. package/build/dex/compound.js.map +1 -0
  45. package/build/dex/curve-v2.d.ts +58 -0
  46. package/build/dex/curve-v2.js +180 -0
  47. package/build/dex/curve-v2.js.map +1 -0
  48. package/build/dex/dodo-v1.d.ts +33 -0
  49. package/build/dex/dodo-v1.js +63 -0
  50. package/build/dex/dodo-v1.js.map +1 -0
  51. package/build/dex/lido.d.ts +19 -0
  52. package/build/dex/lido.js +42 -0
  53. package/build/dex/lido.js.map +1 -0
  54. package/build/dex/maker-psm/scripts/gem.abi.json +136 -0
  55. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  56. package/build/dex/maker-psm/scripts/validate-state.js +185 -0
  57. package/build/dex/maker-psm/scripts/validate-state.js.map +1 -0
  58. package/build/dex/maker-psm/scripts/vat.abi.json +243 -0
  59. package/build/dex/onebit.d.ts +25 -0
  60. package/build/dex/onebit.js +42 -0
  61. package/build/dex/onebit.js.map +1 -0
  62. package/build/dex/platypus/asset.d.ts +14 -0
  63. package/build/dex/platypus/asset.js +97 -0
  64. package/build/dex/platypus/asset.js.map +1 -0
  65. package/build/dex/platypus/config.d.ts +11 -0
  66. package/build/dex/platypus/config.js +69 -0
  67. package/build/dex/platypus/config.js.map +1 -0
  68. package/build/dex/platypus/platypus.d.ts +63 -0
  69. package/build/dex/platypus/platypus.js +487 -0
  70. package/build/dex/platypus/platypus.js.map +1 -0
  71. package/build/dex/platypus/pool-avax.d.ts +8 -0
  72. package/build/dex/platypus/pool-avax.js +54 -0
  73. package/build/dex/platypus/pool-avax.js.map +1 -0
  74. package/build/dex/platypus/pool-base.d.ts +19 -0
  75. package/build/dex/platypus/pool-base.js +86 -0
  76. package/build/dex/platypus/pool-base.js.map +1 -0
  77. package/build/dex/platypus/pool-pure.d.ts +8 -0
  78. package/build/dex/platypus/pool-pure.js +37 -0
  79. package/build/dex/platypus/pool-pure.js.map +1 -0
  80. package/build/dex/platypus/pool-subscriber.d.ts +14 -0
  81. package/build/dex/platypus/pool-subscriber.js +167 -0
  82. package/build/dex/platypus/pool-subscriber.js.map +1 -0
  83. package/build/dex/platypus/pool.d.ts +8 -0
  84. package/build/dex/platypus/pool.js +58 -0
  85. package/build/dex/platypus/pool.js.map +1 -0
  86. package/build/dex/platypus/types.d.ts +92 -0
  87. package/build/dex/platypus/types.js +10 -0
  88. package/build/dex/platypus/types.js.map +1 -0
  89. package/build/dex/quickswap/spiritswap-v3.d.ts +6 -0
  90. package/build/dex/quickswap/spiritswap-v3.js +19 -0
  91. package/build/dex/quickswap/spiritswap-v3.js.map +1 -0
  92. package/build/dex/smardex/config.d.ts +4 -0
  93. package/build/dex/smardex/config.js +64 -0
  94. package/build/dex/smardex/config.js.map +1 -0
  95. package/build/dex/smardex/constants.d.ts +18 -0
  96. package/build/dex/smardex/constants.js +33 -0
  97. package/build/dex/smardex/constants.js.map +1 -0
  98. package/build/dex/smardex/sdk/constants.d.ts +6 -0
  99. package/build/dex/smardex/sdk/constants.js +13 -0
  100. package/build/dex/smardex/sdk/constants.js.map +1 -0
  101. package/build/dex/smardex/sdk/core.d.ts +113 -0
  102. package/build/dex/smardex/sdk/core.js +499 -0
  103. package/build/dex/smardex/sdk/core.js.map +1 -0
  104. package/build/dex/smardex/sdk/errors.d.ts +15 -0
  105. package/build/dex/smardex/sdk/errors.js +22 -0
  106. package/build/dex/smardex/sdk/errors.js.map +1 -0
  107. package/build/dex/smardex/sdk/types.d.ts +62 -0
  108. package/build/dex/smardex/sdk/types.js +3 -0
  109. package/build/dex/smardex/sdk/types.js.map +1 -0
  110. package/build/dex/smardex/sdk/utils.d.ts +44 -0
  111. package/build/dex/smardex/sdk/utils.js +133 -0
  112. package/build/dex/smardex/sdk/utils.js.map +1 -0
  113. package/build/dex/smardex/smardex-event-pool.d.ts +28 -0
  114. package/build/dex/smardex/smardex-event-pool.js +119 -0
  115. package/build/dex/smardex/smardex-event-pool.js.map +1 -0
  116. package/build/dex/smardex/smardex.d.ts +65 -0
  117. package/build/dex/smardex/smardex.js +519 -0
  118. package/build/dex/smardex/smardex.js.map +1 -0
  119. package/build/dex/smardex/types.d.ts +55 -0
  120. package/build/dex/smardex/types.js +3 -0
  121. package/build/dex/smardex/types.js.map +1 -0
  122. package/build/dex/smoothy.d.ts +26 -0
  123. package/build/dex/smoothy.js +48 -0
  124. package/build/dex/smoothy.js.map +1 -0
  125. package/build/dex/solidly/forks-override/cone.d.ts +22 -0
  126. package/build/dex/solidly/forks-override/cone.js +53 -0
  127. package/build/dex/solidly/forks-override/cone.js.map +1 -0
  128. package/build/dex/solidly/forks-override/solisnek.d.ts +8 -0
  129. package/build/dex/solidly/forks-override/solisnek.js +15 -0
  130. package/build/dex/solidly/forks-override/solisnek.js.map +1 -0
  131. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +1 -0
  132. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +53 -0
  133. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +1 -0
  134. package/build/dex/stable-pool.d.ts +28 -0
  135. package/build/dex/stable-pool.js +55 -0
  136. package/build/dex/stable-pool.js.map +1 -0
  137. package/build/dex/swaap-v1/config.d.ts +17 -0
  138. package/build/dex/swaap-v1/config.js +56 -0
  139. package/build/dex/swaap-v1/config.js.map +1 -0
  140. package/build/dex/swaap-v1/constants.d.ts +6 -0
  141. package/build/dex/swaap-v1/constants.js +17 -0
  142. package/build/dex/swaap-v1/constants.js.map +1 -0
  143. package/build/dex/swaap-v1/libraries/ChainlinkUtils.d.ts +25 -0
  144. package/build/dex/swaap-v1/libraries/ChainlinkUtils.js +62 -0
  145. package/build/dex/swaap-v1/libraries/ChainlinkUtils.js.map +1 -0
  146. package/build/dex/swaap-v1/libraries/Const.d.ts +18 -0
  147. package/build/dex/swaap-v1/libraries/Const.js +26 -0
  148. package/build/dex/swaap-v1/libraries/Const.js.map +1 -0
  149. package/build/dex/swaap-v1/libraries/GeometricBrownianMotion.d.ts +77 -0
  150. package/build/dex/swaap-v1/libraries/GeometricBrownianMotion.js +316 -0
  151. package/build/dex/swaap-v1/libraries/GeometricBrownianMotion.js.map +1 -0
  152. package/build/dex/swaap-v1/libraries/LogExpMath.d.ts +75 -0
  153. package/build/dex/swaap-v1/libraries/LogExpMath.js +418 -0
  154. package/build/dex/swaap-v1/libraries/LogExpMath.js.map +1 -0
  155. package/build/dex/swaap-v1/libraries/MathMMM.d.ts +185 -0
  156. package/build/dex/swaap-v1/libraries/MathMMM.js +453 -0
  157. package/build/dex/swaap-v1/libraries/MathMMM.js.map +1 -0
  158. package/build/dex/swaap-v1/libraries/Num.d.ts +31 -0
  159. package/build/dex/swaap-v1/libraries/Num.js +167 -0
  160. package/build/dex/swaap-v1/libraries/Num.js.map +1 -0
  161. package/build/dex/swaap-v1/libraries/PoolQuotations.d.ts +23 -0
  162. package/build/dex/swaap-v1/libraries/PoolQuotations.js +131 -0
  163. package/build/dex/swaap-v1/libraries/PoolQuotations.js.map +1 -0
  164. package/build/dex/swaap-v1/libraries/Struct.d.ts +56 -0
  165. package/build/dex/swaap-v1/libraries/Struct.js +3 -0
  166. package/build/dex/swaap-v1/libraries/Struct.js.map +1 -0
  167. package/build/dex/swaap-v1/swaap-v1-pool.d.ts +45 -0
  168. package/build/dex/swaap-v1/swaap-v1-pool.js +656 -0
  169. package/build/dex/swaap-v1/swaap-v1-pool.js.map +1 -0
  170. package/build/dex/swaap-v1/swaap-v1.d.ts +62 -0
  171. package/build/dex/swaap-v1/swaap-v1.js +383 -0
  172. package/build/dex/swaap-v1/swaap-v1.js.map +1 -0
  173. package/build/dex/swaap-v1/types.d.ts +106 -0
  174. package/build/dex/swaap-v1/types.js +9 -0
  175. package/build/dex/swaap-v1/types.js.map +1 -0
  176. package/build/dex/trader-joe-v2.1.d.ts +43 -0
  177. package/build/dex/trader-joe-v2.1.js +79 -0
  178. package/build/dex/trader-joe-v2.1.js.map +1 -0
  179. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +17 -0
  180. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +64 -0
  181. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +1 -0
  182. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +17 -0
  183. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +79 -0
  184. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +1 -0
  185. package/config.ts +1946 -0
  186. package/package.json +1 -1
  187. package/src/dex/aave-v3-stata/aave-v3-stata.ts +1 -1
  188. package/src/dex/dexs.txt +58 -0
  189. package/.idea/aws.xml +0 -17
  190. package/.idea/codeStyles/Project.xml +0 -19
  191. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  192. package/.idea/misc.xml +0 -6
  193. package/.idea/modules.xml +0 -8
  194. package/.idea/paraswap-dex-lib.iml +0 -9
  195. package/.idea/prettier.xml +0 -7
  196. package/.idea/vcs.xml +0 -6
@@ -0,0 +1,778 @@
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
+ ]