@ape.swap/bonds-sdk 1.0.553 → 1.0.555

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,1309 +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
- {
133
- "internalType": "uint32",
134
- "name": "secondsAgo",
135
- "type": "uint32"
136
- }
137
- ],
138
- "name": "getETHPrice",
139
- "outputs": [
140
- {
141
- "internalType": "uint256",
142
- "name": "",
143
- "type": "uint256"
144
- }
145
- ],
146
- "stateMutability": "view",
147
- "type": "function"
148
- },
149
- {
150
- "inputs": [],
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
- {
165
- "internalType": "address",
166
- "name": "token",
167
- "type": "address"
168
- },
169
- {
170
- "internalType": "uint256",
171
- "name": "_decimals",
172
- "type": "uint256"
173
- }
174
- ],
175
- "name": "getLPPrice",
176
- "outputs": [
177
- {
178
- "internalType": "uint256",
179
- "name": "",
180
- "type": "uint256"
181
- }
182
- ],
183
- "stateMutability": "view",
184
- "type": "function"
185
- },
186
- {
187
- "inputs": [
188
- {
189
- "internalType": "address",
190
- "name": "token0",
191
- "type": "address"
192
- },
193
- {
194
- "internalType": "address",
195
- "name": "token1",
196
- "type": "address"
197
- }
198
- ],
199
- "name": "getLPPriceAlgebra",
200
- "outputs": [
201
- {
202
- "internalType": "uint256",
203
- "name": "price",
204
- "type": "uint256"
205
- }
206
- ],
207
- "stateMutability": "view",
208
- "type": "function"
209
- },
210
- {
211
- "inputs": [
212
- {
213
- "internalType": "contract IAlgebraFactory",
214
- "name": "factoryAlgebra",
215
- "type": "address"
216
- },
217
- {
218
- "internalType": "address",
219
- "name": "token0",
220
- "type": "address"
221
- },
222
- {
223
- "internalType": "address",
224
- "name": "token1",
225
- "type": "address"
226
- }
227
- ],
228
- "name": "getLPPriceAlgebraFromFactory",
229
- "outputs": [
230
- {
231
- "internalType": "uint256",
232
- "name": "price",
233
- "type": "uint256"
234
- }
235
- ],
236
- "stateMutability": "view",
237
- "type": "function"
238
- },
239
- {
240
- "inputs": [
241
- {
242
- "internalType": "address",
243
- "name": "token",
244
- "type": "address"
245
- },
246
- {
247
- "internalType": "enum IPriceGetterV2.Protocol",
248
- "name": "protocol",
249
- "type": "uint8"
250
- },
251
- {
252
- "internalType": "contract IApeFactory",
253
- "name": "factoryV2",
254
- "type": "address"
255
- },
256
- {
257
- "internalType": "contract IUniswapV3Factory",
258
- "name": "factoryV3",
259
- "type": "address"
260
- },
261
- {
262
- "internalType": "contract IAlgebraFactory",
263
- "name": "factoryAlgebra",
264
- "type": "address"
265
- },
266
- {
267
- "internalType": "contract ISolidlyFactory",
268
- "name": "factorySolidly",
269
- "type": "address"
270
- }
271
- ],
272
- "name": "getLPPriceFromFactory",
273
- "outputs": [
274
- {
275
- "internalType": "uint256",
276
- "name": "price",
277
- "type": "uint256"
278
- }
279
- ],
280
- "stateMutability": "view",
281
- "type": "function"
282
- },
283
- {
284
- "inputs": [
285
- {
286
- "internalType": "contract Hypervisor",
287
- "name": "lp",
288
- "type": "address"
289
- }
290
- ],
291
- "name": "getLPPriceGamma",
292
- "outputs": [
293
- {
294
- "internalType": "uint256",
295
- "name": "price",
296
- "type": "uint256"
297
- }
298
- ],
299
- "stateMutability": "view",
300
- "type": "function"
301
- },
302
- {
303
- "inputs": [
304
- {
305
- "internalType": "contract IAlgebraFactory",
306
- "name": "factory",
307
- "type": "address"
308
- },
309
- {
310
- "internalType": "contract IApeFactory",
311
- "name": "factoryV2",
312
- "type": "address"
313
- },
314
- {
315
- "internalType": "contract Hypervisor",
316
- "name": "lp",
317
- "type": "address"
318
- }
319
- ],
320
- "name": "getLPPriceGammaFromFactory",
321
- "outputs": [
322
- {
323
- "internalType": "uint256",
324
- "name": "price",
325
- "type": "uint256"
326
- }
327
- ],
328
- "stateMutability": "view",
329
- "type": "function"
330
- },
331
- {
332
- "inputs": [
333
- {
334
- "internalType": "address",
335
- "name": "lp",
336
- "type": "address"
337
- }
338
- ],
339
- "name": "getLPPriceSolidly",
340
- "outputs": [
341
- {
342
- "internalType": "uint256",
343
- "name": "price",
344
- "type": "uint256"
345
- }
346
- ],
347
- "stateMutability": "view",
348
- "type": "function"
349
- },
350
- {
351
- "inputs": [
352
- {
353
- "internalType": "contract ISolidlyFactory",
354
- "name": "factorySolidly",
355
- "type": "address"
356
- },
357
- {
358
- "internalType": "address",
359
- "name": "lp",
360
- "type": "address"
361
- }
362
- ],
363
- "name": "getLPPriceSolidlyFromFactory",
364
- "outputs": [
365
- {
366
- "internalType": "uint256",
367
- "name": "price",
368
- "type": "uint256"
369
- }
370
- ],
371
- "stateMutability": "view",
372
- "type": "function"
373
- },
374
- {
375
- "inputs": [
376
- {
377
- "internalType": "contract IUniswapV3Factory",
378
- "name": "factoryV3",
379
- "type": "address"
380
- },
381
- {
382
- "internalType": "contract IApeFactory",
383
- "name": "factoryV2",
384
- "type": "address"
385
- },
386
- {
387
- "internalType": "contract ISteerVault",
388
- "name": "lp",
389
- "type": "address"
390
- }
391
- ],
392
- "name": "getLPPriceSteerFromFactory",
393
- "outputs": [
394
- {
395
- "internalType": "uint256",
396
- "name": "price",
397
- "type": "uint256"
398
- }
399
- ],
400
- "stateMutability": "view",
401
- "type": "function"
402
- },
403
- {
404
- "inputs": [
405
- {
406
- "internalType": "address",
407
- "name": "lp",
408
- "type": "address"
409
- }
410
- ],
411
- "name": "getLPPriceV2",
412
- "outputs": [
413
- {
414
- "internalType": "uint256",
415
- "name": "price",
416
- "type": "uint256"
417
- }
418
- ],
419
- "stateMutability": "view",
420
- "type": "function"
421
- },
422
- {
423
- "inputs": [
424
- {
425
- "internalType": "contract IApeFactory",
426
- "name": "factoryV2",
427
- "type": "address"
428
- },
429
- {
430
- "internalType": "address",
431
- "name": "lp",
432
- "type": "address"
433
- }
434
- ],
435
- "name": "getLPPriceV2FromFactory",
436
- "outputs": [
437
- {
438
- "internalType": "uint256",
439
- "name": "price",
440
- "type": "uint256"
441
- }
442
- ],
443
- "stateMutability": "view",
444
- "type": "function"
445
- },
446
- {
447
- "inputs": [
448
- {
449
- "internalType": "address",
450
- "name": "token0",
451
- "type": "address"
452
- },
453
- {
454
- "internalType": "address",
455
- "name": "token1",
456
- "type": "address"
457
- },
458
- {
459
- "internalType": "uint24",
460
- "name": "fee",
461
- "type": "uint24"
462
- }
463
- ],
464
- "name": "getLPPriceV3",
465
- "outputs": [
466
- {
467
- "internalType": "uint256",
468
- "name": "price",
469
- "type": "uint256"
470
- }
471
- ],
472
- "stateMutability": "view",
473
- "type": "function"
474
- },
475
- {
476
- "inputs": [
477
- {
478
- "internalType": "address",
479
- "name": "factoryV3",
480
- "type": "address"
481
- },
482
- {
483
- "internalType": "address",
484
- "name": "token0",
485
- "type": "address"
486
- },
487
- {
488
- "internalType": "address",
489
- "name": "token1",
490
- "type": "address"
491
- },
492
- {
493
- "internalType": "uint24",
494
- "name": "fee",
495
- "type": "uint24"
496
- }
497
- ],
498
- "name": "getLPPriceV3FromFactory",
499
- "outputs": [
500
- {
501
- "internalType": "uint256",
502
- "name": "price",
503
- "type": "uint256"
504
- }
505
- ],
506
- "stateMutability": "view",
507
- "type": "function"
508
- },
509
- {
510
- "inputs": [
511
- {
512
- "internalType": "address[]",
513
- "name": "tokens",
514
- "type": "address[]"
515
- },
516
- {
517
- "internalType": "uint256",
518
- "name": "_decimals",
519
- "type": "uint256"
520
- }
521
- ],
522
- "name": "getLPPrices",
523
- "outputs": [
524
- {
525
- "internalType": "uint256[]",
526
- "name": "prices",
527
- "type": "uint256[]"
528
- }
529
- ],
530
- "stateMutability": "view",
531
- "type": "function"
532
- },
533
- {
534
- "inputs": [
535
- {
536
- "internalType": "address[]",
537
- "name": "tokens",
538
- "type": "address[]"
539
- }
540
- ],
541
- "name": "getLPPricesSolidly",
542
- "outputs": [
543
- {
544
- "internalType": "uint256[]",
545
- "name": "prices",
546
- "type": "uint256[]"
547
- }
548
- ],
549
- "stateMutability": "view",
550
- "type": "function"
551
- },
552
- {
553
- "inputs": [
554
- {
555
- "internalType": "contract ISolidlyFactory",
556
- "name": "factorySolidly",
557
- "type": "address"
558
- },
559
- {
560
- "internalType": "address[]",
561
- "name": "tokens",
562
- "type": "address[]"
563
- }
564
- ],
565
- "name": "getLPPricesSolidlyFromFactory",
566
- "outputs": [
567
- {
568
- "internalType": "uint256[]",
569
- "name": "prices",
570
- "type": "uint256[]"
571
- }
572
- ],
573
- "stateMutability": "view",
574
- "type": "function"
575
- },
576
- {
577
- "inputs": [
578
- {
579
- "internalType": "address[]",
580
- "name": "tokens",
581
- "type": "address[]"
582
- }
583
- ],
584
- "name": "getLPPricesV2",
585
- "outputs": [
586
- {
587
- "internalType": "uint256[]",
588
- "name": "prices",
589
- "type": "uint256[]"
590
- }
591
- ],
592
- "stateMutability": "view",
593
- "type": "function"
594
- },
595
- {
596
- "inputs": [
597
- {
598
- "internalType": "contract IApeFactory",
599
- "name": "factoryV2",
600
- "type": "address"
601
- },
602
- {
603
- "internalType": "address[]",
604
- "name": "tokens",
605
- "type": "address[]"
606
- }
607
- ],
608
- "name": "getLPPricesV2FromFactory",
609
- "outputs": [
610
- {
611
- "internalType": "uint256[]",
612
- "name": "prices",
613
- "type": "uint256[]"
614
- }
615
- ],
616
- "stateMutability": "view",
617
- "type": "function"
618
- },
619
- {
620
- "inputs": [
621
- {
622
- "internalType": "address[]",
623
- "name": "tokens0",
624
- "type": "address[]"
625
- },
626
- {
627
- "internalType": "address[]",
628
- "name": "tokens1",
629
- "type": "address[]"
630
- },
631
- {
632
- "internalType": "uint24[]",
633
- "name": "fees",
634
- "type": "uint24[]"
635
- }
636
- ],
637
- "name": "getLPPricesV3",
638
- "outputs": [
639
- {
640
- "internalType": "uint256[]",
641
- "name": "prices",
642
- "type": "uint256[]"
643
- }
644
- ],
645
- "stateMutability": "view",
646
- "type": "function"
647
- },
648
- {
649
- "inputs": [
650
- {
651
- "internalType": "contract IUniswapV3Factory",
652
- "name": "factoryV3",
653
- "type": "address"
654
- },
655
- {
656
- "internalType": "address[]",
657
- "name": "tokens0",
658
- "type": "address[]"
659
- },
660
- {
661
- "internalType": "address[]",
662
- "name": "tokens1",
663
- "type": "address[]"
664
- },
665
- {
666
- "internalType": "uint24[]",
667
- "name": "fees",
668
- "type": "uint24[]"
669
- }
670
- ],
671
- "name": "getLPPricesV3FromFactory",
672
- "outputs": [
673
- {
674
- "internalType": "uint256[]",
675
- "name": "prices",
676
- "type": "uint256[]"
677
- }
678
- ],
679
- "stateMutability": "view",
680
- "type": "function"
681
- },
682
- {
683
- "inputs": [],
684
- "name": "getNativePrice",
685
- "outputs": [
686
- {
687
- "internalType": "uint256",
688
- "name": "",
689
- "type": "uint256"
690
- }
691
- ],
692
- "stateMutability": "view",
693
- "type": "function"
694
- },
695
- {
696
- "inputs": [
697
- {
698
- "internalType": "enum IPriceGetterV2.Protocol",
699
- "name": "protocol",
700
- "type": "uint8"
701
- }
702
- ],
703
- "name": "getNativePrice",
704
- "outputs": [
705
- {
706
- "internalType": "uint256",
707
- "name": "nativePrice",
708
- "type": "uint256"
709
- }
710
- ],
711
- "stateMutability": "view",
712
- "type": "function"
713
- },
714
- {
715
- "inputs": [
716
- {
717
- "internalType": "enum IPriceGetterV2.Protocol",
718
- "name": "protocol",
719
- "type": "uint8"
720
- },
721
- {
722
- "internalType": "contract IApeFactory",
723
- "name": "factoryV2",
724
- "type": "address"
725
- },
726
- {
727
- "internalType": "contract IUniswapV3Factory",
728
- "name": "factoryV3",
729
- "type": "address"
730
- },
731
- {
732
- "internalType": "contract ISolidlyFactory",
733
- "name": "factorySolidly",
734
- "type": "address"
735
- }
736
- ],
737
- "name": "getNativePriceFromFactory",
738
- "outputs": [
739
- {
740
- "internalType": "uint256",
741
- "name": "nativePrice",
742
- "type": "uint256"
743
- }
744
- ],
745
- "stateMutability": "view",
746
- "type": "function"
747
- },
748
- {
749
- "inputs": [
750
- {
751
- "internalType": "address",
752
- "name": "token",
753
- "type": "address"
754
- },
755
- {
756
- "internalType": "uint32",
757
- "name": "secondsAgo",
758
- "type": "uint32"
759
- }
760
- ],
761
- "name": "getPrice",
762
- "outputs": [
763
- {
764
- "internalType": "uint256",
765
- "name": "",
766
- "type": "uint256"
767
- }
768
- ],
769
- "stateMutability": "view",
770
- "type": "function"
771
- },
772
- {
773
- "inputs": [
774
- {
775
- "internalType": "address",
776
- "name": "token",
777
- "type": "address"
778
- }
779
- ],
780
- "name": "getPriceAlgebra",
781
- "outputs": [
782
- {
783
- "internalType": "uint256",
784
- "name": "price",
785
- "type": "uint256"
786
- }
787
- ],
788
- "stateMutability": "view",
789
- "type": "function"
790
- },
791
- {
792
- "inputs": [
793
- {
794
- "internalType": "contract IAlgebraFactory",
795
- "name": "factoryAlgebra",
796
- "type": "address"
797
- },
798
- {
799
- "internalType": "address",
800
- "name": "token",
801
- "type": "address"
802
- }
803
- ],
804
- "name": "getPriceAlgebraFromFactory",
805
- "outputs": [
806
- {
807
- "internalType": "uint256",
808
- "name": "price",
809
- "type": "uint256"
810
- }
811
- ],
812
- "stateMutability": "view",
813
- "type": "function"
814
- },
815
- {
816
- "inputs": [
817
- {
818
- "internalType": "address",
819
- "name": "token",
820
- "type": "address"
821
- },
822
- {
823
- "internalType": "enum IPriceGetterV2.Protocol",
824
- "name": "protocol",
825
- "type": "uint8"
826
- },
827
- {
828
- "internalType": "contract IApeFactory",
829
- "name": "factoryV2",
830
- "type": "address"
831
- },
832
- {
833
- "internalType": "contract IUniswapV3Factory",
834
- "name": "factoryV3",
835
- "type": "address"
836
- },
837
- {
838
- "internalType": "contract IAlgebraFactory",
839
- "name": "factoryAlgebra",
840
- "type": "address"
841
- },
842
- {
843
- "internalType": "contract ISolidlyFactory",
844
- "name": "factorySolidly",
845
- "type": "address"
846
- }
847
- ],
848
- "name": "getPriceFromFactory",
849
- "outputs": [
850
- {
851
- "internalType": "uint256",
852
- "name": "price",
853
- "type": "uint256"
854
- }
855
- ],
856
- "stateMutability": "view",
857
- "type": "function"
858
- },
859
- {
860
- "inputs": [
861
- {
862
- "internalType": "address",
863
- "name": "token",
864
- "type": "address"
865
- }
866
- ],
867
- "name": "getPriceV2",
868
- "outputs": [
869
- {
870
- "internalType": "uint256",
871
- "name": "price",
872
- "type": "uint256"
873
- }
874
- ],
875
- "stateMutability": "view",
876
- "type": "function"
877
- },
878
- {
879
- "inputs": [
880
- {
881
- "internalType": "contract IApeFactory",
882
- "name": "factoryV2",
883
- "type": "address"
884
- },
885
- {
886
- "internalType": "address",
887
- "name": "token",
888
- "type": "address"
889
- }
890
- ],
891
- "name": "getPriceV2FromFactory",
892
- "outputs": [
893
- {
894
- "internalType": "uint256",
895
- "name": "price",
896
- "type": "uint256"
897
- }
898
- ],
899
- "stateMutability": "view",
900
- "type": "function"
901
- },
902
- {
903
- "inputs": [
904
- {
905
- "internalType": "address",
906
- "name": "token",
907
- "type": "address"
908
- }
909
- ],
910
- "name": "getPriceV3",
911
- "outputs": [
912
- {
913
- "internalType": "uint256",
914
- "name": "price",
915
- "type": "uint256"
916
- }
917
- ],
918
- "stateMutability": "view",
919
- "type": "function"
920
- },
921
- {
922
- "inputs": [
923
- {
924
- "internalType": "contract IUniswapV3Factory",
925
- "name": "factoryV3",
926
- "type": "address"
927
- },
928
- {
929
- "internalType": "address",
930
- "name": "token",
931
- "type": "address"
932
- }
933
- ],
934
- "name": "getPriceV3FromFactory",
935
- "outputs": [
936
- {
937
- "internalType": "uint256",
938
- "name": "price",
939
- "type": "uint256"
940
- }
941
- ],
942
- "stateMutability": "view",
943
- "type": "function"
944
- },
945
- {
946
- "inputs": [
947
- {
948
- "internalType": "address[]",
949
- "name": "tokens",
950
- "type": "address[]"
951
- },
952
- {
953
- "internalType": "enum IPriceGetterV2.Protocol",
954
- "name": "protocol",
955
- "type": "uint8"
956
- }
957
- ],
958
- "name": "getPrices",
959
- "outputs": [
960
- {
961
- "internalType": "uint256[]",
962
- "name": "prices",
963
- "type": "uint256[]"
964
- }
965
- ],
966
- "stateMutability": "view",
967
- "type": "function"
968
- },
969
- {
970
- "inputs": [
971
- {
972
- "internalType": "address[]",
973
- "name": "tokens",
974
- "type": "address[]"
975
- },
976
- {
977
- "internalType": "uint256",
978
- "name": "_decimals",
979
- "type": "uint256"
980
- }
981
- ],
982
- "name": "getPrices",
983
- "outputs": [
984
- {
985
- "internalType": "uint256[]",
986
- "name": "prices",
987
- "type": "uint256[]"
988
- }
989
- ],
990
- "stateMutability": "view",
991
- "type": "function"
992
- },
993
- {
994
- "inputs": [
995
- {
996
- "internalType": "address[]",
997
- "name": "tokens",
998
- "type": "address[]"
999
- },
1000
- {
1001
- "internalType": "uint32",
1002
- "name": "secondsAgo",
1003
- "type": "uint32"
1004
- }
1005
- ],
1006
- "name": "getPrices",
1007
- "outputs": [
1008
- {
1009
- "internalType": "uint256[]",
1010
- "name": "prices",
1011
- "type": "uint256[]"
1012
- }
1013
- ],
1014
- "stateMutability": "view",
1015
- "type": "function"
1016
- },
1017
- {
1018
- "inputs": [
1019
- {
1020
- "internalType": "address[]",
1021
- "name": "tokens",
1022
- "type": "address[]"
1023
- },
1024
- {
1025
- "internalType": "enum IPriceGetterV2.Protocol",
1026
- "name": "protocol",
1027
- "type": "uint8"
1028
- },
1029
- {
1030
- "internalType": "contract IApeFactory",
1031
- "name": "factoryV2",
1032
- "type": "address"
1033
- },
1034
- {
1035
- "internalType": "contract IUniswapV3Factory",
1036
- "name": "factoryV3",
1037
- "type": "address"
1038
- },
1039
- {
1040
- "internalType": "contract IAlgebraFactory",
1041
- "name": "factoryAlgebra",
1042
- "type": "address"
1043
- },
1044
- {
1045
- "internalType": "contract ISolidlyFactory",
1046
- "name": "factorySolidly",
1047
- "type": "address"
1048
- }
1049
- ],
1050
- "name": "getPricesFromFactory",
1051
- "outputs": [
1052
- {
1053
- "internalType": "uint256[]",
1054
- "name": "prices",
1055
- "type": "uint256[]"
1056
- }
1057
- ],
1058
- "stateMutability": "view",
1059
- "type": "function"
1060
- },
1061
- {
1062
- "inputs": [
1063
- {
1064
- "internalType": "address",
1065
- "name": "token",
1066
- "type": "address"
1067
- }
1068
- ],
1069
- "name": "getRawPrice",
1070
- "outputs": [
1071
- {
1072
- "internalType": "uint256",
1073
- "name": "",
1074
- "type": "uint256"
1075
- }
1076
- ],
1077
- "stateMutability": "view",
1078
- "type": "function"
1079
- },
1080
- {
1081
- "inputs": [
1082
- {
1083
- "internalType": "address[]",
1084
- "name": "tokens",
1085
- "type": "address[]"
1086
- }
1087
- ],
1088
- "name": "getRawPrices",
1089
- "outputs": [
1090
- {
1091
- "internalType": "uint256[]",
1092
- "name": "prices",
1093
- "type": "uint256[]"
1094
- }
1095
- ],
1096
- "stateMutability": "view",
1097
- "type": "function"
1098
- },
1099
- {
1100
- "inputs": [
1101
- {
1102
- "internalType": "address",
1103
- "name": "_wNative",
1104
- "type": "address"
1105
- },
1106
- {
1107
- "internalType": "contract IApeFactory",
1108
- "name": "_defaultFactoryV2",
1109
- "type": "address"
1110
- },
1111
- {
1112
- "internalType": "contract IUniswapV3Factory",
1113
- "name": "_defaultFactoryV3",
1114
- "type": "address"
1115
- },
1116
- {
1117
- "internalType": "contract IAlgebraFactory",
1118
- "name": "_defaultFactoryAlgebra",
1119
- "type": "address"
1120
- },
1121
- {
1122
- "internalType": "contract ISolidlyFactory",
1123
- "name": "_defaultFactorySolidly",
1124
- "type": "address"
1125
- },
1126
- {
1127
- "internalType": "address[]",
1128
- "name": "_stableUsdTokens",
1129
- "type": "address[]"
1130
- },
1131
- {
1132
- "internalType": "address[]",
1133
- "name": "_oracleTokens",
1134
- "type": "address[]"
1135
- },
1136
- {
1137
- "internalType": "address[]",
1138
- "name": "_oracles",
1139
- "type": "address[]"
1140
- }
1141
- ],
1142
- "name": "initialize",
1143
- "outputs": [],
1144
- "stateMutability": "nonpayable",
1145
- "type": "function"
1146
- },
1147
- {
1148
- "inputs": [],
1149
- "name": "owner",
1150
- "outputs": [
1151
- {
1152
- "internalType": "address",
1153
- "name": "",
1154
- "type": "address"
1155
- }
1156
- ],
1157
- "stateMutability": "view",
1158
- "type": "function"
1159
- },
1160
- {
1161
- "inputs": [
1162
- {
1163
- "internalType": "address",
1164
- "name": "token",
1165
- "type": "address"
1166
- }
1167
- ],
1168
- "name": "removeTokenOracle",
1169
- "outputs": [],
1170
- "stateMutability": "nonpayable",
1171
- "type": "function"
1172
- },
1173
- {
1174
- "inputs": [],
1175
- "name": "renounceOwnership",
1176
- "outputs": [],
1177
- "stateMutability": "nonpayable",
1178
- "type": "function"
1179
- },
1180
- {
1181
- "inputs": [],
1182
- "name": "secondsAgo",
1183
- "outputs": [
1184
- {
1185
- "internalType": "uint24",
1186
- "name": "",
1187
- "type": "uint24"
1188
- }
1189
- ],
1190
- "stateMutability": "view",
1191
- "type": "function"
1192
- },
1193
- {
1194
- "inputs": [
1195
- {
1196
- "internalType": "address",
1197
- "name": "token",
1198
- "type": "address"
1199
- },
1200
- {
1201
- "internalType": "address",
1202
- "name": "oracleAddress",
1203
- "type": "address"
1204
- },
1205
- {
1206
- "internalType": "enum PriceGetterV2.OracleType",
1207
- "name": "oracleType",
1208
- "type": "uint8"
1209
- }
1210
- ],
1211
- "name": "setTokenOracle",
1212
- "outputs": [],
1213
- "stateMutability": "nonpayable",
1214
- "type": "function"
1215
- },
1216
- {
1217
- "inputs": [
1218
- {
1219
- "internalType": "address",
1220
- "name": "",
1221
- "type": "address"
1222
- }
1223
- ],
1224
- "name": "stableUsdTokenDecimals",
1225
- "outputs": [
1226
- {
1227
- "internalType": "uint8",
1228
- "name": "",
1229
- "type": "uint8"
1230
- }
1231
- ],
1232
- "stateMutability": "view",
1233
- "type": "function"
1234
- },
1235
- {
1236
- "inputs": [
1237
- {
1238
- "internalType": "uint256",
1239
- "name": "",
1240
- "type": "uint256"
1241
- }
1242
- ],
1243
- "name": "stableUsdTokens",
1244
- "outputs": [
1245
- {
1246
- "internalType": "address",
1247
- "name": "",
1248
- "type": "address"
1249
- }
1250
- ],
1251
- "stateMutability": "view",
1252
- "type": "function"
1253
- },
1254
- {
1255
- "inputs": [
1256
- {
1257
- "internalType": "address",
1258
- "name": "",
1259
- "type": "address"
1260
- }
1261
- ],
1262
- "name": "tokenOracles",
1263
- "outputs": [
1264
- {
1265
- "internalType": "enum PriceGetterV2.OracleType",
1266
- "name": "oracleType",
1267
- "type": "uint8"
1268
- },
1269
- {
1270
- "internalType": "address",
1271
- "name": "oracleAddress",
1272
- "type": "address"
1273
- },
1274
- {
1275
- "internalType": "uint8",
1276
- "name": "oracleDecimals",
1277
- "type": "uint8"
1278
- }
1279
- ],
1280
- "stateMutability": "view",
1281
- "type": "function"
1282
- },
1283
- {
1284
- "inputs": [
1285
- {
1286
- "internalType": "address",
1287
- "name": "newOwner",
1288
- "type": "address"
1289
- }
1290
- ],
1291
- "name": "transferOwnership",
1292
- "outputs": [],
1293
- "stateMutability": "nonpayable",
1294
- "type": "function"
1295
- },
1296
- {
1297
- "inputs": [],
1298
- "name": "wNative",
1299
- "outputs": [
1300
- {
1301
- "internalType": "address",
1302
- "name": "",
1303
- "type": "address"
1304
- }
1305
- ],
1306
- "stateMutability": "view",
1307
- "type": "function"
1308
- }
1309
- ]