@dodoex/dodo-contract-request 1.14.0 → 1.15.0-morph-holesky.2

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 (43) hide show
  1. package/.cache/contract-info/VE33NonfungiblePositionManager.json +1312 -0
  2. package/.cache/contract-info/VE33V2Pair.json +1357 -0
  3. package/.cache/contract-info/VE33V2Router.json +1660 -0
  4. package/CHANGELOG.md +7 -0
  5. package/contract-config/arbitrum.json +6 -2
  6. package/contract-config/base.json +6 -2
  7. package/contract-config/bsc.json +6 -2
  8. package/contract-config/eth.json +6 -2
  9. package/contract-config/morph-holesky.json +69 -0
  10. package/contract-config/polygon.json +6 -2
  11. package/dist/index.cjs +1 -1
  12. package/dist/index.js +1 -1
  13. package/dist/types/config/arbitrum.d.ts +4 -0
  14. package/dist/types/config/base.d.ts +4 -0
  15. package/dist/types/config/bsc.d.ts +4 -0
  16. package/dist/types/config/ethereum.d.ts +4 -0
  17. package/dist/types/config/index.d.ts +31 -19
  18. package/dist/types/config/morph-holesky.d.ts +8 -0
  19. package/dist/types/config/polygon.d.ts +4 -0
  20. package/dist/types/contract/VE33NonfungiblePositionManager.d.ts +460 -0
  21. package/dist/types/contract/VE33V2Pair.d.ts +667 -0
  22. package/dist/types/contract/VE33V2Router.d.ts +436 -0
  23. package/dist/types/index.d.ts +3 -0
  24. package/package.json +2 -1
  25. package/scripts/contract-generate.ts +1 -0
  26. package/src/config/arbitrum.ts +1 -1
  27. package/src/config/base.ts +1 -1
  28. package/src/config/bsc.ts +1 -1
  29. package/src/config/ethereum.ts +1 -1
  30. package/src/config/index.ts +5 -1
  31. package/src/config/morph-holesky.ts +4 -0
  32. package/src/config/polygon.ts +1 -1
  33. package/src/contract/DODOApprove.ts +1 -1
  34. package/src/contract/ERC20Helper.ts +1 -1
  35. package/src/contract/MulticallWithValid.ts +1 -1
  36. package/src/contract/NonfungiblePositionManager.ts +1 -1
  37. package/src/contract/UniswapV2Factory.ts +1 -1
  38. package/src/contract/UniswapV2Router02.ts +1 -1
  39. package/src/contract/UniswapV3Factory.ts +1 -1
  40. package/src/contract/VE33NonfungiblePositionManager.ts +734 -0
  41. package/src/contract/VE33V2Pair.ts +1061 -0
  42. package/src/contract/VE33V2Router.ts +647 -0
  43. package/src/index.ts +3 -0
@@ -0,0 +1,1660 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "_forwarder",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "address",
11
+ "name": "_factoryRegistry",
12
+ "type": "address"
13
+ },
14
+ {
15
+ "internalType": "address",
16
+ "name": "_factory",
17
+ "type": "address"
18
+ },
19
+ {
20
+ "internalType": "address",
21
+ "name": "_voter",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "internalType": "address",
26
+ "name": "_weth",
27
+ "type": "address"
28
+ }
29
+ ],
30
+ "stateMutability": "nonpayable",
31
+ "type": "constructor"
32
+ },
33
+ {
34
+ "inputs": [],
35
+ "name": "ETHTransferFailed",
36
+ "type": "error"
37
+ },
38
+ {
39
+ "inputs": [],
40
+ "name": "Expired",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "inputs": [],
45
+ "name": "InsufficientAmount",
46
+ "type": "error"
47
+ },
48
+ {
49
+ "inputs": [],
50
+ "name": "InsufficientAmountA",
51
+ "type": "error"
52
+ },
53
+ {
54
+ "inputs": [],
55
+ "name": "InsufficientAmountADesired",
56
+ "type": "error"
57
+ },
58
+ {
59
+ "inputs": [],
60
+ "name": "InsufficientAmountAOptimal",
61
+ "type": "error"
62
+ },
63
+ {
64
+ "inputs": [],
65
+ "name": "InsufficientAmountB",
66
+ "type": "error"
67
+ },
68
+ {
69
+ "inputs": [],
70
+ "name": "InsufficientAmountBDesired",
71
+ "type": "error"
72
+ },
73
+ {
74
+ "inputs": [],
75
+ "name": "InsufficientLiquidity",
76
+ "type": "error"
77
+ },
78
+ {
79
+ "inputs": [],
80
+ "name": "InsufficientOutputAmount",
81
+ "type": "error"
82
+ },
83
+ {
84
+ "inputs": [],
85
+ "name": "InvalidAmountInForETHDeposit",
86
+ "type": "error"
87
+ },
88
+ {
89
+ "inputs": [],
90
+ "name": "InvalidPath",
91
+ "type": "error"
92
+ },
93
+ {
94
+ "inputs": [],
95
+ "name": "InvalidRouteA",
96
+ "type": "error"
97
+ },
98
+ {
99
+ "inputs": [],
100
+ "name": "InvalidRouteB",
101
+ "type": "error"
102
+ },
103
+ {
104
+ "inputs": [],
105
+ "name": "InvalidTokenInForETHDeposit",
106
+ "type": "error"
107
+ },
108
+ {
109
+ "inputs": [],
110
+ "name": "OnlyWETH",
111
+ "type": "error"
112
+ },
113
+ {
114
+ "inputs": [],
115
+ "name": "PoolDoesNotExist",
116
+ "type": "error"
117
+ },
118
+ {
119
+ "inputs": [],
120
+ "name": "PoolFactoryDoesNotExist",
121
+ "type": "error"
122
+ },
123
+ {
124
+ "inputs": [],
125
+ "name": "SameAddresses",
126
+ "type": "error"
127
+ },
128
+ {
129
+ "inputs": [],
130
+ "name": "ZeroAddress",
131
+ "type": "error"
132
+ },
133
+ {
134
+ "inputs": [],
135
+ "name": "ETHER",
136
+ "outputs": [
137
+ {
138
+ "internalType": "address",
139
+ "name": "",
140
+ "type": "address"
141
+ }
142
+ ],
143
+ "stateMutability": "view",
144
+ "type": "function"
145
+ },
146
+ {
147
+ "inputs": [
148
+ {
149
+ "internalType": "uint256[]",
150
+ "name": "amounts",
151
+ "type": "uint256[]"
152
+ },
153
+ {
154
+ "components": [
155
+ {
156
+ "internalType": "address",
157
+ "name": "from",
158
+ "type": "address"
159
+ },
160
+ {
161
+ "internalType": "address",
162
+ "name": "to",
163
+ "type": "address"
164
+ },
165
+ {
166
+ "internalType": "bool",
167
+ "name": "stable",
168
+ "type": "bool"
169
+ },
170
+ {
171
+ "internalType": "address",
172
+ "name": "factory",
173
+ "type": "address"
174
+ }
175
+ ],
176
+ "internalType": "struct IRouter.Route[]",
177
+ "name": "routes",
178
+ "type": "tuple[]"
179
+ },
180
+ {
181
+ "internalType": "address",
182
+ "name": "to",
183
+ "type": "address"
184
+ },
185
+ {
186
+ "internalType": "uint256",
187
+ "name": "deadline",
188
+ "type": "uint256"
189
+ }
190
+ ],
191
+ "name": "UNSAFE_swapExactTokensForTokens",
192
+ "outputs": [
193
+ {
194
+ "internalType": "uint256[]",
195
+ "name": "",
196
+ "type": "uint256[]"
197
+ }
198
+ ],
199
+ "stateMutability": "nonpayable",
200
+ "type": "function"
201
+ },
202
+ {
203
+ "inputs": [
204
+ {
205
+ "internalType": "address",
206
+ "name": "tokenA",
207
+ "type": "address"
208
+ },
209
+ {
210
+ "internalType": "address",
211
+ "name": "tokenB",
212
+ "type": "address"
213
+ },
214
+ {
215
+ "internalType": "bool",
216
+ "name": "stable",
217
+ "type": "bool"
218
+ },
219
+ {
220
+ "internalType": "uint256",
221
+ "name": "amountADesired",
222
+ "type": "uint256"
223
+ },
224
+ {
225
+ "internalType": "uint256",
226
+ "name": "amountBDesired",
227
+ "type": "uint256"
228
+ },
229
+ {
230
+ "internalType": "uint256",
231
+ "name": "amountAMin",
232
+ "type": "uint256"
233
+ },
234
+ {
235
+ "internalType": "uint256",
236
+ "name": "amountBMin",
237
+ "type": "uint256"
238
+ },
239
+ {
240
+ "internalType": "address",
241
+ "name": "to",
242
+ "type": "address"
243
+ },
244
+ {
245
+ "internalType": "uint256",
246
+ "name": "deadline",
247
+ "type": "uint256"
248
+ }
249
+ ],
250
+ "name": "addLiquidity",
251
+ "outputs": [
252
+ {
253
+ "internalType": "uint256",
254
+ "name": "amountA",
255
+ "type": "uint256"
256
+ },
257
+ {
258
+ "internalType": "uint256",
259
+ "name": "amountB",
260
+ "type": "uint256"
261
+ },
262
+ {
263
+ "internalType": "uint256",
264
+ "name": "liquidity",
265
+ "type": "uint256"
266
+ }
267
+ ],
268
+ "stateMutability": "nonpayable",
269
+ "type": "function"
270
+ },
271
+ {
272
+ "inputs": [
273
+ {
274
+ "internalType": "address",
275
+ "name": "token",
276
+ "type": "address"
277
+ },
278
+ {
279
+ "internalType": "bool",
280
+ "name": "stable",
281
+ "type": "bool"
282
+ },
283
+ {
284
+ "internalType": "uint256",
285
+ "name": "amountTokenDesired",
286
+ "type": "uint256"
287
+ },
288
+ {
289
+ "internalType": "uint256",
290
+ "name": "amountTokenMin",
291
+ "type": "uint256"
292
+ },
293
+ {
294
+ "internalType": "uint256",
295
+ "name": "amountETHMin",
296
+ "type": "uint256"
297
+ },
298
+ {
299
+ "internalType": "address",
300
+ "name": "to",
301
+ "type": "address"
302
+ },
303
+ {
304
+ "internalType": "uint256",
305
+ "name": "deadline",
306
+ "type": "uint256"
307
+ }
308
+ ],
309
+ "name": "addLiquidityETH",
310
+ "outputs": [
311
+ {
312
+ "internalType": "uint256",
313
+ "name": "amountToken",
314
+ "type": "uint256"
315
+ },
316
+ {
317
+ "internalType": "uint256",
318
+ "name": "amountETH",
319
+ "type": "uint256"
320
+ },
321
+ {
322
+ "internalType": "uint256",
323
+ "name": "liquidity",
324
+ "type": "uint256"
325
+ }
326
+ ],
327
+ "stateMutability": "payable",
328
+ "type": "function"
329
+ },
330
+ {
331
+ "inputs": [],
332
+ "name": "defaultFactory",
333
+ "outputs": [
334
+ {
335
+ "internalType": "address",
336
+ "name": "",
337
+ "type": "address"
338
+ }
339
+ ],
340
+ "stateMutability": "view",
341
+ "type": "function"
342
+ },
343
+ {
344
+ "inputs": [],
345
+ "name": "factoryRegistry",
346
+ "outputs": [
347
+ {
348
+ "internalType": "address",
349
+ "name": "",
350
+ "type": "address"
351
+ }
352
+ ],
353
+ "stateMutability": "view",
354
+ "type": "function"
355
+ },
356
+ {
357
+ "inputs": [
358
+ {
359
+ "internalType": "address",
360
+ "name": "tokenA",
361
+ "type": "address"
362
+ },
363
+ {
364
+ "internalType": "address",
365
+ "name": "tokenB",
366
+ "type": "address"
367
+ },
368
+ {
369
+ "internalType": "bool",
370
+ "name": "stable",
371
+ "type": "bool"
372
+ },
373
+ {
374
+ "internalType": "address",
375
+ "name": "_factory",
376
+ "type": "address"
377
+ },
378
+ {
379
+ "internalType": "uint256",
380
+ "name": "amountInA",
381
+ "type": "uint256"
382
+ },
383
+ {
384
+ "internalType": "uint256",
385
+ "name": "amountInB",
386
+ "type": "uint256"
387
+ },
388
+ {
389
+ "components": [
390
+ {
391
+ "internalType": "address",
392
+ "name": "from",
393
+ "type": "address"
394
+ },
395
+ {
396
+ "internalType": "address",
397
+ "name": "to",
398
+ "type": "address"
399
+ },
400
+ {
401
+ "internalType": "bool",
402
+ "name": "stable",
403
+ "type": "bool"
404
+ },
405
+ {
406
+ "internalType": "address",
407
+ "name": "factory",
408
+ "type": "address"
409
+ }
410
+ ],
411
+ "internalType": "struct IRouter.Route[]",
412
+ "name": "routesA",
413
+ "type": "tuple[]"
414
+ },
415
+ {
416
+ "components": [
417
+ {
418
+ "internalType": "address",
419
+ "name": "from",
420
+ "type": "address"
421
+ },
422
+ {
423
+ "internalType": "address",
424
+ "name": "to",
425
+ "type": "address"
426
+ },
427
+ {
428
+ "internalType": "bool",
429
+ "name": "stable",
430
+ "type": "bool"
431
+ },
432
+ {
433
+ "internalType": "address",
434
+ "name": "factory",
435
+ "type": "address"
436
+ }
437
+ ],
438
+ "internalType": "struct IRouter.Route[]",
439
+ "name": "routesB",
440
+ "type": "tuple[]"
441
+ }
442
+ ],
443
+ "name": "generateZapInParams",
444
+ "outputs": [
445
+ {
446
+ "internalType": "uint256",
447
+ "name": "amountOutMinA",
448
+ "type": "uint256"
449
+ },
450
+ {
451
+ "internalType": "uint256",
452
+ "name": "amountOutMinB",
453
+ "type": "uint256"
454
+ },
455
+ {
456
+ "internalType": "uint256",
457
+ "name": "amountAMin",
458
+ "type": "uint256"
459
+ },
460
+ {
461
+ "internalType": "uint256",
462
+ "name": "amountBMin",
463
+ "type": "uint256"
464
+ }
465
+ ],
466
+ "stateMutability": "view",
467
+ "type": "function"
468
+ },
469
+ {
470
+ "inputs": [
471
+ {
472
+ "internalType": "address",
473
+ "name": "tokenA",
474
+ "type": "address"
475
+ },
476
+ {
477
+ "internalType": "address",
478
+ "name": "tokenB",
479
+ "type": "address"
480
+ },
481
+ {
482
+ "internalType": "bool",
483
+ "name": "stable",
484
+ "type": "bool"
485
+ },
486
+ {
487
+ "internalType": "address",
488
+ "name": "_factory",
489
+ "type": "address"
490
+ },
491
+ {
492
+ "internalType": "uint256",
493
+ "name": "liquidity",
494
+ "type": "uint256"
495
+ },
496
+ {
497
+ "components": [
498
+ {
499
+ "internalType": "address",
500
+ "name": "from",
501
+ "type": "address"
502
+ },
503
+ {
504
+ "internalType": "address",
505
+ "name": "to",
506
+ "type": "address"
507
+ },
508
+ {
509
+ "internalType": "bool",
510
+ "name": "stable",
511
+ "type": "bool"
512
+ },
513
+ {
514
+ "internalType": "address",
515
+ "name": "factory",
516
+ "type": "address"
517
+ }
518
+ ],
519
+ "internalType": "struct IRouter.Route[]",
520
+ "name": "routesA",
521
+ "type": "tuple[]"
522
+ },
523
+ {
524
+ "components": [
525
+ {
526
+ "internalType": "address",
527
+ "name": "from",
528
+ "type": "address"
529
+ },
530
+ {
531
+ "internalType": "address",
532
+ "name": "to",
533
+ "type": "address"
534
+ },
535
+ {
536
+ "internalType": "bool",
537
+ "name": "stable",
538
+ "type": "bool"
539
+ },
540
+ {
541
+ "internalType": "address",
542
+ "name": "factory",
543
+ "type": "address"
544
+ }
545
+ ],
546
+ "internalType": "struct IRouter.Route[]",
547
+ "name": "routesB",
548
+ "type": "tuple[]"
549
+ }
550
+ ],
551
+ "name": "generateZapOutParams",
552
+ "outputs": [
553
+ {
554
+ "internalType": "uint256",
555
+ "name": "amountOutMinA",
556
+ "type": "uint256"
557
+ },
558
+ {
559
+ "internalType": "uint256",
560
+ "name": "amountOutMinB",
561
+ "type": "uint256"
562
+ },
563
+ {
564
+ "internalType": "uint256",
565
+ "name": "amountAMin",
566
+ "type": "uint256"
567
+ },
568
+ {
569
+ "internalType": "uint256",
570
+ "name": "amountBMin",
571
+ "type": "uint256"
572
+ }
573
+ ],
574
+ "stateMutability": "view",
575
+ "type": "function"
576
+ },
577
+ {
578
+ "inputs": [
579
+ {
580
+ "internalType": "uint256",
581
+ "name": "amountIn",
582
+ "type": "uint256"
583
+ },
584
+ {
585
+ "components": [
586
+ {
587
+ "internalType": "address",
588
+ "name": "from",
589
+ "type": "address"
590
+ },
591
+ {
592
+ "internalType": "address",
593
+ "name": "to",
594
+ "type": "address"
595
+ },
596
+ {
597
+ "internalType": "bool",
598
+ "name": "stable",
599
+ "type": "bool"
600
+ },
601
+ {
602
+ "internalType": "address",
603
+ "name": "factory",
604
+ "type": "address"
605
+ }
606
+ ],
607
+ "internalType": "struct IRouter.Route[]",
608
+ "name": "routes",
609
+ "type": "tuple[]"
610
+ }
611
+ ],
612
+ "name": "getAmountsOut",
613
+ "outputs": [
614
+ {
615
+ "internalType": "uint256[]",
616
+ "name": "amounts",
617
+ "type": "uint256[]"
618
+ }
619
+ ],
620
+ "stateMutability": "view",
621
+ "type": "function"
622
+ },
623
+ {
624
+ "inputs": [
625
+ {
626
+ "internalType": "address",
627
+ "name": "tokenA",
628
+ "type": "address"
629
+ },
630
+ {
631
+ "internalType": "address",
632
+ "name": "tokenB",
633
+ "type": "address"
634
+ },
635
+ {
636
+ "internalType": "bool",
637
+ "name": "stable",
638
+ "type": "bool"
639
+ },
640
+ {
641
+ "internalType": "address",
642
+ "name": "_factory",
643
+ "type": "address"
644
+ }
645
+ ],
646
+ "name": "getReserves",
647
+ "outputs": [
648
+ {
649
+ "internalType": "uint256",
650
+ "name": "reserveA",
651
+ "type": "uint256"
652
+ },
653
+ {
654
+ "internalType": "uint256",
655
+ "name": "reserveB",
656
+ "type": "uint256"
657
+ }
658
+ ],
659
+ "stateMutability": "view",
660
+ "type": "function"
661
+ },
662
+ {
663
+ "inputs": [
664
+ {
665
+ "internalType": "address",
666
+ "name": "forwarder",
667
+ "type": "address"
668
+ }
669
+ ],
670
+ "name": "isTrustedForwarder",
671
+ "outputs": [
672
+ {
673
+ "internalType": "bool",
674
+ "name": "",
675
+ "type": "bool"
676
+ }
677
+ ],
678
+ "stateMutability": "view",
679
+ "type": "function"
680
+ },
681
+ {
682
+ "inputs": [
683
+ {
684
+ "internalType": "address",
685
+ "name": "tokenA",
686
+ "type": "address"
687
+ },
688
+ {
689
+ "internalType": "address",
690
+ "name": "tokenB",
691
+ "type": "address"
692
+ },
693
+ {
694
+ "internalType": "bool",
695
+ "name": "stable",
696
+ "type": "bool"
697
+ },
698
+ {
699
+ "internalType": "address",
700
+ "name": "_factory",
701
+ "type": "address"
702
+ }
703
+ ],
704
+ "name": "poolFor",
705
+ "outputs": [
706
+ {
707
+ "internalType": "address",
708
+ "name": "pool",
709
+ "type": "address"
710
+ }
711
+ ],
712
+ "stateMutability": "view",
713
+ "type": "function"
714
+ },
715
+ {
716
+ "inputs": [
717
+ {
718
+ "internalType": "address",
719
+ "name": "tokenA",
720
+ "type": "address"
721
+ },
722
+ {
723
+ "internalType": "address",
724
+ "name": "tokenB",
725
+ "type": "address"
726
+ },
727
+ {
728
+ "internalType": "bool",
729
+ "name": "stable",
730
+ "type": "bool"
731
+ },
732
+ {
733
+ "internalType": "address",
734
+ "name": "_factory",
735
+ "type": "address"
736
+ },
737
+ {
738
+ "internalType": "uint256",
739
+ "name": "amountADesired",
740
+ "type": "uint256"
741
+ },
742
+ {
743
+ "internalType": "uint256",
744
+ "name": "amountBDesired",
745
+ "type": "uint256"
746
+ }
747
+ ],
748
+ "name": "quoteAddLiquidity",
749
+ "outputs": [
750
+ {
751
+ "internalType": "uint256",
752
+ "name": "amountA",
753
+ "type": "uint256"
754
+ },
755
+ {
756
+ "internalType": "uint256",
757
+ "name": "amountB",
758
+ "type": "uint256"
759
+ },
760
+ {
761
+ "internalType": "uint256",
762
+ "name": "liquidity",
763
+ "type": "uint256"
764
+ }
765
+ ],
766
+ "stateMutability": "view",
767
+ "type": "function"
768
+ },
769
+ {
770
+ "inputs": [
771
+ {
772
+ "internalType": "address",
773
+ "name": "tokenA",
774
+ "type": "address"
775
+ },
776
+ {
777
+ "internalType": "address",
778
+ "name": "tokenB",
779
+ "type": "address"
780
+ },
781
+ {
782
+ "internalType": "bool",
783
+ "name": "stable",
784
+ "type": "bool"
785
+ },
786
+ {
787
+ "internalType": "address",
788
+ "name": "_factory",
789
+ "type": "address"
790
+ },
791
+ {
792
+ "internalType": "uint256",
793
+ "name": "liquidity",
794
+ "type": "uint256"
795
+ }
796
+ ],
797
+ "name": "quoteRemoveLiquidity",
798
+ "outputs": [
799
+ {
800
+ "internalType": "uint256",
801
+ "name": "amountA",
802
+ "type": "uint256"
803
+ },
804
+ {
805
+ "internalType": "uint256",
806
+ "name": "amountB",
807
+ "type": "uint256"
808
+ }
809
+ ],
810
+ "stateMutability": "view",
811
+ "type": "function"
812
+ },
813
+ {
814
+ "inputs": [
815
+ {
816
+ "internalType": "address",
817
+ "name": "tokenA",
818
+ "type": "address"
819
+ },
820
+ {
821
+ "internalType": "address",
822
+ "name": "tokenB",
823
+ "type": "address"
824
+ },
825
+ {
826
+ "internalType": "address",
827
+ "name": "_factory",
828
+ "type": "address"
829
+ }
830
+ ],
831
+ "name": "quoteStableLiquidityRatio",
832
+ "outputs": [
833
+ {
834
+ "internalType": "uint256",
835
+ "name": "ratio",
836
+ "type": "uint256"
837
+ }
838
+ ],
839
+ "stateMutability": "view",
840
+ "type": "function"
841
+ },
842
+ {
843
+ "inputs": [
844
+ {
845
+ "internalType": "address",
846
+ "name": "tokenA",
847
+ "type": "address"
848
+ },
849
+ {
850
+ "internalType": "address",
851
+ "name": "tokenB",
852
+ "type": "address"
853
+ },
854
+ {
855
+ "internalType": "bool",
856
+ "name": "stable",
857
+ "type": "bool"
858
+ },
859
+ {
860
+ "internalType": "uint256",
861
+ "name": "liquidity",
862
+ "type": "uint256"
863
+ },
864
+ {
865
+ "internalType": "uint256",
866
+ "name": "amountAMin",
867
+ "type": "uint256"
868
+ },
869
+ {
870
+ "internalType": "uint256",
871
+ "name": "amountBMin",
872
+ "type": "uint256"
873
+ },
874
+ {
875
+ "internalType": "address",
876
+ "name": "to",
877
+ "type": "address"
878
+ },
879
+ {
880
+ "internalType": "uint256",
881
+ "name": "deadline",
882
+ "type": "uint256"
883
+ }
884
+ ],
885
+ "name": "removeLiquidity",
886
+ "outputs": [
887
+ {
888
+ "internalType": "uint256",
889
+ "name": "amountA",
890
+ "type": "uint256"
891
+ },
892
+ {
893
+ "internalType": "uint256",
894
+ "name": "amountB",
895
+ "type": "uint256"
896
+ }
897
+ ],
898
+ "stateMutability": "nonpayable",
899
+ "type": "function"
900
+ },
901
+ {
902
+ "inputs": [
903
+ {
904
+ "internalType": "address",
905
+ "name": "token",
906
+ "type": "address"
907
+ },
908
+ {
909
+ "internalType": "bool",
910
+ "name": "stable",
911
+ "type": "bool"
912
+ },
913
+ {
914
+ "internalType": "uint256",
915
+ "name": "liquidity",
916
+ "type": "uint256"
917
+ },
918
+ {
919
+ "internalType": "uint256",
920
+ "name": "amountTokenMin",
921
+ "type": "uint256"
922
+ },
923
+ {
924
+ "internalType": "uint256",
925
+ "name": "amountETHMin",
926
+ "type": "uint256"
927
+ },
928
+ {
929
+ "internalType": "address",
930
+ "name": "to",
931
+ "type": "address"
932
+ },
933
+ {
934
+ "internalType": "uint256",
935
+ "name": "deadline",
936
+ "type": "uint256"
937
+ }
938
+ ],
939
+ "name": "removeLiquidityETH",
940
+ "outputs": [
941
+ {
942
+ "internalType": "uint256",
943
+ "name": "amountToken",
944
+ "type": "uint256"
945
+ },
946
+ {
947
+ "internalType": "uint256",
948
+ "name": "amountETH",
949
+ "type": "uint256"
950
+ }
951
+ ],
952
+ "stateMutability": "nonpayable",
953
+ "type": "function"
954
+ },
955
+ {
956
+ "inputs": [
957
+ {
958
+ "internalType": "address",
959
+ "name": "token",
960
+ "type": "address"
961
+ },
962
+ {
963
+ "internalType": "bool",
964
+ "name": "stable",
965
+ "type": "bool"
966
+ },
967
+ {
968
+ "internalType": "uint256",
969
+ "name": "liquidity",
970
+ "type": "uint256"
971
+ },
972
+ {
973
+ "internalType": "uint256",
974
+ "name": "amountTokenMin",
975
+ "type": "uint256"
976
+ },
977
+ {
978
+ "internalType": "uint256",
979
+ "name": "amountETHMin",
980
+ "type": "uint256"
981
+ },
982
+ {
983
+ "internalType": "address",
984
+ "name": "to",
985
+ "type": "address"
986
+ },
987
+ {
988
+ "internalType": "uint256",
989
+ "name": "deadline",
990
+ "type": "uint256"
991
+ }
992
+ ],
993
+ "name": "removeLiquidityETHSupportingFeeOnTransferTokens",
994
+ "outputs": [
995
+ {
996
+ "internalType": "uint256",
997
+ "name": "amountETH",
998
+ "type": "uint256"
999
+ }
1000
+ ],
1001
+ "stateMutability": "nonpayable",
1002
+ "type": "function"
1003
+ },
1004
+ {
1005
+ "inputs": [
1006
+ {
1007
+ "internalType": "address",
1008
+ "name": "tokenA",
1009
+ "type": "address"
1010
+ },
1011
+ {
1012
+ "internalType": "address",
1013
+ "name": "tokenB",
1014
+ "type": "address"
1015
+ }
1016
+ ],
1017
+ "name": "sortTokens",
1018
+ "outputs": [
1019
+ {
1020
+ "internalType": "address",
1021
+ "name": "token0",
1022
+ "type": "address"
1023
+ },
1024
+ {
1025
+ "internalType": "address",
1026
+ "name": "token1",
1027
+ "type": "address"
1028
+ }
1029
+ ],
1030
+ "stateMutability": "pure",
1031
+ "type": "function"
1032
+ },
1033
+ {
1034
+ "inputs": [
1035
+ {
1036
+ "internalType": "uint256",
1037
+ "name": "amountOutMin",
1038
+ "type": "uint256"
1039
+ },
1040
+ {
1041
+ "components": [
1042
+ {
1043
+ "internalType": "address",
1044
+ "name": "from",
1045
+ "type": "address"
1046
+ },
1047
+ {
1048
+ "internalType": "address",
1049
+ "name": "to",
1050
+ "type": "address"
1051
+ },
1052
+ {
1053
+ "internalType": "bool",
1054
+ "name": "stable",
1055
+ "type": "bool"
1056
+ },
1057
+ {
1058
+ "internalType": "address",
1059
+ "name": "factory",
1060
+ "type": "address"
1061
+ }
1062
+ ],
1063
+ "internalType": "struct IRouter.Route[]",
1064
+ "name": "routes",
1065
+ "type": "tuple[]"
1066
+ },
1067
+ {
1068
+ "internalType": "address",
1069
+ "name": "to",
1070
+ "type": "address"
1071
+ },
1072
+ {
1073
+ "internalType": "uint256",
1074
+ "name": "deadline",
1075
+ "type": "uint256"
1076
+ }
1077
+ ],
1078
+ "name": "swapExactETHForTokens",
1079
+ "outputs": [
1080
+ {
1081
+ "internalType": "uint256[]",
1082
+ "name": "amounts",
1083
+ "type": "uint256[]"
1084
+ }
1085
+ ],
1086
+ "stateMutability": "payable",
1087
+ "type": "function"
1088
+ },
1089
+ {
1090
+ "inputs": [
1091
+ {
1092
+ "internalType": "uint256",
1093
+ "name": "amountOutMin",
1094
+ "type": "uint256"
1095
+ },
1096
+ {
1097
+ "components": [
1098
+ {
1099
+ "internalType": "address",
1100
+ "name": "from",
1101
+ "type": "address"
1102
+ },
1103
+ {
1104
+ "internalType": "address",
1105
+ "name": "to",
1106
+ "type": "address"
1107
+ },
1108
+ {
1109
+ "internalType": "bool",
1110
+ "name": "stable",
1111
+ "type": "bool"
1112
+ },
1113
+ {
1114
+ "internalType": "address",
1115
+ "name": "factory",
1116
+ "type": "address"
1117
+ }
1118
+ ],
1119
+ "internalType": "struct IRouter.Route[]",
1120
+ "name": "routes",
1121
+ "type": "tuple[]"
1122
+ },
1123
+ {
1124
+ "internalType": "address",
1125
+ "name": "to",
1126
+ "type": "address"
1127
+ },
1128
+ {
1129
+ "internalType": "uint256",
1130
+ "name": "deadline",
1131
+ "type": "uint256"
1132
+ }
1133
+ ],
1134
+ "name": "swapExactETHForTokensSupportingFeeOnTransferTokens",
1135
+ "outputs": [],
1136
+ "stateMutability": "payable",
1137
+ "type": "function"
1138
+ },
1139
+ {
1140
+ "inputs": [
1141
+ {
1142
+ "internalType": "uint256",
1143
+ "name": "amountIn",
1144
+ "type": "uint256"
1145
+ },
1146
+ {
1147
+ "internalType": "uint256",
1148
+ "name": "amountOutMin",
1149
+ "type": "uint256"
1150
+ },
1151
+ {
1152
+ "components": [
1153
+ {
1154
+ "internalType": "address",
1155
+ "name": "from",
1156
+ "type": "address"
1157
+ },
1158
+ {
1159
+ "internalType": "address",
1160
+ "name": "to",
1161
+ "type": "address"
1162
+ },
1163
+ {
1164
+ "internalType": "bool",
1165
+ "name": "stable",
1166
+ "type": "bool"
1167
+ },
1168
+ {
1169
+ "internalType": "address",
1170
+ "name": "factory",
1171
+ "type": "address"
1172
+ }
1173
+ ],
1174
+ "internalType": "struct IRouter.Route[]",
1175
+ "name": "routes",
1176
+ "type": "tuple[]"
1177
+ },
1178
+ {
1179
+ "internalType": "address",
1180
+ "name": "to",
1181
+ "type": "address"
1182
+ },
1183
+ {
1184
+ "internalType": "uint256",
1185
+ "name": "deadline",
1186
+ "type": "uint256"
1187
+ }
1188
+ ],
1189
+ "name": "swapExactTokensForETH",
1190
+ "outputs": [
1191
+ {
1192
+ "internalType": "uint256[]",
1193
+ "name": "amounts",
1194
+ "type": "uint256[]"
1195
+ }
1196
+ ],
1197
+ "stateMutability": "nonpayable",
1198
+ "type": "function"
1199
+ },
1200
+ {
1201
+ "inputs": [
1202
+ {
1203
+ "internalType": "uint256",
1204
+ "name": "amountIn",
1205
+ "type": "uint256"
1206
+ },
1207
+ {
1208
+ "internalType": "uint256",
1209
+ "name": "amountOutMin",
1210
+ "type": "uint256"
1211
+ },
1212
+ {
1213
+ "components": [
1214
+ {
1215
+ "internalType": "address",
1216
+ "name": "from",
1217
+ "type": "address"
1218
+ },
1219
+ {
1220
+ "internalType": "address",
1221
+ "name": "to",
1222
+ "type": "address"
1223
+ },
1224
+ {
1225
+ "internalType": "bool",
1226
+ "name": "stable",
1227
+ "type": "bool"
1228
+ },
1229
+ {
1230
+ "internalType": "address",
1231
+ "name": "factory",
1232
+ "type": "address"
1233
+ }
1234
+ ],
1235
+ "internalType": "struct IRouter.Route[]",
1236
+ "name": "routes",
1237
+ "type": "tuple[]"
1238
+ },
1239
+ {
1240
+ "internalType": "address",
1241
+ "name": "to",
1242
+ "type": "address"
1243
+ },
1244
+ {
1245
+ "internalType": "uint256",
1246
+ "name": "deadline",
1247
+ "type": "uint256"
1248
+ }
1249
+ ],
1250
+ "name": "swapExactTokensForETHSupportingFeeOnTransferTokens",
1251
+ "outputs": [],
1252
+ "stateMutability": "nonpayable",
1253
+ "type": "function"
1254
+ },
1255
+ {
1256
+ "inputs": [
1257
+ {
1258
+ "internalType": "uint256",
1259
+ "name": "amountIn",
1260
+ "type": "uint256"
1261
+ },
1262
+ {
1263
+ "internalType": "uint256",
1264
+ "name": "amountOutMin",
1265
+ "type": "uint256"
1266
+ },
1267
+ {
1268
+ "components": [
1269
+ {
1270
+ "internalType": "address",
1271
+ "name": "from",
1272
+ "type": "address"
1273
+ },
1274
+ {
1275
+ "internalType": "address",
1276
+ "name": "to",
1277
+ "type": "address"
1278
+ },
1279
+ {
1280
+ "internalType": "bool",
1281
+ "name": "stable",
1282
+ "type": "bool"
1283
+ },
1284
+ {
1285
+ "internalType": "address",
1286
+ "name": "factory",
1287
+ "type": "address"
1288
+ }
1289
+ ],
1290
+ "internalType": "struct IRouter.Route[]",
1291
+ "name": "routes",
1292
+ "type": "tuple[]"
1293
+ },
1294
+ {
1295
+ "internalType": "address",
1296
+ "name": "to",
1297
+ "type": "address"
1298
+ },
1299
+ {
1300
+ "internalType": "uint256",
1301
+ "name": "deadline",
1302
+ "type": "uint256"
1303
+ }
1304
+ ],
1305
+ "name": "swapExactTokensForTokens",
1306
+ "outputs": [
1307
+ {
1308
+ "internalType": "uint256[]",
1309
+ "name": "amounts",
1310
+ "type": "uint256[]"
1311
+ }
1312
+ ],
1313
+ "stateMutability": "nonpayable",
1314
+ "type": "function"
1315
+ },
1316
+ {
1317
+ "inputs": [
1318
+ {
1319
+ "internalType": "uint256",
1320
+ "name": "amountIn",
1321
+ "type": "uint256"
1322
+ },
1323
+ {
1324
+ "internalType": "uint256",
1325
+ "name": "amountOutMin",
1326
+ "type": "uint256"
1327
+ },
1328
+ {
1329
+ "components": [
1330
+ {
1331
+ "internalType": "address",
1332
+ "name": "from",
1333
+ "type": "address"
1334
+ },
1335
+ {
1336
+ "internalType": "address",
1337
+ "name": "to",
1338
+ "type": "address"
1339
+ },
1340
+ {
1341
+ "internalType": "bool",
1342
+ "name": "stable",
1343
+ "type": "bool"
1344
+ },
1345
+ {
1346
+ "internalType": "address",
1347
+ "name": "factory",
1348
+ "type": "address"
1349
+ }
1350
+ ],
1351
+ "internalType": "struct IRouter.Route[]",
1352
+ "name": "routes",
1353
+ "type": "tuple[]"
1354
+ },
1355
+ {
1356
+ "internalType": "address",
1357
+ "name": "to",
1358
+ "type": "address"
1359
+ },
1360
+ {
1361
+ "internalType": "uint256",
1362
+ "name": "deadline",
1363
+ "type": "uint256"
1364
+ }
1365
+ ],
1366
+ "name": "swapExactTokensForTokensSupportingFeeOnTransferTokens",
1367
+ "outputs": [],
1368
+ "stateMutability": "nonpayable",
1369
+ "type": "function"
1370
+ },
1371
+ {
1372
+ "inputs": [],
1373
+ "name": "voter",
1374
+ "outputs": [
1375
+ {
1376
+ "internalType": "address",
1377
+ "name": "",
1378
+ "type": "address"
1379
+ }
1380
+ ],
1381
+ "stateMutability": "view",
1382
+ "type": "function"
1383
+ },
1384
+ {
1385
+ "inputs": [],
1386
+ "name": "weth",
1387
+ "outputs": [
1388
+ {
1389
+ "internalType": "contract IWETH",
1390
+ "name": "",
1391
+ "type": "address"
1392
+ }
1393
+ ],
1394
+ "stateMutability": "view",
1395
+ "type": "function"
1396
+ },
1397
+ {
1398
+ "inputs": [
1399
+ {
1400
+ "internalType": "address",
1401
+ "name": "tokenIn",
1402
+ "type": "address"
1403
+ },
1404
+ {
1405
+ "internalType": "uint256",
1406
+ "name": "amountInA",
1407
+ "type": "uint256"
1408
+ },
1409
+ {
1410
+ "internalType": "uint256",
1411
+ "name": "amountInB",
1412
+ "type": "uint256"
1413
+ },
1414
+ {
1415
+ "components": [
1416
+ {
1417
+ "internalType": "address",
1418
+ "name": "tokenA",
1419
+ "type": "address"
1420
+ },
1421
+ {
1422
+ "internalType": "address",
1423
+ "name": "tokenB",
1424
+ "type": "address"
1425
+ },
1426
+ {
1427
+ "internalType": "bool",
1428
+ "name": "stable",
1429
+ "type": "bool"
1430
+ },
1431
+ {
1432
+ "internalType": "address",
1433
+ "name": "factory",
1434
+ "type": "address"
1435
+ },
1436
+ {
1437
+ "internalType": "uint256",
1438
+ "name": "amountOutMinA",
1439
+ "type": "uint256"
1440
+ },
1441
+ {
1442
+ "internalType": "uint256",
1443
+ "name": "amountOutMinB",
1444
+ "type": "uint256"
1445
+ },
1446
+ {
1447
+ "internalType": "uint256",
1448
+ "name": "amountAMin",
1449
+ "type": "uint256"
1450
+ },
1451
+ {
1452
+ "internalType": "uint256",
1453
+ "name": "amountBMin",
1454
+ "type": "uint256"
1455
+ }
1456
+ ],
1457
+ "internalType": "struct IRouter.Zap",
1458
+ "name": "zapInPool",
1459
+ "type": "tuple"
1460
+ },
1461
+ {
1462
+ "components": [
1463
+ {
1464
+ "internalType": "address",
1465
+ "name": "from",
1466
+ "type": "address"
1467
+ },
1468
+ {
1469
+ "internalType": "address",
1470
+ "name": "to",
1471
+ "type": "address"
1472
+ },
1473
+ {
1474
+ "internalType": "bool",
1475
+ "name": "stable",
1476
+ "type": "bool"
1477
+ },
1478
+ {
1479
+ "internalType": "address",
1480
+ "name": "factory",
1481
+ "type": "address"
1482
+ }
1483
+ ],
1484
+ "internalType": "struct IRouter.Route[]",
1485
+ "name": "routesA",
1486
+ "type": "tuple[]"
1487
+ },
1488
+ {
1489
+ "components": [
1490
+ {
1491
+ "internalType": "address",
1492
+ "name": "from",
1493
+ "type": "address"
1494
+ },
1495
+ {
1496
+ "internalType": "address",
1497
+ "name": "to",
1498
+ "type": "address"
1499
+ },
1500
+ {
1501
+ "internalType": "bool",
1502
+ "name": "stable",
1503
+ "type": "bool"
1504
+ },
1505
+ {
1506
+ "internalType": "address",
1507
+ "name": "factory",
1508
+ "type": "address"
1509
+ }
1510
+ ],
1511
+ "internalType": "struct IRouter.Route[]",
1512
+ "name": "routesB",
1513
+ "type": "tuple[]"
1514
+ },
1515
+ {
1516
+ "internalType": "address",
1517
+ "name": "to",
1518
+ "type": "address"
1519
+ },
1520
+ {
1521
+ "internalType": "bool",
1522
+ "name": "stake",
1523
+ "type": "bool"
1524
+ }
1525
+ ],
1526
+ "name": "zapIn",
1527
+ "outputs": [
1528
+ {
1529
+ "internalType": "uint256",
1530
+ "name": "liquidity",
1531
+ "type": "uint256"
1532
+ }
1533
+ ],
1534
+ "stateMutability": "payable",
1535
+ "type": "function"
1536
+ },
1537
+ {
1538
+ "inputs": [
1539
+ {
1540
+ "internalType": "address",
1541
+ "name": "tokenOut",
1542
+ "type": "address"
1543
+ },
1544
+ {
1545
+ "internalType": "uint256",
1546
+ "name": "liquidity",
1547
+ "type": "uint256"
1548
+ },
1549
+ {
1550
+ "components": [
1551
+ {
1552
+ "internalType": "address",
1553
+ "name": "tokenA",
1554
+ "type": "address"
1555
+ },
1556
+ {
1557
+ "internalType": "address",
1558
+ "name": "tokenB",
1559
+ "type": "address"
1560
+ },
1561
+ {
1562
+ "internalType": "bool",
1563
+ "name": "stable",
1564
+ "type": "bool"
1565
+ },
1566
+ {
1567
+ "internalType": "address",
1568
+ "name": "factory",
1569
+ "type": "address"
1570
+ },
1571
+ {
1572
+ "internalType": "uint256",
1573
+ "name": "amountOutMinA",
1574
+ "type": "uint256"
1575
+ },
1576
+ {
1577
+ "internalType": "uint256",
1578
+ "name": "amountOutMinB",
1579
+ "type": "uint256"
1580
+ },
1581
+ {
1582
+ "internalType": "uint256",
1583
+ "name": "amountAMin",
1584
+ "type": "uint256"
1585
+ },
1586
+ {
1587
+ "internalType": "uint256",
1588
+ "name": "amountBMin",
1589
+ "type": "uint256"
1590
+ }
1591
+ ],
1592
+ "internalType": "struct IRouter.Zap",
1593
+ "name": "zapOutPool",
1594
+ "type": "tuple"
1595
+ },
1596
+ {
1597
+ "components": [
1598
+ {
1599
+ "internalType": "address",
1600
+ "name": "from",
1601
+ "type": "address"
1602
+ },
1603
+ {
1604
+ "internalType": "address",
1605
+ "name": "to",
1606
+ "type": "address"
1607
+ },
1608
+ {
1609
+ "internalType": "bool",
1610
+ "name": "stable",
1611
+ "type": "bool"
1612
+ },
1613
+ {
1614
+ "internalType": "address",
1615
+ "name": "factory",
1616
+ "type": "address"
1617
+ }
1618
+ ],
1619
+ "internalType": "struct IRouter.Route[]",
1620
+ "name": "routesA",
1621
+ "type": "tuple[]"
1622
+ },
1623
+ {
1624
+ "components": [
1625
+ {
1626
+ "internalType": "address",
1627
+ "name": "from",
1628
+ "type": "address"
1629
+ },
1630
+ {
1631
+ "internalType": "address",
1632
+ "name": "to",
1633
+ "type": "address"
1634
+ },
1635
+ {
1636
+ "internalType": "bool",
1637
+ "name": "stable",
1638
+ "type": "bool"
1639
+ },
1640
+ {
1641
+ "internalType": "address",
1642
+ "name": "factory",
1643
+ "type": "address"
1644
+ }
1645
+ ],
1646
+ "internalType": "struct IRouter.Route[]",
1647
+ "name": "routesB",
1648
+ "type": "tuple[]"
1649
+ }
1650
+ ],
1651
+ "name": "zapOut",
1652
+ "outputs": [],
1653
+ "stateMutability": "nonpayable",
1654
+ "type": "function"
1655
+ },
1656
+ {
1657
+ "stateMutability": "payable",
1658
+ "type": "receive"
1659
+ }
1660
+ ]