@shapeshiftoss/contracts 1.0.3-alpha.0 → 1.0.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.
Files changed (124) hide show
  1. package/package.json +9 -6
  2. package/dist/cjs/.tsbuildinfo +0 -1
  3. package/dist/cjs/abis/arbOutbox.d.ts +0 -413
  4. package/dist/cjs/abis/arbOutbox.js +0 -229
  5. package/dist/cjs/abis/arbProxy.d.ts +0 -102
  6. package/dist/cjs/abis/arbProxy.js +0 -69
  7. package/dist/cjs/abis/arbRetryableTx.d.ts +0 -230
  8. package/dist/cjs/abis/arbRetryableTx.js +0 -116
  9. package/dist/cjs/abis/arbSys.d.ts +0 -278
  10. package/dist/cjs/abis/arbSys.js +0 -142
  11. package/dist/cjs/abis/evergreenFarming.d.ts +0 -517
  12. package/dist/cjs/abis/evergreenFarming.js +0 -655
  13. package/dist/cjs/abis/farming.d.ts +0 -361
  14. package/dist/cjs/abis/farming.js +0 -459
  15. package/dist/cjs/abis/foxy.d.ts +0 -519
  16. package/dist/cjs/abis/foxy.js +0 -678
  17. package/dist/cjs/abis/foxyStaking.d.ts +0 -556
  18. package/dist/cjs/abis/foxyStaking.js +0 -720
  19. package/dist/cjs/abis/iUniswapV2Pair.d.ts +0 -560
  20. package/dist/cjs/abis/iUniswapV2Pair.js +0 -710
  21. package/dist/cjs/abis/iUniswapV3Pool.d.ts +0 -770
  22. package/dist/cjs/abis/iUniswapV3Pool.js +0 -986
  23. package/dist/cjs/abis/index.d.ts +0 -23
  24. package/dist/cjs/abis/index.js +0 -39
  25. package/dist/cjs/abis/l1ArbitrumGateway.d.ts +0 -494
  26. package/dist/cjs/abis/l1ArbitrumGateway.js +0 -259
  27. package/dist/cjs/abis/l1OrbitCustomGateway.d.ts +0 -769
  28. package/dist/cjs/abis/l1OrbitCustomGateway.js +0 -378
  29. package/dist/cjs/abis/l2ArbitrumGateway.d.ts +0 -308
  30. package/dist/cjs/abis/l2ArbitrumGateway.js +0 -172
  31. package/dist/cjs/abis/liquidityReserve.d.ts +0 -421
  32. package/dist/cjs/abis/liquidityReserve.js +0 -550
  33. package/dist/cjs/abis/rfox.d.ts +0 -680
  34. package/dist/cjs/abis/rfox.js +0 -558
  35. package/dist/cjs/abis/thorchainRouter.d.ts +0 -349
  36. package/dist/cjs/abis/thorchainRouter.js +0 -445
  37. package/dist/cjs/abis/tokeManager.d.ts +0 -774
  38. package/dist/cjs/abis/tokeManager.js +0 -511
  39. package/dist/cjs/abis/tokePool.d.ts +0 -502
  40. package/dist/cjs/abis/tokePool.js +0 -311
  41. package/dist/cjs/abis/tokeRewardHash.d.ts +0 -112
  42. package/dist/cjs/abis/tokeRewardHash.js +0 -74
  43. package/dist/cjs/abis/uniV2StakingRewards.d.ts +0 -316
  44. package/dist/cjs/abis/uniV2StakingRewards.js +0 -414
  45. package/dist/cjs/abis/uniswapV2Router02.d.ts +0 -737
  46. package/dist/cjs/abis/uniswapV2Router02.js +0 -956
  47. package/dist/cjs/abis/uniswapV3Quoter.d.ts +0 -147
  48. package/dist/cjs/abis/uniswapV3Quoter.js +0 -196
  49. package/dist/cjs/abis/weth.d.ts +0 -213
  50. package/dist/cjs/abis/weth.js +0 -282
  51. package/dist/cjs/constants.d.ts +0 -6640
  52. package/dist/cjs/constants.js +0 -108
  53. package/dist/cjs/contractManager.d.ts +0 -11
  54. package/dist/cjs/contractManager.js +0 -77
  55. package/dist/cjs/ethersProviderSingleton.d.ts +0 -6
  56. package/dist/cjs/ethersProviderSingleton.js +0 -75
  57. package/dist/cjs/index.d.ts +0 -6
  58. package/dist/cjs/index.js +0 -22
  59. package/dist/cjs/package.json +0 -1
  60. package/dist/cjs/types.d.ts +0 -21
  61. package/dist/cjs/types.js +0 -9
  62. package/dist/cjs/viemClient.d.ts +0 -28338
  63. package/dist/cjs/viemClient.js +0 -95
  64. package/dist/esm/.tsbuildinfo +0 -1
  65. package/dist/esm/abis/arbOutbox.d.ts +0 -413
  66. package/dist/esm/abis/arbOutbox.js +0 -226
  67. package/dist/esm/abis/arbProxy.d.ts +0 -102
  68. package/dist/esm/abis/arbProxy.js +0 -66
  69. package/dist/esm/abis/arbRetryableTx.d.ts +0 -230
  70. package/dist/esm/abis/arbRetryableTx.js +0 -113
  71. package/dist/esm/abis/arbSys.d.ts +0 -278
  72. package/dist/esm/abis/arbSys.js +0 -139
  73. package/dist/esm/abis/evergreenFarming.d.ts +0 -517
  74. package/dist/esm/abis/evergreenFarming.js +0 -652
  75. package/dist/esm/abis/farming.d.ts +0 -361
  76. package/dist/esm/abis/farming.js +0 -456
  77. package/dist/esm/abis/foxy.d.ts +0 -519
  78. package/dist/esm/abis/foxy.js +0 -675
  79. package/dist/esm/abis/foxyStaking.d.ts +0 -556
  80. package/dist/esm/abis/foxyStaking.js +0 -717
  81. package/dist/esm/abis/iUniswapV2Pair.d.ts +0 -560
  82. package/dist/esm/abis/iUniswapV2Pair.js +0 -707
  83. package/dist/esm/abis/iUniswapV3Pool.d.ts +0 -770
  84. package/dist/esm/abis/iUniswapV3Pool.js +0 -983
  85. package/dist/esm/abis/index.d.ts +0 -23
  86. package/dist/esm/abis/index.js +0 -23
  87. package/dist/esm/abis/l1ArbitrumGateway.d.ts +0 -494
  88. package/dist/esm/abis/l1ArbitrumGateway.js +0 -256
  89. package/dist/esm/abis/l1OrbitCustomGateway.d.ts +0 -769
  90. package/dist/esm/abis/l1OrbitCustomGateway.js +0 -375
  91. package/dist/esm/abis/l2ArbitrumGateway.d.ts +0 -308
  92. package/dist/esm/abis/l2ArbitrumGateway.js +0 -169
  93. package/dist/esm/abis/liquidityReserve.d.ts +0 -421
  94. package/dist/esm/abis/liquidityReserve.js +0 -547
  95. package/dist/esm/abis/rfox.d.ts +0 -680
  96. package/dist/esm/abis/rfox.js +0 -555
  97. package/dist/esm/abis/thorchainRouter.d.ts +0 -349
  98. package/dist/esm/abis/thorchainRouter.js +0 -442
  99. package/dist/esm/abis/tokeManager.d.ts +0 -774
  100. package/dist/esm/abis/tokeManager.js +0 -508
  101. package/dist/esm/abis/tokePool.d.ts +0 -502
  102. package/dist/esm/abis/tokePool.js +0 -308
  103. package/dist/esm/abis/tokeRewardHash.d.ts +0 -112
  104. package/dist/esm/abis/tokeRewardHash.js +0 -71
  105. package/dist/esm/abis/uniV2StakingRewards.d.ts +0 -316
  106. package/dist/esm/abis/uniV2StakingRewards.js +0 -411
  107. package/dist/esm/abis/uniswapV2Router02.d.ts +0 -737
  108. package/dist/esm/abis/uniswapV2Router02.js +0 -953
  109. package/dist/esm/abis/uniswapV3Quoter.d.ts +0 -147
  110. package/dist/esm/abis/uniswapV3Quoter.js +0 -193
  111. package/dist/esm/abis/weth.d.ts +0 -213
  112. package/dist/esm/abis/weth.js +0 -279
  113. package/dist/esm/constants.d.ts +0 -6640
  114. package/dist/esm/constants.js +0 -105
  115. package/dist/esm/contractManager.d.ts +0 -11
  116. package/dist/esm/contractManager.js +0 -69
  117. package/dist/esm/ethersProviderSingleton.d.ts +0 -6
  118. package/dist/esm/ethersProviderSingleton.js +0 -69
  119. package/dist/esm/index.d.ts +0 -6
  120. package/dist/esm/index.js +0 -6
  121. package/dist/esm/types.d.ts +0 -21
  122. package/dist/esm/types.js +0 -6
  123. package/dist/esm/viemClient.d.ts +0 -28338
  124. package/dist/esm/viemClient.js +0 -88
@@ -1,956 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UNISWAP_V2_ROUTER_02_ABI = void 0;
4
- exports.UNISWAP_V2_ROUTER_02_ABI = [
5
- {
6
- inputs: [],
7
- name: 'WETH',
8
- outputs: [
9
- {
10
- internalType: 'address',
11
- name: '',
12
- type: 'address',
13
- },
14
- ],
15
- stateMutability: 'pure',
16
- type: 'function',
17
- },
18
- {
19
- inputs: [
20
- {
21
- internalType: 'address',
22
- name: 'tokenA',
23
- type: 'address',
24
- },
25
- {
26
- internalType: 'address',
27
- name: 'tokenB',
28
- type: 'address',
29
- },
30
- {
31
- internalType: 'uint256',
32
- name: 'amountADesired',
33
- type: 'uint256',
34
- },
35
- {
36
- internalType: 'uint256',
37
- name: 'amountBDesired',
38
- type: 'uint256',
39
- },
40
- {
41
- internalType: 'uint256',
42
- name: 'amountAMin',
43
- type: 'uint256',
44
- },
45
- {
46
- internalType: 'uint256',
47
- name: 'amountBMin',
48
- type: 'uint256',
49
- },
50
- {
51
- internalType: 'address',
52
- name: 'to',
53
- type: 'address',
54
- },
55
- {
56
- internalType: 'uint256',
57
- name: 'deadline',
58
- type: 'uint256',
59
- },
60
- ],
61
- name: 'addLiquidity',
62
- outputs: [
63
- {
64
- internalType: 'uint256',
65
- name: 'amountA',
66
- type: 'uint256',
67
- },
68
- {
69
- internalType: 'uint256',
70
- name: 'amountB',
71
- type: 'uint256',
72
- },
73
- {
74
- internalType: 'uint256',
75
- name: 'liquidity',
76
- type: 'uint256',
77
- },
78
- ],
79
- stateMutability: 'nonpayable',
80
- type: 'function',
81
- },
82
- {
83
- inputs: [
84
- {
85
- internalType: 'address',
86
- name: 'token',
87
- type: 'address',
88
- },
89
- {
90
- internalType: 'uint256',
91
- name: 'amountTokenDesired',
92
- type: 'uint256',
93
- },
94
- {
95
- internalType: 'uint256',
96
- name: 'amountTokenMin',
97
- type: 'uint256',
98
- },
99
- {
100
- internalType: 'uint256',
101
- name: 'amountETHMin',
102
- type: 'uint256',
103
- },
104
- {
105
- internalType: 'address',
106
- name: 'to',
107
- type: 'address',
108
- },
109
- {
110
- internalType: 'uint256',
111
- name: 'deadline',
112
- type: 'uint256',
113
- },
114
- ],
115
- name: 'addLiquidityETH',
116
- outputs: [
117
- {
118
- internalType: 'uint256',
119
- name: 'amountToken',
120
- type: 'uint256',
121
- },
122
- {
123
- internalType: 'uint256',
124
- name: 'amountETH',
125
- type: 'uint256',
126
- },
127
- {
128
- internalType: 'uint256',
129
- name: 'liquidity',
130
- type: 'uint256',
131
- },
132
- ],
133
- stateMutability: 'payable',
134
- type: 'function',
135
- },
136
- {
137
- inputs: [],
138
- name: 'factory',
139
- outputs: [
140
- {
141
- internalType: 'address',
142
- name: '',
143
- type: 'address',
144
- },
145
- ],
146
- stateMutability: 'pure',
147
- type: 'function',
148
- },
149
- {
150
- inputs: [
151
- {
152
- internalType: 'uint256',
153
- name: 'amountOut',
154
- type: 'uint256',
155
- },
156
- {
157
- internalType: 'uint256',
158
- name: 'reserveIn',
159
- type: 'uint256',
160
- },
161
- {
162
- internalType: 'uint256',
163
- name: 'reserveOut',
164
- type: 'uint256',
165
- },
166
- ],
167
- name: 'getAmountIn',
168
- outputs: [
169
- {
170
- internalType: 'uint256',
171
- name: 'amountIn',
172
- type: 'uint256',
173
- },
174
- ],
175
- stateMutability: 'pure',
176
- type: 'function',
177
- },
178
- {
179
- inputs: [
180
- {
181
- internalType: 'uint256',
182
- name: 'amountIn',
183
- type: 'uint256',
184
- },
185
- {
186
- internalType: 'uint256',
187
- name: 'reserveIn',
188
- type: 'uint256',
189
- },
190
- {
191
- internalType: 'uint256',
192
- name: 'reserveOut',
193
- type: 'uint256',
194
- },
195
- ],
196
- name: 'getAmountOut',
197
- outputs: [
198
- {
199
- internalType: 'uint256',
200
- name: 'amountOut',
201
- type: 'uint256',
202
- },
203
- ],
204
- stateMutability: 'pure',
205
- type: 'function',
206
- },
207
- {
208
- inputs: [
209
- {
210
- internalType: 'uint256',
211
- name: 'amountOut',
212
- type: 'uint256',
213
- },
214
- {
215
- internalType: 'address[]',
216
- name: 'path',
217
- type: 'address[]',
218
- },
219
- ],
220
- name: 'getAmountsIn',
221
- outputs: [
222
- {
223
- internalType: 'uint256[]',
224
- name: 'amounts',
225
- type: 'uint256[]',
226
- },
227
- ],
228
- stateMutability: 'view',
229
- type: 'function',
230
- },
231
- {
232
- inputs: [
233
- {
234
- internalType: 'uint256',
235
- name: 'amountIn',
236
- type: 'uint256',
237
- },
238
- {
239
- internalType: 'address[]',
240
- name: 'path',
241
- type: 'address[]',
242
- },
243
- ],
244
- name: 'getAmountsOut',
245
- outputs: [
246
- {
247
- internalType: 'uint256[]',
248
- name: 'amounts',
249
- type: 'uint256[]',
250
- },
251
- ],
252
- stateMutability: 'view',
253
- type: 'function',
254
- },
255
- {
256
- inputs: [
257
- {
258
- internalType: 'uint256',
259
- name: 'amountA',
260
- type: 'uint256',
261
- },
262
- {
263
- internalType: 'uint256',
264
- name: 'reserveA',
265
- type: 'uint256',
266
- },
267
- {
268
- internalType: 'uint256',
269
- name: 'reserveB',
270
- type: 'uint256',
271
- },
272
- ],
273
- name: 'quote',
274
- outputs: [
275
- {
276
- internalType: 'uint256',
277
- name: 'amountB',
278
- type: 'uint256',
279
- },
280
- ],
281
- stateMutability: 'pure',
282
- type: 'function',
283
- },
284
- {
285
- inputs: [
286
- {
287
- internalType: 'address',
288
- name: 'tokenA',
289
- type: 'address',
290
- },
291
- {
292
- internalType: 'address',
293
- name: 'tokenB',
294
- type: 'address',
295
- },
296
- {
297
- internalType: 'uint256',
298
- name: 'liquidity',
299
- type: 'uint256',
300
- },
301
- {
302
- internalType: 'uint256',
303
- name: 'amountAMin',
304
- type: 'uint256',
305
- },
306
- {
307
- internalType: 'uint256',
308
- name: 'amountBMin',
309
- type: 'uint256',
310
- },
311
- {
312
- internalType: 'address',
313
- name: 'to',
314
- type: 'address',
315
- },
316
- {
317
- internalType: 'uint256',
318
- name: 'deadline',
319
- type: 'uint256',
320
- },
321
- ],
322
- name: 'removeLiquidity',
323
- outputs: [
324
- {
325
- internalType: 'uint256',
326
- name: 'amountA',
327
- type: 'uint256',
328
- },
329
- {
330
- internalType: 'uint256',
331
- name: 'amountB',
332
- type: 'uint256',
333
- },
334
- ],
335
- stateMutability: 'nonpayable',
336
- type: 'function',
337
- },
338
- {
339
- inputs: [
340
- {
341
- internalType: 'address',
342
- name: 'token',
343
- type: 'address',
344
- },
345
- {
346
- internalType: 'uint256',
347
- name: 'liquidity',
348
- type: 'uint256',
349
- },
350
- {
351
- internalType: 'uint256',
352
- name: 'amountTokenMin',
353
- type: 'uint256',
354
- },
355
- {
356
- internalType: 'uint256',
357
- name: 'amountETHMin',
358
- type: 'uint256',
359
- },
360
- {
361
- internalType: 'address',
362
- name: 'to',
363
- type: 'address',
364
- },
365
- {
366
- internalType: 'uint256',
367
- name: 'deadline',
368
- type: 'uint256',
369
- },
370
- ],
371
- name: 'removeLiquidityETH',
372
- outputs: [
373
- {
374
- internalType: 'uint256',
375
- name: 'amountToken',
376
- type: 'uint256',
377
- },
378
- {
379
- internalType: 'uint256',
380
- name: 'amountETH',
381
- type: 'uint256',
382
- },
383
- ],
384
- stateMutability: 'nonpayable',
385
- type: 'function',
386
- },
387
- {
388
- inputs: [
389
- {
390
- internalType: 'address',
391
- name: 'token',
392
- type: 'address',
393
- },
394
- {
395
- internalType: 'uint256',
396
- name: 'liquidity',
397
- type: 'uint256',
398
- },
399
- {
400
- internalType: 'uint256',
401
- name: 'amountTokenMin',
402
- type: 'uint256',
403
- },
404
- {
405
- internalType: 'uint256',
406
- name: 'amountETHMin',
407
- type: 'uint256',
408
- },
409
- {
410
- internalType: 'address',
411
- name: 'to',
412
- type: 'address',
413
- },
414
- {
415
- internalType: 'uint256',
416
- name: 'deadline',
417
- type: 'uint256',
418
- },
419
- ],
420
- name: 'removeLiquidityETHSupportingFeeOnTransferTokens',
421
- outputs: [
422
- {
423
- internalType: 'uint256',
424
- name: 'amountETH',
425
- type: 'uint256',
426
- },
427
- ],
428
- stateMutability: 'nonpayable',
429
- type: 'function',
430
- },
431
- {
432
- inputs: [
433
- {
434
- internalType: 'address',
435
- name: 'token',
436
- type: 'address',
437
- },
438
- {
439
- internalType: 'uint256',
440
- name: 'liquidity',
441
- type: 'uint256',
442
- },
443
- {
444
- internalType: 'uint256',
445
- name: 'amountTokenMin',
446
- type: 'uint256',
447
- },
448
- {
449
- internalType: 'uint256',
450
- name: 'amountETHMin',
451
- type: 'uint256',
452
- },
453
- {
454
- internalType: 'address',
455
- name: 'to',
456
- type: 'address',
457
- },
458
- {
459
- internalType: 'uint256',
460
- name: 'deadline',
461
- type: 'uint256',
462
- },
463
- {
464
- internalType: 'bool',
465
- name: 'approveMax',
466
- type: 'bool',
467
- },
468
- {
469
- internalType: 'uint8',
470
- name: 'v',
471
- type: 'uint8',
472
- },
473
- {
474
- internalType: 'bytes32',
475
- name: 'r',
476
- type: 'bytes32',
477
- },
478
- {
479
- internalType: 'bytes32',
480
- name: 's',
481
- type: 'bytes32',
482
- },
483
- ],
484
- name: 'removeLiquidityETHWithPermit',
485
- outputs: [
486
- {
487
- internalType: 'uint256',
488
- name: 'amountToken',
489
- type: 'uint256',
490
- },
491
- {
492
- internalType: 'uint256',
493
- name: 'amountETH',
494
- type: 'uint256',
495
- },
496
- ],
497
- stateMutability: 'nonpayable',
498
- type: 'function',
499
- },
500
- {
501
- inputs: [
502
- {
503
- internalType: 'address',
504
- name: 'token',
505
- type: 'address',
506
- },
507
- {
508
- internalType: 'uint256',
509
- name: 'liquidity',
510
- type: 'uint256',
511
- },
512
- {
513
- internalType: 'uint256',
514
- name: 'amountTokenMin',
515
- type: 'uint256',
516
- },
517
- {
518
- internalType: 'uint256',
519
- name: 'amountETHMin',
520
- type: 'uint256',
521
- },
522
- {
523
- internalType: 'address',
524
- name: 'to',
525
- type: 'address',
526
- },
527
- {
528
- internalType: 'uint256',
529
- name: 'deadline',
530
- type: 'uint256',
531
- },
532
- {
533
- internalType: 'bool',
534
- name: 'approveMax',
535
- type: 'bool',
536
- },
537
- {
538
- internalType: 'uint8',
539
- name: 'v',
540
- type: 'uint8',
541
- },
542
- {
543
- internalType: 'bytes32',
544
- name: 'r',
545
- type: 'bytes32',
546
- },
547
- {
548
- internalType: 'bytes32',
549
- name: 's',
550
- type: 'bytes32',
551
- },
552
- ],
553
- name: 'removeLiquidityETHWithPermitSupportingFeeOnTransferTokens',
554
- outputs: [
555
- {
556
- internalType: 'uint256',
557
- name: 'amountETH',
558
- type: 'uint256',
559
- },
560
- ],
561
- stateMutability: 'nonpayable',
562
- type: 'function',
563
- },
564
- {
565
- inputs: [
566
- {
567
- internalType: 'address',
568
- name: 'tokenA',
569
- type: 'address',
570
- },
571
- {
572
- internalType: 'address',
573
- name: 'tokenB',
574
- type: 'address',
575
- },
576
- {
577
- internalType: 'uint256',
578
- name: 'liquidity',
579
- type: 'uint256',
580
- },
581
- {
582
- internalType: 'uint256',
583
- name: 'amountAMin',
584
- type: 'uint256',
585
- },
586
- {
587
- internalType: 'uint256',
588
- name: 'amountBMin',
589
- type: 'uint256',
590
- },
591
- {
592
- internalType: 'address',
593
- name: 'to',
594
- type: 'address',
595
- },
596
- {
597
- internalType: 'uint256',
598
- name: 'deadline',
599
- type: 'uint256',
600
- },
601
- {
602
- internalType: 'bool',
603
- name: 'approveMax',
604
- type: 'bool',
605
- },
606
- {
607
- internalType: 'uint8',
608
- name: 'v',
609
- type: 'uint8',
610
- },
611
- {
612
- internalType: 'bytes32',
613
- name: 'r',
614
- type: 'bytes32',
615
- },
616
- {
617
- internalType: 'bytes32',
618
- name: 's',
619
- type: 'bytes32',
620
- },
621
- ],
622
- name: 'removeLiquidityWithPermit',
623
- outputs: [
624
- {
625
- internalType: 'uint256',
626
- name: 'amountA',
627
- type: 'uint256',
628
- },
629
- {
630
- internalType: 'uint256',
631
- name: 'amountB',
632
- type: 'uint256',
633
- },
634
- ],
635
- stateMutability: 'nonpayable',
636
- type: 'function',
637
- },
638
- {
639
- inputs: [
640
- {
641
- internalType: 'uint256',
642
- name: 'amountOut',
643
- type: 'uint256',
644
- },
645
- {
646
- internalType: 'address[]',
647
- name: 'path',
648
- type: 'address[]',
649
- },
650
- {
651
- internalType: 'address',
652
- name: 'to',
653
- type: 'address',
654
- },
655
- {
656
- internalType: 'uint256',
657
- name: 'deadline',
658
- type: 'uint256',
659
- },
660
- ],
661
- name: 'swapETHForExactTokens',
662
- outputs: [
663
- {
664
- internalType: 'uint256[]',
665
- name: 'amounts',
666
- type: 'uint256[]',
667
- },
668
- ],
669
- stateMutability: 'payable',
670
- type: 'function',
671
- },
672
- {
673
- inputs: [
674
- {
675
- internalType: 'uint256',
676
- name: 'amountOutMin',
677
- type: 'uint256',
678
- },
679
- {
680
- internalType: 'address[]',
681
- name: 'path',
682
- type: 'address[]',
683
- },
684
- {
685
- internalType: 'address',
686
- name: 'to',
687
- type: 'address',
688
- },
689
- {
690
- internalType: 'uint256',
691
- name: 'deadline',
692
- type: 'uint256',
693
- },
694
- ],
695
- name: 'swapExactETHForTokens',
696
- outputs: [
697
- {
698
- internalType: 'uint256[]',
699
- name: 'amounts',
700
- type: 'uint256[]',
701
- },
702
- ],
703
- stateMutability: 'payable',
704
- type: 'function',
705
- },
706
- {
707
- inputs: [
708
- {
709
- internalType: 'uint256',
710
- name: 'amountOutMin',
711
- type: 'uint256',
712
- },
713
- {
714
- internalType: 'address[]',
715
- name: 'path',
716
- type: 'address[]',
717
- },
718
- {
719
- internalType: 'address',
720
- name: 'to',
721
- type: 'address',
722
- },
723
- {
724
- internalType: 'uint256',
725
- name: 'deadline',
726
- type: 'uint256',
727
- },
728
- ],
729
- name: 'swapExactETHForTokensSupportingFeeOnTransferTokens',
730
- outputs: [],
731
- stateMutability: 'payable',
732
- type: 'function',
733
- },
734
- {
735
- inputs: [
736
- {
737
- internalType: 'uint256',
738
- name: 'amountIn',
739
- type: 'uint256',
740
- },
741
- {
742
- internalType: 'uint256',
743
- name: 'amountOutMin',
744
- type: 'uint256',
745
- },
746
- {
747
- internalType: 'address[]',
748
- name: 'path',
749
- type: 'address[]',
750
- },
751
- {
752
- internalType: 'address',
753
- name: 'to',
754
- type: 'address',
755
- },
756
- {
757
- internalType: 'uint256',
758
- name: 'deadline',
759
- type: 'uint256',
760
- },
761
- ],
762
- name: 'swapExactTokensForETH',
763
- outputs: [
764
- {
765
- internalType: 'uint256[]',
766
- name: 'amounts',
767
- type: 'uint256[]',
768
- },
769
- ],
770
- stateMutability: 'nonpayable',
771
- type: 'function',
772
- },
773
- {
774
- inputs: [
775
- {
776
- internalType: 'uint256',
777
- name: 'amountIn',
778
- type: 'uint256',
779
- },
780
- {
781
- internalType: 'uint256',
782
- name: 'amountOutMin',
783
- type: 'uint256',
784
- },
785
- {
786
- internalType: 'address[]',
787
- name: 'path',
788
- type: 'address[]',
789
- },
790
- {
791
- internalType: 'address',
792
- name: 'to',
793
- type: 'address',
794
- },
795
- {
796
- internalType: 'uint256',
797
- name: 'deadline',
798
- type: 'uint256',
799
- },
800
- ],
801
- name: 'swapExactTokensForETHSupportingFeeOnTransferTokens',
802
- outputs: [],
803
- stateMutability: 'nonpayable',
804
- type: 'function',
805
- },
806
- {
807
- inputs: [
808
- {
809
- internalType: 'uint256',
810
- name: 'amountIn',
811
- type: 'uint256',
812
- },
813
- {
814
- internalType: 'uint256',
815
- name: 'amountOutMin',
816
- type: 'uint256',
817
- },
818
- {
819
- internalType: 'address[]',
820
- name: 'path',
821
- type: 'address[]',
822
- },
823
- {
824
- internalType: 'address',
825
- name: 'to',
826
- type: 'address',
827
- },
828
- {
829
- internalType: 'uint256',
830
- name: 'deadline',
831
- type: 'uint256',
832
- },
833
- ],
834
- name: 'swapExactTokensForTokens',
835
- outputs: [
836
- {
837
- internalType: 'uint256[]',
838
- name: 'amounts',
839
- type: 'uint256[]',
840
- },
841
- ],
842
- stateMutability: 'nonpayable',
843
- type: 'function',
844
- },
845
- {
846
- inputs: [
847
- {
848
- internalType: 'uint256',
849
- name: 'amountIn',
850
- type: 'uint256',
851
- },
852
- {
853
- internalType: 'uint256',
854
- name: 'amountOutMin',
855
- type: 'uint256',
856
- },
857
- {
858
- internalType: 'address[]',
859
- name: 'path',
860
- type: 'address[]',
861
- },
862
- {
863
- internalType: 'address',
864
- name: 'to',
865
- type: 'address',
866
- },
867
- {
868
- internalType: 'uint256',
869
- name: 'deadline',
870
- type: 'uint256',
871
- },
872
- ],
873
- name: 'swapExactTokensForTokensSupportingFeeOnTransferTokens',
874
- outputs: [],
875
- stateMutability: 'nonpayable',
876
- type: 'function',
877
- },
878
- {
879
- inputs: [
880
- {
881
- internalType: 'uint256',
882
- name: 'amountOut',
883
- type: 'uint256',
884
- },
885
- {
886
- internalType: 'uint256',
887
- name: 'amountInMax',
888
- type: 'uint256',
889
- },
890
- {
891
- internalType: 'address[]',
892
- name: 'path',
893
- type: 'address[]',
894
- },
895
- {
896
- internalType: 'address',
897
- name: 'to',
898
- type: 'address',
899
- },
900
- {
901
- internalType: 'uint256',
902
- name: 'deadline',
903
- type: 'uint256',
904
- },
905
- ],
906
- name: 'swapTokensForExactETH',
907
- outputs: [
908
- {
909
- internalType: 'uint256[]',
910
- name: 'amounts',
911
- type: 'uint256[]',
912
- },
913
- ],
914
- stateMutability: 'nonpayable',
915
- type: 'function',
916
- },
917
- {
918
- inputs: [
919
- {
920
- internalType: 'uint256',
921
- name: 'amountOut',
922
- type: 'uint256',
923
- },
924
- {
925
- internalType: 'uint256',
926
- name: 'amountInMax',
927
- type: 'uint256',
928
- },
929
- {
930
- internalType: 'address[]',
931
- name: 'path',
932
- type: 'address[]',
933
- },
934
- {
935
- internalType: 'address',
936
- name: 'to',
937
- type: 'address',
938
- },
939
- {
940
- internalType: 'uint256',
941
- name: 'deadline',
942
- type: 'uint256',
943
- },
944
- ],
945
- name: 'swapTokensForExactTokens',
946
- outputs: [
947
- {
948
- internalType: 'uint256[]',
949
- name: 'amounts',
950
- type: 'uint256[]',
951
- },
952
- ],
953
- stateMutability: 'nonpayable',
954
- type: 'function',
955
- },
956
- ];