sushi 6.2.2 → 6.2.3

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sushiswapV2RouterAbi.d.ts","sourceRoot":"","sources":["../../../../evm/abi/sushiSwapV2RouterAbi/sushiswapV2RouterAbi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmWvB,CAAA"}
@@ -22,3 +22,4 @@ export * from './sushiSwapV2RouterAbi_swapExactTokensForTokensSupportingFeeOnTra
22
22
  export * from './sushiSwapV2RouterAbi_swapTokensForExactETH.js'
23
23
  export * from './sushiSwapV2RouterAbi_swapTokensForExactTokens.js'
24
24
  export * from './sushiSwapV2RouterAbi_WETH.js'
25
+ export * from './sushiswapV2RouterAbi.js'
@@ -0,0 +1,356 @@
1
+ export const sushiSwapV2RouterAbi = [
2
+ {
3
+ inputs: [
4
+ { internalType: 'address', name: '_factory', type: 'address' },
5
+ { internalType: 'address', name: '_WETH', type: 'address' },
6
+ ],
7
+ stateMutability: 'nonpayable',
8
+ type: 'constructor',
9
+ },
10
+ {
11
+ inputs: [],
12
+ name: 'WETH',
13
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
14
+ stateMutability: 'view',
15
+ type: 'function',
16
+ },
17
+ {
18
+ inputs: [
19
+ { internalType: 'address', name: 'tokenA', type: 'address' },
20
+ { internalType: 'address', name: 'tokenB', type: 'address' },
21
+ { internalType: 'uint256', name: 'amountADesired', type: 'uint256' },
22
+ { internalType: 'uint256', name: 'amountBDesired', type: 'uint256' },
23
+ { internalType: 'uint256', name: 'amountAMin', type: 'uint256' },
24
+ { internalType: 'uint256', name: 'amountBMin', type: 'uint256' },
25
+ { internalType: 'address', name: 'to', type: 'address' },
26
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
27
+ ],
28
+ name: 'addLiquidity',
29
+ outputs: [
30
+ { internalType: 'uint256', name: 'amountA', type: 'uint256' },
31
+ { internalType: 'uint256', name: 'amountB', type: 'uint256' },
32
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
33
+ ],
34
+ stateMutability: 'nonpayable',
35
+ type: 'function',
36
+ },
37
+ {
38
+ inputs: [
39
+ { internalType: 'address', name: 'token', type: 'address' },
40
+ { internalType: 'uint256', name: 'amountTokenDesired', type: 'uint256' },
41
+ { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' },
42
+ { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' },
43
+ { internalType: 'address', name: 'to', type: 'address' },
44
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
45
+ ],
46
+ name: 'addLiquidityETH',
47
+ outputs: [
48
+ { internalType: 'uint256', name: 'amountToken', type: 'uint256' },
49
+ { internalType: 'uint256', name: 'amountETH', type: 'uint256' },
50
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
51
+ ],
52
+ stateMutability: 'payable',
53
+ type: 'function',
54
+ },
55
+ {
56
+ inputs: [],
57
+ name: 'factory',
58
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
59
+ stateMutability: 'view',
60
+ type: 'function',
61
+ },
62
+ {
63
+ inputs: [
64
+ { internalType: 'uint256', name: 'amountOut', type: 'uint256' },
65
+ { internalType: 'uint256', name: 'reserveIn', type: 'uint256' },
66
+ { internalType: 'uint256', name: 'reserveOut', type: 'uint256' },
67
+ ],
68
+ name: 'getAmountIn',
69
+ outputs: [{ internalType: 'uint256', name: 'amountIn', type: 'uint256' }],
70
+ stateMutability: 'pure',
71
+ type: 'function',
72
+ },
73
+ {
74
+ inputs: [
75
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
76
+ { internalType: 'uint256', name: 'reserveIn', type: 'uint256' },
77
+ { internalType: 'uint256', name: 'reserveOut', type: 'uint256' },
78
+ ],
79
+ name: 'getAmountOut',
80
+ outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }],
81
+ stateMutability: 'pure',
82
+ type: 'function',
83
+ },
84
+ {
85
+ inputs: [
86
+ { internalType: 'uint256', name: 'amountOut', type: 'uint256' },
87
+ { internalType: 'address[]', name: 'path', type: 'address[]' },
88
+ ],
89
+ name: 'getAmountsIn',
90
+ outputs: [
91
+ { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' },
92
+ ],
93
+ stateMutability: 'view',
94
+ type: 'function',
95
+ },
96
+ {
97
+ inputs: [
98
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
99
+ { internalType: 'address[]', name: 'path', type: 'address[]' },
100
+ ],
101
+ name: 'getAmountsOut',
102
+ outputs: [
103
+ { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' },
104
+ ],
105
+ stateMutability: 'view',
106
+ type: 'function',
107
+ },
108
+ {
109
+ inputs: [
110
+ { internalType: 'uint256', name: 'amountA', type: 'uint256' },
111
+ { internalType: 'uint256', name: 'reserveA', type: 'uint256' },
112
+ { internalType: 'uint256', name: 'reserveB', type: 'uint256' },
113
+ ],
114
+ name: 'quote',
115
+ outputs: [{ internalType: 'uint256', name: 'amountB', type: 'uint256' }],
116
+ stateMutability: 'pure',
117
+ type: 'function',
118
+ },
119
+ {
120
+ inputs: [
121
+ { internalType: 'address', name: 'tokenA', type: 'address' },
122
+ { internalType: 'address', name: 'tokenB', type: 'address' },
123
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
124
+ { internalType: 'uint256', name: 'amountAMin', type: 'uint256' },
125
+ { internalType: 'uint256', name: 'amountBMin', type: 'uint256' },
126
+ { internalType: 'address', name: 'to', type: 'address' },
127
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
128
+ ],
129
+ name: 'removeLiquidity',
130
+ outputs: [
131
+ { internalType: 'uint256', name: 'amountA', type: 'uint256' },
132
+ { internalType: 'uint256', name: 'amountB', type: 'uint256' },
133
+ ],
134
+ stateMutability: 'nonpayable',
135
+ type: 'function',
136
+ },
137
+ {
138
+ inputs: [
139
+ { internalType: 'address', name: 'token', type: 'address' },
140
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
141
+ { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' },
142
+ { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' },
143
+ { internalType: 'address', name: 'to', type: 'address' },
144
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
145
+ ],
146
+ name: 'removeLiquidityETH',
147
+ outputs: [
148
+ { internalType: 'uint256', name: 'amountToken', type: 'uint256' },
149
+ { internalType: 'uint256', name: 'amountETH', type: 'uint256' },
150
+ ],
151
+ stateMutability: 'nonpayable',
152
+ type: 'function',
153
+ },
154
+ {
155
+ inputs: [
156
+ { internalType: 'address', name: 'token', type: 'address' },
157
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
158
+ { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' },
159
+ { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' },
160
+ { internalType: 'address', name: 'to', type: 'address' },
161
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
162
+ ],
163
+ name: 'removeLiquidityETHSupportingFeeOnTransferTokens',
164
+ outputs: [{ internalType: 'uint256', name: 'amountETH', type: 'uint256' }],
165
+ stateMutability: 'nonpayable',
166
+ type: 'function',
167
+ },
168
+ {
169
+ inputs: [
170
+ { internalType: 'address', name: 'token', type: 'address' },
171
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
172
+ { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' },
173
+ { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' },
174
+ { internalType: 'address', name: 'to', type: 'address' },
175
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
176
+ { internalType: 'bool', name: 'approveMax', type: 'bool' },
177
+ { internalType: 'uint8', name: 'v', type: 'uint8' },
178
+ { internalType: 'bytes32', name: 'r', type: 'bytes32' },
179
+ { internalType: 'bytes32', name: 's', type: 'bytes32' },
180
+ ],
181
+ name: 'removeLiquidityETHWithPermit',
182
+ outputs: [
183
+ { internalType: 'uint256', name: 'amountToken', type: 'uint256' },
184
+ { internalType: 'uint256', name: 'amountETH', type: 'uint256' },
185
+ ],
186
+ stateMutability: 'nonpayable',
187
+ type: 'function',
188
+ },
189
+ {
190
+ inputs: [
191
+ { internalType: 'address', name: 'token', type: 'address' },
192
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
193
+ { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' },
194
+ { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' },
195
+ { internalType: 'address', name: 'to', type: 'address' },
196
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
197
+ { internalType: 'bool', name: 'approveMax', type: 'bool' },
198
+ { internalType: 'uint8', name: 'v', type: 'uint8' },
199
+ { internalType: 'bytes32', name: 'r', type: 'bytes32' },
200
+ { internalType: 'bytes32', name: 's', type: 'bytes32' },
201
+ ],
202
+ name: 'removeLiquidityETHWithPermitSupportingFeeOnTransferTokens',
203
+ outputs: [{ internalType: 'uint256', name: 'amountETH', type: 'uint256' }],
204
+ stateMutability: 'nonpayable',
205
+ type: 'function',
206
+ },
207
+ {
208
+ inputs: [
209
+ { internalType: 'address', name: 'tokenA', type: 'address' },
210
+ { internalType: 'address', name: 'tokenB', type: 'address' },
211
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
212
+ { internalType: 'uint256', name: 'amountAMin', type: 'uint256' },
213
+ { internalType: 'uint256', name: 'amountBMin', type: 'uint256' },
214
+ { internalType: 'address', name: 'to', type: 'address' },
215
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
216
+ { internalType: 'bool', name: 'approveMax', type: 'bool' },
217
+ { internalType: 'uint8', name: 'v', type: 'uint8' },
218
+ { internalType: 'bytes32', name: 'r', type: 'bytes32' },
219
+ { internalType: 'bytes32', name: 's', type: 'bytes32' },
220
+ ],
221
+ name: 'removeLiquidityWithPermit',
222
+ outputs: [
223
+ { internalType: 'uint256', name: 'amountA', type: 'uint256' },
224
+ { internalType: 'uint256', name: 'amountB', type: 'uint256' },
225
+ ],
226
+ stateMutability: 'nonpayable',
227
+ type: 'function',
228
+ },
229
+ {
230
+ inputs: [
231
+ { internalType: 'uint256', name: 'amountOut', type: 'uint256' },
232
+ { internalType: 'address[]', name: 'path', type: 'address[]' },
233
+ { internalType: 'address', name: 'to', type: 'address' },
234
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
235
+ ],
236
+ name: 'swapETHForExactTokens',
237
+ outputs: [
238
+ { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' },
239
+ ],
240
+ stateMutability: 'payable',
241
+ type: 'function',
242
+ },
243
+ {
244
+ inputs: [
245
+ { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
246
+ { internalType: 'address[]', name: 'path', type: 'address[]' },
247
+ { internalType: 'address', name: 'to', type: 'address' },
248
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
249
+ ],
250
+ name: 'swapExactETHForTokens',
251
+ outputs: [
252
+ { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' },
253
+ ],
254
+ stateMutability: 'payable',
255
+ type: 'function',
256
+ },
257
+ {
258
+ inputs: [
259
+ { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
260
+ { internalType: 'address[]', name: 'path', type: 'address[]' },
261
+ { internalType: 'address', name: 'to', type: 'address' },
262
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
263
+ ],
264
+ name: 'swapExactETHForTokensSupportingFeeOnTransferTokens',
265
+ outputs: [],
266
+ stateMutability: 'payable',
267
+ type: 'function',
268
+ },
269
+ {
270
+ inputs: [
271
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
272
+ { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
273
+ { internalType: 'address[]', name: 'path', type: 'address[]' },
274
+ { internalType: 'address', name: 'to', type: 'address' },
275
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
276
+ ],
277
+ name: 'swapExactTokensForETH',
278
+ outputs: [
279
+ { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' },
280
+ ],
281
+ stateMutability: 'nonpayable',
282
+ type: 'function',
283
+ },
284
+ {
285
+ inputs: [
286
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
287
+ { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
288
+ { internalType: 'address[]', name: 'path', type: 'address[]' },
289
+ { internalType: 'address', name: 'to', type: 'address' },
290
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
291
+ ],
292
+ name: 'swapExactTokensForETHSupportingFeeOnTransferTokens',
293
+ outputs: [],
294
+ stateMutability: 'nonpayable',
295
+ type: 'function',
296
+ },
297
+ {
298
+ inputs: [
299
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
300
+ { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
301
+ { internalType: 'address[]', name: 'path', type: 'address[]' },
302
+ { internalType: 'address', name: 'to', type: 'address' },
303
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
304
+ ],
305
+ name: 'swapExactTokensForTokens',
306
+ outputs: [
307
+ { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' },
308
+ ],
309
+ stateMutability: 'nonpayable',
310
+ type: 'function',
311
+ },
312
+ {
313
+ inputs: [
314
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
315
+ { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
316
+ { internalType: 'address[]', name: 'path', type: 'address[]' },
317
+ { internalType: 'address', name: 'to', type: 'address' },
318
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
319
+ ],
320
+ name: 'swapExactTokensForTokensSupportingFeeOnTransferTokens',
321
+ outputs: [],
322
+ stateMutability: 'nonpayable',
323
+ type: 'function',
324
+ },
325
+ {
326
+ inputs: [
327
+ { internalType: 'uint256', name: 'amountOut', type: 'uint256' },
328
+ { internalType: 'uint256', name: 'amountInMax', type: 'uint256' },
329
+ { internalType: 'address[]', name: 'path', type: 'address[]' },
330
+ { internalType: 'address', name: 'to', type: 'address' },
331
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
332
+ ],
333
+ name: 'swapTokensForExactETH',
334
+ outputs: [
335
+ { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' },
336
+ ],
337
+ stateMutability: 'nonpayable',
338
+ type: 'function',
339
+ },
340
+ {
341
+ inputs: [
342
+ { internalType: 'uint256', name: 'amountOut', type: 'uint256' },
343
+ { internalType: 'uint256', name: 'amountInMax', type: 'uint256' },
344
+ { internalType: 'address[]', name: 'path', type: 'address[]' },
345
+ { internalType: 'address', name: 'to', type: 'address' },
346
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
347
+ ],
348
+ name: 'swapTokensForExactTokens',
349
+ outputs: [
350
+ { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' },
351
+ ],
352
+ stateMutability: 'nonpayable',
353
+ type: 'function',
354
+ },
355
+ { stateMutability: 'payable', type: 'receive' },
356
+ ] as const
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sushi",
3
3
  "description": "Sushi",
4
- "version": "6.2.2",
4
+ "version": "6.2.3",
5
5
  "type": "module",
6
6
  "main": "./_cjs/generic/index.js",
7
7
  "module": "./_esm/generic/index.js",