@paraswap/dex-lib 4.7.18-before-multi-route.0 → 4.7.18

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 (170) hide show
  1. package/build/abi/PendleRouterStatic.json +19 -0
  2. package/build/abi/apex-defi/ApexDefiFactory.abi.json +1749 -0
  3. package/build/abi/apex-defi/ApexDefiRouter.abi.json +1120 -0
  4. package/build/abi/apex-defi/ApexDefiToken.abi.json +229 -0
  5. package/build/abi/apex-defi/ApexDefiWrapper.abi.json +92 -0
  6. package/build/abi/apex-defi/ApexDefiWrapperFactory.abi.json +1107 -0
  7. package/build/abi/pangolin-v3/PangolinV3StateMulticall.abi.json +796 -0
  8. package/build/abi/pendle/pendle-deployer.abi.json +520 -0
  9. package/build/abi/pendle/pendle-oracle.abi.json +413 -0
  10. package/build/abi/pharaoh-v3/PharaohV3Factory.abi.json +101 -0
  11. package/build/abi/ring-v2/few-wrapped-token.json +587 -0
  12. package/build/abi/ring-v2/ring-v2-factory.json +125 -0
  13. package/build/abi/ring-v2/ring-v2-pool.json +461 -0
  14. package/build/abi/ring-v2/ring-v2-router.json +332 -0
  15. package/build/abi/stabull/stabull-curve.json +738 -0
  16. package/build/abi/stabull/stabull-router.json +76 -0
  17. package/build/abi/uniswap-v4/hooks/SpotDynamicFeeManager.json +26 -0
  18. package/build/abi/uniswap-v4/hooks/SpotHook.json +54 -0
  19. package/build/abi/uniswap-v4/hooks/SpotPolicyManager.json +45 -0
  20. package/build/abi/uniswap-v4/hooks/cabalcoin-hook.abi.json +682 -0
  21. package/build/abi/uniswap-v4/hooks/fee-hook.abi.json +1335 -0
  22. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying-factory.d.ts +29 -0
  23. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying-factory.js +153 -0
  24. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying-factory.js.map +1 -0
  25. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying.d.ts +40 -0
  26. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying.js +323 -0
  27. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying.js.map +1 -0
  28. package/build/dex/aave-pt-to-underlying/config.d.ts +3 -0
  29. package/build/dex/aave-pt-to-underlying/config.js +24 -0
  30. package/build/dex/aave-pt-to-underlying/config.js.map +1 -0
  31. package/build/dex/aave-pt-to-underlying/constants.d.ts +2 -0
  32. package/build/dex/aave-pt-to-underlying/constants.js +6 -0
  33. package/build/dex/aave-pt-to-underlying/constants.js.map +1 -0
  34. package/build/dex/aave-pt-to-underlying/types.d.ts +24 -0
  35. package/build/dex/aave-pt-to-underlying/types.js +3 -0
  36. package/build/dex/aave-pt-to-underlying/types.js.map +1 -0
  37. package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.d.ts +39 -0
  38. package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.js +244 -0
  39. package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.js.map +1 -0
  40. package/build/dex/aave-pt-to-usdc/config.d.ts +3 -0
  41. package/build/dex/aave-pt-to-usdc/config.js +47 -0
  42. package/build/dex/aave-pt-to-usdc/config.js.map +1 -0
  43. package/build/dex/aave-pt-to-usdc/constants.d.ts +2 -0
  44. package/build/dex/aave-pt-to-usdc/constants.js +6 -0
  45. package/build/dex/aave-pt-to-usdc/constants.js.map +1 -0
  46. package/build/dex/aave-pt-to-usdc/types.d.ts +22 -0
  47. package/build/dex/aave-pt-to-usdc/types.js +3 -0
  48. package/build/dex/aave-pt-to-usdc/types.js.map +1 -0
  49. package/build/dex/apex-defi/apex-defi-factory.d.ts +26 -0
  50. package/build/dex/apex-defi/apex-defi-factory.js +53 -0
  51. package/build/dex/apex-defi/apex-defi-factory.js.map +1 -0
  52. package/build/dex/apex-defi/apex-defi-pool.d.ts +55 -0
  53. package/build/dex/apex-defi/apex-defi-pool.js +247 -0
  54. package/build/dex/apex-defi/apex-defi-pool.js.map +1 -0
  55. package/build/dex/apex-defi/apex-defi-wrapper-factory.d.ts +57 -0
  56. package/build/dex/apex-defi/apex-defi-wrapper-factory.js +250 -0
  57. package/build/dex/apex-defi/apex-defi-wrapper-factory.js.map +1 -0
  58. package/build/dex/apex-defi/apex-defi.d.ts +97 -0
  59. package/build/dex/apex-defi/apex-defi.js +1021 -0
  60. package/build/dex/apex-defi/apex-defi.js.map +1 -0
  61. package/build/dex/apex-defi/config.d.ts +4 -0
  62. package/build/dex/apex-defi/config.js +138 -0
  63. package/build/dex/apex-defi/config.js.map +1 -0
  64. package/build/dex/apex-defi/types.d.ts +32 -0
  65. package/build/dex/apex-defi/types.js +3 -0
  66. package/build/dex/apex-defi/types.js.map +1 -0
  67. package/build/dex/apex-defi/utils.d.ts +46 -0
  68. package/build/dex/apex-defi/utils.js +133 -0
  69. package/build/dex/apex-defi/utils.js.map +1 -0
  70. package/build/dex/idle-dao/idle-dao.d.ts +0 -1
  71. package/build/dex/idle-dao/idle-dao.js +11 -23
  72. package/build/dex/idle-dao/idle-dao.js.map +1 -1
  73. package/build/dex/maker-psm/maker-psm.d.ts +41 -4
  74. package/build/dex/maker-psm/maker-psm.js +143 -40
  75. package/build/dex/maker-psm/maker-psm.js.map +1 -1
  76. package/build/dex/miro-migrator/miro-migrator-state.d.ts +27 -0
  77. package/build/dex/miro-migrator/miro-migrator-state.js +89 -0
  78. package/build/dex/miro-migrator/miro-migrator-state.js.map +1 -0
  79. package/build/dex/simple-exchange.js +1 -7
  80. package/build/dex/simple-exchange.js.map +1 -1
  81. package/build/dex/stabull/config.d.ts +3 -0
  82. package/build/dex/stabull/config.js +177 -0
  83. package/build/dex/stabull/config.js.map +1 -0
  84. package/build/dex/stabull/stabull-pool.d.ts +46 -0
  85. package/build/dex/stabull/stabull-pool.js +113 -0
  86. package/build/dex/stabull/stabull-pool.js.map +1 -0
  87. package/build/dex/stabull/stabull.d.ts +55 -0
  88. package/build/dex/stabull/stabull.js +286 -0
  89. package/build/dex/stabull/stabull.js.map +1 -0
  90. package/build/dex/stabull/types.d.ts +21 -0
  91. package/build/dex/stabull/types.js +3 -0
  92. package/build/dex/stabull/types.js.map +1 -0
  93. package/build/dex/uniswap-v2/constants.js +2 -0
  94. package/build/dex/uniswap-v2/constants.js.map +1 -1
  95. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.d.ts +4 -0
  96. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.js +56 -0
  97. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.js.map +1 -0
  98. package/build/dex/uniswap-v4/config.js +2 -0
  99. package/build/dex/uniswap-v4/config.js.map +1 -1
  100. package/build/dex/uniswap-v4/contract-math/uniswap-v4-pool-math.d.ts +2 -1
  101. package/build/dex/uniswap-v4/contract-math/uniswap-v4-pool-math.js +28 -9
  102. package/build/dex/uniswap-v4/contract-math/uniswap-v4-pool-math.js.map +1 -1
  103. package/build/dex/uniswap-v4/hooks/arena/arena-hook.js +4 -4
  104. package/build/dex/uniswap-v4/hooks/arena/arena-hook.js.map +1 -1
  105. package/build/dex/uniswap-v4/hooks/arena.d.ts +6 -0
  106. package/build/dex/uniswap-v4/hooks/arena.js +10 -0
  107. package/build/dex/uniswap-v4/hooks/arena.js.map +1 -0
  108. package/build/dex/uniswap-v4/hooks/base-fee/base-fee-hook.d.ts +0 -0
  109. package/build/dex/uniswap-v4/hooks/base-fee/base-fee-hook.js +2 -0
  110. package/build/dex/uniswap-v4/hooks/base-fee/base-fee-hook.js.map +1 -0
  111. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.d.ts +7 -0
  112. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.js +28 -0
  113. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.js.map +1 -0
  114. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.d.ts +0 -0
  115. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.js +2 -0
  116. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.js.map +1 -0
  117. package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.d.ts +7 -0
  118. package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.js +28 -0
  119. package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.js.map +1 -0
  120. package/build/dex/uniswap-v4/hooks/fee-hook/types.d.ts +0 -0
  121. package/build/dex/uniswap-v4/hooks/fee-hook/types.js +2 -0
  122. package/build/dex/uniswap-v4/hooks/fee-hook/types.js.map +1 -0
  123. package/build/dex/uniswap-v4/hooks/index.d.ts +1 -0
  124. package/build/dex/uniswap-v4/hooks/index.js +18 -0
  125. package/build/dex/uniswap-v4/hooks/index.js.map +1 -0
  126. package/build/dex/uniswap-v4/hooks/spot.d.ts +15 -0
  127. package/build/dex/uniswap-v4/hooks/spot.js +109 -0
  128. package/build/dex/uniswap-v4/hooks/spot.js.map +1 -0
  129. package/build/dex/uniswap-v4/hooks/template.d.ts +150 -0
  130. package/build/dex/uniswap-v4/hooks/template.js +104 -0
  131. package/build/dex/uniswap-v4/hooks/template.js.map +1 -0
  132. package/build/dex/uniswap-v4/hooks/types.d.ts +4 -0
  133. package/build/dex/uniswap-v4/subgraph.d.ts +4 -4
  134. package/build/dex/uniswap-v4/subgraph.js +24 -21
  135. package/build/dex/uniswap-v4/subgraph.js.map +1 -1
  136. package/build/dex/uniswap-v4/types.d.ts +2 -0
  137. package/build/dex/uniswap-v4/uniswap-v4-pool-manager.d.ts +7 -1
  138. package/build/dex/uniswap-v4/uniswap-v4-pool-manager.js +54 -9
  139. package/build/dex/uniswap-v4/uniswap-v4-pool-manager.js.map +1 -1
  140. package/build/dex/uniswap-v4/uniswap-v4-pool.d.ts +3 -1
  141. package/build/dex/uniswap-v4/uniswap-v4-pool.js +3 -1
  142. package/build/dex/uniswap-v4/uniswap-v4-pool.js.map +1 -1
  143. package/build/dex/uniswap-v4/uniswap-v4.d.ts +3 -1
  144. package/build/dex/uniswap-v4/uniswap-v4.js +15 -5
  145. package/build/dex/uniswap-v4/uniswap-v4.js.map +1 -1
  146. package/build/dex/uniswap-v4/utils.d.ts +2 -1
  147. package/build/dex/uniswap-v4/utils.js +11 -0
  148. package/build/dex/uniswap-v4/utils.js.map +1 -1
  149. package/build/dex/usdc-transmuter/usdc-transmuter-pool.d.ts +26 -0
  150. package/build/dex/usdc-transmuter/usdc-transmuter-pool.js +75 -0
  151. package/build/dex/usdc-transmuter/usdc-transmuter-pool.js.map +1 -0
  152. package/build/dex/usual/usual-usdc-usdc.d.ts +17 -0
  153. package/build/dex/usual/usual-usdc-usdc.js +59 -0
  154. package/build/dex/usual/usual-usdc-usdc.js.map +1 -0
  155. package/build/dex/yo/config.d.ts +3 -0
  156. package/build/dex/yo/config.js +21 -0
  157. package/build/dex/yo/config.js.map +1 -0
  158. package/build/dex/yo/types.d.ts +13 -0
  159. package/build/dex/yo/types.js +3 -0
  160. package/build/dex/yo/types.js.map +1 -0
  161. package/build/dex/yo/yo-pool.d.ts +13 -0
  162. package/build/dex/yo/yo-pool.js +26 -0
  163. package/build/dex/yo/yo-pool.js.map +1 -0
  164. package/build/dex/yo/yo.d.ts +39 -0
  165. package/build/dex/yo/yo.js +248 -0
  166. package/build/dex/yo/yo.js.map +1 -0
  167. package/build/implementations/api-paraswap-sdk.d.ts +25 -0
  168. package/build/implementations/api-paraswap-sdk.js +102 -0
  169. package/build/implementations/api-paraswap-sdk.js.map +1 -0
  170. package/package.json +3 -2
@@ -0,0 +1,1120 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "_wavax",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "address",
11
+ "name": "_wrapperFactory",
12
+ "type": "address"
13
+ },
14
+ {
15
+ "internalType": "address",
16
+ "name": "_factory",
17
+ "type": "address"
18
+ }
19
+ ],
20
+ "stateMutability": "nonpayable",
21
+ "type": "constructor"
22
+ },
23
+ {
24
+ "inputs": [],
25
+ "name": "AVAXTransferFailed",
26
+ "type": "error"
27
+ },
28
+ {
29
+ "inputs": [
30
+ {
31
+ "internalType": "address",
32
+ "name": "target",
33
+ "type": "address"
34
+ }
35
+ ],
36
+ "name": "AddressEmptyCode",
37
+ "type": "error"
38
+ },
39
+ {
40
+ "inputs": [
41
+ {
42
+ "internalType": "address",
43
+ "name": "account",
44
+ "type": "address"
45
+ }
46
+ ],
47
+ "name": "AddressInsufficientBalance",
48
+ "type": "error"
49
+ },
50
+ {
51
+ "inputs": [
52
+ {
53
+ "internalType": "uint256",
54
+ "name": "required",
55
+ "type": "uint256"
56
+ },
57
+ {
58
+ "internalType": "uint256",
59
+ "name": "max",
60
+ "type": "uint256"
61
+ }
62
+ ],
63
+ "name": "ExcessiveInputAmount",
64
+ "type": "error"
65
+ },
66
+ {
67
+ "inputs": [],
68
+ "name": "FailedInnerCall",
69
+ "type": "error"
70
+ },
71
+ {
72
+ "inputs": [],
73
+ "name": "InputCannotBeAVAX",
74
+ "type": "error"
75
+ },
76
+ {
77
+ "inputs": [],
78
+ "name": "InputMustBeAVAX",
79
+ "type": "error"
80
+ },
81
+ {
82
+ "inputs": [],
83
+ "name": "InsufficientAVAXAmount",
84
+ "type": "error"
85
+ },
86
+ {
87
+ "inputs": [],
88
+ "name": "InsufficientAmount",
89
+ "type": "error"
90
+ },
91
+ {
92
+ "inputs": [],
93
+ "name": "InsufficientLiquidity",
94
+ "type": "error"
95
+ },
96
+ {
97
+ "inputs": [
98
+ {
99
+ "internalType": "uint256",
100
+ "name": "expected",
101
+ "type": "uint256"
102
+ },
103
+ {
104
+ "internalType": "uint256",
105
+ "name": "actual",
106
+ "type": "uint256"
107
+ }
108
+ ],
109
+ "name": "InsufficientOutputAmount",
110
+ "type": "error"
111
+ },
112
+ {
113
+ "inputs": [],
114
+ "name": "InsufficientTokenAmount",
115
+ "type": "error"
116
+ },
117
+ {
118
+ "inputs": [],
119
+ "name": "InvalidFactory",
120
+ "type": "error"
121
+ },
122
+ {
123
+ "inputs": [],
124
+ "name": "InvalidPath",
125
+ "type": "error"
126
+ },
127
+ {
128
+ "inputs": [],
129
+ "name": "InvalidPathLength",
130
+ "type": "error"
131
+ },
132
+ {
133
+ "inputs": [
134
+ {
135
+ "internalType": "address",
136
+ "name": "token",
137
+ "type": "address"
138
+ }
139
+ ],
140
+ "name": "InvalidToken",
141
+ "type": "error"
142
+ },
143
+ {
144
+ "inputs": [],
145
+ "name": "InvalidWrapperFactory",
146
+ "type": "error"
147
+ },
148
+ {
149
+ "inputs": [],
150
+ "name": "NoAVAXSent",
151
+ "type": "error"
152
+ },
153
+ {
154
+ "inputs": [],
155
+ "name": "NoTokensProvided",
156
+ "type": "error"
157
+ },
158
+ {
159
+ "inputs": [],
160
+ "name": "NoWrappersProvided",
161
+ "type": "error"
162
+ },
163
+ {
164
+ "inputs": [],
165
+ "name": "OutputCannotBeAVAX",
166
+ "type": "error"
167
+ },
168
+ {
169
+ "inputs": [
170
+ {
171
+ "internalType": "address",
172
+ "name": "tokenAddress",
173
+ "type": "address"
174
+ },
175
+ {
176
+ "internalType": "address",
177
+ "name": "spender",
178
+ "type": "address"
179
+ },
180
+ {
181
+ "internalType": "uint256",
182
+ "name": "amount",
183
+ "type": "uint256"
184
+ },
185
+ {
186
+ "internalType": "address",
187
+ "name": "to",
188
+ "type": "address"
189
+ }
190
+ ],
191
+ "name": "OutputDeliveryFailed",
192
+ "type": "error"
193
+ },
194
+ {
195
+ "inputs": [
196
+ {
197
+ "internalType": "address",
198
+ "name": "owner",
199
+ "type": "address"
200
+ }
201
+ ],
202
+ "name": "OwnableInvalidOwner",
203
+ "type": "error"
204
+ },
205
+ {
206
+ "inputs": [
207
+ {
208
+ "internalType": "address",
209
+ "name": "account",
210
+ "type": "address"
211
+ }
212
+ ],
213
+ "name": "OwnableUnauthorizedAccount",
214
+ "type": "error"
215
+ },
216
+ {
217
+ "inputs": [],
218
+ "name": "PathMustEndWithAVAX",
219
+ "type": "error"
220
+ },
221
+ {
222
+ "inputs": [],
223
+ "name": "ReentrancyGuardReentrantCall",
224
+ "type": "error"
225
+ },
226
+ {
227
+ "inputs": [
228
+ {
229
+ "internalType": "address",
230
+ "name": "token",
231
+ "type": "address"
232
+ }
233
+ ],
234
+ "name": "SafeERC20FailedOperation",
235
+ "type": "error"
236
+ },
237
+ {
238
+ "inputs": [
239
+ {
240
+ "internalType": "address",
241
+ "name": "tokenAddress",
242
+ "type": "address"
243
+ },
244
+ {
245
+ "internalType": "address",
246
+ "name": "spender",
247
+ "type": "address"
248
+ },
249
+ {
250
+ "internalType": "uint256",
251
+ "name": "amountIn",
252
+ "type": "uint256"
253
+ },
254
+ {
255
+ "internalType": "uint256",
256
+ "name": "amountOutMin",
257
+ "type": "uint256"
258
+ }
259
+ ],
260
+ "name": "SwapFailed",
261
+ "type": "error"
262
+ },
263
+ {
264
+ "inputs": [
265
+ {
266
+ "internalType": "address",
267
+ "name": "token",
268
+ "type": "address"
269
+ },
270
+ {
271
+ "internalType": "address",
272
+ "name": "spender",
273
+ "type": "address"
274
+ },
275
+ {
276
+ "internalType": "uint256",
277
+ "name": "amount",
278
+ "type": "uint256"
279
+ }
280
+ ],
281
+ "name": "TokenApprovalFailed",
282
+ "type": "error"
283
+ },
284
+ {
285
+ "inputs": [],
286
+ "name": "TokenCannotBeAVAX",
287
+ "type": "error"
288
+ },
289
+ {
290
+ "inputs": [],
291
+ "name": "TransactionExpired",
292
+ "type": "error"
293
+ },
294
+ {
295
+ "inputs": [
296
+ {
297
+ "internalType": "address",
298
+ "name": "token",
299
+ "type": "address"
300
+ },
301
+ {
302
+ "internalType": "address",
303
+ "name": "wrapper",
304
+ "type": "address"
305
+ },
306
+ {
307
+ "internalType": "uint256",
308
+ "name": "amount",
309
+ "type": "uint256"
310
+ }
311
+ ],
312
+ "name": "UnwrapFailed",
313
+ "type": "error"
314
+ },
315
+ {
316
+ "inputs": [
317
+ {
318
+ "internalType": "address",
319
+ "name": "token",
320
+ "type": "address"
321
+ },
322
+ {
323
+ "internalType": "address",
324
+ "name": "wrapper",
325
+ "type": "address"
326
+ },
327
+ {
328
+ "internalType": "uint256",
329
+ "name": "amount",
330
+ "type": "uint256"
331
+ }
332
+ ],
333
+ "name": "WrapFailed",
334
+ "type": "error"
335
+ },
336
+ {
337
+ "anonymous": false,
338
+ "inputs": [
339
+ {
340
+ "indexed": true,
341
+ "internalType": "address",
342
+ "name": "previousOwner",
343
+ "type": "address"
344
+ },
345
+ {
346
+ "indexed": true,
347
+ "internalType": "address",
348
+ "name": "newOwner",
349
+ "type": "address"
350
+ }
351
+ ],
352
+ "name": "OwnershipTransferred",
353
+ "type": "event"
354
+ },
355
+ {
356
+ "inputs": [],
357
+ "name": "WAVAX",
358
+ "outputs": [
359
+ {
360
+ "internalType": "address",
361
+ "name": "",
362
+ "type": "address"
363
+ }
364
+ ],
365
+ "stateMutability": "view",
366
+ "type": "function"
367
+ },
368
+ {
369
+ "inputs": [
370
+ {
371
+ "internalType": "address",
372
+ "name": "",
373
+ "type": "address"
374
+ },
375
+ {
376
+ "internalType": "address",
377
+ "name": "",
378
+ "type": "address"
379
+ }
380
+ ],
381
+ "name": "_maxApprovals",
382
+ "outputs": [
383
+ {
384
+ "internalType": "bool",
385
+ "name": "",
386
+ "type": "bool"
387
+ }
388
+ ],
389
+ "stateMutability": "view",
390
+ "type": "function"
391
+ },
392
+ {
393
+ "inputs": [
394
+ {
395
+ "internalType": "address",
396
+ "name": "token",
397
+ "type": "address"
398
+ },
399
+ {
400
+ "internalType": "uint256",
401
+ "name": "amountTokenDesired",
402
+ "type": "uint256"
403
+ },
404
+ {
405
+ "internalType": "uint256",
406
+ "name": "amountTokenMin",
407
+ "type": "uint256"
408
+ },
409
+ {
410
+ "internalType": "uint256",
411
+ "name": "amountAVAXMin",
412
+ "type": "uint256"
413
+ },
414
+ {
415
+ "internalType": "address",
416
+ "name": "to",
417
+ "type": "address"
418
+ },
419
+ {
420
+ "internalType": "uint256",
421
+ "name": "deadline",
422
+ "type": "uint256"
423
+ }
424
+ ],
425
+ "name": "addLiquidityAVAX",
426
+ "outputs": [
427
+ {
428
+ "internalType": "uint256",
429
+ "name": "amountToken",
430
+ "type": "uint256"
431
+ },
432
+ {
433
+ "internalType": "uint256",
434
+ "name": "amountAVAX",
435
+ "type": "uint256"
436
+ },
437
+ {
438
+ "internalType": "uint256",
439
+ "name": "liquidity",
440
+ "type": "uint256"
441
+ }
442
+ ],
443
+ "stateMutability": "payable",
444
+ "type": "function"
445
+ },
446
+ {
447
+ "inputs": [],
448
+ "name": "factory",
449
+ "outputs": [
450
+ {
451
+ "internalType": "contract IBIFKN314FactoryV2",
452
+ "name": "",
453
+ "type": "address"
454
+ }
455
+ ],
456
+ "stateMutability": "view",
457
+ "type": "function"
458
+ },
459
+ {
460
+ "inputs": [],
461
+ "name": "getAllTokens",
462
+ "outputs": [
463
+ {
464
+ "internalType": "address[]",
465
+ "name": "tokens",
466
+ "type": "address[]"
467
+ }
468
+ ],
469
+ "stateMutability": "view",
470
+ "type": "function"
471
+ },
472
+ {
473
+ "inputs": [
474
+ {
475
+ "internalType": "address",
476
+ "name": "token",
477
+ "type": "address"
478
+ },
479
+ {
480
+ "internalType": "uint256",
481
+ "name": "amountOut",
482
+ "type": "uint256"
483
+ },
484
+ {
485
+ "internalType": "uint256",
486
+ "name": "reserveIn",
487
+ "type": "uint256"
488
+ },
489
+ {
490
+ "internalType": "uint256",
491
+ "name": "reserveOut",
492
+ "type": "uint256"
493
+ }
494
+ ],
495
+ "name": "getAmountIn",
496
+ "outputs": [
497
+ {
498
+ "internalType": "uint256",
499
+ "name": "amountIn",
500
+ "type": "uint256"
501
+ }
502
+ ],
503
+ "stateMutability": "view",
504
+ "type": "function"
505
+ },
506
+ {
507
+ "inputs": [
508
+ {
509
+ "internalType": "address",
510
+ "name": "token",
511
+ "type": "address"
512
+ },
513
+ {
514
+ "internalType": "uint256",
515
+ "name": "amountIn",
516
+ "type": "uint256"
517
+ },
518
+ {
519
+ "internalType": "uint256",
520
+ "name": "reserveIn",
521
+ "type": "uint256"
522
+ },
523
+ {
524
+ "internalType": "uint256",
525
+ "name": "reserveOut",
526
+ "type": "uint256"
527
+ }
528
+ ],
529
+ "name": "getAmountOut",
530
+ "outputs": [
531
+ {
532
+ "internalType": "uint256",
533
+ "name": "amountOut",
534
+ "type": "uint256"
535
+ }
536
+ ],
537
+ "stateMutability": "view",
538
+ "type": "function"
539
+ },
540
+ {
541
+ "inputs": [
542
+ {
543
+ "internalType": "uint256",
544
+ "name": "amountOut",
545
+ "type": "uint256"
546
+ },
547
+ {
548
+ "internalType": "address[]",
549
+ "name": "path",
550
+ "type": "address[]"
551
+ }
552
+ ],
553
+ "name": "getAmountsIn",
554
+ "outputs": [
555
+ {
556
+ "internalType": "uint256[]",
557
+ "name": "amounts",
558
+ "type": "uint256[]"
559
+ }
560
+ ],
561
+ "stateMutability": "view",
562
+ "type": "function"
563
+ },
564
+ {
565
+ "inputs": [
566
+ {
567
+ "internalType": "uint256",
568
+ "name": "amountIn",
569
+ "type": "uint256"
570
+ },
571
+ {
572
+ "internalType": "address[]",
573
+ "name": "path",
574
+ "type": "address[]"
575
+ }
576
+ ],
577
+ "name": "getAmountsOut",
578
+ "outputs": [
579
+ {
580
+ "internalType": "uint256[]",
581
+ "name": "amounts",
582
+ "type": "uint256[]"
583
+ }
584
+ ],
585
+ "stateMutability": "view",
586
+ "type": "function"
587
+ },
588
+ {
589
+ "inputs": [
590
+ {
591
+ "internalType": "address",
592
+ "name": "tokenA",
593
+ "type": "address"
594
+ },
595
+ {
596
+ "internalType": "address",
597
+ "name": "tokenB",
598
+ "type": "address"
599
+ }
600
+ ],
601
+ "name": "getPair",
602
+ "outputs": [
603
+ {
604
+ "internalType": "address",
605
+ "name": "",
606
+ "type": "address"
607
+ }
608
+ ],
609
+ "stateMutability": "view",
610
+ "type": "function"
611
+ },
612
+ {
613
+ "inputs": [
614
+ {
615
+ "internalType": "address",
616
+ "name": "token",
617
+ "type": "address"
618
+ }
619
+ ],
620
+ "name": "getReserves",
621
+ "outputs": [
622
+ {
623
+ "internalType": "uint256",
624
+ "name": "avaxReserve",
625
+ "type": "uint256"
626
+ },
627
+ {
628
+ "internalType": "uint256",
629
+ "name": "tokenReserve",
630
+ "type": "uint256"
631
+ }
632
+ ],
633
+ "stateMutability": "view",
634
+ "type": "function"
635
+ },
636
+ {
637
+ "inputs": [
638
+ {
639
+ "internalType": "address",
640
+ "name": "",
641
+ "type": "address"
642
+ }
643
+ ],
644
+ "name": "legacyERC314Tokens",
645
+ "outputs": [
646
+ {
647
+ "internalType": "bool",
648
+ "name": "",
649
+ "type": "bool"
650
+ }
651
+ ],
652
+ "stateMutability": "view",
653
+ "type": "function"
654
+ },
655
+ {
656
+ "inputs": [
657
+ {
658
+ "internalType": "address",
659
+ "name": "",
660
+ "type": "address"
661
+ }
662
+ ],
663
+ "name": "legacyWrappers",
664
+ "outputs": [
665
+ {
666
+ "internalType": "bool",
667
+ "name": "",
668
+ "type": "bool"
669
+ }
670
+ ],
671
+ "stateMutability": "view",
672
+ "type": "function"
673
+ },
674
+ {
675
+ "inputs": [
676
+ {
677
+ "internalType": "address[]",
678
+ "name": "path",
679
+ "type": "address[]"
680
+ }
681
+ ],
682
+ "name": "optimizePath",
683
+ "outputs": [
684
+ {
685
+ "internalType": "address[]",
686
+ "name": "",
687
+ "type": "address[]"
688
+ }
689
+ ],
690
+ "stateMutability": "view",
691
+ "type": "function"
692
+ },
693
+ {
694
+ "inputs": [],
695
+ "name": "owner",
696
+ "outputs": [
697
+ {
698
+ "internalType": "address",
699
+ "name": "",
700
+ "type": "address"
701
+ }
702
+ ],
703
+ "stateMutability": "view",
704
+ "type": "function"
705
+ },
706
+ {
707
+ "inputs": [
708
+ {
709
+ "internalType": "uint256",
710
+ "name": "amountA",
711
+ "type": "uint256"
712
+ },
713
+ {
714
+ "internalType": "uint256",
715
+ "name": "reserveA",
716
+ "type": "uint256"
717
+ },
718
+ {
719
+ "internalType": "uint256",
720
+ "name": "reserveB",
721
+ "type": "uint256"
722
+ }
723
+ ],
724
+ "name": "quote",
725
+ "outputs": [
726
+ {
727
+ "internalType": "uint256",
728
+ "name": "amountB",
729
+ "type": "uint256"
730
+ }
731
+ ],
732
+ "stateMutability": "pure",
733
+ "type": "function"
734
+ },
735
+ {
736
+ "inputs": [
737
+ {
738
+ "internalType": "address",
739
+ "name": "token",
740
+ "type": "address"
741
+ },
742
+ {
743
+ "internalType": "uint256",
744
+ "name": "liquidity",
745
+ "type": "uint256"
746
+ },
747
+ {
748
+ "internalType": "uint256",
749
+ "name": "amountTokenMin",
750
+ "type": "uint256"
751
+ },
752
+ {
753
+ "internalType": "uint256",
754
+ "name": "amountAVAXMin",
755
+ "type": "uint256"
756
+ },
757
+ {
758
+ "internalType": "address",
759
+ "name": "to",
760
+ "type": "address"
761
+ },
762
+ {
763
+ "internalType": "uint256",
764
+ "name": "deadline",
765
+ "type": "uint256"
766
+ }
767
+ ],
768
+ "name": "removeLiquidityAVAX",
769
+ "outputs": [
770
+ {
771
+ "internalType": "uint256",
772
+ "name": "amountToken",
773
+ "type": "uint256"
774
+ },
775
+ {
776
+ "internalType": "uint256",
777
+ "name": "amountAVAX",
778
+ "type": "uint256"
779
+ }
780
+ ],
781
+ "stateMutability": "nonpayable",
782
+ "type": "function"
783
+ },
784
+ {
785
+ "inputs": [],
786
+ "name": "renounceOwnership",
787
+ "outputs": [],
788
+ "stateMutability": "nonpayable",
789
+ "type": "function"
790
+ },
791
+ {
792
+ "inputs": [
793
+ {
794
+ "internalType": "address[]",
795
+ "name": "tokens",
796
+ "type": "address[]"
797
+ },
798
+ {
799
+ "internalType": "bool",
800
+ "name": "isLegacy",
801
+ "type": "bool"
802
+ }
803
+ ],
804
+ "name": "setLegacyTokens",
805
+ "outputs": [],
806
+ "stateMutability": "nonpayable",
807
+ "type": "function"
808
+ },
809
+ {
810
+ "inputs": [
811
+ {
812
+ "internalType": "address[]",
813
+ "name": "wrappers",
814
+ "type": "address[]"
815
+ },
816
+ {
817
+ "internalType": "bool",
818
+ "name": "isLegacy",
819
+ "type": "bool"
820
+ }
821
+ ],
822
+ "name": "setLegacyWrappers",
823
+ "outputs": [],
824
+ "stateMutability": "nonpayable",
825
+ "type": "function"
826
+ },
827
+ {
828
+ "inputs": [
829
+ {
830
+ "internalType": "uint256",
831
+ "name": "amountOutDesired",
832
+ "type": "uint256"
833
+ },
834
+ {
835
+ "internalType": "uint256",
836
+ "name": "amountOutMin",
837
+ "type": "uint256"
838
+ },
839
+ {
840
+ "internalType": "uint256",
841
+ "name": "amountInMax",
842
+ "type": "uint256"
843
+ },
844
+ {
845
+ "internalType": "address[]",
846
+ "name": "path",
847
+ "type": "address[]"
848
+ },
849
+ {
850
+ "internalType": "address",
851
+ "name": "to",
852
+ "type": "address"
853
+ },
854
+ {
855
+ "internalType": "uint256",
856
+ "name": "deadline",
857
+ "type": "uint256"
858
+ }
859
+ ],
860
+ "name": "swapAVAXForEstimatedTokens",
861
+ "outputs": [
862
+ {
863
+ "internalType": "uint256[]",
864
+ "name": "amounts",
865
+ "type": "uint256[]"
866
+ }
867
+ ],
868
+ "stateMutability": "payable",
869
+ "type": "function"
870
+ },
871
+ {
872
+ "inputs": [
873
+ {
874
+ "internalType": "uint256",
875
+ "name": "amountOutMin",
876
+ "type": "uint256"
877
+ },
878
+ {
879
+ "internalType": "address[]",
880
+ "name": "path",
881
+ "type": "address[]"
882
+ },
883
+ {
884
+ "internalType": "address",
885
+ "name": "to",
886
+ "type": "address"
887
+ },
888
+ {
889
+ "internalType": "uint256",
890
+ "name": "deadline",
891
+ "type": "uint256"
892
+ }
893
+ ],
894
+ "name": "swapExactAVAXForTokens",
895
+ "outputs": [
896
+ {
897
+ "internalType": "uint256[]",
898
+ "name": "amounts",
899
+ "type": "uint256[]"
900
+ }
901
+ ],
902
+ "stateMutability": "payable",
903
+ "type": "function"
904
+ },
905
+ {
906
+ "inputs": [
907
+ {
908
+ "internalType": "uint256",
909
+ "name": "amountIn",
910
+ "type": "uint256"
911
+ },
912
+ {
913
+ "internalType": "uint256",
914
+ "name": "amountOutMin",
915
+ "type": "uint256"
916
+ },
917
+ {
918
+ "internalType": "address[]",
919
+ "name": "path",
920
+ "type": "address[]"
921
+ },
922
+ {
923
+ "internalType": "address",
924
+ "name": "to",
925
+ "type": "address"
926
+ },
927
+ {
928
+ "internalType": "uint256",
929
+ "name": "deadline",
930
+ "type": "uint256"
931
+ }
932
+ ],
933
+ "name": "swapExactTokensForAVAX",
934
+ "outputs": [
935
+ {
936
+ "internalType": "uint256[]",
937
+ "name": "amounts",
938
+ "type": "uint256[]"
939
+ }
940
+ ],
941
+ "stateMutability": "nonpayable",
942
+ "type": "function"
943
+ },
944
+ {
945
+ "inputs": [
946
+ {
947
+ "internalType": "uint256",
948
+ "name": "amountIn",
949
+ "type": "uint256"
950
+ },
951
+ {
952
+ "internalType": "uint256",
953
+ "name": "amountOutMin",
954
+ "type": "uint256"
955
+ },
956
+ {
957
+ "internalType": "address[]",
958
+ "name": "path",
959
+ "type": "address[]"
960
+ },
961
+ {
962
+ "internalType": "address",
963
+ "name": "to",
964
+ "type": "address"
965
+ },
966
+ {
967
+ "internalType": "uint256",
968
+ "name": "deadline",
969
+ "type": "uint256"
970
+ }
971
+ ],
972
+ "name": "swapExactTokensForTokens",
973
+ "outputs": [
974
+ {
975
+ "internalType": "uint256[]",
976
+ "name": "amounts",
977
+ "type": "uint256[]"
978
+ }
979
+ ],
980
+ "stateMutability": "nonpayable",
981
+ "type": "function"
982
+ },
983
+ {
984
+ "inputs": [
985
+ {
986
+ "internalType": "uint256",
987
+ "name": "amountOutDesired",
988
+ "type": "uint256"
989
+ },
990
+ {
991
+ "internalType": "uint256",
992
+ "name": "amountOutMin",
993
+ "type": "uint256"
994
+ },
995
+ {
996
+ "internalType": "uint256",
997
+ "name": "amountInMax",
998
+ "type": "uint256"
999
+ },
1000
+ {
1001
+ "internalType": "address[]",
1002
+ "name": "path",
1003
+ "type": "address[]"
1004
+ },
1005
+ {
1006
+ "internalType": "address",
1007
+ "name": "to",
1008
+ "type": "address"
1009
+ },
1010
+ {
1011
+ "internalType": "uint256",
1012
+ "name": "deadline",
1013
+ "type": "uint256"
1014
+ }
1015
+ ],
1016
+ "name": "swapTokensForEstimatedAVAX",
1017
+ "outputs": [
1018
+ {
1019
+ "internalType": "uint256[]",
1020
+ "name": "amounts",
1021
+ "type": "uint256[]"
1022
+ }
1023
+ ],
1024
+ "stateMutability": "nonpayable",
1025
+ "type": "function"
1026
+ },
1027
+ {
1028
+ "inputs": [
1029
+ {
1030
+ "internalType": "uint256",
1031
+ "name": "amountOutDesired",
1032
+ "type": "uint256"
1033
+ },
1034
+ {
1035
+ "internalType": "uint256",
1036
+ "name": "amountOutMin",
1037
+ "type": "uint256"
1038
+ },
1039
+ {
1040
+ "internalType": "uint256",
1041
+ "name": "amountInMax",
1042
+ "type": "uint256"
1043
+ },
1044
+ {
1045
+ "internalType": "address[]",
1046
+ "name": "path",
1047
+ "type": "address[]"
1048
+ },
1049
+ {
1050
+ "internalType": "address",
1051
+ "name": "to",
1052
+ "type": "address"
1053
+ },
1054
+ {
1055
+ "internalType": "uint256",
1056
+ "name": "deadline",
1057
+ "type": "uint256"
1058
+ }
1059
+ ],
1060
+ "name": "swapTokensForEstimatedTokens",
1061
+ "outputs": [
1062
+ {
1063
+ "internalType": "uint256[]",
1064
+ "name": "amounts",
1065
+ "type": "uint256[]"
1066
+ }
1067
+ ],
1068
+ "stateMutability": "nonpayable",
1069
+ "type": "function"
1070
+ },
1071
+ {
1072
+ "inputs": [
1073
+ {
1074
+ "internalType": "address",
1075
+ "name": "",
1076
+ "type": "address"
1077
+ }
1078
+ ],
1079
+ "name": "tokenToERC314Cache",
1080
+ "outputs": [
1081
+ {
1082
+ "internalType": "address",
1083
+ "name": "",
1084
+ "type": "address"
1085
+ }
1086
+ ],
1087
+ "stateMutability": "view",
1088
+ "type": "function"
1089
+ },
1090
+ {
1091
+ "inputs": [
1092
+ {
1093
+ "internalType": "address",
1094
+ "name": "newOwner",
1095
+ "type": "address"
1096
+ }
1097
+ ],
1098
+ "name": "transferOwnership",
1099
+ "outputs": [],
1100
+ "stateMutability": "nonpayable",
1101
+ "type": "function"
1102
+ },
1103
+ {
1104
+ "inputs": [],
1105
+ "name": "wrapperFactory",
1106
+ "outputs": [
1107
+ {
1108
+ "internalType": "contract IBIFKN314WrapperFactoryV2",
1109
+ "name": "",
1110
+ "type": "address"
1111
+ }
1112
+ ],
1113
+ "stateMutability": "view",
1114
+ "type": "function"
1115
+ },
1116
+ {
1117
+ "stateMutability": "payable",
1118
+ "type": "receive"
1119
+ }
1120
+ ]