@sentio/sdk 1.7.10 → 1.7.13

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 (39) hide show
  1. package/builtin/internal/factories/index.d.ts +0 -1
  2. package/builtin/internal/factories/index.js +1 -3
  3. package/builtin/internal/factories/index.js.map +1 -1
  4. package/builtin/internal/index.d.ts +0 -2
  5. package/builtin/internal/index.js +1 -3
  6. package/builtin/internal/index.js.map +1 -1
  7. package/cli/build.d.ts +1 -0
  8. package/cli/build.js +4 -4
  9. package/cli/build.js.map +1 -1
  10. package/package.json +1 -1
  11. package/provider.js +5 -2
  12. package/provider.js.map +1 -1
  13. package/solana/builtin/index.d.ts +1 -0
  14. package/solana/builtin/index.js +1 -0
  15. package/solana/builtin/index.js.map +1 -1
  16. package/{test/types/wormhole_processor.d.ts → solana/builtin/wormhole-processor.d.ts} +3 -1
  17. package/{test/types/wormhole_processor.js → solana/builtin/wormhole-processor.js} +3 -3
  18. package/solana/builtin/wormhole-processor.js.map +1 -0
  19. package/test/codegen.test.d.ts +1 -0
  20. package/test/codegen.test.js +47 -0
  21. package/test/codegen.test.js.map +1 -0
  22. package/test/wormhole-token-bridge.js +1 -1
  23. package/test/wormhole-token-bridge.js.map +1 -1
  24. package/builtin/anyswaprouter/index.d.ts +0 -2
  25. package/builtin/anyswaprouter/index.js +0 -22
  26. package/builtin/anyswaprouter/index.js.map +0 -1
  27. package/builtin/anyswaprouter/test-utils.d.ts +0 -9
  28. package/builtin/anyswaprouter/test-utils.js +0 -90
  29. package/builtin/anyswaprouter/test-utils.js.map +0 -1
  30. package/builtin/internal/AnyswapRouter.d.ts +0 -800
  31. package/builtin/internal/AnyswapRouter.js +0 -3
  32. package/builtin/internal/AnyswapRouter.js.map +0 -1
  33. package/builtin/internal/anyswaprouter_processor.d.ts +0 -62
  34. package/builtin/internal/anyswaprouter_processor.js +0 -362
  35. package/builtin/internal/anyswaprouter_processor.js.map +0 -1
  36. package/builtin/internal/factories/AnyswapRouter__factory.d.ts +0 -53
  37. package/builtin/internal/factories/AnyswapRouter__factory.js +0 -1272
  38. package/builtin/internal/factories/AnyswapRouter__factory.js.map +0 -1
  39. package/test/types/wormhole_processor.js.map +0 -1
@@ -1,1272 +0,0 @@
1
- "use strict";
2
- /* Autogenerated file. Do not edit manually. */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AnyswapRouter__factory = void 0;
7
- const ethers_1 = require("ethers");
8
- const _abi = [
9
- {
10
- inputs: [
11
- {
12
- internalType: "address",
13
- name: "_factory",
14
- type: "address",
15
- },
16
- {
17
- internalType: "address",
18
- name: "_wNATIVE",
19
- type: "address",
20
- },
21
- {
22
- internalType: "address",
23
- name: "_mpc",
24
- type: "address",
25
- },
26
- ],
27
- stateMutability: "nonpayable",
28
- type: "constructor",
29
- },
30
- {
31
- anonymous: false,
32
- inputs: [
33
- {
34
- indexed: true,
35
- internalType: "bytes32",
36
- name: "txhash",
37
- type: "bytes32",
38
- },
39
- {
40
- indexed: true,
41
- internalType: "address",
42
- name: "token",
43
- type: "address",
44
- },
45
- {
46
- indexed: true,
47
- internalType: "address",
48
- name: "to",
49
- type: "address",
50
- },
51
- {
52
- indexed: false,
53
- internalType: "uint256",
54
- name: "amount",
55
- type: "uint256",
56
- },
57
- {
58
- indexed: false,
59
- internalType: "uint256",
60
- name: "fromChainID",
61
- type: "uint256",
62
- },
63
- {
64
- indexed: false,
65
- internalType: "uint256",
66
- name: "toChainID",
67
- type: "uint256",
68
- },
69
- ],
70
- name: "LogAnySwapIn",
71
- type: "event",
72
- },
73
- {
74
- anonymous: false,
75
- inputs: [
76
- {
77
- indexed: true,
78
- internalType: "address",
79
- name: "token",
80
- type: "address",
81
- },
82
- {
83
- indexed: true,
84
- internalType: "address",
85
- name: "from",
86
- type: "address",
87
- },
88
- {
89
- indexed: true,
90
- internalType: "address",
91
- name: "to",
92
- type: "address",
93
- },
94
- {
95
- indexed: false,
96
- internalType: "uint256",
97
- name: "amount",
98
- type: "uint256",
99
- },
100
- {
101
- indexed: false,
102
- internalType: "uint256",
103
- name: "fromChainID",
104
- type: "uint256",
105
- },
106
- {
107
- indexed: false,
108
- internalType: "uint256",
109
- name: "toChainID",
110
- type: "uint256",
111
- },
112
- ],
113
- name: "LogAnySwapOut",
114
- type: "event",
115
- },
116
- {
117
- anonymous: false,
118
- inputs: [
119
- {
120
- indexed: true,
121
- internalType: "address",
122
- name: "token",
123
- type: "address",
124
- },
125
- {
126
- indexed: true,
127
- internalType: "address",
128
- name: "from",
129
- type: "address",
130
- },
131
- {
132
- indexed: false,
133
- internalType: "string",
134
- name: "to",
135
- type: "string",
136
- },
137
- {
138
- indexed: false,
139
- internalType: "uint256",
140
- name: "amount",
141
- type: "uint256",
142
- },
143
- {
144
- indexed: false,
145
- internalType: "uint256",
146
- name: "fromChainID",
147
- type: "uint256",
148
- },
149
- {
150
- indexed: false,
151
- internalType: "uint256",
152
- name: "toChainID",
153
- type: "uint256",
154
- },
155
- ],
156
- name: "LogAnySwapOut",
157
- type: "event",
158
- },
159
- {
160
- anonymous: false,
161
- inputs: [
162
- {
163
- indexed: false,
164
- internalType: "address[]",
165
- name: "path",
166
- type: "address[]",
167
- },
168
- {
169
- indexed: true,
170
- internalType: "address",
171
- name: "from",
172
- type: "address",
173
- },
174
- {
175
- indexed: true,
176
- internalType: "address",
177
- name: "to",
178
- type: "address",
179
- },
180
- {
181
- indexed: false,
182
- internalType: "uint256",
183
- name: "amountIn",
184
- type: "uint256",
185
- },
186
- {
187
- indexed: false,
188
- internalType: "uint256",
189
- name: "amountOutMin",
190
- type: "uint256",
191
- },
192
- {
193
- indexed: false,
194
- internalType: "uint256",
195
- name: "fromChainID",
196
- type: "uint256",
197
- },
198
- {
199
- indexed: false,
200
- internalType: "uint256",
201
- name: "toChainID",
202
- type: "uint256",
203
- },
204
- ],
205
- name: "LogAnySwapTradeTokensForNative",
206
- type: "event",
207
- },
208
- {
209
- anonymous: false,
210
- inputs: [
211
- {
212
- indexed: false,
213
- internalType: "address[]",
214
- name: "path",
215
- type: "address[]",
216
- },
217
- {
218
- indexed: true,
219
- internalType: "address",
220
- name: "from",
221
- type: "address",
222
- },
223
- {
224
- indexed: true,
225
- internalType: "address",
226
- name: "to",
227
- type: "address",
228
- },
229
- {
230
- indexed: false,
231
- internalType: "uint256",
232
- name: "amountIn",
233
- type: "uint256",
234
- },
235
- {
236
- indexed: false,
237
- internalType: "uint256",
238
- name: "amountOutMin",
239
- type: "uint256",
240
- },
241
- {
242
- indexed: false,
243
- internalType: "uint256",
244
- name: "fromChainID",
245
- type: "uint256",
246
- },
247
- {
248
- indexed: false,
249
- internalType: "uint256",
250
- name: "toChainID",
251
- type: "uint256",
252
- },
253
- ],
254
- name: "LogAnySwapTradeTokensForTokens",
255
- type: "event",
256
- },
257
- {
258
- anonymous: false,
259
- inputs: [
260
- {
261
- indexed: true,
262
- internalType: "address",
263
- name: "oldMPC",
264
- type: "address",
265
- },
266
- {
267
- indexed: true,
268
- internalType: "address",
269
- name: "newMPC",
270
- type: "address",
271
- },
272
- {
273
- indexed: true,
274
- internalType: "uint256",
275
- name: "effectiveTime",
276
- type: "uint256",
277
- },
278
- {
279
- indexed: false,
280
- internalType: "uint256",
281
- name: "chainID",
282
- type: "uint256",
283
- },
284
- ],
285
- name: "LogChangeMPC",
286
- type: "event",
287
- },
288
- {
289
- anonymous: false,
290
- inputs: [
291
- {
292
- indexed: true,
293
- internalType: "address",
294
- name: "oldRouter",
295
- type: "address",
296
- },
297
- {
298
- indexed: true,
299
- internalType: "address",
300
- name: "newRouter",
301
- type: "address",
302
- },
303
- {
304
- indexed: false,
305
- internalType: "uint256",
306
- name: "chainID",
307
- type: "uint256",
308
- },
309
- ],
310
- name: "LogChangeRouter",
311
- type: "event",
312
- },
313
- {
314
- inputs: [
315
- {
316
- internalType: "address",
317
- name: "token",
318
- type: "address",
319
- },
320
- {
321
- internalType: "uint256",
322
- name: "amount",
323
- type: "uint256",
324
- },
325
- ],
326
- name: "anySwapFeeTo",
327
- outputs: [],
328
- stateMutability: "nonpayable",
329
- type: "function",
330
- },
331
- {
332
- inputs: [
333
- {
334
- internalType: "bytes32[]",
335
- name: "txs",
336
- type: "bytes32[]",
337
- },
338
- {
339
- internalType: "address[]",
340
- name: "tokens",
341
- type: "address[]",
342
- },
343
- {
344
- internalType: "address[]",
345
- name: "to",
346
- type: "address[]",
347
- },
348
- {
349
- internalType: "uint256[]",
350
- name: "amounts",
351
- type: "uint256[]",
352
- },
353
- {
354
- internalType: "uint256[]",
355
- name: "fromChainIDs",
356
- type: "uint256[]",
357
- },
358
- ],
359
- name: "anySwapIn",
360
- outputs: [],
361
- stateMutability: "nonpayable",
362
- type: "function",
363
- },
364
- {
365
- inputs: [
366
- {
367
- internalType: "bytes32",
368
- name: "txs",
369
- type: "bytes32",
370
- },
371
- {
372
- internalType: "address",
373
- name: "token",
374
- type: "address",
375
- },
376
- {
377
- internalType: "address",
378
- name: "to",
379
- type: "address",
380
- },
381
- {
382
- internalType: "uint256",
383
- name: "amount",
384
- type: "uint256",
385
- },
386
- {
387
- internalType: "uint256",
388
- name: "fromChainID",
389
- type: "uint256",
390
- },
391
- ],
392
- name: "anySwapIn",
393
- outputs: [],
394
- stateMutability: "nonpayable",
395
- type: "function",
396
- },
397
- {
398
- inputs: [
399
- {
400
- internalType: "bytes32",
401
- name: "txs",
402
- type: "bytes32",
403
- },
404
- {
405
- internalType: "address",
406
- name: "token",
407
- type: "address",
408
- },
409
- {
410
- internalType: "address",
411
- name: "to",
412
- type: "address",
413
- },
414
- {
415
- internalType: "uint256",
416
- name: "amount",
417
- type: "uint256",
418
- },
419
- {
420
- internalType: "uint256",
421
- name: "fromChainID",
422
- type: "uint256",
423
- },
424
- ],
425
- name: "anySwapInAuto",
426
- outputs: [],
427
- stateMutability: "nonpayable",
428
- type: "function",
429
- },
430
- {
431
- inputs: [
432
- {
433
- internalType: "bytes32",
434
- name: "txs",
435
- type: "bytes32",
436
- },
437
- {
438
- internalType: "uint256",
439
- name: "amountIn",
440
- type: "uint256",
441
- },
442
- {
443
- internalType: "uint256",
444
- name: "amountOutMin",
445
- type: "uint256",
446
- },
447
- {
448
- internalType: "address[]",
449
- name: "path",
450
- type: "address[]",
451
- },
452
- {
453
- internalType: "address",
454
- name: "to",
455
- type: "address",
456
- },
457
- {
458
- internalType: "uint256",
459
- name: "deadline",
460
- type: "uint256",
461
- },
462
- {
463
- internalType: "uint256",
464
- name: "fromChainID",
465
- type: "uint256",
466
- },
467
- ],
468
- name: "anySwapInExactTokensForNative",
469
- outputs: [
470
- {
471
- internalType: "uint256[]",
472
- name: "amounts",
473
- type: "uint256[]",
474
- },
475
- ],
476
- stateMutability: "nonpayable",
477
- type: "function",
478
- },
479
- {
480
- inputs: [
481
- {
482
- internalType: "bytes32",
483
- name: "txs",
484
- type: "bytes32",
485
- },
486
- {
487
- internalType: "uint256",
488
- name: "amountIn",
489
- type: "uint256",
490
- },
491
- {
492
- internalType: "uint256",
493
- name: "amountOutMin",
494
- type: "uint256",
495
- },
496
- {
497
- internalType: "address[]",
498
- name: "path",
499
- type: "address[]",
500
- },
501
- {
502
- internalType: "address",
503
- name: "to",
504
- type: "address",
505
- },
506
- {
507
- internalType: "uint256",
508
- name: "deadline",
509
- type: "uint256",
510
- },
511
- {
512
- internalType: "uint256",
513
- name: "fromChainID",
514
- type: "uint256",
515
- },
516
- ],
517
- name: "anySwapInExactTokensForTokens",
518
- outputs: [
519
- {
520
- internalType: "uint256[]",
521
- name: "amounts",
522
- type: "uint256[]",
523
- },
524
- ],
525
- stateMutability: "nonpayable",
526
- type: "function",
527
- },
528
- {
529
- inputs: [
530
- {
531
- internalType: "bytes32",
532
- name: "txs",
533
- type: "bytes32",
534
- },
535
- {
536
- internalType: "address",
537
- name: "token",
538
- type: "address",
539
- },
540
- {
541
- internalType: "address",
542
- name: "to",
543
- type: "address",
544
- },
545
- {
546
- internalType: "uint256",
547
- name: "amount",
548
- type: "uint256",
549
- },
550
- {
551
- internalType: "uint256",
552
- name: "fromChainID",
553
- type: "uint256",
554
- },
555
- ],
556
- name: "anySwapInUnderlying",
557
- outputs: [],
558
- stateMutability: "nonpayable",
559
- type: "function",
560
- },
561
- {
562
- inputs: [
563
- {
564
- internalType: "address",
565
- name: "token",
566
- type: "address",
567
- },
568
- {
569
- internalType: "address",
570
- name: "to",
571
- type: "address",
572
- },
573
- {
574
- internalType: "uint256",
575
- name: "amount",
576
- type: "uint256",
577
- },
578
- {
579
- internalType: "uint256",
580
- name: "toChainID",
581
- type: "uint256",
582
- },
583
- ],
584
- name: "anySwapOut",
585
- outputs: [],
586
- stateMutability: "nonpayable",
587
- type: "function",
588
- },
589
- {
590
- inputs: [
591
- {
592
- internalType: "address",
593
- name: "token",
594
- type: "address",
595
- },
596
- {
597
- internalType: "string",
598
- name: "to",
599
- type: "string",
600
- },
601
- {
602
- internalType: "uint256",
603
- name: "amount",
604
- type: "uint256",
605
- },
606
- {
607
- internalType: "uint256",
608
- name: "toChainID",
609
- type: "uint256",
610
- },
611
- ],
612
- name: "anySwapOut",
613
- outputs: [],
614
- stateMutability: "nonpayable",
615
- type: "function",
616
- },
617
- {
618
- inputs: [
619
- {
620
- internalType: "address[]",
621
- name: "tokens",
622
- type: "address[]",
623
- },
624
- {
625
- internalType: "address[]",
626
- name: "to",
627
- type: "address[]",
628
- },
629
- {
630
- internalType: "uint256[]",
631
- name: "amounts",
632
- type: "uint256[]",
633
- },
634
- {
635
- internalType: "uint256[]",
636
- name: "toChainIDs",
637
- type: "uint256[]",
638
- },
639
- ],
640
- name: "anySwapOut",
641
- outputs: [],
642
- stateMutability: "nonpayable",
643
- type: "function",
644
- },
645
- {
646
- inputs: [
647
- {
648
- internalType: "uint256",
649
- name: "amountIn",
650
- type: "uint256",
651
- },
652
- {
653
- internalType: "uint256",
654
- name: "amountOutMin",
655
- type: "uint256",
656
- },
657
- {
658
- internalType: "address[]",
659
- name: "path",
660
- type: "address[]",
661
- },
662
- {
663
- internalType: "address",
664
- name: "to",
665
- type: "address",
666
- },
667
- {
668
- internalType: "uint256",
669
- name: "deadline",
670
- type: "uint256",
671
- },
672
- {
673
- internalType: "uint256",
674
- name: "toChainID",
675
- type: "uint256",
676
- },
677
- ],
678
- name: "anySwapOutExactTokensForNative",
679
- outputs: [],
680
- stateMutability: "nonpayable",
681
- type: "function",
682
- },
683
- {
684
- inputs: [
685
- {
686
- internalType: "uint256",
687
- name: "amountIn",
688
- type: "uint256",
689
- },
690
- {
691
- internalType: "uint256",
692
- name: "amountOutMin",
693
- type: "uint256",
694
- },
695
- {
696
- internalType: "address[]",
697
- name: "path",
698
- type: "address[]",
699
- },
700
- {
701
- internalType: "address",
702
- name: "to",
703
- type: "address",
704
- },
705
- {
706
- internalType: "uint256",
707
- name: "deadline",
708
- type: "uint256",
709
- },
710
- {
711
- internalType: "uint256",
712
- name: "toChainID",
713
- type: "uint256",
714
- },
715
- ],
716
- name: "anySwapOutExactTokensForNativeUnderlying",
717
- outputs: [],
718
- stateMutability: "nonpayable",
719
- type: "function",
720
- },
721
- {
722
- inputs: [
723
- {
724
- internalType: "uint256",
725
- name: "amountIn",
726
- type: "uint256",
727
- },
728
- {
729
- internalType: "uint256",
730
- name: "amountOutMin",
731
- type: "uint256",
732
- },
733
- {
734
- internalType: "address[]",
735
- name: "path",
736
- type: "address[]",
737
- },
738
- {
739
- internalType: "address",
740
- name: "to",
741
- type: "address",
742
- },
743
- {
744
- internalType: "uint256",
745
- name: "deadline",
746
- type: "uint256",
747
- },
748
- {
749
- internalType: "uint256",
750
- name: "toChainID",
751
- type: "uint256",
752
- },
753
- ],
754
- name: "anySwapOutExactTokensForTokens",
755
- outputs: [],
756
- stateMutability: "nonpayable",
757
- type: "function",
758
- },
759
- {
760
- inputs: [
761
- {
762
- internalType: "uint256",
763
- name: "amountIn",
764
- type: "uint256",
765
- },
766
- {
767
- internalType: "uint256",
768
- name: "amountOutMin",
769
- type: "uint256",
770
- },
771
- {
772
- internalType: "address[]",
773
- name: "path",
774
- type: "address[]",
775
- },
776
- {
777
- internalType: "address",
778
- name: "to",
779
- type: "address",
780
- },
781
- {
782
- internalType: "uint256",
783
- name: "deadline",
784
- type: "uint256",
785
- },
786
- {
787
- internalType: "uint256",
788
- name: "toChainID",
789
- type: "uint256",
790
- },
791
- ],
792
- name: "anySwapOutExactTokensForTokensUnderlying",
793
- outputs: [],
794
- stateMutability: "nonpayable",
795
- type: "function",
796
- },
797
- {
798
- inputs: [
799
- {
800
- internalType: "address",
801
- name: "token",
802
- type: "address",
803
- },
804
- {
805
- internalType: "string",
806
- name: "to",
807
- type: "string",
808
- },
809
- {
810
- internalType: "uint256",
811
- name: "toChainID",
812
- type: "uint256",
813
- },
814
- ],
815
- name: "anySwapOutNative",
816
- outputs: [],
817
- stateMutability: "payable",
818
- type: "function",
819
- },
820
- {
821
- inputs: [
822
- {
823
- internalType: "address",
824
- name: "token",
825
- type: "address",
826
- },
827
- {
828
- internalType: "address",
829
- name: "to",
830
- type: "address",
831
- },
832
- {
833
- internalType: "uint256",
834
- name: "toChainID",
835
- type: "uint256",
836
- },
837
- ],
838
- name: "anySwapOutNative",
839
- outputs: [],
840
- stateMutability: "payable",
841
- type: "function",
842
- },
843
- {
844
- inputs: [
845
- {
846
- internalType: "address",
847
- name: "token",
848
- type: "address",
849
- },
850
- {
851
- internalType: "string",
852
- name: "to",
853
- type: "string",
854
- },
855
- {
856
- internalType: "uint256",
857
- name: "amount",
858
- type: "uint256",
859
- },
860
- {
861
- internalType: "uint256",
862
- name: "toChainID",
863
- type: "uint256",
864
- },
865
- ],
866
- name: "anySwapOutUnderlying",
867
- outputs: [],
868
- stateMutability: "nonpayable",
869
- type: "function",
870
- },
871
- {
872
- inputs: [
873
- {
874
- internalType: "address",
875
- name: "token",
876
- type: "address",
877
- },
878
- {
879
- internalType: "address",
880
- name: "to",
881
- type: "address",
882
- },
883
- {
884
- internalType: "uint256",
885
- name: "amount",
886
- type: "uint256",
887
- },
888
- {
889
- internalType: "uint256",
890
- name: "toChainID",
891
- type: "uint256",
892
- },
893
- ],
894
- name: "anySwapOutUnderlying",
895
- outputs: [],
896
- stateMutability: "nonpayable",
897
- type: "function",
898
- },
899
- {
900
- inputs: [
901
- {
902
- internalType: "address",
903
- name: "token",
904
- type: "address",
905
- },
906
- ],
907
- name: "applyMinter",
908
- outputs: [],
909
- stateMutability: "nonpayable",
910
- type: "function",
911
- },
912
- {
913
- inputs: [],
914
- name: "cID",
915
- outputs: [
916
- {
917
- internalType: "uint256",
918
- name: "id",
919
- type: "uint256",
920
- },
921
- ],
922
- stateMutability: "view",
923
- type: "function",
924
- },
925
- {
926
- inputs: [
927
- {
928
- internalType: "address",
929
- name: "newMPC",
930
- type: "address",
931
- },
932
- ],
933
- name: "changeMPC",
934
- outputs: [
935
- {
936
- internalType: "bool",
937
- name: "",
938
- type: "bool",
939
- },
940
- ],
941
- stateMutability: "nonpayable",
942
- type: "function",
943
- },
944
- {
945
- inputs: [
946
- {
947
- internalType: "address",
948
- name: "token",
949
- type: "address",
950
- },
951
- {
952
- internalType: "address",
953
- name: "newVault",
954
- type: "address",
955
- },
956
- ],
957
- name: "changeVault",
958
- outputs: [
959
- {
960
- internalType: "bool",
961
- name: "",
962
- type: "bool",
963
- },
964
- ],
965
- stateMutability: "nonpayable",
966
- type: "function",
967
- },
968
- {
969
- inputs: [
970
- {
971
- internalType: "address",
972
- name: "token",
973
- type: "address",
974
- },
975
- {
976
- internalType: "address",
977
- name: "to",
978
- type: "address",
979
- },
980
- ],
981
- name: "depositNative",
982
- outputs: [
983
- {
984
- internalType: "uint256",
985
- name: "",
986
- type: "uint256",
987
- },
988
- ],
989
- stateMutability: "payable",
990
- type: "function",
991
- },
992
- {
993
- inputs: [],
994
- name: "enableSwapTrade",
995
- outputs: [
996
- {
997
- internalType: "bool",
998
- name: "",
999
- type: "bool",
1000
- },
1001
- ],
1002
- stateMutability: "view",
1003
- type: "function",
1004
- },
1005
- {
1006
- inputs: [],
1007
- name: "factory",
1008
- outputs: [
1009
- {
1010
- internalType: "address",
1011
- name: "",
1012
- type: "address",
1013
- },
1014
- ],
1015
- stateMutability: "view",
1016
- type: "function",
1017
- },
1018
- {
1019
- inputs: [
1020
- {
1021
- internalType: "uint256",
1022
- name: "amountOut",
1023
- type: "uint256",
1024
- },
1025
- {
1026
- internalType: "uint256",
1027
- name: "reserveIn",
1028
- type: "uint256",
1029
- },
1030
- {
1031
- internalType: "uint256",
1032
- name: "reserveOut",
1033
- type: "uint256",
1034
- },
1035
- ],
1036
- name: "getAmountIn",
1037
- outputs: [
1038
- {
1039
- internalType: "uint256",
1040
- name: "amountIn",
1041
- type: "uint256",
1042
- },
1043
- ],
1044
- stateMutability: "pure",
1045
- type: "function",
1046
- },
1047
- {
1048
- inputs: [
1049
- {
1050
- internalType: "uint256",
1051
- name: "amountIn",
1052
- type: "uint256",
1053
- },
1054
- {
1055
- internalType: "uint256",
1056
- name: "reserveIn",
1057
- type: "uint256",
1058
- },
1059
- {
1060
- internalType: "uint256",
1061
- name: "reserveOut",
1062
- type: "uint256",
1063
- },
1064
- ],
1065
- name: "getAmountOut",
1066
- outputs: [
1067
- {
1068
- internalType: "uint256",
1069
- name: "amountOut",
1070
- type: "uint256",
1071
- },
1072
- ],
1073
- stateMutability: "pure",
1074
- type: "function",
1075
- },
1076
- {
1077
- inputs: [
1078
- {
1079
- internalType: "uint256",
1080
- name: "amountOut",
1081
- type: "uint256",
1082
- },
1083
- {
1084
- internalType: "address[]",
1085
- name: "path",
1086
- type: "address[]",
1087
- },
1088
- ],
1089
- name: "getAmountsIn",
1090
- outputs: [
1091
- {
1092
- internalType: "uint256[]",
1093
- name: "amounts",
1094
- type: "uint256[]",
1095
- },
1096
- ],
1097
- stateMutability: "view",
1098
- type: "function",
1099
- },
1100
- {
1101
- inputs: [
1102
- {
1103
- internalType: "uint256",
1104
- name: "amountIn",
1105
- type: "uint256",
1106
- },
1107
- {
1108
- internalType: "address[]",
1109
- name: "path",
1110
- type: "address[]",
1111
- },
1112
- ],
1113
- name: "getAmountsOut",
1114
- outputs: [
1115
- {
1116
- internalType: "uint256[]",
1117
- name: "amounts",
1118
- type: "uint256[]",
1119
- },
1120
- ],
1121
- stateMutability: "view",
1122
- type: "function",
1123
- },
1124
- {
1125
- inputs: [],
1126
- name: "mpc",
1127
- outputs: [
1128
- {
1129
- internalType: "address",
1130
- name: "",
1131
- type: "address",
1132
- },
1133
- ],
1134
- stateMutability: "view",
1135
- type: "function",
1136
- },
1137
- {
1138
- inputs: [
1139
- {
1140
- internalType: "uint256",
1141
- name: "amountA",
1142
- type: "uint256",
1143
- },
1144
- {
1145
- internalType: "uint256",
1146
- name: "reserveA",
1147
- type: "uint256",
1148
- },
1149
- {
1150
- internalType: "uint256",
1151
- name: "reserveB",
1152
- type: "uint256",
1153
- },
1154
- ],
1155
- name: "quote",
1156
- outputs: [
1157
- {
1158
- internalType: "uint256",
1159
- name: "amountB",
1160
- type: "uint256",
1161
- },
1162
- ],
1163
- stateMutability: "pure",
1164
- type: "function",
1165
- },
1166
- {
1167
- inputs: [
1168
- {
1169
- internalType: "address",
1170
- name: "token",
1171
- type: "address",
1172
- },
1173
- {
1174
- internalType: "address",
1175
- name: "_auth",
1176
- type: "address",
1177
- },
1178
- ],
1179
- name: "revokeMinter",
1180
- outputs: [],
1181
- stateMutability: "nonpayable",
1182
- type: "function",
1183
- },
1184
- {
1185
- inputs: [
1186
- {
1187
- internalType: "bool",
1188
- name: "enable",
1189
- type: "bool",
1190
- },
1191
- ],
1192
- name: "setEnableSwapTrade",
1193
- outputs: [],
1194
- stateMutability: "nonpayable",
1195
- type: "function",
1196
- },
1197
- {
1198
- inputs: [
1199
- {
1200
- internalType: "address",
1201
- name: "token",
1202
- type: "address",
1203
- },
1204
- {
1205
- internalType: "address",
1206
- name: "_auth",
1207
- type: "address",
1208
- },
1209
- ],
1210
- name: "setMinter",
1211
- outputs: [],
1212
- stateMutability: "nonpayable",
1213
- type: "function",
1214
- },
1215
- {
1216
- inputs: [],
1217
- name: "wNATIVE",
1218
- outputs: [
1219
- {
1220
- internalType: "address",
1221
- name: "",
1222
- type: "address",
1223
- },
1224
- ],
1225
- stateMutability: "view",
1226
- type: "function",
1227
- },
1228
- {
1229
- inputs: [
1230
- {
1231
- internalType: "address",
1232
- name: "token",
1233
- type: "address",
1234
- },
1235
- {
1236
- internalType: "uint256",
1237
- name: "amount",
1238
- type: "uint256",
1239
- },
1240
- {
1241
- internalType: "address",
1242
- name: "to",
1243
- type: "address",
1244
- },
1245
- ],
1246
- name: "withdrawNative",
1247
- outputs: [
1248
- {
1249
- internalType: "uint256",
1250
- name: "",
1251
- type: "uint256",
1252
- },
1253
- ],
1254
- stateMutability: "nonpayable",
1255
- type: "function",
1256
- },
1257
- {
1258
- stateMutability: "payable",
1259
- type: "receive",
1260
- },
1261
- ];
1262
- class AnyswapRouter__factory {
1263
- static abi = _abi;
1264
- static createInterface() {
1265
- return new ethers_1.utils.Interface(_abi);
1266
- }
1267
- static connect(address, signerOrProvider) {
1268
- return new ethers_1.Contract(address, _abi, signerOrProvider);
1269
- }
1270
- }
1271
- exports.AnyswapRouter__factory = AnyswapRouter__factory;
1272
- //# sourceMappingURL=AnyswapRouter__factory.js.map