@gearbox-protocol/sdk 3.0.0-vfour.235 → 3.0.0-vfour.236
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.
- package/dist/cjs/sdk/index.cjs +881 -134
- package/dist/cjs/sdk/index.d.ts +1048 -174
- package/dist/esm/sdk/index.d.mts +1048 -174
- package/dist/esm/sdk/index.mjs +877 -135
- package/package.json +1 -1
package/dist/cjs/sdk/index.cjs
CHANGED
|
@@ -69,6 +69,59 @@ var iAdapterCompressorAbi = [
|
|
|
69
69
|
stateMutability: "view"
|
|
70
70
|
}
|
|
71
71
|
];
|
|
72
|
+
var iAuraL2CoordinatorAbi = [
|
|
73
|
+
{
|
|
74
|
+
type: "function",
|
|
75
|
+
inputs: [],
|
|
76
|
+
name: "auraOFT",
|
|
77
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
78
|
+
stateMutability: "view"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
type: "function",
|
|
82
|
+
inputs: [],
|
|
83
|
+
name: "mintRate",
|
|
84
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
85
|
+
stateMutability: "view"
|
|
86
|
+
}
|
|
87
|
+
];
|
|
88
|
+
var iConvexTokenAbi = [
|
|
89
|
+
{
|
|
90
|
+
type: "function",
|
|
91
|
+
inputs: [],
|
|
92
|
+
name: "EMISSIONS_MAX_SUPPLY",
|
|
93
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
94
|
+
stateMutability: "view"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
type: "function",
|
|
98
|
+
inputs: [],
|
|
99
|
+
name: "maxSupply",
|
|
100
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
101
|
+
stateMutability: "view"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
type: "function",
|
|
105
|
+
inputs: [],
|
|
106
|
+
name: "reductionPerCliff",
|
|
107
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
108
|
+
stateMutability: "view"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
type: "function",
|
|
112
|
+
inputs: [],
|
|
113
|
+
name: "totalCliffs",
|
|
114
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
115
|
+
stateMutability: "view"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
type: "function",
|
|
119
|
+
inputs: [],
|
|
120
|
+
name: "totalSupply",
|
|
121
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
122
|
+
stateMutability: "view"
|
|
123
|
+
}
|
|
124
|
+
];
|
|
72
125
|
var iCreditAccountCompressorAbi = [
|
|
73
126
|
{
|
|
74
127
|
type: "function",
|
|
@@ -469,7 +522,7 @@ var iCreditAccountCompressorAbi = [
|
|
|
469
522
|
stateMutability: "view"
|
|
470
523
|
}
|
|
471
524
|
];
|
|
472
|
-
var
|
|
525
|
+
var iCreditSuiteCompressorAbi = [
|
|
473
526
|
{
|
|
474
527
|
type: "function",
|
|
475
528
|
inputs: [],
|
|
@@ -480,55 +533,52 @@ var iGaugeCompressorAbi = [
|
|
|
480
533
|
{
|
|
481
534
|
type: "function",
|
|
482
535
|
inputs: [
|
|
483
|
-
{ name: "
|
|
484
|
-
{ name: "staker", internalType: "address", type: "address" }
|
|
536
|
+
{ name: "creditFacade", internalType: "address", type: "address" }
|
|
485
537
|
],
|
|
486
|
-
name: "
|
|
538
|
+
name: "getCreditFacadeState",
|
|
487
539
|
outputs: [
|
|
488
540
|
{
|
|
489
|
-
name: "
|
|
490
|
-
internalType: "struct
|
|
541
|
+
name: "",
|
|
542
|
+
internalType: "struct CreditFacadeState",
|
|
491
543
|
type: "tuple",
|
|
492
544
|
components: [
|
|
493
|
-
{ name: "addr", internalType: "address", type: "address" },
|
|
494
|
-
{ name: "pool", internalType: "address", type: "address" },
|
|
495
|
-
{ name: "symbol", internalType: "string", type: "string" },
|
|
496
|
-
{ name: "name", internalType: "string", type: "string" },
|
|
497
|
-
{ name: "voter", internalType: "address", type: "address" },
|
|
498
|
-
{ name: "underlying", internalType: "address", type: "address" },
|
|
499
|
-
{ name: "currentEpoch", internalType: "uint16", type: "uint16" },
|
|
500
|
-
{ name: "epochLastUpdate", internalType: "uint16", type: "uint16" },
|
|
501
|
-
{ name: "epochFrozen", internalType: "bool", type: "bool" },
|
|
502
545
|
{
|
|
503
|
-
name: "
|
|
504
|
-
internalType: "struct
|
|
505
|
-
type: "tuple
|
|
546
|
+
name: "baseParams",
|
|
547
|
+
internalType: "struct BaseParams",
|
|
548
|
+
type: "tuple",
|
|
506
549
|
components: [
|
|
507
|
-
{ name: "
|
|
508
|
-
{ name: "
|
|
509
|
-
{ name: "maxRate", internalType: "uint16", type: "uint16" },
|
|
510
|
-
{
|
|
511
|
-
name: "totalVotesLpSide",
|
|
512
|
-
internalType: "uint96",
|
|
513
|
-
type: "uint96"
|
|
514
|
-
},
|
|
515
|
-
{
|
|
516
|
-
name: "totalVotesCaSide",
|
|
517
|
-
internalType: "uint96",
|
|
518
|
-
type: "uint96"
|
|
519
|
-
},
|
|
550
|
+
{ name: "addr", internalType: "address", type: "address" },
|
|
551
|
+
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
520
552
|
{
|
|
521
|
-
name: "
|
|
522
|
-
internalType: "
|
|
523
|
-
type: "
|
|
553
|
+
name: "contractType",
|
|
554
|
+
internalType: "bytes32",
|
|
555
|
+
type: "bytes32"
|
|
524
556
|
},
|
|
525
557
|
{
|
|
526
|
-
name: "
|
|
527
|
-
internalType: "
|
|
528
|
-
type: "
|
|
558
|
+
name: "serializedParams",
|
|
559
|
+
internalType: "bytes",
|
|
560
|
+
type: "bytes"
|
|
529
561
|
}
|
|
530
562
|
]
|
|
531
|
-
}
|
|
563
|
+
},
|
|
564
|
+
{ name: "creditManager", internalType: "address", type: "address" },
|
|
565
|
+
{ name: "degenNFT", internalType: "address", type: "address" },
|
|
566
|
+
{ name: "botList", internalType: "address", type: "address" },
|
|
567
|
+
{ name: "expirable", internalType: "bool", type: "bool" },
|
|
568
|
+
{ name: "expirationDate", internalType: "uint40", type: "uint40" },
|
|
569
|
+
{
|
|
570
|
+
name: "maxDebtPerBlockMultiplier",
|
|
571
|
+
internalType: "uint8",
|
|
572
|
+
type: "uint8"
|
|
573
|
+
},
|
|
574
|
+
{ name: "minDebt", internalType: "uint256", type: "uint256" },
|
|
575
|
+
{ name: "maxDebt", internalType: "uint256", type: "uint256" },
|
|
576
|
+
{
|
|
577
|
+
name: "forbiddenTokenMask",
|
|
578
|
+
internalType: "uint256",
|
|
579
|
+
type: "uint256"
|
|
580
|
+
},
|
|
581
|
+
{ name: "isPaused", internalType: "bool", type: "bool" }
|
|
532
582
|
]
|
|
533
583
|
}
|
|
534
584
|
],
|
|
@@ -537,112 +587,471 @@ var iGaugeCompressorAbi = [
|
|
|
537
587
|
{
|
|
538
588
|
type: "function",
|
|
539
589
|
inputs: [
|
|
590
|
+
{ name: "creditManager", internalType: "address", type: "address" }
|
|
591
|
+
],
|
|
592
|
+
name: "getCreditManagerState",
|
|
593
|
+
outputs: [
|
|
540
594
|
{
|
|
541
|
-
name: "
|
|
542
|
-
internalType: "struct
|
|
595
|
+
name: "",
|
|
596
|
+
internalType: "struct CreditManagerState",
|
|
543
597
|
type: "tuple",
|
|
544
598
|
components: [
|
|
545
599
|
{
|
|
546
|
-
name: "
|
|
547
|
-
internalType: "
|
|
548
|
-
type: "
|
|
600
|
+
name: "baseParams",
|
|
601
|
+
internalType: "struct BaseParams",
|
|
602
|
+
type: "tuple",
|
|
603
|
+
components: [
|
|
604
|
+
{ name: "addr", internalType: "address", type: "address" },
|
|
605
|
+
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
606
|
+
{
|
|
607
|
+
name: "contractType",
|
|
608
|
+
internalType: "bytes32",
|
|
609
|
+
type: "bytes32"
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
name: "serializedParams",
|
|
613
|
+
internalType: "bytes",
|
|
614
|
+
type: "bytes"
|
|
615
|
+
}
|
|
616
|
+
]
|
|
549
617
|
},
|
|
550
|
-
{ name: "pools", internalType: "address[]", type: "address[]" },
|
|
551
|
-
{ name: "underlying", internalType: "address", type: "address" }
|
|
552
|
-
]
|
|
553
|
-
},
|
|
554
|
-
{ name: "staker", internalType: "address", type: "address" }
|
|
555
|
-
],
|
|
556
|
-
name: "getGauges",
|
|
557
|
-
outputs: [
|
|
558
|
-
{
|
|
559
|
-
name: "result",
|
|
560
|
-
internalType: "struct GaugeInfo[]",
|
|
561
|
-
type: "tuple[]",
|
|
562
|
-
components: [
|
|
563
|
-
{ name: "addr", internalType: "address", type: "address" },
|
|
564
|
-
{ name: "pool", internalType: "address", type: "address" },
|
|
565
|
-
{ name: "symbol", internalType: "string", type: "string" },
|
|
566
618
|
{ name: "name", internalType: "string", type: "string" },
|
|
567
|
-
{ name: "
|
|
619
|
+
{ name: "accountFactory", internalType: "address", type: "address" },
|
|
568
620
|
{ name: "underlying", internalType: "address", type: "address" },
|
|
569
|
-
{ name: "
|
|
570
|
-
{ name: "
|
|
571
|
-
{ name: "epochFrozen", internalType: "bool", type: "bool" },
|
|
621
|
+
{ name: "pool", internalType: "address", type: "address" },
|
|
622
|
+
{ name: "creditFacade", internalType: "address", type: "address" },
|
|
572
623
|
{
|
|
573
|
-
name: "
|
|
574
|
-
internalType: "
|
|
624
|
+
name: "creditConfigurator",
|
|
625
|
+
internalType: "address",
|
|
626
|
+
type: "address"
|
|
627
|
+
},
|
|
628
|
+
{ name: "maxEnabledTokens", internalType: "uint8", type: "uint8" },
|
|
629
|
+
{
|
|
630
|
+
name: "collateralTokens",
|
|
631
|
+
internalType: "struct CollateralToken[]",
|
|
575
632
|
type: "tuple[]",
|
|
576
633
|
components: [
|
|
577
634
|
{ name: "token", internalType: "address", type: "address" },
|
|
578
|
-
{ name: "minRate", internalType: "uint16", type: "uint16" },
|
|
579
|
-
{ name: "maxRate", internalType: "uint16", type: "uint16" },
|
|
580
635
|
{
|
|
581
|
-
name: "
|
|
582
|
-
internalType: "
|
|
583
|
-
type: "
|
|
584
|
-
},
|
|
585
|
-
{
|
|
586
|
-
name: "totalVotesCaSide",
|
|
587
|
-
internalType: "uint96",
|
|
588
|
-
type: "uint96"
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
name: "stakerVotesLpSide",
|
|
592
|
-
internalType: "uint96",
|
|
593
|
-
type: "uint96"
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
name: "stakerVotesCaSide",
|
|
597
|
-
internalType: "uint96",
|
|
598
|
-
type: "uint96"
|
|
636
|
+
name: "liquidationThreshold",
|
|
637
|
+
internalType: "uint16",
|
|
638
|
+
type: "uint16"
|
|
599
639
|
}
|
|
600
640
|
]
|
|
641
|
+
},
|
|
642
|
+
{ name: "feeInterest", internalType: "uint16", type: "uint16" },
|
|
643
|
+
{ name: "feeLiquidation", internalType: "uint16", type: "uint16" },
|
|
644
|
+
{
|
|
645
|
+
name: "liquidationDiscount",
|
|
646
|
+
internalType: "uint16",
|
|
647
|
+
type: "uint16"
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
name: "feeLiquidationExpired",
|
|
651
|
+
internalType: "uint16",
|
|
652
|
+
type: "uint16"
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
name: "liquidationDiscountExpired",
|
|
656
|
+
internalType: "uint16",
|
|
657
|
+
type: "uint16"
|
|
601
658
|
}
|
|
602
659
|
]
|
|
603
660
|
}
|
|
604
661
|
],
|
|
605
662
|
stateMutability: "view"
|
|
606
663
|
},
|
|
607
|
-
{
|
|
608
|
-
type: "function",
|
|
609
|
-
inputs: [],
|
|
610
|
-
name: "version",
|
|
611
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
612
|
-
stateMutability: "view"
|
|
613
|
-
}
|
|
614
|
-
];
|
|
615
|
-
var iMarketCompressorAbi = [
|
|
616
|
-
{
|
|
617
|
-
type: "function",
|
|
618
|
-
inputs: [],
|
|
619
|
-
name: "contractType",
|
|
620
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
621
|
-
stateMutability: "view"
|
|
622
|
-
},
|
|
623
664
|
{
|
|
624
665
|
type: "function",
|
|
625
666
|
inputs: [
|
|
626
|
-
{ name: "
|
|
627
|
-
{ name: "configurator", internalType: "address", type: "address" }
|
|
667
|
+
{ name: "creditManager", internalType: "address", type: "address" }
|
|
628
668
|
],
|
|
629
|
-
name: "
|
|
669
|
+
name: "getCreditSuiteData",
|
|
630
670
|
outputs: [
|
|
631
671
|
{
|
|
632
|
-
name: "
|
|
633
|
-
internalType: "struct
|
|
672
|
+
name: "",
|
|
673
|
+
internalType: "struct CreditSuiteData",
|
|
634
674
|
type: "tuple",
|
|
635
675
|
components: [
|
|
636
|
-
{ name: "acl", internalType: "address", type: "address" },
|
|
637
676
|
{
|
|
638
|
-
name: "
|
|
639
|
-
internalType: "
|
|
640
|
-
type: "
|
|
677
|
+
name: "creditFacade",
|
|
678
|
+
internalType: "struct CreditFacadeState",
|
|
679
|
+
type: "tuple",
|
|
680
|
+
components: [
|
|
681
|
+
{
|
|
682
|
+
name: "baseParams",
|
|
683
|
+
internalType: "struct BaseParams",
|
|
684
|
+
type: "tuple",
|
|
685
|
+
components: [
|
|
686
|
+
{ name: "addr", internalType: "address", type: "address" },
|
|
687
|
+
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
688
|
+
{
|
|
689
|
+
name: "contractType",
|
|
690
|
+
internalType: "bytes32",
|
|
691
|
+
type: "bytes32"
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
name: "serializedParams",
|
|
695
|
+
internalType: "bytes",
|
|
696
|
+
type: "bytes"
|
|
697
|
+
}
|
|
698
|
+
]
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
name: "creditManager",
|
|
702
|
+
internalType: "address",
|
|
703
|
+
type: "address"
|
|
704
|
+
},
|
|
705
|
+
{ name: "degenNFT", internalType: "address", type: "address" },
|
|
706
|
+
{ name: "botList", internalType: "address", type: "address" },
|
|
707
|
+
{ name: "expirable", internalType: "bool", type: "bool" },
|
|
708
|
+
{
|
|
709
|
+
name: "expirationDate",
|
|
710
|
+
internalType: "uint40",
|
|
711
|
+
type: "uint40"
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
name: "maxDebtPerBlockMultiplier",
|
|
715
|
+
internalType: "uint8",
|
|
716
|
+
type: "uint8"
|
|
717
|
+
},
|
|
718
|
+
{ name: "minDebt", internalType: "uint256", type: "uint256" },
|
|
719
|
+
{ name: "maxDebt", internalType: "uint256", type: "uint256" },
|
|
720
|
+
{
|
|
721
|
+
name: "forbiddenTokenMask",
|
|
722
|
+
internalType: "uint256",
|
|
723
|
+
type: "uint256"
|
|
724
|
+
},
|
|
725
|
+
{ name: "isPaused", internalType: "bool", type: "bool" }
|
|
726
|
+
]
|
|
641
727
|
},
|
|
642
|
-
{ name: "treasury", internalType: "address", type: "address" },
|
|
643
728
|
{
|
|
644
|
-
name: "
|
|
645
|
-
internalType: "struct
|
|
729
|
+
name: "creditManager",
|
|
730
|
+
internalType: "struct CreditManagerState",
|
|
731
|
+
type: "tuple",
|
|
732
|
+
components: [
|
|
733
|
+
{
|
|
734
|
+
name: "baseParams",
|
|
735
|
+
internalType: "struct BaseParams",
|
|
736
|
+
type: "tuple",
|
|
737
|
+
components: [
|
|
738
|
+
{ name: "addr", internalType: "address", type: "address" },
|
|
739
|
+
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
740
|
+
{
|
|
741
|
+
name: "contractType",
|
|
742
|
+
internalType: "bytes32",
|
|
743
|
+
type: "bytes32"
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
name: "serializedParams",
|
|
747
|
+
internalType: "bytes",
|
|
748
|
+
type: "bytes"
|
|
749
|
+
}
|
|
750
|
+
]
|
|
751
|
+
},
|
|
752
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
753
|
+
{
|
|
754
|
+
name: "accountFactory",
|
|
755
|
+
internalType: "address",
|
|
756
|
+
type: "address"
|
|
757
|
+
},
|
|
758
|
+
{ name: "underlying", internalType: "address", type: "address" },
|
|
759
|
+
{ name: "pool", internalType: "address", type: "address" },
|
|
760
|
+
{
|
|
761
|
+
name: "creditFacade",
|
|
762
|
+
internalType: "address",
|
|
763
|
+
type: "address"
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
name: "creditConfigurator",
|
|
767
|
+
internalType: "address",
|
|
768
|
+
type: "address"
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
name: "maxEnabledTokens",
|
|
772
|
+
internalType: "uint8",
|
|
773
|
+
type: "uint8"
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
name: "collateralTokens",
|
|
777
|
+
internalType: "struct CollateralToken[]",
|
|
778
|
+
type: "tuple[]",
|
|
779
|
+
components: [
|
|
780
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
781
|
+
{
|
|
782
|
+
name: "liquidationThreshold",
|
|
783
|
+
internalType: "uint16",
|
|
784
|
+
type: "uint16"
|
|
785
|
+
}
|
|
786
|
+
]
|
|
787
|
+
},
|
|
788
|
+
{ name: "feeInterest", internalType: "uint16", type: "uint16" },
|
|
789
|
+
{
|
|
790
|
+
name: "feeLiquidation",
|
|
791
|
+
internalType: "uint16",
|
|
792
|
+
type: "uint16"
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
name: "liquidationDiscount",
|
|
796
|
+
internalType: "uint16",
|
|
797
|
+
type: "uint16"
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
name: "feeLiquidationExpired",
|
|
801
|
+
internalType: "uint16",
|
|
802
|
+
type: "uint16"
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
name: "liquidationDiscountExpired",
|
|
806
|
+
internalType: "uint16",
|
|
807
|
+
type: "uint16"
|
|
808
|
+
}
|
|
809
|
+
]
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
name: "creditConfigurator",
|
|
813
|
+
internalType: "struct BaseState",
|
|
814
|
+
type: "tuple",
|
|
815
|
+
components: [
|
|
816
|
+
{
|
|
817
|
+
name: "baseParams",
|
|
818
|
+
internalType: "struct BaseParams",
|
|
819
|
+
type: "tuple",
|
|
820
|
+
components: [
|
|
821
|
+
{ name: "addr", internalType: "address", type: "address" },
|
|
822
|
+
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
823
|
+
{
|
|
824
|
+
name: "contractType",
|
|
825
|
+
internalType: "bytes32",
|
|
826
|
+
type: "bytes32"
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
name: "serializedParams",
|
|
830
|
+
internalType: "bytes",
|
|
831
|
+
type: "bytes"
|
|
832
|
+
}
|
|
833
|
+
]
|
|
834
|
+
}
|
|
835
|
+
]
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
name: "adapters",
|
|
839
|
+
internalType: "struct AdapterState[]",
|
|
840
|
+
type: "tuple[]",
|
|
841
|
+
components: [
|
|
842
|
+
{
|
|
843
|
+
name: "baseParams",
|
|
844
|
+
internalType: "struct BaseParams",
|
|
845
|
+
type: "tuple",
|
|
846
|
+
components: [
|
|
847
|
+
{ name: "addr", internalType: "address", type: "address" },
|
|
848
|
+
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
849
|
+
{
|
|
850
|
+
name: "contractType",
|
|
851
|
+
internalType: "bytes32",
|
|
852
|
+
type: "bytes32"
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
name: "serializedParams",
|
|
856
|
+
internalType: "bytes",
|
|
857
|
+
type: "bytes"
|
|
858
|
+
}
|
|
859
|
+
]
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
name: "targetContract",
|
|
863
|
+
internalType: "address",
|
|
864
|
+
type: "address"
|
|
865
|
+
}
|
|
866
|
+
]
|
|
867
|
+
}
|
|
868
|
+
]
|
|
869
|
+
}
|
|
870
|
+
],
|
|
871
|
+
stateMutability: "view"
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
type: "function",
|
|
875
|
+
inputs: [],
|
|
876
|
+
name: "version",
|
|
877
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
878
|
+
stateMutability: "view"
|
|
879
|
+
}
|
|
880
|
+
];
|
|
881
|
+
var iGaugeCompressorAbi = [
|
|
882
|
+
{
|
|
883
|
+
type: "function",
|
|
884
|
+
inputs: [],
|
|
885
|
+
name: "contractType",
|
|
886
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
887
|
+
stateMutability: "view"
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
type: "function",
|
|
891
|
+
inputs: [
|
|
892
|
+
{ name: "gauge", internalType: "address", type: "address" },
|
|
893
|
+
{ name: "staker", internalType: "address", type: "address" }
|
|
894
|
+
],
|
|
895
|
+
name: "getGauge",
|
|
896
|
+
outputs: [
|
|
897
|
+
{
|
|
898
|
+
name: "result",
|
|
899
|
+
internalType: "struct GaugeInfo",
|
|
900
|
+
type: "tuple",
|
|
901
|
+
components: [
|
|
902
|
+
{ name: "addr", internalType: "address", type: "address" },
|
|
903
|
+
{ name: "pool", internalType: "address", type: "address" },
|
|
904
|
+
{ name: "symbol", internalType: "string", type: "string" },
|
|
905
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
906
|
+
{ name: "voter", internalType: "address", type: "address" },
|
|
907
|
+
{ name: "underlying", internalType: "address", type: "address" },
|
|
908
|
+
{ name: "currentEpoch", internalType: "uint16", type: "uint16" },
|
|
909
|
+
{ name: "epochLastUpdate", internalType: "uint16", type: "uint16" },
|
|
910
|
+
{ name: "epochFrozen", internalType: "bool", type: "bool" },
|
|
911
|
+
{
|
|
912
|
+
name: "quotaParams",
|
|
913
|
+
internalType: "struct GaugeQuotaParams[]",
|
|
914
|
+
type: "tuple[]",
|
|
915
|
+
components: [
|
|
916
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
917
|
+
{ name: "minRate", internalType: "uint16", type: "uint16" },
|
|
918
|
+
{ name: "maxRate", internalType: "uint16", type: "uint16" },
|
|
919
|
+
{
|
|
920
|
+
name: "totalVotesLpSide",
|
|
921
|
+
internalType: "uint96",
|
|
922
|
+
type: "uint96"
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
name: "totalVotesCaSide",
|
|
926
|
+
internalType: "uint96",
|
|
927
|
+
type: "uint96"
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
name: "stakerVotesLpSide",
|
|
931
|
+
internalType: "uint96",
|
|
932
|
+
type: "uint96"
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
name: "stakerVotesCaSide",
|
|
936
|
+
internalType: "uint96",
|
|
937
|
+
type: "uint96"
|
|
938
|
+
}
|
|
939
|
+
]
|
|
940
|
+
}
|
|
941
|
+
]
|
|
942
|
+
}
|
|
943
|
+
],
|
|
944
|
+
stateMutability: "view"
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
type: "function",
|
|
948
|
+
inputs: [
|
|
949
|
+
{
|
|
950
|
+
name: "filter",
|
|
951
|
+
internalType: "struct MarketFilter",
|
|
952
|
+
type: "tuple",
|
|
953
|
+
components: [
|
|
954
|
+
{
|
|
955
|
+
name: "configurators",
|
|
956
|
+
internalType: "address[]",
|
|
957
|
+
type: "address[]"
|
|
958
|
+
},
|
|
959
|
+
{ name: "pools", internalType: "address[]", type: "address[]" },
|
|
960
|
+
{ name: "underlying", internalType: "address", type: "address" }
|
|
961
|
+
]
|
|
962
|
+
},
|
|
963
|
+
{ name: "staker", internalType: "address", type: "address" }
|
|
964
|
+
],
|
|
965
|
+
name: "getGauges",
|
|
966
|
+
outputs: [
|
|
967
|
+
{
|
|
968
|
+
name: "result",
|
|
969
|
+
internalType: "struct GaugeInfo[]",
|
|
970
|
+
type: "tuple[]",
|
|
971
|
+
components: [
|
|
972
|
+
{ name: "addr", internalType: "address", type: "address" },
|
|
973
|
+
{ name: "pool", internalType: "address", type: "address" },
|
|
974
|
+
{ name: "symbol", internalType: "string", type: "string" },
|
|
975
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
976
|
+
{ name: "voter", internalType: "address", type: "address" },
|
|
977
|
+
{ name: "underlying", internalType: "address", type: "address" },
|
|
978
|
+
{ name: "currentEpoch", internalType: "uint16", type: "uint16" },
|
|
979
|
+
{ name: "epochLastUpdate", internalType: "uint16", type: "uint16" },
|
|
980
|
+
{ name: "epochFrozen", internalType: "bool", type: "bool" },
|
|
981
|
+
{
|
|
982
|
+
name: "quotaParams",
|
|
983
|
+
internalType: "struct GaugeQuotaParams[]",
|
|
984
|
+
type: "tuple[]",
|
|
985
|
+
components: [
|
|
986
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
987
|
+
{ name: "minRate", internalType: "uint16", type: "uint16" },
|
|
988
|
+
{ name: "maxRate", internalType: "uint16", type: "uint16" },
|
|
989
|
+
{
|
|
990
|
+
name: "totalVotesLpSide",
|
|
991
|
+
internalType: "uint96",
|
|
992
|
+
type: "uint96"
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
name: "totalVotesCaSide",
|
|
996
|
+
internalType: "uint96",
|
|
997
|
+
type: "uint96"
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
name: "stakerVotesLpSide",
|
|
1001
|
+
internalType: "uint96",
|
|
1002
|
+
type: "uint96"
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
name: "stakerVotesCaSide",
|
|
1006
|
+
internalType: "uint96",
|
|
1007
|
+
type: "uint96"
|
|
1008
|
+
}
|
|
1009
|
+
]
|
|
1010
|
+
}
|
|
1011
|
+
]
|
|
1012
|
+
}
|
|
1013
|
+
],
|
|
1014
|
+
stateMutability: "view"
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
type: "function",
|
|
1018
|
+
inputs: [],
|
|
1019
|
+
name: "version",
|
|
1020
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
1021
|
+
stateMutability: "view"
|
|
1022
|
+
}
|
|
1023
|
+
];
|
|
1024
|
+
var iMarketCompressorAbi = [
|
|
1025
|
+
{
|
|
1026
|
+
type: "function",
|
|
1027
|
+
inputs: [],
|
|
1028
|
+
name: "contractType",
|
|
1029
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
1030
|
+
stateMutability: "view"
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
type: "function",
|
|
1034
|
+
inputs: [
|
|
1035
|
+
{ name: "pool", internalType: "address", type: "address" },
|
|
1036
|
+
{ name: "configurator", internalType: "address", type: "address" }
|
|
1037
|
+
],
|
|
1038
|
+
name: "getMarketData",
|
|
1039
|
+
outputs: [
|
|
1040
|
+
{
|
|
1041
|
+
name: "result",
|
|
1042
|
+
internalType: "struct MarketData",
|
|
1043
|
+
type: "tuple",
|
|
1044
|
+
components: [
|
|
1045
|
+
{ name: "acl", internalType: "address", type: "address" },
|
|
1046
|
+
{
|
|
1047
|
+
name: "contractsRegister",
|
|
1048
|
+
internalType: "address",
|
|
1049
|
+
type: "address"
|
|
1050
|
+
},
|
|
1051
|
+
{ name: "treasury", internalType: "address", type: "address" },
|
|
1052
|
+
{
|
|
1053
|
+
name: "pool",
|
|
1054
|
+
internalType: "struct PoolState",
|
|
646
1055
|
type: "tuple",
|
|
647
1056
|
components: [
|
|
648
1057
|
{
|
|
@@ -2720,6 +3129,15 @@ var iMarketCompressorAbi = [
|
|
|
2720
3129
|
stateMutability: "view"
|
|
2721
3130
|
}
|
|
2722
3131
|
];
|
|
3132
|
+
var iModifiedBoosterAbi = [
|
|
3133
|
+
{
|
|
3134
|
+
type: "function",
|
|
3135
|
+
inputs: [{ name: "pool", internalType: "address", type: "address" }],
|
|
3136
|
+
name: "getRewardMultipliers",
|
|
3137
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
3138
|
+
stateMutability: "view"
|
|
3139
|
+
}
|
|
3140
|
+
];
|
|
2723
3141
|
var iPeripheryCompressorAbi = [
|
|
2724
3142
|
{
|
|
2725
3143
|
type: "function",
|
|
@@ -2834,6 +3252,309 @@ var iPeripheryCompressorAbi = [
|
|
|
2834
3252
|
stateMutability: "view"
|
|
2835
3253
|
}
|
|
2836
3254
|
];
|
|
3255
|
+
var iPoolCompressorAbi = [
|
|
3256
|
+
{
|
|
3257
|
+
type: "function",
|
|
3258
|
+
inputs: [],
|
|
3259
|
+
name: "contractType",
|
|
3260
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
3261
|
+
stateMutability: "view"
|
|
3262
|
+
},
|
|
3263
|
+
{
|
|
3264
|
+
type: "function",
|
|
3265
|
+
inputs: [
|
|
3266
|
+
{ name: "interestRateModel", internalType: "address", type: "address" }
|
|
3267
|
+
],
|
|
3268
|
+
name: "getInterestRateModelState",
|
|
3269
|
+
outputs: [
|
|
3270
|
+
{
|
|
3271
|
+
name: "",
|
|
3272
|
+
internalType: "struct BaseState",
|
|
3273
|
+
type: "tuple",
|
|
3274
|
+
components: [
|
|
3275
|
+
{
|
|
3276
|
+
name: "baseParams",
|
|
3277
|
+
internalType: "struct BaseParams",
|
|
3278
|
+
type: "tuple",
|
|
3279
|
+
components: [
|
|
3280
|
+
{ name: "addr", internalType: "address", type: "address" },
|
|
3281
|
+
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
3282
|
+
{
|
|
3283
|
+
name: "contractType",
|
|
3284
|
+
internalType: "bytes32",
|
|
3285
|
+
type: "bytes32"
|
|
3286
|
+
},
|
|
3287
|
+
{
|
|
3288
|
+
name: "serializedParams",
|
|
3289
|
+
internalType: "bytes",
|
|
3290
|
+
type: "bytes"
|
|
3291
|
+
}
|
|
3292
|
+
]
|
|
3293
|
+
}
|
|
3294
|
+
]
|
|
3295
|
+
}
|
|
3296
|
+
],
|
|
3297
|
+
stateMutability: "view"
|
|
3298
|
+
},
|
|
3299
|
+
{
|
|
3300
|
+
type: "function",
|
|
3301
|
+
inputs: [{ name: "lossPolicy", internalType: "address", type: "address" }],
|
|
3302
|
+
name: "getLossPolicyState",
|
|
3303
|
+
outputs: [
|
|
3304
|
+
{
|
|
3305
|
+
name: "",
|
|
3306
|
+
internalType: "struct BaseState",
|
|
3307
|
+
type: "tuple",
|
|
3308
|
+
components: [
|
|
3309
|
+
{
|
|
3310
|
+
name: "baseParams",
|
|
3311
|
+
internalType: "struct BaseParams",
|
|
3312
|
+
type: "tuple",
|
|
3313
|
+
components: [
|
|
3314
|
+
{ name: "addr", internalType: "address", type: "address" },
|
|
3315
|
+
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
3316
|
+
{
|
|
3317
|
+
name: "contractType",
|
|
3318
|
+
internalType: "bytes32",
|
|
3319
|
+
type: "bytes32"
|
|
3320
|
+
},
|
|
3321
|
+
{
|
|
3322
|
+
name: "serializedParams",
|
|
3323
|
+
internalType: "bytes",
|
|
3324
|
+
type: "bytes"
|
|
3325
|
+
}
|
|
3326
|
+
]
|
|
3327
|
+
}
|
|
3328
|
+
]
|
|
3329
|
+
}
|
|
3330
|
+
],
|
|
3331
|
+
stateMutability: "view"
|
|
3332
|
+
},
|
|
3333
|
+
{
|
|
3334
|
+
type: "function",
|
|
3335
|
+
inputs: [{ name: "quotaKeeper", internalType: "address", type: "address" }],
|
|
3336
|
+
name: "getPoolQuotaKeeperState",
|
|
3337
|
+
outputs: [
|
|
3338
|
+
{
|
|
3339
|
+
name: "",
|
|
3340
|
+
internalType: "struct PoolQuotaKeeperState",
|
|
3341
|
+
type: "tuple",
|
|
3342
|
+
components: [
|
|
3343
|
+
{
|
|
3344
|
+
name: "baseParams",
|
|
3345
|
+
internalType: "struct BaseParams",
|
|
3346
|
+
type: "tuple",
|
|
3347
|
+
components: [
|
|
3348
|
+
{ name: "addr", internalType: "address", type: "address" },
|
|
3349
|
+
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
3350
|
+
{
|
|
3351
|
+
name: "contractType",
|
|
3352
|
+
internalType: "bytes32",
|
|
3353
|
+
type: "bytes32"
|
|
3354
|
+
},
|
|
3355
|
+
{
|
|
3356
|
+
name: "serializedParams",
|
|
3357
|
+
internalType: "bytes",
|
|
3358
|
+
type: "bytes"
|
|
3359
|
+
}
|
|
3360
|
+
]
|
|
3361
|
+
},
|
|
3362
|
+
{ name: "rateKeeper", internalType: "address", type: "address" },
|
|
3363
|
+
{
|
|
3364
|
+
name: "quotas",
|
|
3365
|
+
internalType: "struct QuotaTokenParams[]",
|
|
3366
|
+
type: "tuple[]",
|
|
3367
|
+
components: [
|
|
3368
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
3369
|
+
{ name: "rate", internalType: "uint16", type: "uint16" },
|
|
3370
|
+
{
|
|
3371
|
+
name: "cumulativeIndexLU",
|
|
3372
|
+
internalType: "uint192",
|
|
3373
|
+
type: "uint192"
|
|
3374
|
+
},
|
|
3375
|
+
{
|
|
3376
|
+
name: "quotaIncreaseFee",
|
|
3377
|
+
internalType: "uint16",
|
|
3378
|
+
type: "uint16"
|
|
3379
|
+
},
|
|
3380
|
+
{ name: "totalQuoted", internalType: "uint96", type: "uint96" },
|
|
3381
|
+
{ name: "limit", internalType: "uint96", type: "uint96" },
|
|
3382
|
+
{ name: "isActive", internalType: "bool", type: "bool" }
|
|
3383
|
+
]
|
|
3384
|
+
},
|
|
3385
|
+
{
|
|
3386
|
+
name: "creditManagers",
|
|
3387
|
+
internalType: "address[]",
|
|
3388
|
+
type: "address[]"
|
|
3389
|
+
},
|
|
3390
|
+
{
|
|
3391
|
+
name: "lastQuotaRateUpdate",
|
|
3392
|
+
internalType: "uint40",
|
|
3393
|
+
type: "uint40"
|
|
3394
|
+
}
|
|
3395
|
+
]
|
|
3396
|
+
}
|
|
3397
|
+
],
|
|
3398
|
+
stateMutability: "view"
|
|
3399
|
+
},
|
|
3400
|
+
{
|
|
3401
|
+
type: "function",
|
|
3402
|
+
inputs: [{ name: "pool", internalType: "address", type: "address" }],
|
|
3403
|
+
name: "getPoolState",
|
|
3404
|
+
outputs: [
|
|
3405
|
+
{
|
|
3406
|
+
name: "",
|
|
3407
|
+
internalType: "struct PoolState",
|
|
3408
|
+
type: "tuple",
|
|
3409
|
+
components: [
|
|
3410
|
+
{
|
|
3411
|
+
name: "baseParams",
|
|
3412
|
+
internalType: "struct BaseParams",
|
|
3413
|
+
type: "tuple",
|
|
3414
|
+
components: [
|
|
3415
|
+
{ name: "addr", internalType: "address", type: "address" },
|
|
3416
|
+
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
3417
|
+
{
|
|
3418
|
+
name: "contractType",
|
|
3419
|
+
internalType: "bytes32",
|
|
3420
|
+
type: "bytes32"
|
|
3421
|
+
},
|
|
3422
|
+
{
|
|
3423
|
+
name: "serializedParams",
|
|
3424
|
+
internalType: "bytes",
|
|
3425
|
+
type: "bytes"
|
|
3426
|
+
}
|
|
3427
|
+
]
|
|
3428
|
+
},
|
|
3429
|
+
{ name: "symbol", internalType: "string", type: "string" },
|
|
3430
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
3431
|
+
{ name: "decimals", internalType: "uint8", type: "uint8" },
|
|
3432
|
+
{ name: "totalSupply", internalType: "uint256", type: "uint256" },
|
|
3433
|
+
{ name: "poolQuotaKeeper", internalType: "address", type: "address" },
|
|
3434
|
+
{
|
|
3435
|
+
name: "interestRateModel",
|
|
3436
|
+
internalType: "address",
|
|
3437
|
+
type: "address"
|
|
3438
|
+
},
|
|
3439
|
+
{ name: "underlying", internalType: "address", type: "address" },
|
|
3440
|
+
{
|
|
3441
|
+
name: "availableLiquidity",
|
|
3442
|
+
internalType: "uint256",
|
|
3443
|
+
type: "uint256"
|
|
3444
|
+
},
|
|
3445
|
+
{
|
|
3446
|
+
name: "expectedLiquidity",
|
|
3447
|
+
internalType: "uint256",
|
|
3448
|
+
type: "uint256"
|
|
3449
|
+
},
|
|
3450
|
+
{
|
|
3451
|
+
name: "baseInterestIndex",
|
|
3452
|
+
internalType: "uint256",
|
|
3453
|
+
type: "uint256"
|
|
3454
|
+
},
|
|
3455
|
+
{
|
|
3456
|
+
name: "baseInterestRate",
|
|
3457
|
+
internalType: "uint256",
|
|
3458
|
+
type: "uint256"
|
|
3459
|
+
},
|
|
3460
|
+
{ name: "dieselRate", internalType: "uint256", type: "uint256" },
|
|
3461
|
+
{ name: "supplyRate", internalType: "uint256", type: "uint256" },
|
|
3462
|
+
{ name: "withdrawFee", internalType: "uint256", type: "uint256" },
|
|
3463
|
+
{ name: "totalBorrowed", internalType: "uint256", type: "uint256" },
|
|
3464
|
+
{ name: "totalDebtLimit", internalType: "uint256", type: "uint256" },
|
|
3465
|
+
{
|
|
3466
|
+
name: "creditManagerDebtParams",
|
|
3467
|
+
internalType: "struct CreditManagerDebtParams[]",
|
|
3468
|
+
type: "tuple[]",
|
|
3469
|
+
components: [
|
|
3470
|
+
{
|
|
3471
|
+
name: "creditManager",
|
|
3472
|
+
internalType: "address",
|
|
3473
|
+
type: "address"
|
|
3474
|
+
},
|
|
3475
|
+
{ name: "borrowed", internalType: "uint256", type: "uint256" },
|
|
3476
|
+
{ name: "limit", internalType: "uint256", type: "uint256" },
|
|
3477
|
+
{ name: "available", internalType: "uint256", type: "uint256" }
|
|
3478
|
+
]
|
|
3479
|
+
},
|
|
3480
|
+
{
|
|
3481
|
+
name: "baseInterestIndexLU",
|
|
3482
|
+
internalType: "uint256",
|
|
3483
|
+
type: "uint256"
|
|
3484
|
+
},
|
|
3485
|
+
{
|
|
3486
|
+
name: "expectedLiquidityLU",
|
|
3487
|
+
internalType: "uint256",
|
|
3488
|
+
type: "uint256"
|
|
3489
|
+
},
|
|
3490
|
+
{ name: "quotaRevenue", internalType: "uint256", type: "uint256" },
|
|
3491
|
+
{
|
|
3492
|
+
name: "lastBaseInterestUpdate",
|
|
3493
|
+
internalType: "uint40",
|
|
3494
|
+
type: "uint40"
|
|
3495
|
+
},
|
|
3496
|
+
{
|
|
3497
|
+
name: "lastQuotaRevenueUpdate",
|
|
3498
|
+
internalType: "uint40",
|
|
3499
|
+
type: "uint40"
|
|
3500
|
+
},
|
|
3501
|
+
{ name: "isPaused", internalType: "bool", type: "bool" }
|
|
3502
|
+
]
|
|
3503
|
+
}
|
|
3504
|
+
],
|
|
3505
|
+
stateMutability: "view"
|
|
3506
|
+
},
|
|
3507
|
+
{
|
|
3508
|
+
type: "function",
|
|
3509
|
+
inputs: [{ name: "rateKeeper", internalType: "address", type: "address" }],
|
|
3510
|
+
name: "getRateKeeperState",
|
|
3511
|
+
outputs: [
|
|
3512
|
+
{
|
|
3513
|
+
name: "",
|
|
3514
|
+
internalType: "struct RateKeeperState",
|
|
3515
|
+
type: "tuple",
|
|
3516
|
+
components: [
|
|
3517
|
+
{
|
|
3518
|
+
name: "baseParams",
|
|
3519
|
+
internalType: "struct BaseParams",
|
|
3520
|
+
type: "tuple",
|
|
3521
|
+
components: [
|
|
3522
|
+
{ name: "addr", internalType: "address", type: "address" },
|
|
3523
|
+
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
3524
|
+
{
|
|
3525
|
+
name: "contractType",
|
|
3526
|
+
internalType: "bytes32",
|
|
3527
|
+
type: "bytes32"
|
|
3528
|
+
},
|
|
3529
|
+
{
|
|
3530
|
+
name: "serializedParams",
|
|
3531
|
+
internalType: "bytes",
|
|
3532
|
+
type: "bytes"
|
|
3533
|
+
}
|
|
3534
|
+
]
|
|
3535
|
+
},
|
|
3536
|
+
{
|
|
3537
|
+
name: "rates",
|
|
3538
|
+
internalType: "struct Rate[]",
|
|
3539
|
+
type: "tuple[]",
|
|
3540
|
+
components: [
|
|
3541
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
3542
|
+
{ name: "rate", internalType: "uint16", type: "uint16" }
|
|
3543
|
+
]
|
|
3544
|
+
}
|
|
3545
|
+
]
|
|
3546
|
+
}
|
|
3547
|
+
],
|
|
3548
|
+
stateMutability: "view"
|
|
3549
|
+
},
|
|
3550
|
+
{
|
|
3551
|
+
type: "function",
|
|
3552
|
+
inputs: [],
|
|
3553
|
+
name: "version",
|
|
3554
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
3555
|
+
stateMutability: "view"
|
|
3556
|
+
}
|
|
3557
|
+
];
|
|
2837
3558
|
var iPriceFeedCompressorAbi = [
|
|
2838
3559
|
{
|
|
2839
3560
|
type: "function",
|
|
@@ -55999,7 +56720,8 @@ var BLOCKS_PER_WEEK_BY_NETWORK = {
|
|
|
55999
56720
|
var AddressMap = class {
|
|
56000
56721
|
#map;
|
|
56001
56722
|
#frozen = false;
|
|
56002
|
-
|
|
56723
|
+
#name;
|
|
56724
|
+
constructor(entries, name) {
|
|
56003
56725
|
this.#map = /* @__PURE__ */ new Map();
|
|
56004
56726
|
if (entries) {
|
|
56005
56727
|
for (const [address, value] of entries) {
|
|
@@ -56007,6 +56729,7 @@ var AddressMap = class {
|
|
|
56007
56729
|
this.#map.set(key, value);
|
|
56008
56730
|
}
|
|
56009
56731
|
}
|
|
56732
|
+
this.#name = name;
|
|
56010
56733
|
}
|
|
56011
56734
|
/**
|
|
56012
56735
|
* Adds or updates value
|
|
@@ -56015,7 +56738,7 @@ var AddressMap = class {
|
|
|
56015
56738
|
*/
|
|
56016
56739
|
upsert(address, value) {
|
|
56017
56740
|
if (this.#frozen) {
|
|
56018
|
-
throw new Error(`AddressMap is frozen`);
|
|
56741
|
+
throw new Error(`AddressMap ${this.#name} is frozen`);
|
|
56019
56742
|
}
|
|
56020
56743
|
const key = viem.getAddress(address);
|
|
56021
56744
|
this.#map.set(key, value);
|
|
@@ -56027,11 +56750,13 @@ var AddressMap = class {
|
|
|
56027
56750
|
*/
|
|
56028
56751
|
insert(address, value) {
|
|
56029
56752
|
if (this.#frozen) {
|
|
56030
|
-
throw new Error(`AddressMap is frozen`);
|
|
56753
|
+
throw new Error(`AddressMap ${this.#name} is frozen`);
|
|
56031
56754
|
}
|
|
56032
56755
|
const key = viem.getAddress(address);
|
|
56033
56756
|
if (this.#map.has(key)) {
|
|
56034
|
-
throw new Error(
|
|
56757
|
+
throw new Error(
|
|
56758
|
+
`address ${address} already exists in ${this.#name ?? "map"}`
|
|
56759
|
+
);
|
|
56035
56760
|
}
|
|
56036
56761
|
this.#map.set(key, value);
|
|
56037
56762
|
}
|
|
@@ -56061,7 +56786,7 @@ var AddressMap = class {
|
|
|
56061
56786
|
mustGet(address) {
|
|
56062
56787
|
const v = this.get(address);
|
|
56063
56788
|
if (!v) {
|
|
56064
|
-
throw new Error(`address ${address} not found in map`);
|
|
56789
|
+
throw new Error(`address ${address} not found in ${this.#name ?? "map"}`);
|
|
56065
56790
|
}
|
|
56066
56791
|
return v;
|
|
56067
56792
|
}
|
|
@@ -56325,7 +57050,7 @@ async function retry(fn, options = {}) {
|
|
|
56325
57050
|
|
|
56326
57051
|
// src/sdk/base/AddressLabeller.ts
|
|
56327
57052
|
var AddressLabeller = class {
|
|
56328
|
-
#labels = new AddressMap();
|
|
57053
|
+
#labels = new AddressMap(undefined, "addressLabeller");
|
|
56329
57054
|
set(address, label) {
|
|
56330
57055
|
if (address === NOT_DEPLOYED) {
|
|
56331
57056
|
return;
|
|
@@ -57454,9 +58179,10 @@ var CreditManagerV300Contract = class extends BaseContract {
|
|
|
57454
58179
|
});
|
|
57455
58180
|
Object.assign(this, rest2);
|
|
57456
58181
|
this.liquidationThresholds = new AddressMap(
|
|
57457
|
-
collateralTokens.map((ct) => [ct.token, ct.liquidationThreshold])
|
|
58182
|
+
collateralTokens.map((ct) => [ct.token, ct.liquidationThreshold]),
|
|
58183
|
+
"liquidationThresholds"
|
|
57458
58184
|
);
|
|
57459
|
-
this.adapters = new AddressMap();
|
|
58185
|
+
this.adapters = new AddressMap(undefined, "adapters");
|
|
57460
58186
|
for (const adapterData of adapters) {
|
|
57461
58187
|
try {
|
|
57462
58188
|
const adapter = createAdapter(this.sdk, adapterData);
|
|
@@ -57535,9 +58261,10 @@ var CreditManagerV310Contract = class extends BaseContract {
|
|
|
57535
58261
|
});
|
|
57536
58262
|
Object.assign(this, rest2);
|
|
57537
58263
|
this.liquidationThresholds = new AddressMap(
|
|
57538
|
-
collateralTokens.map((ct) => [ct.token, ct.liquidationThreshold])
|
|
58264
|
+
collateralTokens.map((ct) => [ct.token, ct.liquidationThreshold]),
|
|
58265
|
+
"liquidationThresholds"
|
|
57539
58266
|
);
|
|
57540
|
-
this.adapters = new AddressMap();
|
|
58267
|
+
this.adapters = new AddressMap(undefined, "adapters");
|
|
57541
58268
|
for (const adapterData of adapters) {
|
|
57542
58269
|
try {
|
|
57543
58270
|
const adapter = createAdapter(this.sdk, adapterData);
|
|
@@ -63656,7 +64383,7 @@ var ZeroPriceFeedContract = class extends AbstractPriceFeedContract {
|
|
|
63656
64383
|
var PriceFeedRegister = class extends SDKConstruct {
|
|
63657
64384
|
logger;
|
|
63658
64385
|
#hooks = new Hooks();
|
|
63659
|
-
#feeds = new AddressMap();
|
|
64386
|
+
#feeds = new AddressMap(undefined, "priceFeeds");
|
|
63660
64387
|
redstoneUpdater;
|
|
63661
64388
|
constructor(sdk) {
|
|
63662
64389
|
super(sdk);
|
|
@@ -63857,19 +64584,28 @@ var PriceOracleBaseContract = class extends BaseContract {
|
|
|
63857
64584
|
/**
|
|
63858
64585
|
* Mapping Token => [PriceFeed Address, stalenessPeriod]
|
|
63859
64586
|
*/
|
|
63860
|
-
mainPriceFeeds = new AddressMap(
|
|
64587
|
+
mainPriceFeeds = new AddressMap(
|
|
64588
|
+
undefined,
|
|
64589
|
+
"mainPriceFeeds"
|
|
64590
|
+
);
|
|
63861
64591
|
/**
|
|
63862
64592
|
* Mapping Token => [PriceFeed Address, stalenessPeriod]
|
|
63863
64593
|
*/
|
|
63864
|
-
reservePriceFeeds = new AddressMap(
|
|
64594
|
+
reservePriceFeeds = new AddressMap(
|
|
64595
|
+
undefined,
|
|
64596
|
+
"reservePriceFeeds"
|
|
64597
|
+
);
|
|
63865
64598
|
/**
|
|
63866
64599
|
* Mapping Token => Price in underlying
|
|
63867
64600
|
*/
|
|
63868
|
-
mainPrices = new AddressMap();
|
|
64601
|
+
mainPrices = new AddressMap(undefined, "mainPrices");
|
|
63869
64602
|
/**
|
|
63870
64603
|
* Mapping Token => Price in underlying
|
|
63871
64604
|
*/
|
|
63872
|
-
reservePrices = new AddressMap(
|
|
64605
|
+
reservePrices = new AddressMap(
|
|
64606
|
+
undefined,
|
|
64607
|
+
"reservePrices"
|
|
64608
|
+
);
|
|
63873
64609
|
#priceFeedTree = [];
|
|
63874
64610
|
constructor(sdk, args, data, underlying) {
|
|
63875
64611
|
super(sdk, args);
|
|
@@ -64339,7 +65075,8 @@ var PoolQuotaKeeperV300Contract = class extends BaseContract {
|
|
|
64339
65075
|
this.quotas = new AddressMap(
|
|
64340
65076
|
pqk.quotas.map((q) => {
|
|
64341
65077
|
return [q.token, q];
|
|
64342
|
-
})
|
|
65078
|
+
}),
|
|
65079
|
+
"quotas"
|
|
64343
65080
|
);
|
|
64344
65081
|
}
|
|
64345
65082
|
stateHuman(raw = true) {
|
|
@@ -64640,7 +65377,8 @@ var PoolQuotaKeeperV310Contract = class extends BaseContract {
|
|
|
64640
65377
|
this.quotas = new AddressMap(
|
|
64641
65378
|
pqk.quotas.map((q) => {
|
|
64642
65379
|
return [q.token, q];
|
|
64643
|
-
})
|
|
65380
|
+
}),
|
|
65381
|
+
"quotas"
|
|
64644
65382
|
);
|
|
64645
65383
|
}
|
|
64646
65384
|
stateHuman(raw = true) {
|
|
@@ -64863,8 +65601,8 @@ var MarketRegister = class extends SDKConstruct {
|
|
|
64863
65601
|
/**
|
|
64864
65602
|
* Mapping pool.address -> MarketSuite
|
|
64865
65603
|
*/
|
|
64866
|
-
#markets = new AddressMap();
|
|
64867
|
-
#zappers = new AddressMap();
|
|
65604
|
+
#markets = new AddressMap(undefined, "markets");
|
|
65605
|
+
#zappers = new AddressMap(undefined, "zappers");
|
|
64868
65606
|
#marketFilter;
|
|
64869
65607
|
constructor(sdk, markets) {
|
|
64870
65608
|
super(sdk);
|
|
@@ -72001,11 +72739,14 @@ var GearboxSDK = class _GearboxSDK {
|
|
|
72001
72739
|
/**
|
|
72002
72740
|
* All contracts known to sdk
|
|
72003
72741
|
*/
|
|
72004
|
-
contracts = new AddressMap(
|
|
72742
|
+
contracts = new AddressMap(
|
|
72743
|
+
undefined,
|
|
72744
|
+
"contracts"
|
|
72745
|
+
);
|
|
72005
72746
|
/**
|
|
72006
72747
|
* Token metadata such as symbol and decimals
|
|
72007
72748
|
*/
|
|
72008
|
-
tokensMeta = new TokensMeta();
|
|
72749
|
+
tokensMeta = new TokensMeta(undefined, "tokensMeta");
|
|
72009
72750
|
addHook = this.#hooks.addHook.bind(this.#hooks);
|
|
72010
72751
|
removeHook = this.#hooks.removeHook.bind(this.#hooks);
|
|
72011
72752
|
static async attach(options) {
|
|
@@ -72173,6 +72914,7 @@ var GearboxSDK = class _GearboxSDK {
|
|
|
72173
72914
|
botList: this.botListContract.stateHuman(raw),
|
|
72174
72915
|
gearStakingV3: this.gearStakingContract.stateHuman(raw)
|
|
72175
72916
|
},
|
|
72917
|
+
tokens: this.tokensMeta.values(),
|
|
72176
72918
|
...this.marketRegister.stateHuman(raw)
|
|
72177
72919
|
};
|
|
72178
72920
|
}
|
|
@@ -72596,10 +73338,12 @@ exports.iAddressProviderV300Abi = iAddressProviderV300Abi;
|
|
|
72596
73338
|
exports.iAddressProviderV310Abi = iAddressProviderV310Abi;
|
|
72597
73339
|
exports.iAirdropDistributorAbi = iAirdropDistributorAbi;
|
|
72598
73340
|
exports.iArbTokenAbi = iArbTokenAbi;
|
|
73341
|
+
exports.iAuraL2CoordinatorAbi = iAuraL2CoordinatorAbi;
|
|
72599
73342
|
exports.iBalancerStablePoolAbi = iBalancerStablePoolAbi;
|
|
72600
73343
|
exports.iBalancerWeightedPoolAbi = iBalancerWeightedPoolAbi;
|
|
72601
73344
|
exports.iBaseRewardPoolAbi = iBaseRewardPoolAbi;
|
|
72602
73345
|
exports.iCamelotV3QuoterAbi = iCamelotV3QuoterAbi;
|
|
73346
|
+
exports.iConvexTokenAbi = iConvexTokenAbi;
|
|
72603
73347
|
exports.iCreditAccountCompressorAbi = iCreditAccountCompressorAbi;
|
|
72604
73348
|
exports.iCreditConfiguratorV300Abi = iCreditConfiguratorV300Abi;
|
|
72605
73349
|
exports.iCreditConfiguratorV310Abi = iCreditConfiguratorV310Abi;
|
|
@@ -72617,6 +73361,7 @@ exports.iCreditFacadeV3EventsAbi = iCreditFacadeV3EventsAbi;
|
|
|
72617
73361
|
exports.iCreditFacadeV3MulticallAbi = iCreditFacadeV3MulticallAbi;
|
|
72618
73362
|
exports.iCreditManagerV300Abi = iCreditManagerV300Abi;
|
|
72619
73363
|
exports.iCreditManagerV310Abi = iCreditManagerV310Abi;
|
|
73364
|
+
exports.iCreditSuiteCompressorAbi = iCreditSuiteCompressorAbi;
|
|
72620
73365
|
exports.iCurvePoolAbi = iCurvePoolAbi;
|
|
72621
73366
|
exports.iDaiUsdsAdapterAbi = iDaiUsdsAdapterAbi;
|
|
72622
73367
|
exports.iDataCompressorV3Abi = iDataCompressorV3Abi;
|
|
@@ -72636,12 +73381,14 @@ exports.iMarketCompressorAbi = iMarketCompressorAbi;
|
|
|
72636
73381
|
exports.iMarketConfiguratorV310Abi = iMarketConfiguratorV310Abi;
|
|
72637
73382
|
exports.iMellowVaultAbi = iMellowVaultAbi;
|
|
72638
73383
|
exports.iMellowVaultAdapterAbi = iMellowVaultAdapterAbi;
|
|
73384
|
+
exports.iModifiedBoosterAbi = iModifiedBoosterAbi;
|
|
72639
73385
|
exports.iMulticall3Abi = iMulticall3Abi;
|
|
72640
73386
|
exports.iOffchainOracleAbi = iOffchainOracleAbi;
|
|
72641
73387
|
exports.iOptimismMintableErc20Abi = iOptimismMintableErc20Abi;
|
|
72642
73388
|
exports.iPausableAbi = iPausableAbi;
|
|
72643
73389
|
exports.iPendleRouterAdapterAbi = iPendleRouterAdapterAbi;
|
|
72644
73390
|
exports.iPeripheryCompressorAbi = iPeripheryCompressorAbi;
|
|
73391
|
+
exports.iPoolCompressorAbi = iPoolCompressorAbi;
|
|
72645
73392
|
exports.iPoolQuotaKeeperV300Abi = iPoolQuotaKeeperV300Abi;
|
|
72646
73393
|
exports.iPoolQuotaKeeperV310Abi = iPoolQuotaKeeperV310Abi;
|
|
72647
73394
|
exports.iPoolV300Abi = iPoolV300Abi;
|