@ape.swap/bonds-sdk 1.0.553 → 1.0.554

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 (29) hide show
  1. package/package.json +1 -1
  2. package/dist/config/abi/bondNft.json +0 -424
  3. package/dist/config/abi/ens-public-resolver.json +0 -816
  4. package/dist/config/abi/ens-registrar.json +0 -422
  5. package/dist/config/abi/erc20_bytes32.json +0 -30
  6. package/dist/config/abi/jungleChef.json +0 -291
  7. package/dist/config/abi/launchBonds.json +0 -2014
  8. package/dist/config/abi/lockVeAbond.json +0 -2198
  9. package/dist/config/abi/migrationBond.json +0 -1639
  10. package/dist/config/abi/migrationFveAbond.json +0 -160
  11. package/dist/config/abi/multicallv3.json +0 -92
  12. package/dist/config/abi/price-getter-linea.json +0 -1448
  13. package/dist/config/abi/price-getter.json +0 -1309
  14. package/dist/config/abi/sousChef.json +0 -649
  15. package/dist/config/abi/weth.json +0 -279
  16. package/dist/hooks/PriceGetter/dexFactories.d.ts +0 -11
  17. package/dist/hooks/PriceGetter/dexFactories.js +0 -2
  18. package/dist/hooks/PriceGetter/usePricesFromPriceGetter.d.ts +0 -17
  19. package/dist/hooks/PriceGetter/usePricesFromPriceGetter.js +0 -205
  20. package/dist/hooks/useClaimBill.d.ts +0 -4
  21. package/dist/hooks/useClaimBill.js +0 -59
  22. package/dist/hooks/useContract.d.ts +0 -25
  23. package/dist/hooks/useContract.js +0 -107
  24. package/dist/state/tokenPrices/fetchTokenPricesForMultipleChains.d.ts +0 -4
  25. package/dist/state/tokenPrices/fetchTokenPricesForMultipleChains.js +0 -81
  26. package/dist/state/tokenPrices/getAllTokenPrices.d.ts +0 -5
  27. package/dist/state/tokenPrices/getAllTokenPrices.js +0 -288
  28. package/dist/state/tokenPrices/useTokenPricesNew.d.ts +0 -11
  29. package/dist/state/tokenPrices/useTokenPricesNew.js +0 -72
@@ -1,1448 +0,0 @@
1
- [
2
- {
3
- "inputs": [],
4
- "name": "T",
5
- "type": "error"
6
- },
7
- {
8
- "anonymous": false,
9
- "inputs": [
10
- {
11
- "indexed": false,
12
- "internalType": "uint8",
13
- "name": "version",
14
- "type": "uint8"
15
- }
16
- ],
17
- "name": "Initialized",
18
- "type": "event"
19
- },
20
- {
21
- "anonymous": false,
22
- "inputs": [
23
- {
24
- "indexed": true,
25
- "internalType": "address",
26
- "name": "previousOwner",
27
- "type": "address"
28
- },
29
- {
30
- "indexed": true,
31
- "internalType": "address",
32
- "name": "newOwner",
33
- "type": "address"
34
- }
35
- ],
36
- "name": "OwnershipTransferred",
37
- "type": "event"
38
- },
39
- {
40
- "inputs": [],
41
- "name": "DECIMALS",
42
- "outputs": [
43
- {
44
- "internalType": "uint256",
45
- "name": "",
46
- "type": "uint256"
47
- }
48
- ],
49
- "stateMutability": "pure",
50
- "type": "function"
51
- },
52
- {
53
- "inputs": [],
54
- "name": "FACTORY",
55
- "outputs": [
56
- {
57
- "internalType": "address",
58
- "name": "",
59
- "type": "address"
60
- }
61
- ],
62
- "stateMutability": "pure",
63
- "type": "function"
64
- },
65
- {
66
- "inputs": [],
67
- "name": "INITCODEHASH",
68
- "outputs": [
69
- {
70
- "internalType": "bytes32",
71
- "name": "",
72
- "type": "bytes32"
73
- }
74
- ],
75
- "stateMutability": "pure",
76
- "type": "function"
77
- },
78
- {
79
- "inputs": [],
80
- "name": "defaultFactoryAlgebra",
81
- "outputs": [
82
- {
83
- "internalType": "contract IAlgebraFactory",
84
- "name": "",
85
- "type": "address"
86
- }
87
- ],
88
- "stateMutability": "view",
89
- "type": "function"
90
- },
91
- {
92
- "inputs": [],
93
- "name": "defaultFactorySolidly",
94
- "outputs": [
95
- {
96
- "internalType": "contract ISolidlyFactory",
97
- "name": "",
98
- "type": "address"
99
- }
100
- ],
101
- "stateMutability": "view",
102
- "type": "function"
103
- },
104
- {
105
- "inputs": [],
106
- "name": "defaultFactoryV2",
107
- "outputs": [
108
- {
109
- "internalType": "contract IApeFactory",
110
- "name": "",
111
- "type": "address"
112
- }
113
- ],
114
- "stateMutability": "view",
115
- "type": "function"
116
- },
117
- {
118
- "inputs": [],
119
- "name": "defaultFactoryV3",
120
- "outputs": [
121
- {
122
- "internalType": "contract IUniswapV3Factory",
123
- "name": "",
124
- "type": "address"
125
- }
126
- ],
127
- "stateMutability": "view",
128
- "type": "function"
129
- },
130
- {
131
- "inputs": [],
132
- "name": "defaultFactoryXFAI",
133
- "outputs": [
134
- {
135
- "internalType": "contract IXFAIFactory",
136
- "name": "",
137
- "type": "address"
138
- }
139
- ],
140
- "stateMutability": "view",
141
- "type": "function"
142
- },
143
- {
144
- "inputs": [
145
- {
146
- "internalType": "uint32",
147
- "name": "secondsAgo",
148
- "type": "uint32"
149
- }
150
- ],
151
- "name": "getETHPrice",
152
- "outputs": [
153
- {
154
- "internalType": "uint256",
155
- "name": "",
156
- "type": "uint256"
157
- }
158
- ],
159
- "stateMutability": "view",
160
- "type": "function"
161
- },
162
- {
163
- "inputs": [],
164
- "name": "getETHPrice",
165
- "outputs": [
166
- {
167
- "internalType": "uint256",
168
- "name": "",
169
- "type": "uint256"
170
- }
171
- ],
172
- "stateMutability": "view",
173
- "type": "function"
174
- },
175
- {
176
- "inputs": [
177
- {
178
- "internalType": "address",
179
- "name": "token",
180
- "type": "address"
181
- },
182
- {
183
- "internalType": "uint256",
184
- "name": "_decimals",
185
- "type": "uint256"
186
- }
187
- ],
188
- "name": "getLPPrice",
189
- "outputs": [
190
- {
191
- "internalType": "uint256",
192
- "name": "",
193
- "type": "uint256"
194
- }
195
- ],
196
- "stateMutability": "view",
197
- "type": "function"
198
- },
199
- {
200
- "inputs": [
201
- {
202
- "internalType": "address",
203
- "name": "token0",
204
- "type": "address"
205
- },
206
- {
207
- "internalType": "address",
208
- "name": "token1",
209
- "type": "address"
210
- }
211
- ],
212
- "name": "getLPPriceAlgebra",
213
- "outputs": [
214
- {
215
- "internalType": "uint256",
216
- "name": "price",
217
- "type": "uint256"
218
- }
219
- ],
220
- "stateMutability": "view",
221
- "type": "function"
222
- },
223
- {
224
- "inputs": [
225
- {
226
- "internalType": "contract IAlgebraFactory",
227
- "name": "factoryAlgebra",
228
- "type": "address"
229
- },
230
- {
231
- "internalType": "address",
232
- "name": "token0",
233
- "type": "address"
234
- },
235
- {
236
- "internalType": "address",
237
- "name": "token1",
238
- "type": "address"
239
- }
240
- ],
241
- "name": "getLPPriceAlgebraFromFactory",
242
- "outputs": [
243
- {
244
- "internalType": "uint256",
245
- "name": "price",
246
- "type": "uint256"
247
- }
248
- ],
249
- "stateMutability": "view",
250
- "type": "function"
251
- },
252
- {
253
- "inputs": [
254
- {
255
- "internalType": "address",
256
- "name": "token",
257
- "type": "address"
258
- },
259
- {
260
- "internalType": "enum IPriceGetterV2.Protocol",
261
- "name": "protocol",
262
- "type": "uint8"
263
- },
264
- {
265
- "internalType": "contract IApeFactory",
266
- "name": "factoryV2",
267
- "type": "address"
268
- },
269
- {
270
- "internalType": "contract IUniswapV3Factory",
271
- "name": "factoryV3",
272
- "type": "address"
273
- },
274
- {
275
- "internalType": "contract IAlgebraFactory",
276
- "name": "factoryAlgebra",
277
- "type": "address"
278
- },
279
- {
280
- "internalType": "contract ISolidlyFactory",
281
- "name": "factorySolidly",
282
- "type": "address"
283
- }
284
- ],
285
- "name": "getLPPriceFromFactory",
286
- "outputs": [
287
- {
288
- "internalType": "uint256",
289
- "name": "price",
290
- "type": "uint256"
291
- }
292
- ],
293
- "stateMutability": "view",
294
- "type": "function"
295
- },
296
- {
297
- "inputs": [
298
- {
299
- "internalType": "contract Hypervisor",
300
- "name": "lp",
301
- "type": "address"
302
- }
303
- ],
304
- "name": "getLPPriceGamma",
305
- "outputs": [
306
- {
307
- "internalType": "uint256",
308
- "name": "price",
309
- "type": "uint256"
310
- }
311
- ],
312
- "stateMutability": "view",
313
- "type": "function"
314
- },
315
- {
316
- "inputs": [
317
- {
318
- "internalType": "contract IAlgebraFactory",
319
- "name": "factory",
320
- "type": "address"
321
- },
322
- {
323
- "internalType": "contract IApeFactory",
324
- "name": "factoryV2",
325
- "type": "address"
326
- },
327
- {
328
- "internalType": "contract Hypervisor",
329
- "name": "lp",
330
- "type": "address"
331
- }
332
- ],
333
- "name": "getLPPriceGammaFromFactory",
334
- "outputs": [
335
- {
336
- "internalType": "uint256",
337
- "name": "price",
338
- "type": "uint256"
339
- }
340
- ],
341
- "stateMutability": "view",
342
- "type": "function"
343
- },
344
- {
345
- "inputs": [
346
- {
347
- "internalType": "address",
348
- "name": "lp",
349
- "type": "address"
350
- }
351
- ],
352
- "name": "getLPPriceSolidly",
353
- "outputs": [
354
- {
355
- "internalType": "uint256",
356
- "name": "price",
357
- "type": "uint256"
358
- }
359
- ],
360
- "stateMutability": "view",
361
- "type": "function"
362
- },
363
- {
364
- "inputs": [
365
- {
366
- "internalType": "contract ISolidlyFactory",
367
- "name": "factorySolidly",
368
- "type": "address"
369
- },
370
- {
371
- "internalType": "address",
372
- "name": "lp",
373
- "type": "address"
374
- }
375
- ],
376
- "name": "getLPPriceSolidlyFromFactory",
377
- "outputs": [
378
- {
379
- "internalType": "uint256",
380
- "name": "price",
381
- "type": "uint256"
382
- }
383
- ],
384
- "stateMutability": "view",
385
- "type": "function"
386
- },
387
- {
388
- "inputs": [
389
- {
390
- "internalType": "address",
391
- "name": "lp",
392
- "type": "address"
393
- }
394
- ],
395
- "name": "getLPPriceV2",
396
- "outputs": [
397
- {
398
- "internalType": "uint256",
399
- "name": "price",
400
- "type": "uint256"
401
- }
402
- ],
403
- "stateMutability": "view",
404
- "type": "function"
405
- },
406
- {
407
- "inputs": [
408
- {
409
- "internalType": "contract IApeFactory",
410
- "name": "factoryV2",
411
- "type": "address"
412
- },
413
- {
414
- "internalType": "address",
415
- "name": "lp",
416
- "type": "address"
417
- }
418
- ],
419
- "name": "getLPPriceV2FromFactory",
420
- "outputs": [
421
- {
422
- "internalType": "uint256",
423
- "name": "price",
424
- "type": "uint256"
425
- }
426
- ],
427
- "stateMutability": "view",
428
- "type": "function"
429
- },
430
- {
431
- "inputs": [
432
- {
433
- "internalType": "address",
434
- "name": "token0",
435
- "type": "address"
436
- },
437
- {
438
- "internalType": "address",
439
- "name": "token1",
440
- "type": "address"
441
- },
442
- {
443
- "internalType": "uint24",
444
- "name": "fee",
445
- "type": "uint24"
446
- }
447
- ],
448
- "name": "getLPPriceV3",
449
- "outputs": [
450
- {
451
- "internalType": "uint256",
452
- "name": "price",
453
- "type": "uint256"
454
- }
455
- ],
456
- "stateMutability": "view",
457
- "type": "function"
458
- },
459
- {
460
- "inputs": [
461
- {
462
- "internalType": "address",
463
- "name": "factoryV3",
464
- "type": "address"
465
- },
466
- {
467
- "internalType": "address",
468
- "name": "token0",
469
- "type": "address"
470
- },
471
- {
472
- "internalType": "address",
473
- "name": "token1",
474
- "type": "address"
475
- },
476
- {
477
- "internalType": "uint24",
478
- "name": "fee",
479
- "type": "uint24"
480
- }
481
- ],
482
- "name": "getLPPriceV3FromFactory",
483
- "outputs": [
484
- {
485
- "internalType": "uint256",
486
- "name": "price",
487
- "type": "uint256"
488
- }
489
- ],
490
- "stateMutability": "view",
491
- "type": "function"
492
- },
493
- {
494
- "inputs": [
495
- {
496
- "internalType": "address",
497
- "name": "lp",
498
- "type": "address"
499
- }
500
- ],
501
- "name": "getLPPriceXFAI",
502
- "outputs": [
503
- {
504
- "internalType": "uint256",
505
- "name": "price",
506
- "type": "uint256"
507
- }
508
- ],
509
- "stateMutability": "view",
510
- "type": "function"
511
- },
512
- {
513
- "inputs": [
514
- {
515
- "internalType": "contract IXFAIFactory",
516
- "name": "factoryXFAI",
517
- "type": "address"
518
- },
519
- {
520
- "internalType": "address",
521
- "name": "lp",
522
- "type": "address"
523
- }
524
- ],
525
- "name": "getLPPriceXFAIFromFactory",
526
- "outputs": [
527
- {
528
- "internalType": "uint256",
529
- "name": "price",
530
- "type": "uint256"
531
- }
532
- ],
533
- "stateMutability": "view",
534
- "type": "function"
535
- },
536
- {
537
- "inputs": [
538
- {
539
- "internalType": "address[]",
540
- "name": "tokens",
541
- "type": "address[]"
542
- },
543
- {
544
- "internalType": "uint256",
545
- "name": "_decimals",
546
- "type": "uint256"
547
- }
548
- ],
549
- "name": "getLPPrices",
550
- "outputs": [
551
- {
552
- "internalType": "uint256[]",
553
- "name": "prices",
554
- "type": "uint256[]"
555
- }
556
- ],
557
- "stateMutability": "view",
558
- "type": "function"
559
- },
560
- {
561
- "inputs": [
562
- {
563
- "internalType": "address[]",
564
- "name": "tokens",
565
- "type": "address[]"
566
- }
567
- ],
568
- "name": "getLPPricesV2",
569
- "outputs": [
570
- {
571
- "internalType": "uint256[]",
572
- "name": "prices",
573
- "type": "uint256[]"
574
- }
575
- ],
576
- "stateMutability": "view",
577
- "type": "function"
578
- },
579
- {
580
- "inputs": [
581
- {
582
- "internalType": "contract IApeFactory",
583
- "name": "factoryV2",
584
- "type": "address"
585
- },
586
- {
587
- "internalType": "address[]",
588
- "name": "tokens",
589
- "type": "address[]"
590
- }
591
- ],
592
- "name": "getLPPricesV2FromFactory",
593
- "outputs": [
594
- {
595
- "internalType": "uint256[]",
596
- "name": "prices",
597
- "type": "uint256[]"
598
- }
599
- ],
600
- "stateMutability": "view",
601
- "type": "function"
602
- },
603
- {
604
- "inputs": [
605
- {
606
- "internalType": "address[]",
607
- "name": "tokens0",
608
- "type": "address[]"
609
- },
610
- {
611
- "internalType": "address[]",
612
- "name": "tokens1",
613
- "type": "address[]"
614
- },
615
- {
616
- "internalType": "uint24[]",
617
- "name": "fees",
618
- "type": "uint24[]"
619
- }
620
- ],
621
- "name": "getLPPricesV3",
622
- "outputs": [
623
- {
624
- "internalType": "uint256[]",
625
- "name": "prices",
626
- "type": "uint256[]"
627
- }
628
- ],
629
- "stateMutability": "view",
630
- "type": "function"
631
- },
632
- {
633
- "inputs": [
634
- {
635
- "internalType": "contract IUniswapV3Factory",
636
- "name": "factoryV3",
637
- "type": "address"
638
- },
639
- {
640
- "internalType": "address[]",
641
- "name": "tokens0",
642
- "type": "address[]"
643
- },
644
- {
645
- "internalType": "address[]",
646
- "name": "tokens1",
647
- "type": "address[]"
648
- },
649
- {
650
- "internalType": "uint24[]",
651
- "name": "fees",
652
- "type": "uint24[]"
653
- }
654
- ],
655
- "name": "getLPPricesV3FromFactory",
656
- "outputs": [
657
- {
658
- "internalType": "uint256[]",
659
- "name": "prices",
660
- "type": "uint256[]"
661
- }
662
- ],
663
- "stateMutability": "view",
664
- "type": "function"
665
- },
666
- {
667
- "inputs": [],
668
- "name": "getNativePrice",
669
- "outputs": [
670
- {
671
- "internalType": "uint256",
672
- "name": "",
673
- "type": "uint256"
674
- }
675
- ],
676
- "stateMutability": "view",
677
- "type": "function"
678
- },
679
- {
680
- "inputs": [
681
- {
682
- "internalType": "enum IPriceGetterV2.Protocol",
683
- "name": "protocol",
684
- "type": "uint8"
685
- }
686
- ],
687
- "name": "getNativePrice",
688
- "outputs": [
689
- {
690
- "internalType": "uint256",
691
- "name": "nativePrice",
692
- "type": "uint256"
693
- }
694
- ],
695
- "stateMutability": "view",
696
- "type": "function"
697
- },
698
- {
699
- "inputs": [
700
- {
701
- "internalType": "enum IPriceGetterV2.Protocol",
702
- "name": "protocol",
703
- "type": "uint8"
704
- },
705
- {
706
- "internalType": "contract IApeFactory",
707
- "name": "factoryV2",
708
- "type": "address"
709
- },
710
- {
711
- "internalType": "contract IUniswapV3Factory",
712
- "name": "factoryV3",
713
- "type": "address"
714
- },
715
- {
716
- "internalType": "contract ISolidlyFactory",
717
- "name": "factorySolidly",
718
- "type": "address"
719
- }
720
- ],
721
- "name": "getNativePriceFromFactory",
722
- "outputs": [
723
- {
724
- "internalType": "uint256",
725
- "name": "nativePrice",
726
- "type": "uint256"
727
- }
728
- ],
729
- "stateMutability": "view",
730
- "type": "function"
731
- },
732
- {
733
- "inputs": [
734
- {
735
- "internalType": "address",
736
- "name": "token",
737
- "type": "address"
738
- },
739
- {
740
- "internalType": "uint32",
741
- "name": "secondsAgo",
742
- "type": "uint32"
743
- }
744
- ],
745
- "name": "getPrice",
746
- "outputs": [
747
- {
748
- "internalType": "uint256",
749
- "name": "",
750
- "type": "uint256"
751
- }
752
- ],
753
- "stateMutability": "view",
754
- "type": "function"
755
- },
756
- {
757
- "inputs": [
758
- {
759
- "internalType": "address",
760
- "name": "token",
761
- "type": "address"
762
- },
763
- {
764
- "internalType": "enum IPriceGetterV2.Protocol",
765
- "name": "protocol",
766
- "type": "uint8"
767
- }
768
- ],
769
- "name": "getPrice",
770
- "outputs": [
771
- {
772
- "internalType": "uint256",
773
- "name": "price",
774
- "type": "uint256"
775
- }
776
- ],
777
- "stateMutability": "view",
778
- "type": "function"
779
- },
780
- {
781
- "inputs": [
782
- {
783
- "internalType": "address",
784
- "name": "token",
785
- "type": "address"
786
- },
787
- {
788
- "internalType": "uint256",
789
- "name": "_decimals",
790
- "type": "uint256"
791
- }
792
- ],
793
- "name": "getPrice",
794
- "outputs": [
795
- {
796
- "internalType": "uint256",
797
- "name": "",
798
- "type": "uint256"
799
- }
800
- ],
801
- "stateMutability": "view",
802
- "type": "function"
803
- },
804
- {
805
- "inputs": [
806
- {
807
- "internalType": "address",
808
- "name": "token",
809
- "type": "address"
810
- }
811
- ],
812
- "name": "getPriceAlgebra",
813
- "outputs": [
814
- {
815
- "internalType": "uint256",
816
- "name": "price",
817
- "type": "uint256"
818
- }
819
- ],
820
- "stateMutability": "view",
821
- "type": "function"
822
- },
823
- {
824
- "inputs": [
825
- {
826
- "internalType": "contract IAlgebraFactory",
827
- "name": "factoryAlgebra",
828
- "type": "address"
829
- },
830
- {
831
- "internalType": "address",
832
- "name": "token",
833
- "type": "address"
834
- }
835
- ],
836
- "name": "getPriceAlgebraFromFactory",
837
- "outputs": [
838
- {
839
- "internalType": "uint256",
840
- "name": "price",
841
- "type": "uint256"
842
- }
843
- ],
844
- "stateMutability": "view",
845
- "type": "function"
846
- },
847
- {
848
- "inputs": [
849
- {
850
- "internalType": "address",
851
- "name": "token",
852
- "type": "address"
853
- },
854
- {
855
- "internalType": "enum IPriceGetterV2.Protocol",
856
- "name": "protocol",
857
- "type": "uint8"
858
- },
859
- {
860
- "internalType": "contract IApeFactory",
861
- "name": "factoryV2",
862
- "type": "address"
863
- },
864
- {
865
- "internalType": "contract IUniswapV3Factory",
866
- "name": "factoryV3",
867
- "type": "address"
868
- },
869
- {
870
- "internalType": "contract IAlgebraFactory",
871
- "name": "factoryAlgebra",
872
- "type": "address"
873
- },
874
- {
875
- "internalType": "contract ISolidlyFactory",
876
- "name": "factorySolidly",
877
- "type": "address"
878
- },
879
- {
880
- "internalType": "contract IXFAIFactory",
881
- "name": "factoryXFAI",
882
- "type": "address"
883
- }
884
- ],
885
- "name": "getPriceFromFactory",
886
- "outputs": [
887
- {
888
- "internalType": "uint256",
889
- "name": "price",
890
- "type": "uint256"
891
- }
892
- ],
893
- "stateMutability": "view",
894
- "type": "function"
895
- },
896
- {
897
- "inputs": [
898
- {
899
- "internalType": "address",
900
- "name": "token",
901
- "type": "address"
902
- }
903
- ],
904
- "name": "getPriceV2",
905
- "outputs": [
906
- {
907
- "internalType": "uint256",
908
- "name": "price",
909
- "type": "uint256"
910
- }
911
- ],
912
- "stateMutability": "view",
913
- "type": "function"
914
- },
915
- {
916
- "inputs": [
917
- {
918
- "internalType": "contract IApeFactory",
919
- "name": "factoryV2",
920
- "type": "address"
921
- },
922
- {
923
- "internalType": "address",
924
- "name": "token",
925
- "type": "address"
926
- }
927
- ],
928
- "name": "getPriceV2FromFactory",
929
- "outputs": [
930
- {
931
- "internalType": "uint256",
932
- "name": "price",
933
- "type": "uint256"
934
- }
935
- ],
936
- "stateMutability": "view",
937
- "type": "function"
938
- },
939
- {
940
- "inputs": [
941
- {
942
- "internalType": "address",
943
- "name": "token",
944
- "type": "address"
945
- }
946
- ],
947
- "name": "getPriceV3",
948
- "outputs": [
949
- {
950
- "internalType": "uint256",
951
- "name": "price",
952
- "type": "uint256"
953
- }
954
- ],
955
- "stateMutability": "view",
956
- "type": "function"
957
- },
958
- {
959
- "inputs": [
960
- {
961
- "internalType": "contract IUniswapV3Factory",
962
- "name": "factoryV3",
963
- "type": "address"
964
- },
965
- {
966
- "internalType": "address",
967
- "name": "token",
968
- "type": "address"
969
- }
970
- ],
971
- "name": "getPriceV3FromFactory",
972
- "outputs": [
973
- {
974
- "internalType": "uint256",
975
- "name": "price",
976
- "type": "uint256"
977
- }
978
- ],
979
- "stateMutability": "view",
980
- "type": "function"
981
- },
982
- {
983
- "inputs": [
984
- {
985
- "internalType": "address",
986
- "name": "token",
987
- "type": "address"
988
- }
989
- ],
990
- "name": "getPriceXFAI",
991
- "outputs": [
992
- {
993
- "internalType": "uint256",
994
- "name": "price",
995
- "type": "uint256"
996
- }
997
- ],
998
- "stateMutability": "view",
999
- "type": "function"
1000
- },
1001
- {
1002
- "inputs": [
1003
- {
1004
- "internalType": "contract IXFAIFactory",
1005
- "name": "factoryXFAI",
1006
- "type": "address"
1007
- },
1008
- {
1009
- "internalType": "address",
1010
- "name": "token",
1011
- "type": "address"
1012
- }
1013
- ],
1014
- "name": "getPriceXFAIFromFactory",
1015
- "outputs": [
1016
- {
1017
- "internalType": "uint256",
1018
- "name": "price",
1019
- "type": "uint256"
1020
- }
1021
- ],
1022
- "stateMutability": "view",
1023
- "type": "function"
1024
- },
1025
- {
1026
- "inputs": [
1027
- {
1028
- "internalType": "address[]",
1029
- "name": "tokens",
1030
- "type": "address[]"
1031
- },
1032
- {
1033
- "internalType": "enum IPriceGetterV2.Protocol",
1034
- "name": "protocol",
1035
- "type": "uint8"
1036
- }
1037
- ],
1038
- "name": "getPrices",
1039
- "outputs": [
1040
- {
1041
- "internalType": "uint256[]",
1042
- "name": "prices",
1043
- "type": "uint256[]"
1044
- }
1045
- ],
1046
- "stateMutability": "view",
1047
- "type": "function"
1048
- },
1049
- {
1050
- "inputs": [
1051
- {
1052
- "internalType": "address[]",
1053
- "name": "tokens",
1054
- "type": "address[]"
1055
- },
1056
- {
1057
- "internalType": "uint256",
1058
- "name": "_decimals",
1059
- "type": "uint256"
1060
- }
1061
- ],
1062
- "name": "getPrices",
1063
- "outputs": [
1064
- {
1065
- "internalType": "uint256[]",
1066
- "name": "prices",
1067
- "type": "uint256[]"
1068
- }
1069
- ],
1070
- "stateMutability": "view",
1071
- "type": "function"
1072
- },
1073
- {
1074
- "inputs": [
1075
- {
1076
- "internalType": "address[]",
1077
- "name": "tokens",
1078
- "type": "address[]"
1079
- },
1080
- {
1081
- "internalType": "uint32",
1082
- "name": "secondsAgo",
1083
- "type": "uint32"
1084
- }
1085
- ],
1086
- "name": "getPrices",
1087
- "outputs": [
1088
- {
1089
- "internalType": "uint256[]",
1090
- "name": "prices",
1091
- "type": "uint256[]"
1092
- }
1093
- ],
1094
- "stateMutability": "view",
1095
- "type": "function"
1096
- },
1097
- {
1098
- "inputs": [
1099
- {
1100
- "internalType": "address[]",
1101
- "name": "tokens",
1102
- "type": "address[]"
1103
- },
1104
- {
1105
- "internalType": "enum IPriceGetterV2.Protocol",
1106
- "name": "protocol",
1107
- "type": "uint8"
1108
- },
1109
- {
1110
- "internalType": "contract IApeFactory",
1111
- "name": "factoryV2",
1112
- "type": "address"
1113
- },
1114
- {
1115
- "internalType": "contract IUniswapV3Factory",
1116
- "name": "factoryV3",
1117
- "type": "address"
1118
- },
1119
- {
1120
- "internalType": "contract IAlgebraFactory",
1121
- "name": "factoryAlgebra",
1122
- "type": "address"
1123
- },
1124
- {
1125
- "internalType": "contract ISolidlyFactory",
1126
- "name": "factorySolidly",
1127
- "type": "address"
1128
- },
1129
- {
1130
- "internalType": "contract IXFAIFactory",
1131
- "name": "factoryXFAI",
1132
- "type": "address"
1133
- }
1134
- ],
1135
- "name": "getPricesFromFactory",
1136
- "outputs": [
1137
- {
1138
- "internalType": "uint256[]",
1139
- "name": "prices",
1140
- "type": "uint256[]"
1141
- }
1142
- ],
1143
- "stateMutability": "view",
1144
- "type": "function"
1145
- },
1146
- {
1147
- "inputs": [
1148
- {
1149
- "internalType": "address",
1150
- "name": "token",
1151
- "type": "address"
1152
- }
1153
- ],
1154
- "name": "getRawPrice",
1155
- "outputs": [
1156
- {
1157
- "internalType": "uint256",
1158
- "name": "",
1159
- "type": "uint256"
1160
- }
1161
- ],
1162
- "stateMutability": "view",
1163
- "type": "function"
1164
- },
1165
- {
1166
- "inputs": [
1167
- {
1168
- "internalType": "address[]",
1169
- "name": "tokens",
1170
- "type": "address[]"
1171
- }
1172
- ],
1173
- "name": "getRawPrices",
1174
- "outputs": [
1175
- {
1176
- "internalType": "uint256[]",
1177
- "name": "prices",
1178
- "type": "uint256[]"
1179
- }
1180
- ],
1181
- "stateMutability": "view",
1182
- "type": "function"
1183
- },
1184
- {
1185
- "inputs": [
1186
- {
1187
- "internalType": "address",
1188
- "name": "_wNative",
1189
- "type": "address"
1190
- },
1191
- {
1192
- "internalType": "uint256",
1193
- "name": "_nativeLiquidityThreshold",
1194
- "type": "uint256"
1195
- },
1196
- {
1197
- "internalType": "contract IApeFactory",
1198
- "name": "_defaultFactoryV2",
1199
- "type": "address"
1200
- },
1201
- {
1202
- "internalType": "contract IUniswapV3Factory",
1203
- "name": "_defaultFactoryV3",
1204
- "type": "address"
1205
- },
1206
- {
1207
- "internalType": "contract IAlgebraFactory",
1208
- "name": "_defaultFactoryAlgebra",
1209
- "type": "address"
1210
- },
1211
- {
1212
- "internalType": "contract ISolidlyFactory",
1213
- "name": "_defaultFactorySolidly",
1214
- "type": "address"
1215
- },
1216
- {
1217
- "internalType": "contract IXFAIFactory",
1218
- "name": "_defaultFactoryXFAI",
1219
- "type": "address"
1220
- },
1221
- {
1222
- "internalType": "address[]",
1223
- "name": "_stableUsdTokens",
1224
- "type": "address[]"
1225
- },
1226
- {
1227
- "internalType": "address[]",
1228
- "name": "_oracleTokens",
1229
- "type": "address[]"
1230
- },
1231
- {
1232
- "internalType": "address[]",
1233
- "name": "_oracles",
1234
- "type": "address[]"
1235
- }
1236
- ],
1237
- "name": "initialize",
1238
- "outputs": [],
1239
- "stateMutability": "nonpayable",
1240
- "type": "function"
1241
- },
1242
- {
1243
- "inputs": [],
1244
- "name": "nativeLiquidityThreshold",
1245
- "outputs": [
1246
- {
1247
- "internalType": "uint256",
1248
- "name": "",
1249
- "type": "uint256"
1250
- }
1251
- ],
1252
- "stateMutability": "view",
1253
- "type": "function"
1254
- },
1255
- {
1256
- "inputs": [],
1257
- "name": "owner",
1258
- "outputs": [
1259
- {
1260
- "internalType": "address",
1261
- "name": "",
1262
- "type": "address"
1263
- }
1264
- ],
1265
- "stateMutability": "view",
1266
- "type": "function"
1267
- },
1268
- {
1269
- "inputs": [
1270
- {
1271
- "internalType": "address",
1272
- "name": "token",
1273
- "type": "address"
1274
- }
1275
- ],
1276
- "name": "removeTokenOracle",
1277
- "outputs": [],
1278
- "stateMutability": "nonpayable",
1279
- "type": "function"
1280
- },
1281
- {
1282
- "inputs": [],
1283
- "name": "renounceOwnership",
1284
- "outputs": [],
1285
- "stateMutability": "nonpayable",
1286
- "type": "function"
1287
- },
1288
- {
1289
- "inputs": [],
1290
- "name": "secondsAgo",
1291
- "outputs": [
1292
- {
1293
- "internalType": "uint24",
1294
- "name": "",
1295
- "type": "uint24"
1296
- }
1297
- ],
1298
- "stateMutability": "view",
1299
- "type": "function"
1300
- },
1301
- {
1302
- "inputs": [
1303
- {
1304
- "internalType": "enum IPriceGetterV2.Protocol",
1305
- "name": "_protocol",
1306
- "type": "uint8"
1307
- },
1308
- {
1309
- "internalType": "address",
1310
- "name": "_factory",
1311
- "type": "address"
1312
- }
1313
- ],
1314
- "name": "setDefaultFactory",
1315
- "outputs": [],
1316
- "stateMutability": "nonpayable",
1317
- "type": "function"
1318
- },
1319
- {
1320
- "inputs": [
1321
- {
1322
- "internalType": "uint256",
1323
- "name": "_nativeLiquidityThreshold",
1324
- "type": "uint256"
1325
- }
1326
- ],
1327
- "name": "setNativeLiquidityThreshold",
1328
- "outputs": [],
1329
- "stateMutability": "nonpayable",
1330
- "type": "function"
1331
- },
1332
- {
1333
- "inputs": [
1334
- {
1335
- "internalType": "address",
1336
- "name": "token",
1337
- "type": "address"
1338
- },
1339
- {
1340
- "internalType": "address",
1341
- "name": "oracleAddress",
1342
- "type": "address"
1343
- },
1344
- {
1345
- "internalType": "enum PriceGetterV2.OracleType",
1346
- "name": "oracleType",
1347
- "type": "uint8"
1348
- }
1349
- ],
1350
- "name": "setTokenOracle",
1351
- "outputs": [],
1352
- "stateMutability": "nonpayable",
1353
- "type": "function"
1354
- },
1355
- {
1356
- "inputs": [
1357
- {
1358
- "internalType": "address",
1359
- "name": "",
1360
- "type": "address"
1361
- }
1362
- ],
1363
- "name": "stableUsdTokenDecimals",
1364
- "outputs": [
1365
- {
1366
- "internalType": "uint8",
1367
- "name": "",
1368
- "type": "uint8"
1369
- }
1370
- ],
1371
- "stateMutability": "view",
1372
- "type": "function"
1373
- },
1374
- {
1375
- "inputs": [
1376
- {
1377
- "internalType": "uint256",
1378
- "name": "",
1379
- "type": "uint256"
1380
- }
1381
- ],
1382
- "name": "stableUsdTokens",
1383
- "outputs": [
1384
- {
1385
- "internalType": "address",
1386
- "name": "",
1387
- "type": "address"
1388
- }
1389
- ],
1390
- "stateMutability": "view",
1391
- "type": "function"
1392
- },
1393
- {
1394
- "inputs": [
1395
- {
1396
- "internalType": "address",
1397
- "name": "",
1398
- "type": "address"
1399
- }
1400
- ],
1401
- "name": "tokenOracles",
1402
- "outputs": [
1403
- {
1404
- "internalType": "enum PriceGetterV2.OracleType",
1405
- "name": "oracleType",
1406
- "type": "uint8"
1407
- },
1408
- {
1409
- "internalType": "address",
1410
- "name": "oracleAddress",
1411
- "type": "address"
1412
- },
1413
- {
1414
- "internalType": "uint8",
1415
- "name": "oracleDecimals",
1416
- "type": "uint8"
1417
- }
1418
- ],
1419
- "stateMutability": "view",
1420
- "type": "function"
1421
- },
1422
- {
1423
- "inputs": [
1424
- {
1425
- "internalType": "address",
1426
- "name": "newOwner",
1427
- "type": "address"
1428
- }
1429
- ],
1430
- "name": "transferOwnership",
1431
- "outputs": [],
1432
- "stateMutability": "nonpayable",
1433
- "type": "function"
1434
- },
1435
- {
1436
- "inputs": [],
1437
- "name": "wNative",
1438
- "outputs": [
1439
- {
1440
- "internalType": "address",
1441
- "name": "",
1442
- "type": "address"
1443
- }
1444
- ],
1445
- "stateMutability": "view",
1446
- "type": "function"
1447
- }
1448
- ]