@ripe-finance/sdk 1.14.1 → 1.15.0
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/contracts/AuctionHouse.d.ts +126 -60
- package/dist/contracts/AuctionHouse.d.ts.map +1 -1
- package/dist/contracts/AuctionHouse.js +145 -75
- package/dist/contracts/BondRoom.js +1 -1
- package/dist/contracts/CreditEngine.d.ts +741 -272
- package/dist/contracts/CreditEngine.d.ts.map +1 -1
- package/dist/contracts/CreditEngine.js +820 -266
- package/dist/contracts/CreditRedeem.d.ts +475 -0
- package/dist/contracts/CreditRedeem.d.ts.map +1 -0
- package/dist/contracts/CreditRedeem.js +551 -0
- package/dist/contracts/Deleverage.d.ts +929 -0
- package/dist/contracts/Deleverage.d.ts.map +1 -0
- package/dist/contracts/Deleverage.js +1095 -0
- package/dist/contracts/Endaoment.d.ts +230 -1138
- package/dist/contracts/Endaoment.d.ts.map +1 -1
- package/dist/contracts/Endaoment.js +216 -1445
- package/dist/contracts/EndaomentFunds.d.ts +241 -0
- package/dist/contracts/EndaomentFunds.d.ts.map +1 -0
- package/dist/contracts/EndaomentFunds.js +278 -0
- package/dist/contracts/EndaomentPSM.d.ts +1229 -0
- package/dist/contracts/EndaomentPSM.d.ts.map +1 -0
- package/dist/contracts/{PriceSheets.js → EndaomentPSM.js} +840 -685
- package/dist/contracts/Lootbox.d.ts +184 -0
- package/dist/contracts/Lootbox.d.ts.map +1 -1
- package/dist/contracts/Lootbox.js +232 -1
- package/dist/contracts/PriceDesk.js +1 -1
- package/dist/contracts/PythPrices.d.ts +60 -8
- package/dist/contracts/PythPrices.d.ts.map +1 -1
- package/dist/contracts/PythPrices.js +77 -9
- package/dist/contracts/RedStone.d.ts +1581 -0
- package/dist/contracts/RedStone.d.ts.map +1 -0
- package/dist/contracts/{AgentFactory_v2.js → RedStone.js} +1077 -682
- package/dist/contracts/RipePoolAero.d.ts +5 -5
- package/dist/contracts/RipePoolAero.d.ts.map +1 -1
- package/dist/contracts/StorkPrices.d.ts +8 -8
- package/dist/contracts/StorkPrices.d.ts.map +1 -1
- package/dist/contracts/StorkPrices.js +9 -9
- package/dist/contracts/SwitchboardAlpha.d.ts +168 -0
- package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
- package/dist/contracts/SwitchboardAlpha.js +217 -1
- package/dist/contracts/SwitchboardCharlie.d.ts +133 -1760
- package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -1
- package/dist/contracts/SwitchboardCharlie.js +129 -2217
- package/dist/contracts/SwitchboardDelta.d.ts +115 -0
- package/dist/contracts/SwitchboardDelta.d.ts.map +1 -1
- package/dist/contracts/SwitchboardDelta.js +144 -1
- package/dist/contracts/SwitchboardEcho.d.ts +3296 -0
- package/dist/contracts/SwitchboardEcho.d.ts.map +1 -0
- package/dist/contracts/{Agent.js → SwitchboardEcho.js} +2424 -1698
- package/dist/contracts/Teller.d.ts +378 -0
- package/dist/contracts/Teller.d.ts.map +1 -1
- package/dist/contracts/Teller.js +475 -1
- package/dist/contracts/TellerUtils.d.ts +819 -0
- package/dist/contracts/TellerUtils.d.ts.map +1 -0
- package/dist/contracts/TellerUtils.js +994 -0
- package/dist/contracts/UnderscoreVault.d.ts +1028 -0
- package/dist/contracts/UnderscoreVault.d.ts.map +1 -0
- package/dist/contracts/UnderscoreVault.js +1243 -0
- package/dist/contracts/UndyVaultPrices.d.ts +1781 -0
- package/dist/contracts/UndyVaultPrices.d.ts.map +1 -0
- package/dist/contracts/{AgentFactory.js → UndyVaultPrices.js} +1185 -1024
- package/dist/contracts/index.d.ts +10 -0
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +10 -0
- package/dist/contracts/sdk.d.ts +20 -0
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/contracts/sdk.js +20 -0
- package/dist/contracts/{LegoMorpho.d.ts → wsuperOETHbPrices.d.ts} +610 -573
- package/dist/contracts/wsuperOETHbPrices.d.ts.map +1 -0
- package/dist/contracts/{LegoMorpho.js → wsuperOETHbPrices.js} +654 -632
- package/dist/index.d.ts +354 -68
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -0
- package/package.json +3 -3
- package/dist/contracts/AddyRegistry.d.ts +0 -1109
- package/dist/contracts/AddyRegistry.d.ts.map +0 -1
- package/dist/contracts/AddyRegistry.js +0 -1392
- package/dist/contracts/AddyRegistry_v1.d.ts +0 -473
- package/dist/contracts/AddyRegistry_v1.d.ts.map +0 -1
- package/dist/contracts/AddyRegistry_v1.js +0 -594
- package/dist/contracts/AddyRegistry_v2.d.ts +0 -1050
- package/dist/contracts/AddyRegistry_v2.d.ts.map +0 -1
- package/dist/contracts/AddyRegistry_v2.js +0 -1313
- package/dist/contracts/Agent.d.ts +0 -2709
- package/dist/contracts/Agent.d.ts.map +0 -1
- package/dist/contracts/AgentFactory.d.ts +0 -1665
- package/dist/contracts/AgentFactory.d.ts.map +0 -1
- package/dist/contracts/AgentFactory_v1.d.ts +0 -1054
- package/dist/contracts/AgentFactory_v1.d.ts.map +0 -1
- package/dist/contracts/AgentFactory_v1.js +0 -1336
- package/dist/contracts/AgentFactory_v2.d.ts +0 -1275
- package/dist/contracts/AgentFactory_v2.d.ts.map +0 -1
- package/dist/contracts/AgentTemplate.d.ts +0 -2629
- package/dist/contracts/AgentTemplate.d.ts.map +0 -1
- package/dist/contracts/AgentTemplate.js +0 -3370
- package/dist/contracts/Agent_v1.d.ts +0 -2631
- package/dist/contracts/Agent_v1.d.ts.map +0 -1
- package/dist/contracts/Agent_v1.js +0 -3372
- package/dist/contracts/Agent_v2.d.ts +0 -2709
- package/dist/contracts/Agent_v2.d.ts.map +0 -1
- package/dist/contracts/Agent_v2.js +0 -3458
- package/dist/contracts/ChainlinkFeeds.d.ts +0 -706
- package/dist/contracts/ChainlinkFeeds.d.ts.map +0 -1
- package/dist/contracts/ChainlinkFeeds.js +0 -900
- package/dist/contracts/LegoAaveV3.d.ts +0 -1033
- package/dist/contracts/LegoAaveV3.d.ts.map +0 -1
- package/dist/contracts/LegoAaveV3.js +0 -1330
- package/dist/contracts/LegoAeroClassic.d.ts +0 -1204
- package/dist/contracts/LegoAeroClassic.d.ts.map +0 -1
- package/dist/contracts/LegoAeroClassic.js +0 -1546
- package/dist/contracts/LegoAeroSlipstream.d.ts +0 -1300
- package/dist/contracts/LegoAeroSlipstream.d.ts.map +0 -1
- package/dist/contracts/LegoAeroSlipstream.js +0 -1671
- package/dist/contracts/LegoCommon.d.ts +0 -164
- package/dist/contracts/LegoCommon.d.ts.map +0 -1
- package/dist/contracts/LegoCommon.js +0 -202
- package/dist/contracts/LegoCompoundV3.d.ts +0 -1060
- package/dist/contracts/LegoCompoundV3.d.ts.map +0 -1
- package/dist/contracts/LegoCompoundV3.js +0 -1365
- package/dist/contracts/LegoCredit.d.ts +0 -140
- package/dist/contracts/LegoCredit.d.ts.map +0 -1
- package/dist/contracts/LegoCredit.js +0 -179
- package/dist/contracts/LegoCurve.d.ts +0 -1189
- package/dist/contracts/LegoCurve.d.ts.map +0 -1
- package/dist/contracts/LegoCurve.js +0 -1519
- package/dist/contracts/LegoDex.d.ts +0 -587
- package/dist/contracts/LegoDex.d.ts.map +0 -1
- package/dist/contracts/LegoDex.js +0 -774
- package/dist/contracts/LegoEuler.d.ts +0 -1074
- package/dist/contracts/LegoEuler.d.ts.map +0 -1
- package/dist/contracts/LegoEuler.js +0 -1383
- package/dist/contracts/LegoFluid.d.ts +0 -1025
- package/dist/contracts/LegoFluid.d.ts.map +0 -1
- package/dist/contracts/LegoFluid.js +0 -1320
- package/dist/contracts/LegoHelper.d.ts +0 -1563
- package/dist/contracts/LegoHelper.d.ts.map +0 -1
- package/dist/contracts/LegoHelper.js +0 -1947
- package/dist/contracts/LegoMoonwell.d.ts +0 -1042
- package/dist/contracts/LegoMoonwell.d.ts.map +0 -1
- package/dist/contracts/LegoMoonwell.js +0 -1342
- package/dist/contracts/LegoMorpho.d.ts.map +0 -1
- package/dist/contracts/LegoRegistry.d.ts +0 -1079
- package/dist/contracts/LegoRegistry.d.ts.map +0 -1
- package/dist/contracts/LegoRegistry.js +0 -1368
- package/dist/contracts/LegoSky.d.ts +0 -923
- package/dist/contracts/LegoSky.d.ts.map +0 -1
- package/dist/contracts/LegoSky.js +0 -1180
- package/dist/contracts/LegoUniswapV2.d.ts +0 -1204
- package/dist/contracts/LegoUniswapV2.d.ts.map +0 -1
- package/dist/contracts/LegoUniswapV2.js +0 -1546
- package/dist/contracts/LegoUniswapV3.d.ts +0 -1338
- package/dist/contracts/LegoUniswapV3.d.ts.map +0 -1
- package/dist/contracts/LegoUniswapV3.js +0 -1718
- package/dist/contracts/LegoYield.d.ts +0 -390
- package/dist/contracts/LegoYield.d.ts.map +0 -1
- package/dist/contracts/LegoYield.js +0 -511
- package/dist/contracts/OracleParser.d.ts +0 -207
- package/dist/contracts/OracleParser.d.ts.map +0 -1
- package/dist/contracts/OracleParser.js +0 -264
- package/dist/contracts/OracleRegistry.d.ts +0 -1221
- package/dist/contracts/OracleRegistry.d.ts.map +0 -1
- package/dist/contracts/OracleRegistry.js +0 -1562
- package/dist/contracts/PriceSheets.d.ts +0 -1127
- package/dist/contracts/PriceSheets.d.ts.map +0 -1
- package/dist/contracts/PythFeeds.d.ts +0 -640
- package/dist/contracts/PythFeeds.d.ts.map +0 -1
- package/dist/contracts/PythFeeds.js +0 -813
- package/dist/contracts/RipePool.d.ts +0 -1264
- package/dist/contracts/RipePool.d.ts.map +0 -1
- package/dist/contracts/RipePool.js +0 -1627
- package/dist/contracts/StorkFeeds.d.ts +0 -640
- package/dist/contracts/StorkFeeds.d.ts.map +0 -1
- package/dist/contracts/StorkFeeds.js +0 -813
- package/dist/contracts/UserWallet.d.ts +0 -1975
- package/dist/contracts/UserWallet.d.ts.map +0 -1
- package/dist/contracts/UserWallet.js +0 -2577
- package/dist/contracts/UserWalletConfig.d.ts +0 -1852
- package/dist/contracts/UserWalletConfig.d.ts.map +0 -1
- package/dist/contracts/UserWalletConfig.js +0 -2263
- package/dist/contracts/UserWalletConfig_v1.d.ts +0 -1400
- package/dist/contracts/UserWalletConfig_v1.d.ts.map +0 -1
- package/dist/contracts/UserWalletConfig_v1.js +0 -1676
- package/dist/contracts/UserWalletConfig_v2.d.ts +0 -1468
- package/dist/contracts/UserWalletConfig_v2.d.ts.map +0 -1
- package/dist/contracts/UserWalletConfig_v2.js +0 -1764
- package/dist/contracts/UserWallet_v1.d.ts +0 -1980
- package/dist/contracts/UserWallet_v1.d.ts.map +0 -1
- package/dist/contracts/UserWallet_v1.js +0 -2581
- package/dist/contracts/UserWallet_v2.d.ts +0 -1958
- package/dist/contracts/UserWallet_v2.d.ts.map +0 -1
- package/dist/contracts/UserWallet_v2.js +0 -2553
- package/dist/contracts/WalletConfig.d.ts +0 -1398
- package/dist/contracts/WalletConfig.d.ts.map +0 -1
- package/dist/contracts/WalletConfig.js +0 -1674
- package/dist/contracts/WalletFunds.d.ts +0 -1978
- package/dist/contracts/WalletFunds.d.ts.map +0 -1
- package/dist/contracts/WalletFunds.js +0 -2579
|
@@ -80,39 +80,20 @@ export declare const abi: readonly [{
|
|
|
80
80
|
readonly anonymous: false;
|
|
81
81
|
readonly type: "event";
|
|
82
82
|
}, {
|
|
83
|
-
readonly name: "
|
|
83
|
+
readonly name: "UnderscoreVaultDiscountSet";
|
|
84
84
|
readonly inputs: readonly [{
|
|
85
|
-
readonly name: "
|
|
86
|
-
readonly type: "address";
|
|
87
|
-
readonly indexed: true;
|
|
88
|
-
}, {
|
|
89
|
-
readonly name: "vaultId";
|
|
90
|
-
readonly type: "uint256";
|
|
91
|
-
readonly indexed: false;
|
|
92
|
-
}, {
|
|
93
|
-
readonly name: "asset";
|
|
94
|
-
readonly type: "address";
|
|
95
|
-
readonly indexed: true;
|
|
96
|
-
}, {
|
|
97
|
-
readonly name: "amount";
|
|
85
|
+
readonly name: "discount";
|
|
98
86
|
readonly type: "uint256";
|
|
99
87
|
readonly indexed: false;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
readonly
|
|
107
|
-
readonly indexed: false;
|
|
108
|
-
}, {
|
|
109
|
-
readonly name: "repayValue";
|
|
88
|
+
}];
|
|
89
|
+
readonly anonymous: false;
|
|
90
|
+
readonly type: "event";
|
|
91
|
+
}, {
|
|
92
|
+
readonly name: "BuybackRatioSet";
|
|
93
|
+
readonly inputs: readonly [{
|
|
94
|
+
readonly name: "ratio";
|
|
110
95
|
readonly type: "uint256";
|
|
111
96
|
readonly indexed: false;
|
|
112
|
-
}, {
|
|
113
|
-
readonly name: "hasGoodDebtHealth";
|
|
114
|
-
readonly type: "bool";
|
|
115
|
-
readonly indexed: false;
|
|
116
97
|
}];
|
|
117
98
|
readonly anonymous: false;
|
|
118
99
|
readonly type: "event";
|
|
@@ -496,10 +477,98 @@ export declare const abi: readonly [{
|
|
|
496
477
|
}, {
|
|
497
478
|
readonly stateMutability: "nonpayable";
|
|
498
479
|
readonly type: "function";
|
|
499
|
-
readonly name: "
|
|
480
|
+
readonly name: "repayDuringAuctionPurchase";
|
|
481
|
+
readonly inputs: readonly [{
|
|
482
|
+
readonly name: "_liqUser";
|
|
483
|
+
readonly type: "address";
|
|
484
|
+
}, {
|
|
485
|
+
readonly name: "_repayValue";
|
|
486
|
+
readonly type: "uint256";
|
|
487
|
+
}];
|
|
488
|
+
readonly outputs: readonly [{
|
|
489
|
+
readonly name: "";
|
|
490
|
+
readonly type: "bool";
|
|
491
|
+
}];
|
|
492
|
+
}, {
|
|
493
|
+
readonly stateMutability: "nonpayable";
|
|
494
|
+
readonly type: "function";
|
|
495
|
+
readonly name: "repayDuringAuctionPurchase";
|
|
500
496
|
readonly inputs: readonly [{
|
|
501
497
|
readonly name: "_liqUser";
|
|
502
498
|
readonly type: "address";
|
|
499
|
+
}, {
|
|
500
|
+
readonly name: "_repayValue";
|
|
501
|
+
readonly type: "uint256";
|
|
502
|
+
}, {
|
|
503
|
+
readonly name: "_a";
|
|
504
|
+
readonly type: "tuple";
|
|
505
|
+
readonly components: readonly [{
|
|
506
|
+
readonly name: "hq";
|
|
507
|
+
readonly type: "address";
|
|
508
|
+
}, {
|
|
509
|
+
readonly name: "greenToken";
|
|
510
|
+
readonly type: "address";
|
|
511
|
+
}, {
|
|
512
|
+
readonly name: "savingsGreen";
|
|
513
|
+
readonly type: "address";
|
|
514
|
+
}, {
|
|
515
|
+
readonly name: "ripeToken";
|
|
516
|
+
readonly type: "address";
|
|
517
|
+
}, {
|
|
518
|
+
readonly name: "ledger";
|
|
519
|
+
readonly type: "address";
|
|
520
|
+
}, {
|
|
521
|
+
readonly name: "missionControl";
|
|
522
|
+
readonly type: "address";
|
|
523
|
+
}, {
|
|
524
|
+
readonly name: "switchboard";
|
|
525
|
+
readonly type: "address";
|
|
526
|
+
}, {
|
|
527
|
+
readonly name: "priceDesk";
|
|
528
|
+
readonly type: "address";
|
|
529
|
+
}, {
|
|
530
|
+
readonly name: "vaultBook";
|
|
531
|
+
readonly type: "address";
|
|
532
|
+
}, {
|
|
533
|
+
readonly name: "auctionHouse";
|
|
534
|
+
readonly type: "address";
|
|
535
|
+
}, {
|
|
536
|
+
readonly name: "auctionHouseNft";
|
|
537
|
+
readonly type: "address";
|
|
538
|
+
}, {
|
|
539
|
+
readonly name: "boardroom";
|
|
540
|
+
readonly type: "address";
|
|
541
|
+
}, {
|
|
542
|
+
readonly name: "bondRoom";
|
|
543
|
+
readonly type: "address";
|
|
544
|
+
}, {
|
|
545
|
+
readonly name: "creditEngine";
|
|
546
|
+
readonly type: "address";
|
|
547
|
+
}, {
|
|
548
|
+
readonly name: "endaoment";
|
|
549
|
+
readonly type: "address";
|
|
550
|
+
}, {
|
|
551
|
+
readonly name: "humanResources";
|
|
552
|
+
readonly type: "address";
|
|
553
|
+
}, {
|
|
554
|
+
readonly name: "lootbox";
|
|
555
|
+
readonly type: "address";
|
|
556
|
+
}, {
|
|
557
|
+
readonly name: "teller";
|
|
558
|
+
readonly type: "address";
|
|
559
|
+
}];
|
|
560
|
+
}];
|
|
561
|
+
readonly outputs: readonly [{
|
|
562
|
+
readonly name: "";
|
|
563
|
+
readonly type: "bool";
|
|
564
|
+
}];
|
|
565
|
+
}, {
|
|
566
|
+
readonly stateMutability: "nonpayable";
|
|
567
|
+
readonly type: "function";
|
|
568
|
+
readonly name: "repayFromDept";
|
|
569
|
+
readonly inputs: readonly [{
|
|
570
|
+
readonly name: "_user";
|
|
571
|
+
readonly type: "address";
|
|
503
572
|
}, {
|
|
504
573
|
readonly name: "_userDebt";
|
|
505
574
|
readonly type: "tuple";
|
|
@@ -544,6 +613,9 @@ export declare const abi: readonly [{
|
|
|
544
613
|
}, {
|
|
545
614
|
readonly name: "_newInterest";
|
|
546
615
|
readonly type: "uint256";
|
|
616
|
+
}, {
|
|
617
|
+
readonly name: "_numUserVaults";
|
|
618
|
+
readonly type: "uint256";
|
|
547
619
|
}];
|
|
548
620
|
readonly outputs: readonly [{
|
|
549
621
|
readonly name: "";
|
|
@@ -552,9 +624,9 @@ export declare const abi: readonly [{
|
|
|
552
624
|
}, {
|
|
553
625
|
readonly stateMutability: "nonpayable";
|
|
554
626
|
readonly type: "function";
|
|
555
|
-
readonly name: "
|
|
627
|
+
readonly name: "repayFromDept";
|
|
556
628
|
readonly inputs: readonly [{
|
|
557
|
-
readonly name: "
|
|
629
|
+
readonly name: "_user";
|
|
558
630
|
readonly type: "address";
|
|
559
631
|
}, {
|
|
560
632
|
readonly name: "_userDebt";
|
|
@@ -600,6 +672,9 @@ export declare const abi: readonly [{
|
|
|
600
672
|
}, {
|
|
601
673
|
readonly name: "_newInterest";
|
|
602
674
|
readonly type: "uint256";
|
|
675
|
+
}, {
|
|
676
|
+
readonly name: "_numUserVaults";
|
|
677
|
+
readonly type: "uint256";
|
|
603
678
|
}, {
|
|
604
679
|
readonly name: "_a";
|
|
605
680
|
readonly type: "tuple";
|
|
@@ -664,168 +739,180 @@ export declare const abi: readonly [{
|
|
|
664
739
|
readonly type: "bool";
|
|
665
740
|
}];
|
|
666
741
|
}, {
|
|
667
|
-
readonly stateMutability: "
|
|
742
|
+
readonly stateMutability: "view";
|
|
668
743
|
readonly type: "function";
|
|
669
|
-
readonly name: "
|
|
744
|
+
readonly name: "getUserBorrowTerms";
|
|
670
745
|
readonly inputs: readonly [{
|
|
671
|
-
readonly name: "
|
|
746
|
+
readonly name: "_user";
|
|
672
747
|
readonly type: "address";
|
|
673
748
|
}, {
|
|
674
|
-
readonly name: "
|
|
675
|
-
readonly type: "
|
|
749
|
+
readonly name: "_shouldRaise";
|
|
750
|
+
readonly type: "bool";
|
|
676
751
|
}];
|
|
677
752
|
readonly outputs: readonly [{
|
|
678
753
|
readonly name: "";
|
|
679
|
-
readonly type: "bool";
|
|
680
|
-
}];
|
|
681
|
-
}, {
|
|
682
|
-
readonly stateMutability: "nonpayable";
|
|
683
|
-
readonly type: "function";
|
|
684
|
-
readonly name: "repayDuringAuctionPurchase";
|
|
685
|
-
readonly inputs: readonly [{
|
|
686
|
-
readonly name: "_liqUser";
|
|
687
|
-
readonly type: "address";
|
|
688
|
-
}, {
|
|
689
|
-
readonly name: "_repayValue";
|
|
690
|
-
readonly type: "uint256";
|
|
691
|
-
}, {
|
|
692
|
-
readonly name: "_a";
|
|
693
754
|
readonly type: "tuple";
|
|
694
755
|
readonly components: readonly [{
|
|
695
|
-
readonly name: "
|
|
696
|
-
readonly type: "
|
|
697
|
-
}, {
|
|
698
|
-
readonly name: "greenToken";
|
|
699
|
-
readonly type: "address";
|
|
700
|
-
}, {
|
|
701
|
-
readonly name: "savingsGreen";
|
|
702
|
-
readonly type: "address";
|
|
703
|
-
}, {
|
|
704
|
-
readonly name: "ripeToken";
|
|
705
|
-
readonly type: "address";
|
|
706
|
-
}, {
|
|
707
|
-
readonly name: "ledger";
|
|
708
|
-
readonly type: "address";
|
|
709
|
-
}, {
|
|
710
|
-
readonly name: "missionControl";
|
|
711
|
-
readonly type: "address";
|
|
712
|
-
}, {
|
|
713
|
-
readonly name: "switchboard";
|
|
714
|
-
readonly type: "address";
|
|
715
|
-
}, {
|
|
716
|
-
readonly name: "priceDesk";
|
|
717
|
-
readonly type: "address";
|
|
718
|
-
}, {
|
|
719
|
-
readonly name: "vaultBook";
|
|
720
|
-
readonly type: "address";
|
|
721
|
-
}, {
|
|
722
|
-
readonly name: "auctionHouse";
|
|
723
|
-
readonly type: "address";
|
|
724
|
-
}, {
|
|
725
|
-
readonly name: "auctionHouseNft";
|
|
726
|
-
readonly type: "address";
|
|
727
|
-
}, {
|
|
728
|
-
readonly name: "boardroom";
|
|
729
|
-
readonly type: "address";
|
|
730
|
-
}, {
|
|
731
|
-
readonly name: "bondRoom";
|
|
732
|
-
readonly type: "address";
|
|
733
|
-
}, {
|
|
734
|
-
readonly name: "creditEngine";
|
|
735
|
-
readonly type: "address";
|
|
756
|
+
readonly name: "collateralVal";
|
|
757
|
+
readonly type: "uint256";
|
|
736
758
|
}, {
|
|
737
|
-
readonly name: "
|
|
738
|
-
readonly type: "
|
|
759
|
+
readonly name: "totalMaxDebt";
|
|
760
|
+
readonly type: "uint256";
|
|
739
761
|
}, {
|
|
740
|
-
readonly name: "
|
|
741
|
-
readonly type: "
|
|
762
|
+
readonly name: "debtTerms";
|
|
763
|
+
readonly type: "tuple";
|
|
764
|
+
readonly components: readonly [{
|
|
765
|
+
readonly name: "ltv";
|
|
766
|
+
readonly type: "uint256";
|
|
767
|
+
}, {
|
|
768
|
+
readonly name: "redemptionThreshold";
|
|
769
|
+
readonly type: "uint256";
|
|
770
|
+
}, {
|
|
771
|
+
readonly name: "liqThreshold";
|
|
772
|
+
readonly type: "uint256";
|
|
773
|
+
}, {
|
|
774
|
+
readonly name: "liqFee";
|
|
775
|
+
readonly type: "uint256";
|
|
776
|
+
}, {
|
|
777
|
+
readonly name: "borrowRate";
|
|
778
|
+
readonly type: "uint256";
|
|
779
|
+
}, {
|
|
780
|
+
readonly name: "daowry";
|
|
781
|
+
readonly type: "uint256";
|
|
782
|
+
}];
|
|
742
783
|
}, {
|
|
743
|
-
readonly name: "
|
|
744
|
-
readonly type: "
|
|
784
|
+
readonly name: "lowestLtv";
|
|
785
|
+
readonly type: "uint256";
|
|
745
786
|
}, {
|
|
746
|
-
readonly name: "
|
|
747
|
-
readonly type: "
|
|
787
|
+
readonly name: "highestLtv";
|
|
788
|
+
readonly type: "uint256";
|
|
748
789
|
}];
|
|
749
790
|
}];
|
|
750
|
-
readonly outputs: readonly [{
|
|
751
|
-
readonly name: "";
|
|
752
|
-
readonly type: "bool";
|
|
753
|
-
}];
|
|
754
791
|
}, {
|
|
755
|
-
readonly stateMutability: "
|
|
792
|
+
readonly stateMutability: "view";
|
|
756
793
|
readonly type: "function";
|
|
757
|
-
readonly name: "
|
|
794
|
+
readonly name: "getUserBorrowTerms";
|
|
758
795
|
readonly inputs: readonly [{
|
|
759
|
-
readonly name: "
|
|
760
|
-
readonly type: "tuple[]";
|
|
761
|
-
readonly components: readonly [{
|
|
762
|
-
readonly name: "user";
|
|
763
|
-
readonly type: "address";
|
|
764
|
-
}, {
|
|
765
|
-
readonly name: "vaultId";
|
|
766
|
-
readonly type: "uint256";
|
|
767
|
-
}, {
|
|
768
|
-
readonly name: "asset";
|
|
769
|
-
readonly type: "address";
|
|
770
|
-
}, {
|
|
771
|
-
readonly name: "maxGreenAmount";
|
|
772
|
-
readonly type: "uint256";
|
|
773
|
-
}];
|
|
774
|
-
}, {
|
|
775
|
-
readonly name: "_greenAmount";
|
|
776
|
-
readonly type: "uint256";
|
|
777
|
-
}, {
|
|
778
|
-
readonly name: "_recipient";
|
|
779
|
-
readonly type: "address";
|
|
780
|
-
}, {
|
|
781
|
-
readonly name: "_caller";
|
|
796
|
+
readonly name: "_user";
|
|
782
797
|
readonly type: "address";
|
|
783
798
|
}, {
|
|
784
|
-
readonly name: "
|
|
799
|
+
readonly name: "_shouldRaise";
|
|
785
800
|
readonly type: "bool";
|
|
786
801
|
}, {
|
|
787
|
-
readonly name: "
|
|
788
|
-
readonly type: "
|
|
802
|
+
readonly name: "_skipVaultId";
|
|
803
|
+
readonly type: "uint256";
|
|
789
804
|
}];
|
|
790
805
|
readonly outputs: readonly [{
|
|
791
806
|
readonly name: "";
|
|
792
|
-
readonly type: "
|
|
793
|
-
}];
|
|
794
|
-
}, {
|
|
795
|
-
readonly stateMutability: "nonpayable";
|
|
796
|
-
readonly type: "function";
|
|
797
|
-
readonly name: "redeemCollateralFromMany";
|
|
798
|
-
readonly inputs: readonly [{
|
|
799
|
-
readonly name: "_redemptions";
|
|
800
|
-
readonly type: "tuple[]";
|
|
807
|
+
readonly type: "tuple";
|
|
801
808
|
readonly components: readonly [{
|
|
802
|
-
readonly name: "
|
|
803
|
-
readonly type: "
|
|
809
|
+
readonly name: "collateralVal";
|
|
810
|
+
readonly type: "uint256";
|
|
804
811
|
}, {
|
|
805
|
-
readonly name: "
|
|
812
|
+
readonly name: "totalMaxDebt";
|
|
806
813
|
readonly type: "uint256";
|
|
807
814
|
}, {
|
|
808
|
-
readonly name: "
|
|
809
|
-
readonly type: "
|
|
815
|
+
readonly name: "debtTerms";
|
|
816
|
+
readonly type: "tuple";
|
|
817
|
+
readonly components: readonly [{
|
|
818
|
+
readonly name: "ltv";
|
|
819
|
+
readonly type: "uint256";
|
|
820
|
+
}, {
|
|
821
|
+
readonly name: "redemptionThreshold";
|
|
822
|
+
readonly type: "uint256";
|
|
823
|
+
}, {
|
|
824
|
+
readonly name: "liqThreshold";
|
|
825
|
+
readonly type: "uint256";
|
|
826
|
+
}, {
|
|
827
|
+
readonly name: "liqFee";
|
|
828
|
+
readonly type: "uint256";
|
|
829
|
+
}, {
|
|
830
|
+
readonly name: "borrowRate";
|
|
831
|
+
readonly type: "uint256";
|
|
832
|
+
}, {
|
|
833
|
+
readonly name: "daowry";
|
|
834
|
+
readonly type: "uint256";
|
|
835
|
+
}];
|
|
810
836
|
}, {
|
|
811
|
-
readonly name: "
|
|
837
|
+
readonly name: "lowestLtv";
|
|
838
|
+
readonly type: "uint256";
|
|
839
|
+
}, {
|
|
840
|
+
readonly name: "highestLtv";
|
|
812
841
|
readonly type: "uint256";
|
|
813
842
|
}];
|
|
843
|
+
}];
|
|
844
|
+
}, {
|
|
845
|
+
readonly stateMutability: "view";
|
|
846
|
+
readonly type: "function";
|
|
847
|
+
readonly name: "getUserBorrowTerms";
|
|
848
|
+
readonly inputs: readonly [{
|
|
849
|
+
readonly name: "_user";
|
|
850
|
+
readonly type: "address";
|
|
814
851
|
}, {
|
|
815
|
-
readonly name: "
|
|
852
|
+
readonly name: "_shouldRaise";
|
|
853
|
+
readonly type: "bool";
|
|
854
|
+
}, {
|
|
855
|
+
readonly name: "_skipVaultId";
|
|
816
856
|
readonly type: "uint256";
|
|
817
857
|
}, {
|
|
818
|
-
readonly name: "
|
|
858
|
+
readonly name: "_skipAsset";
|
|
819
859
|
readonly type: "address";
|
|
820
|
-
}
|
|
821
|
-
|
|
860
|
+
}];
|
|
861
|
+
readonly outputs: readonly [{
|
|
862
|
+
readonly name: "";
|
|
863
|
+
readonly type: "tuple";
|
|
864
|
+
readonly components: readonly [{
|
|
865
|
+
readonly name: "collateralVal";
|
|
866
|
+
readonly type: "uint256";
|
|
867
|
+
}, {
|
|
868
|
+
readonly name: "totalMaxDebt";
|
|
869
|
+
readonly type: "uint256";
|
|
870
|
+
}, {
|
|
871
|
+
readonly name: "debtTerms";
|
|
872
|
+
readonly type: "tuple";
|
|
873
|
+
readonly components: readonly [{
|
|
874
|
+
readonly name: "ltv";
|
|
875
|
+
readonly type: "uint256";
|
|
876
|
+
}, {
|
|
877
|
+
readonly name: "redemptionThreshold";
|
|
878
|
+
readonly type: "uint256";
|
|
879
|
+
}, {
|
|
880
|
+
readonly name: "liqThreshold";
|
|
881
|
+
readonly type: "uint256";
|
|
882
|
+
}, {
|
|
883
|
+
readonly name: "liqFee";
|
|
884
|
+
readonly type: "uint256";
|
|
885
|
+
}, {
|
|
886
|
+
readonly name: "borrowRate";
|
|
887
|
+
readonly type: "uint256";
|
|
888
|
+
}, {
|
|
889
|
+
readonly name: "daowry";
|
|
890
|
+
readonly type: "uint256";
|
|
891
|
+
}];
|
|
892
|
+
}, {
|
|
893
|
+
readonly name: "lowestLtv";
|
|
894
|
+
readonly type: "uint256";
|
|
895
|
+
}, {
|
|
896
|
+
readonly name: "highestLtv";
|
|
897
|
+
readonly type: "uint256";
|
|
898
|
+
}];
|
|
899
|
+
}];
|
|
900
|
+
}, {
|
|
901
|
+
readonly stateMutability: "view";
|
|
902
|
+
readonly type: "function";
|
|
903
|
+
readonly name: "getUserBorrowTerms";
|
|
904
|
+
readonly inputs: readonly [{
|
|
905
|
+
readonly name: "_user";
|
|
822
906
|
readonly type: "address";
|
|
823
907
|
}, {
|
|
824
|
-
readonly name: "
|
|
908
|
+
readonly name: "_shouldRaise";
|
|
825
909
|
readonly type: "bool";
|
|
826
910
|
}, {
|
|
827
|
-
readonly name: "
|
|
828
|
-
readonly type: "
|
|
911
|
+
readonly name: "_skipVaultId";
|
|
912
|
+
readonly type: "uint256";
|
|
913
|
+
}, {
|
|
914
|
+
readonly name: "_skipAsset";
|
|
915
|
+
readonly type: "address";
|
|
829
916
|
}, {
|
|
830
917
|
readonly name: "_a";
|
|
831
918
|
readonly type: "tuple";
|
|
@@ -887,39 +974,53 @@ export declare const abi: readonly [{
|
|
|
887
974
|
}];
|
|
888
975
|
readonly outputs: readonly [{
|
|
889
976
|
readonly name: "";
|
|
890
|
-
readonly type: "
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
977
|
+
readonly type: "tuple";
|
|
978
|
+
readonly components: readonly [{
|
|
979
|
+
readonly name: "collateralVal";
|
|
980
|
+
readonly type: "uint256";
|
|
981
|
+
}, {
|
|
982
|
+
readonly name: "totalMaxDebt";
|
|
983
|
+
readonly type: "uint256";
|
|
984
|
+
}, {
|
|
985
|
+
readonly name: "debtTerms";
|
|
986
|
+
readonly type: "tuple";
|
|
987
|
+
readonly components: readonly [{
|
|
988
|
+
readonly name: "ltv";
|
|
989
|
+
readonly type: "uint256";
|
|
990
|
+
}, {
|
|
991
|
+
readonly name: "redemptionThreshold";
|
|
992
|
+
readonly type: "uint256";
|
|
993
|
+
}, {
|
|
994
|
+
readonly name: "liqThreshold";
|
|
995
|
+
readonly type: "uint256";
|
|
996
|
+
}, {
|
|
997
|
+
readonly name: "liqFee";
|
|
998
|
+
readonly type: "uint256";
|
|
999
|
+
}, {
|
|
1000
|
+
readonly name: "borrowRate";
|
|
1001
|
+
readonly type: "uint256";
|
|
1002
|
+
}, {
|
|
1003
|
+
readonly name: "daowry";
|
|
1004
|
+
readonly type: "uint256";
|
|
1005
|
+
}];
|
|
1006
|
+
}, {
|
|
1007
|
+
readonly name: "lowestLtv";
|
|
1008
|
+
readonly type: "uint256";
|
|
1009
|
+
}, {
|
|
1010
|
+
readonly name: "highestLtv";
|
|
1011
|
+
readonly type: "uint256";
|
|
1012
|
+
}];
|
|
903
1013
|
}];
|
|
904
1014
|
}, {
|
|
905
1015
|
readonly stateMutability: "view";
|
|
906
1016
|
readonly type: "function";
|
|
907
|
-
readonly name: "
|
|
1017
|
+
readonly name: "getUserBorrowTermsWithNumVaults";
|
|
908
1018
|
readonly inputs: readonly [{
|
|
909
1019
|
readonly name: "_user";
|
|
910
1020
|
readonly type: "address";
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
readonly name: "";
|
|
1021
|
+
}, {
|
|
1022
|
+
readonly name: "_numUserVaults";
|
|
914
1023
|
readonly type: "uint256";
|
|
915
|
-
}];
|
|
916
|
-
}, {
|
|
917
|
-
readonly stateMutability: "view";
|
|
918
|
-
readonly type: "function";
|
|
919
|
-
readonly name: "getUserBorrowTerms";
|
|
920
|
-
readonly inputs: readonly [{
|
|
921
|
-
readonly name: "_user";
|
|
922
|
-
readonly type: "address";
|
|
923
1024
|
}, {
|
|
924
1025
|
readonly name: "_shouldRaise";
|
|
925
1026
|
readonly type: "bool";
|
|
@@ -955,15 +1056,24 @@ export declare const abi: readonly [{
|
|
|
955
1056
|
readonly name: "daowry";
|
|
956
1057
|
readonly type: "uint256";
|
|
957
1058
|
}];
|
|
1059
|
+
}, {
|
|
1060
|
+
readonly name: "lowestLtv";
|
|
1061
|
+
readonly type: "uint256";
|
|
1062
|
+
}, {
|
|
1063
|
+
readonly name: "highestLtv";
|
|
1064
|
+
readonly type: "uint256";
|
|
958
1065
|
}];
|
|
959
1066
|
}];
|
|
960
1067
|
}, {
|
|
961
1068
|
readonly stateMutability: "view";
|
|
962
1069
|
readonly type: "function";
|
|
963
|
-
readonly name: "
|
|
1070
|
+
readonly name: "getUserBorrowTermsWithNumVaults";
|
|
964
1071
|
readonly inputs: readonly [{
|
|
965
1072
|
readonly name: "_user";
|
|
966
1073
|
readonly type: "address";
|
|
1074
|
+
}, {
|
|
1075
|
+
readonly name: "_numUserVaults";
|
|
1076
|
+
readonly type: "uint256";
|
|
967
1077
|
}, {
|
|
968
1078
|
readonly name: "_shouldRaise";
|
|
969
1079
|
readonly type: "bool";
|
|
@@ -1002,15 +1112,24 @@ export declare const abi: readonly [{
|
|
|
1002
1112
|
readonly name: "daowry";
|
|
1003
1113
|
readonly type: "uint256";
|
|
1004
1114
|
}];
|
|
1115
|
+
}, {
|
|
1116
|
+
readonly name: "lowestLtv";
|
|
1117
|
+
readonly type: "uint256";
|
|
1118
|
+
}, {
|
|
1119
|
+
readonly name: "highestLtv";
|
|
1120
|
+
readonly type: "uint256";
|
|
1005
1121
|
}];
|
|
1006
1122
|
}];
|
|
1007
1123
|
}, {
|
|
1008
1124
|
readonly stateMutability: "view";
|
|
1009
1125
|
readonly type: "function";
|
|
1010
|
-
readonly name: "
|
|
1126
|
+
readonly name: "getUserBorrowTermsWithNumVaults";
|
|
1011
1127
|
readonly inputs: readonly [{
|
|
1012
1128
|
readonly name: "_user";
|
|
1013
1129
|
readonly type: "address";
|
|
1130
|
+
}, {
|
|
1131
|
+
readonly name: "_numUserVaults";
|
|
1132
|
+
readonly type: "uint256";
|
|
1014
1133
|
}, {
|
|
1015
1134
|
readonly name: "_shouldRaise";
|
|
1016
1135
|
readonly type: "bool";
|
|
@@ -1052,15 +1171,24 @@ export declare const abi: readonly [{
|
|
|
1052
1171
|
readonly name: "daowry";
|
|
1053
1172
|
readonly type: "uint256";
|
|
1054
1173
|
}];
|
|
1174
|
+
}, {
|
|
1175
|
+
readonly name: "lowestLtv";
|
|
1176
|
+
readonly type: "uint256";
|
|
1177
|
+
}, {
|
|
1178
|
+
readonly name: "highestLtv";
|
|
1179
|
+
readonly type: "uint256";
|
|
1055
1180
|
}];
|
|
1056
1181
|
}];
|
|
1057
1182
|
}, {
|
|
1058
1183
|
readonly stateMutability: "view";
|
|
1059
1184
|
readonly type: "function";
|
|
1060
|
-
readonly name: "
|
|
1185
|
+
readonly name: "getUserBorrowTermsWithNumVaults";
|
|
1061
1186
|
readonly inputs: readonly [{
|
|
1062
1187
|
readonly name: "_user";
|
|
1063
1188
|
readonly type: "address";
|
|
1189
|
+
}, {
|
|
1190
|
+
readonly name: "_numUserVaults";
|
|
1191
|
+
readonly type: "uint256";
|
|
1064
1192
|
}, {
|
|
1065
1193
|
readonly name: "_shouldRaise";
|
|
1066
1194
|
readonly type: "bool";
|
|
@@ -1160,8 +1288,53 @@ export declare const abi: readonly [{
|
|
|
1160
1288
|
readonly name: "daowry";
|
|
1161
1289
|
readonly type: "uint256";
|
|
1162
1290
|
}];
|
|
1291
|
+
}, {
|
|
1292
|
+
readonly name: "lowestLtv";
|
|
1293
|
+
readonly type: "uint256";
|
|
1294
|
+
}, {
|
|
1295
|
+
readonly name: "highestLtv";
|
|
1296
|
+
readonly type: "uint256";
|
|
1163
1297
|
}];
|
|
1164
1298
|
}];
|
|
1299
|
+
}, {
|
|
1300
|
+
readonly stateMutability: "view";
|
|
1301
|
+
readonly type: "function";
|
|
1302
|
+
readonly name: "getUserCollateralValueAndDebtAmount";
|
|
1303
|
+
readonly inputs: readonly [{
|
|
1304
|
+
readonly name: "_user";
|
|
1305
|
+
readonly type: "address";
|
|
1306
|
+
}];
|
|
1307
|
+
readonly outputs: readonly [{
|
|
1308
|
+
readonly name: "";
|
|
1309
|
+
readonly type: "uint256";
|
|
1310
|
+
}, {
|
|
1311
|
+
readonly name: "";
|
|
1312
|
+
readonly type: "uint256";
|
|
1313
|
+
}];
|
|
1314
|
+
}, {
|
|
1315
|
+
readonly stateMutability: "view";
|
|
1316
|
+
readonly type: "function";
|
|
1317
|
+
readonly name: "getCollateralValue";
|
|
1318
|
+
readonly inputs: readonly [{
|
|
1319
|
+
readonly name: "_user";
|
|
1320
|
+
readonly type: "address";
|
|
1321
|
+
}];
|
|
1322
|
+
readonly outputs: readonly [{
|
|
1323
|
+
readonly name: "";
|
|
1324
|
+
readonly type: "uint256";
|
|
1325
|
+
}];
|
|
1326
|
+
}, {
|
|
1327
|
+
readonly stateMutability: "view";
|
|
1328
|
+
readonly type: "function";
|
|
1329
|
+
readonly name: "getUserDebtAmount";
|
|
1330
|
+
readonly inputs: readonly [{
|
|
1331
|
+
readonly name: "_user";
|
|
1332
|
+
readonly type: "address";
|
|
1333
|
+
}];
|
|
1334
|
+
readonly outputs: readonly [{
|
|
1335
|
+
readonly name: "";
|
|
1336
|
+
readonly type: "uint256";
|
|
1337
|
+
}];
|
|
1165
1338
|
}, {
|
|
1166
1339
|
readonly stateMutability: "view";
|
|
1167
1340
|
readonly type: "function";
|
|
@@ -1242,6 +1415,12 @@ export declare const abi: readonly [{
|
|
|
1242
1415
|
readonly name: "daowry";
|
|
1243
1416
|
readonly type: "uint256";
|
|
1244
1417
|
}];
|
|
1418
|
+
}, {
|
|
1419
|
+
readonly name: "lowestLtv";
|
|
1420
|
+
readonly type: "uint256";
|
|
1421
|
+
}, {
|
|
1422
|
+
readonly name: "highestLtv";
|
|
1423
|
+
readonly type: "uint256";
|
|
1245
1424
|
}];
|
|
1246
1425
|
}, {
|
|
1247
1426
|
readonly name: "";
|
|
@@ -1385,27 +1564,188 @@ export declare const abi: readonly [{
|
|
|
1385
1564
|
readonly name: "daowry";
|
|
1386
1565
|
readonly type: "uint256";
|
|
1387
1566
|
}];
|
|
1567
|
+
}, {
|
|
1568
|
+
readonly name: "lowestLtv";
|
|
1569
|
+
readonly type: "uint256";
|
|
1570
|
+
}, {
|
|
1571
|
+
readonly name: "highestLtv";
|
|
1572
|
+
readonly type: "uint256";
|
|
1573
|
+
}];
|
|
1574
|
+
}, {
|
|
1575
|
+
readonly name: "";
|
|
1576
|
+
readonly type: "uint256";
|
|
1577
|
+
}];
|
|
1578
|
+
}, {
|
|
1579
|
+
readonly stateMutability: "view";
|
|
1580
|
+
readonly type: "function";
|
|
1581
|
+
readonly name: "getLatestUserDebtWithInterest";
|
|
1582
|
+
readonly inputs: readonly [{
|
|
1583
|
+
readonly name: "_userDebt";
|
|
1584
|
+
readonly type: "tuple";
|
|
1585
|
+
readonly components: readonly [{
|
|
1586
|
+
readonly name: "amount";
|
|
1587
|
+
readonly type: "uint256";
|
|
1588
|
+
}, {
|
|
1589
|
+
readonly name: "principal";
|
|
1590
|
+
readonly type: "uint256";
|
|
1591
|
+
}, {
|
|
1592
|
+
readonly name: "debtTerms";
|
|
1593
|
+
readonly type: "tuple";
|
|
1594
|
+
readonly components: readonly [{
|
|
1595
|
+
readonly name: "ltv";
|
|
1596
|
+
readonly type: "uint256";
|
|
1597
|
+
}, {
|
|
1598
|
+
readonly name: "redemptionThreshold";
|
|
1599
|
+
readonly type: "uint256";
|
|
1600
|
+
}, {
|
|
1601
|
+
readonly name: "liqThreshold";
|
|
1602
|
+
readonly type: "uint256";
|
|
1603
|
+
}, {
|
|
1604
|
+
readonly name: "liqFee";
|
|
1605
|
+
readonly type: "uint256";
|
|
1606
|
+
}, {
|
|
1607
|
+
readonly name: "borrowRate";
|
|
1608
|
+
readonly type: "uint256";
|
|
1609
|
+
}, {
|
|
1610
|
+
readonly name: "daowry";
|
|
1611
|
+
readonly type: "uint256";
|
|
1612
|
+
}];
|
|
1613
|
+
}, {
|
|
1614
|
+
readonly name: "lastTimestamp";
|
|
1615
|
+
readonly type: "uint256";
|
|
1616
|
+
}, {
|
|
1617
|
+
readonly name: "inLiquidation";
|
|
1618
|
+
readonly type: "bool";
|
|
1619
|
+
}];
|
|
1620
|
+
}];
|
|
1621
|
+
readonly outputs: readonly [{
|
|
1622
|
+
readonly name: "";
|
|
1623
|
+
readonly type: "tuple";
|
|
1624
|
+
readonly components: readonly [{
|
|
1625
|
+
readonly name: "amount";
|
|
1626
|
+
readonly type: "uint256";
|
|
1627
|
+
}, {
|
|
1628
|
+
readonly name: "principal";
|
|
1629
|
+
readonly type: "uint256";
|
|
1630
|
+
}, {
|
|
1631
|
+
readonly name: "debtTerms";
|
|
1632
|
+
readonly type: "tuple";
|
|
1633
|
+
readonly components: readonly [{
|
|
1634
|
+
readonly name: "ltv";
|
|
1635
|
+
readonly type: "uint256";
|
|
1636
|
+
}, {
|
|
1637
|
+
readonly name: "redemptionThreshold";
|
|
1638
|
+
readonly type: "uint256";
|
|
1639
|
+
}, {
|
|
1640
|
+
readonly name: "liqThreshold";
|
|
1641
|
+
readonly type: "uint256";
|
|
1642
|
+
}, {
|
|
1643
|
+
readonly name: "liqFee";
|
|
1644
|
+
readonly type: "uint256";
|
|
1645
|
+
}, {
|
|
1646
|
+
readonly name: "borrowRate";
|
|
1647
|
+
readonly type: "uint256";
|
|
1648
|
+
}, {
|
|
1649
|
+
readonly name: "daowry";
|
|
1650
|
+
readonly type: "uint256";
|
|
1651
|
+
}];
|
|
1652
|
+
}, {
|
|
1653
|
+
readonly name: "lastTimestamp";
|
|
1654
|
+
readonly type: "uint256";
|
|
1655
|
+
}, {
|
|
1656
|
+
readonly name: "inLiquidation";
|
|
1657
|
+
readonly type: "bool";
|
|
1658
|
+
}];
|
|
1659
|
+
}, {
|
|
1660
|
+
readonly name: "";
|
|
1661
|
+
readonly type: "uint256";
|
|
1662
|
+
}];
|
|
1663
|
+
}, {
|
|
1664
|
+
readonly stateMutability: "view";
|
|
1665
|
+
readonly type: "function";
|
|
1666
|
+
readonly name: "hasGoodDebtHealth";
|
|
1667
|
+
readonly inputs: readonly [{
|
|
1668
|
+
readonly name: "_user";
|
|
1669
|
+
readonly type: "address";
|
|
1670
|
+
}];
|
|
1671
|
+
readonly outputs: readonly [{
|
|
1672
|
+
readonly name: "";
|
|
1673
|
+
readonly type: "bool";
|
|
1674
|
+
}];
|
|
1675
|
+
}, {
|
|
1676
|
+
readonly stateMutability: "view";
|
|
1677
|
+
readonly type: "function";
|
|
1678
|
+
readonly name: "hasGoodDebtHealth";
|
|
1679
|
+
readonly inputs: readonly [{
|
|
1680
|
+
readonly name: "_user";
|
|
1681
|
+
readonly type: "address";
|
|
1682
|
+
}, {
|
|
1683
|
+
readonly name: "_a";
|
|
1684
|
+
readonly type: "tuple";
|
|
1685
|
+
readonly components: readonly [{
|
|
1686
|
+
readonly name: "hq";
|
|
1687
|
+
readonly type: "address";
|
|
1688
|
+
}, {
|
|
1689
|
+
readonly name: "greenToken";
|
|
1690
|
+
readonly type: "address";
|
|
1691
|
+
}, {
|
|
1692
|
+
readonly name: "savingsGreen";
|
|
1693
|
+
readonly type: "address";
|
|
1694
|
+
}, {
|
|
1695
|
+
readonly name: "ripeToken";
|
|
1696
|
+
readonly type: "address";
|
|
1697
|
+
}, {
|
|
1698
|
+
readonly name: "ledger";
|
|
1699
|
+
readonly type: "address";
|
|
1700
|
+
}, {
|
|
1701
|
+
readonly name: "missionControl";
|
|
1702
|
+
readonly type: "address";
|
|
1703
|
+
}, {
|
|
1704
|
+
readonly name: "switchboard";
|
|
1705
|
+
readonly type: "address";
|
|
1706
|
+
}, {
|
|
1707
|
+
readonly name: "priceDesk";
|
|
1708
|
+
readonly type: "address";
|
|
1709
|
+
}, {
|
|
1710
|
+
readonly name: "vaultBook";
|
|
1711
|
+
readonly type: "address";
|
|
1712
|
+
}, {
|
|
1713
|
+
readonly name: "auctionHouse";
|
|
1714
|
+
readonly type: "address";
|
|
1715
|
+
}, {
|
|
1716
|
+
readonly name: "auctionHouseNft";
|
|
1717
|
+
readonly type: "address";
|
|
1718
|
+
}, {
|
|
1719
|
+
readonly name: "boardroom";
|
|
1720
|
+
readonly type: "address";
|
|
1721
|
+
}, {
|
|
1722
|
+
readonly name: "bondRoom";
|
|
1723
|
+
readonly type: "address";
|
|
1724
|
+
}, {
|
|
1725
|
+
readonly name: "creditEngine";
|
|
1726
|
+
readonly type: "address";
|
|
1727
|
+
}, {
|
|
1728
|
+
readonly name: "endaoment";
|
|
1729
|
+
readonly type: "address";
|
|
1730
|
+
}, {
|
|
1731
|
+
readonly name: "humanResources";
|
|
1732
|
+
readonly type: "address";
|
|
1733
|
+
}, {
|
|
1734
|
+
readonly name: "lootbox";
|
|
1735
|
+
readonly type: "address";
|
|
1736
|
+
}, {
|
|
1737
|
+
readonly name: "teller";
|
|
1738
|
+
readonly type: "address";
|
|
1388
1739
|
}];
|
|
1389
|
-
}, {
|
|
1390
|
-
readonly name: "";
|
|
1391
|
-
readonly type: "uint256";
|
|
1392
|
-
}];
|
|
1393
|
-
}, {
|
|
1394
|
-
readonly stateMutability: "view";
|
|
1395
|
-
readonly type: "function";
|
|
1396
|
-
readonly name: "getDynamicBorrowRate";
|
|
1397
|
-
readonly inputs: readonly [{
|
|
1398
|
-
readonly name: "_baseRate";
|
|
1399
|
-
readonly type: "uint256";
|
|
1400
1740
|
}];
|
|
1401
1741
|
readonly outputs: readonly [{
|
|
1402
1742
|
readonly name: "";
|
|
1403
|
-
readonly type: "
|
|
1743
|
+
readonly type: "bool";
|
|
1404
1744
|
}];
|
|
1405
1745
|
}, {
|
|
1406
|
-
readonly stateMutability: "
|
|
1746
|
+
readonly stateMutability: "view";
|
|
1407
1747
|
readonly type: "function";
|
|
1408
|
-
readonly name: "
|
|
1748
|
+
readonly name: "canLiquidateUser";
|
|
1409
1749
|
readonly inputs: readonly [{
|
|
1410
1750
|
readonly name: "_user";
|
|
1411
1751
|
readonly type: "address";
|
|
@@ -1415,9 +1755,9 @@ export declare const abi: readonly [{
|
|
|
1415
1755
|
readonly type: "bool";
|
|
1416
1756
|
}];
|
|
1417
1757
|
}, {
|
|
1418
|
-
readonly stateMutability: "
|
|
1758
|
+
readonly stateMutability: "view";
|
|
1419
1759
|
readonly type: "function";
|
|
1420
|
-
readonly name: "
|
|
1760
|
+
readonly name: "canLiquidateUser";
|
|
1421
1761
|
readonly inputs: readonly [{
|
|
1422
1762
|
readonly name: "_user";
|
|
1423
1763
|
readonly type: "address";
|
|
@@ -1487,7 +1827,7 @@ export declare const abi: readonly [{
|
|
|
1487
1827
|
}, {
|
|
1488
1828
|
readonly stateMutability: "view";
|
|
1489
1829
|
readonly type: "function";
|
|
1490
|
-
readonly name: "
|
|
1830
|
+
readonly name: "canRedeemUserCollateral";
|
|
1491
1831
|
readonly inputs: readonly [{
|
|
1492
1832
|
readonly name: "_user";
|
|
1493
1833
|
readonly type: "address";
|
|
@@ -1499,7 +1839,7 @@ export declare const abi: readonly [{
|
|
|
1499
1839
|
}, {
|
|
1500
1840
|
readonly stateMutability: "view";
|
|
1501
1841
|
readonly type: "function";
|
|
1502
|
-
readonly name: "
|
|
1842
|
+
readonly name: "canRedeemUserCollateral";
|
|
1503
1843
|
readonly inputs: readonly [{
|
|
1504
1844
|
readonly name: "_user";
|
|
1505
1845
|
readonly type: "address";
|
|
@@ -1569,19 +1909,64 @@ export declare const abi: readonly [{
|
|
|
1569
1909
|
}, {
|
|
1570
1910
|
readonly stateMutability: "view";
|
|
1571
1911
|
readonly type: "function";
|
|
1572
|
-
readonly name: "
|
|
1912
|
+
readonly name: "getLiquidationThreshold";
|
|
1573
1913
|
readonly inputs: readonly [{
|
|
1574
1914
|
readonly name: "_user";
|
|
1575
1915
|
readonly type: "address";
|
|
1576
1916
|
}];
|
|
1577
1917
|
readonly outputs: readonly [{
|
|
1578
1918
|
readonly name: "";
|
|
1579
|
-
readonly type: "
|
|
1919
|
+
readonly type: "uint256";
|
|
1580
1920
|
}];
|
|
1581
1921
|
}, {
|
|
1582
1922
|
readonly stateMutability: "view";
|
|
1583
1923
|
readonly type: "function";
|
|
1584
|
-
readonly name: "
|
|
1924
|
+
readonly name: "getRedemptionThreshold";
|
|
1925
|
+
readonly inputs: readonly [{
|
|
1926
|
+
readonly name: "_user";
|
|
1927
|
+
readonly type: "address";
|
|
1928
|
+
}];
|
|
1929
|
+
readonly outputs: readonly [{
|
|
1930
|
+
readonly name: "";
|
|
1931
|
+
readonly type: "uint256";
|
|
1932
|
+
}];
|
|
1933
|
+
}, {
|
|
1934
|
+
readonly stateMutability: "view";
|
|
1935
|
+
readonly type: "function";
|
|
1936
|
+
readonly name: "getDynamicBorrowRate";
|
|
1937
|
+
readonly inputs: readonly [{
|
|
1938
|
+
readonly name: "_baseRate";
|
|
1939
|
+
readonly type: "uint256";
|
|
1940
|
+
}];
|
|
1941
|
+
readonly outputs: readonly [{
|
|
1942
|
+
readonly name: "";
|
|
1943
|
+
readonly type: "uint256";
|
|
1944
|
+
}];
|
|
1945
|
+
}, {
|
|
1946
|
+
readonly stateMutability: "nonpayable";
|
|
1947
|
+
readonly type: "function";
|
|
1948
|
+
readonly name: "setUnderscoreVaultDiscount";
|
|
1949
|
+
readonly inputs: readonly [{
|
|
1950
|
+
readonly name: "_discount";
|
|
1951
|
+
readonly type: "uint256";
|
|
1952
|
+
}];
|
|
1953
|
+
readonly outputs: readonly [];
|
|
1954
|
+
}, {
|
|
1955
|
+
readonly stateMutability: "nonpayable";
|
|
1956
|
+
readonly type: "function";
|
|
1957
|
+
readonly name: "updateDebtForUser";
|
|
1958
|
+
readonly inputs: readonly [{
|
|
1959
|
+
readonly name: "_user";
|
|
1960
|
+
readonly type: "address";
|
|
1961
|
+
}];
|
|
1962
|
+
readonly outputs: readonly [{
|
|
1963
|
+
readonly name: "";
|
|
1964
|
+
readonly type: "bool";
|
|
1965
|
+
}];
|
|
1966
|
+
}, {
|
|
1967
|
+
readonly stateMutability: "nonpayable";
|
|
1968
|
+
readonly type: "function";
|
|
1969
|
+
readonly name: "updateDebtForUser";
|
|
1585
1970
|
readonly inputs: readonly [{
|
|
1586
1971
|
readonly name: "_user";
|
|
1587
1972
|
readonly type: "address";
|
|
@@ -1649,24 +2034,30 @@ export declare const abi: readonly [{
|
|
|
1649
2034
|
readonly type: "bool";
|
|
1650
2035
|
}];
|
|
1651
2036
|
}, {
|
|
1652
|
-
readonly stateMutability: "
|
|
2037
|
+
readonly stateMutability: "nonpayable";
|
|
1653
2038
|
readonly type: "function";
|
|
1654
|
-
readonly name: "
|
|
2039
|
+
readonly name: "transferOrWithdrawViaRedemption";
|
|
1655
2040
|
readonly inputs: readonly [{
|
|
1656
|
-
readonly name: "
|
|
1657
|
-
readonly type: "address";
|
|
1658
|
-
}];
|
|
1659
|
-
readonly outputs: readonly [{
|
|
1660
|
-
readonly name: "";
|
|
2041
|
+
readonly name: "_shouldTransferBalance";
|
|
1661
2042
|
readonly type: "bool";
|
|
1662
|
-
}
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
readonly name: "canRedeemUserCollateral";
|
|
1667
|
-
readonly inputs: readonly [{
|
|
2043
|
+
}, {
|
|
2044
|
+
readonly name: "_asset";
|
|
2045
|
+
readonly type: "address";
|
|
2046
|
+
}, {
|
|
1668
2047
|
readonly name: "_user";
|
|
1669
2048
|
readonly type: "address";
|
|
2049
|
+
}, {
|
|
2050
|
+
readonly name: "_recipient";
|
|
2051
|
+
readonly type: "address";
|
|
2052
|
+
}, {
|
|
2053
|
+
readonly name: "_amount";
|
|
2054
|
+
readonly type: "uint256";
|
|
2055
|
+
}, {
|
|
2056
|
+
readonly name: "_vaultId";
|
|
2057
|
+
readonly type: "uint256";
|
|
2058
|
+
}, {
|
|
2059
|
+
readonly name: "_vaultAddr";
|
|
2060
|
+
readonly type: "address";
|
|
1670
2061
|
}, {
|
|
1671
2062
|
readonly name: "_a";
|
|
1672
2063
|
readonly type: "tuple";
|
|
@@ -1726,30 +2117,6 @@ export declare const abi: readonly [{
|
|
|
1726
2117
|
readonly type: "address";
|
|
1727
2118
|
}];
|
|
1728
2119
|
}];
|
|
1729
|
-
readonly outputs: readonly [{
|
|
1730
|
-
readonly name: "";
|
|
1731
|
-
readonly type: "bool";
|
|
1732
|
-
}];
|
|
1733
|
-
}, {
|
|
1734
|
-
readonly stateMutability: "view";
|
|
1735
|
-
readonly type: "function";
|
|
1736
|
-
readonly name: "getLiquidationThreshold";
|
|
1737
|
-
readonly inputs: readonly [{
|
|
1738
|
-
readonly name: "_user";
|
|
1739
|
-
readonly type: "address";
|
|
1740
|
-
}];
|
|
1741
|
-
readonly outputs: readonly [{
|
|
1742
|
-
readonly name: "";
|
|
1743
|
-
readonly type: "uint256";
|
|
1744
|
-
}];
|
|
1745
|
-
}, {
|
|
1746
|
-
readonly stateMutability: "view";
|
|
1747
|
-
readonly type: "function";
|
|
1748
|
-
readonly name: "getRedemptionThreshold";
|
|
1749
|
-
readonly inputs: readonly [{
|
|
1750
|
-
readonly name: "_user";
|
|
1751
|
-
readonly type: "address";
|
|
1752
|
-
}];
|
|
1753
2120
|
readonly outputs: readonly [{
|
|
1754
2121
|
readonly name: "";
|
|
1755
2122
|
readonly type: "uint256";
|
|
@@ -1872,6 +2239,33 @@ export declare const abi: readonly [{
|
|
|
1872
2239
|
readonly name: "";
|
|
1873
2240
|
readonly type: "uint256";
|
|
1874
2241
|
}];
|
|
2242
|
+
}, {
|
|
2243
|
+
readonly stateMutability: "nonpayable";
|
|
2244
|
+
readonly type: "function";
|
|
2245
|
+
readonly name: "setBuybackRatio";
|
|
2246
|
+
readonly inputs: readonly [{
|
|
2247
|
+
readonly name: "_ratio";
|
|
2248
|
+
readonly type: "uint256";
|
|
2249
|
+
}];
|
|
2250
|
+
readonly outputs: readonly [];
|
|
2251
|
+
}, {
|
|
2252
|
+
readonly stateMutability: "view";
|
|
2253
|
+
readonly type: "function";
|
|
2254
|
+
readonly name: "undyVaulDiscount";
|
|
2255
|
+
readonly inputs: readonly [];
|
|
2256
|
+
readonly outputs: readonly [{
|
|
2257
|
+
readonly name: "";
|
|
2258
|
+
readonly type: "uint256";
|
|
2259
|
+
}];
|
|
2260
|
+
}, {
|
|
2261
|
+
readonly stateMutability: "view";
|
|
2262
|
+
readonly type: "function";
|
|
2263
|
+
readonly name: "buybackRatio";
|
|
2264
|
+
readonly inputs: readonly [];
|
|
2265
|
+
readonly outputs: readonly [{
|
|
2266
|
+
readonly name: "";
|
|
2267
|
+
readonly type: "uint256";
|
|
2268
|
+
}];
|
|
1875
2269
|
}, {
|
|
1876
2270
|
readonly stateMutability: "nonpayable";
|
|
1877
2271
|
readonly type: "constructor";
|
|
@@ -1909,8 +2303,6 @@ export type Contract = {
|
|
|
1909
2303
|
canMintRipe: () => Promise<boolean>;
|
|
1910
2304
|
isPaused: () => Promise<boolean>;
|
|
1911
2305
|
getMaxBorrowAmount: (user: `0x${string}`) => Promise<bigint>;
|
|
1912
|
-
getMaxRedeemValue: (user: `0x${string}`) => Promise<bigint>;
|
|
1913
|
-
getCollateralValue: (user: `0x${string}`) => Promise<bigint>;
|
|
1914
2306
|
getUserBorrowTerms: (user: `0x${string}`, shouldRaise: boolean, skipVaultId?: bigint, skipAsset?: `0x${string}`, a?: {
|
|
1915
2307
|
hq: `0x${string}`;
|
|
1916
2308
|
greenToken: `0x${string}`;
|
|
@@ -1941,7 +2333,45 @@ export type Contract = {
|
|
|
1941
2333
|
borrowRate: bigint;
|
|
1942
2334
|
daowry: bigint;
|
|
1943
2335
|
};
|
|
2336
|
+
lowestLtv: bigint;
|
|
2337
|
+
highestLtv: bigint;
|
|
2338
|
+
}>;
|
|
2339
|
+
getUserBorrowTermsWithNumVaults: (user: `0x${string}`, numUserVaults: bigint, shouldRaise: boolean, skipVaultId?: bigint, skipAsset?: `0x${string}`, a?: {
|
|
2340
|
+
hq: `0x${string}`;
|
|
2341
|
+
greenToken: `0x${string}`;
|
|
2342
|
+
savingsGreen: `0x${string}`;
|
|
2343
|
+
ripeToken: `0x${string}`;
|
|
2344
|
+
ledger: `0x${string}`;
|
|
2345
|
+
missionControl: `0x${string}`;
|
|
2346
|
+
switchboard: `0x${string}`;
|
|
2347
|
+
priceDesk: `0x${string}`;
|
|
2348
|
+
vaultBook: `0x${string}`;
|
|
2349
|
+
auctionHouse: `0x${string}`;
|
|
2350
|
+
auctionHouseNft: `0x${string}`;
|
|
2351
|
+
boardroom: `0x${string}`;
|
|
2352
|
+
bondRoom: `0x${string}`;
|
|
2353
|
+
creditEngine: `0x${string}`;
|
|
2354
|
+
endaoment: `0x${string}`;
|
|
2355
|
+
humanResources: `0x${string}`;
|
|
2356
|
+
lootbox: `0x${string}`;
|
|
2357
|
+
teller: `0x${string}`;
|
|
2358
|
+
}) => Promise<{
|
|
2359
|
+
collateralVal: bigint;
|
|
2360
|
+
totalMaxDebt: bigint;
|
|
2361
|
+
debtTerms: {
|
|
2362
|
+
ltv: bigint;
|
|
2363
|
+
redemptionThreshold: bigint;
|
|
2364
|
+
liqThreshold: bigint;
|
|
2365
|
+
liqFee: bigint;
|
|
2366
|
+
borrowRate: bigint;
|
|
2367
|
+
daowry: bigint;
|
|
2368
|
+
};
|
|
2369
|
+
lowestLtv: bigint;
|
|
2370
|
+
highestLtv: bigint;
|
|
1944
2371
|
}>;
|
|
2372
|
+
getUserCollateralValueAndDebtAmount: (user: `0x${string}`) => Promise<[bigint, bigint]>;
|
|
2373
|
+
getCollateralValue: (user: `0x${string}`) => Promise<bigint>;
|
|
2374
|
+
getUserDebtAmount: (user: `0x${string}`) => Promise<bigint>;
|
|
1945
2375
|
getLatestUserDebtAndTerms: (user: `0x${string}`, shouldRaise: boolean, a?: {
|
|
1946
2376
|
hq: `0x${string}`;
|
|
1947
2377
|
greenToken: `0x${string}`;
|
|
@@ -1987,10 +2417,41 @@ export type Contract = {
|
|
|
1987
2417
|
borrowRate: bigint;
|
|
1988
2418
|
daowry: bigint;
|
|
1989
2419
|
};
|
|
2420
|
+
lowestLtv: bigint;
|
|
2421
|
+
highestLtv: bigint;
|
|
2422
|
+
},
|
|
2423
|
+
bigint
|
|
2424
|
+
]>;
|
|
2425
|
+
getLatestUserDebtWithInterest: (userDebt: {
|
|
2426
|
+
amount: bigint;
|
|
2427
|
+
principal: bigint;
|
|
2428
|
+
debtTerms: {
|
|
2429
|
+
ltv: bigint;
|
|
2430
|
+
redemptionThreshold: bigint;
|
|
2431
|
+
liqThreshold: bigint;
|
|
2432
|
+
liqFee: bigint;
|
|
2433
|
+
borrowRate: bigint;
|
|
2434
|
+
daowry: bigint;
|
|
2435
|
+
};
|
|
2436
|
+
lastTimestamp: bigint;
|
|
2437
|
+
inLiquidation: boolean;
|
|
2438
|
+
}) => Promise<[
|
|
2439
|
+
{
|
|
2440
|
+
amount: bigint;
|
|
2441
|
+
principal: bigint;
|
|
2442
|
+
debtTerms: {
|
|
2443
|
+
ltv: bigint;
|
|
2444
|
+
redemptionThreshold: bigint;
|
|
2445
|
+
liqThreshold: bigint;
|
|
2446
|
+
liqFee: bigint;
|
|
2447
|
+
borrowRate: bigint;
|
|
2448
|
+
daowry: bigint;
|
|
2449
|
+
};
|
|
2450
|
+
lastTimestamp: bigint;
|
|
2451
|
+
inLiquidation: boolean;
|
|
1990
2452
|
},
|
|
1991
2453
|
bigint
|
|
1992
2454
|
]>;
|
|
1993
|
-
getDynamicBorrowRate: (baseRate: bigint) => Promise<bigint>;
|
|
1994
2455
|
hasGoodDebtHealth: (user: `0x${string}`, a?: {
|
|
1995
2456
|
hq: `0x${string}`;
|
|
1996
2457
|
greenToken: `0x${string}`;
|
|
@@ -2053,6 +2514,7 @@ export type Contract = {
|
|
|
2053
2514
|
}) => Promise<boolean>;
|
|
2054
2515
|
getLiquidationThreshold: (user: `0x${string}`) => Promise<bigint>;
|
|
2055
2516
|
getRedemptionThreshold: (user: `0x${string}`) => Promise<bigint>;
|
|
2517
|
+
getDynamicBorrowRate: (baseRate: bigint) => Promise<bigint>;
|
|
2056
2518
|
getMaxWithdrawableForAsset: (user: `0x${string}`, vaultId: bigint, asset: `0x${string}`, vaultAddr?: `0x${string}`, a?: {
|
|
2057
2519
|
hq: `0x${string}`;
|
|
2058
2520
|
greenToken: `0x${string}`;
|
|
@@ -2073,6 +2535,8 @@ export type Contract = {
|
|
|
2073
2535
|
lootbox: `0x${string}`;
|
|
2074
2536
|
teller: `0x${string}`;
|
|
2075
2537
|
}) => Promise<bigint>;
|
|
2538
|
+
undyVaulDiscount: () => Promise<bigint>;
|
|
2539
|
+
buybackRatio: () => Promise<bigint>;
|
|
2076
2540
|
};
|
|
2077
2541
|
mutations: {
|
|
2078
2542
|
pause: (shouldPause: boolean) => Promise<void>;
|
|
@@ -2118,20 +2582,7 @@ export type Contract = {
|
|
|
2118
2582
|
lootbox: `0x${string}`;
|
|
2119
2583
|
teller: `0x${string}`;
|
|
2120
2584
|
}) => Promise<boolean>;
|
|
2121
|
-
|
|
2122
|
-
amount: bigint;
|
|
2123
|
-
principal: bigint;
|
|
2124
|
-
debtTerms: {
|
|
2125
|
-
ltv: bigint;
|
|
2126
|
-
redemptionThreshold: bigint;
|
|
2127
|
-
liqThreshold: bigint;
|
|
2128
|
-
liqFee: bigint;
|
|
2129
|
-
borrowRate: bigint;
|
|
2130
|
-
daowry: bigint;
|
|
2131
|
-
};
|
|
2132
|
-
lastTimestamp: bigint;
|
|
2133
|
-
inLiquidation: boolean;
|
|
2134
|
-
}, repayValue: bigint, newInterest: bigint, a?: {
|
|
2585
|
+
repayDuringAuctionPurchase: (liqUser: `0x${string}`, repayValue: bigint, a?: {
|
|
2135
2586
|
hq: `0x${string}`;
|
|
2136
2587
|
greenToken: `0x${string}`;
|
|
2137
2588
|
savingsGreen: `0x${string}`;
|
|
@@ -2151,7 +2602,20 @@ export type Contract = {
|
|
|
2151
2602
|
lootbox: `0x${string}`;
|
|
2152
2603
|
teller: `0x${string}`;
|
|
2153
2604
|
}) => Promise<boolean>;
|
|
2154
|
-
|
|
2605
|
+
repayFromDept: (user: `0x${string}`, userDebt: {
|
|
2606
|
+
amount: bigint;
|
|
2607
|
+
principal: bigint;
|
|
2608
|
+
debtTerms: {
|
|
2609
|
+
ltv: bigint;
|
|
2610
|
+
redemptionThreshold: bigint;
|
|
2611
|
+
liqThreshold: bigint;
|
|
2612
|
+
liqFee: bigint;
|
|
2613
|
+
borrowRate: bigint;
|
|
2614
|
+
daowry: bigint;
|
|
2615
|
+
};
|
|
2616
|
+
lastTimestamp: bigint;
|
|
2617
|
+
inLiquidation: boolean;
|
|
2618
|
+
}, repayValue: bigint, newInterest: bigint, numUserVaults: bigint, a?: {
|
|
2155
2619
|
hq: `0x${string}`;
|
|
2156
2620
|
greenToken: `0x${string}`;
|
|
2157
2621
|
savingsGreen: `0x${string}`;
|
|
@@ -2171,12 +2635,8 @@ export type Contract = {
|
|
|
2171
2635
|
lootbox: `0x${string}`;
|
|
2172
2636
|
teller: `0x${string}`;
|
|
2173
2637
|
}) => Promise<boolean>;
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
vaultId: bigint;
|
|
2177
|
-
asset: `0x${string}`;
|
|
2178
|
-
maxGreenAmount: bigint;
|
|
2179
|
-
}[], greenAmount: bigint, recipient: `0x${string}`, caller: `0x${string}`, shouldTransferBalance: boolean, shouldRefundSavingsGreen: boolean, a?: {
|
|
2638
|
+
setUnderscoreVaultDiscount: (discount: bigint) => Promise<void>;
|
|
2639
|
+
updateDebtForUser: (user: `0x${string}`, a?: {
|
|
2180
2640
|
hq: `0x${string}`;
|
|
2181
2641
|
greenToken: `0x${string}`;
|
|
2182
2642
|
savingsGreen: `0x${string}`;
|
|
@@ -2195,8 +2655,8 @@ export type Contract = {
|
|
|
2195
2655
|
humanResources: `0x${string}`;
|
|
2196
2656
|
lootbox: `0x${string}`;
|
|
2197
2657
|
teller: `0x${string}`;
|
|
2198
|
-
}) => Promise<
|
|
2199
|
-
|
|
2658
|
+
}) => Promise<boolean>;
|
|
2659
|
+
transferOrWithdrawViaRedemption: (shouldTransferBalance: boolean, asset: `0x${string}`, user: `0x${string}`, recipient: `0x${string}`, amount: bigint, vaultId: bigint, vaultAddr: `0x${string}`, a: {
|
|
2200
2660
|
hq: `0x${string}`;
|
|
2201
2661
|
greenToken: `0x${string}`;
|
|
2202
2662
|
savingsGreen: `0x${string}`;
|
|
@@ -2215,12 +2675,14 @@ export type Contract = {
|
|
|
2215
2675
|
humanResources: `0x${string}`;
|
|
2216
2676
|
lootbox: `0x${string}`;
|
|
2217
2677
|
teller: `0x${string}`;
|
|
2218
|
-
}) => Promise<
|
|
2678
|
+
}) => Promise<bigint>;
|
|
2679
|
+
setBuybackRatio: (ratio: bigint) => Promise<void>;
|
|
2219
2680
|
};
|
|
2220
2681
|
events: {
|
|
2221
2682
|
NewBorrow: (user: `0x${string}`, newLoan: bigint, daowry: bigint, didReceiveSavingsGreen: boolean, outstandingUserDebt: bigint, userCollateralVal: bigint, maxUserDebt: bigint, globalYieldRealized: bigint) => Promise<void>;
|
|
2222
2683
|
RepayDebt: (user: `0x${string}`, repayValue: bigint, repayType: bigint, refundAmount: bigint, refundWasSavingsGreen: boolean, outstandingUserDebt: bigint, userCollateralVal: bigint, maxUserDebt: bigint, hasGoodDebtHealth: boolean) => Promise<void>;
|
|
2223
|
-
|
|
2684
|
+
UnderscoreVaultDiscountSet: (discount: bigint) => Promise<void>;
|
|
2685
|
+
BuybackRatioSet: (ratio: bigint) => Promise<void>;
|
|
2224
2686
|
DepartmentPauseModified: (isPaused: boolean) => Promise<void>;
|
|
2225
2687
|
DepartmentFundsRecovered: (asset: `0x${string}`, recipient: `0x${string}`, balance: bigint) => Promise<void>;
|
|
2226
2688
|
};
|
|
@@ -2269,26 +2731,33 @@ export type SDK = {
|
|
|
2269
2731
|
canMintRipe: (...args: ExtractArgs<Contract['calls']['canMintRipe']>) => Promise<CallReturn<'canMintRipe'>>;
|
|
2270
2732
|
isPaused: (...args: ExtractArgs<Contract['calls']['isPaused']>) => Promise<CallReturn<'isPaused'>>;
|
|
2271
2733
|
getMaxBorrowAmount: (...args: ExtractArgs<Contract['calls']['getMaxBorrowAmount']>) => Promise<CallReturn<'getMaxBorrowAmount'>>;
|
|
2272
|
-
getMaxRedeemValue: (...args: ExtractArgs<Contract['calls']['getMaxRedeemValue']>) => Promise<CallReturn<'getMaxRedeemValue'>>;
|
|
2273
|
-
getCollateralValue: (...args: ExtractArgs<Contract['calls']['getCollateralValue']>) => Promise<CallReturn<'getCollateralValue'>>;
|
|
2274
2734
|
getUserBorrowTerms: (...args: ExtractArgs<Contract['calls']['getUserBorrowTerms']>) => Promise<CallReturn<'getUserBorrowTerms'>>;
|
|
2735
|
+
getUserBorrowTermsWithNumVaults: (...args: ExtractArgs<Contract['calls']['getUserBorrowTermsWithNumVaults']>) => Promise<CallReturn<'getUserBorrowTermsWithNumVaults'>>;
|
|
2736
|
+
getUserCollateralValueAndDebtAmount: (...args: ExtractArgs<Contract['calls']['getUserCollateralValueAndDebtAmount']>) => Promise<CallReturn<'getUserCollateralValueAndDebtAmount'>>;
|
|
2737
|
+
getCollateralValue: (...args: ExtractArgs<Contract['calls']['getCollateralValue']>) => Promise<CallReturn<'getCollateralValue'>>;
|
|
2738
|
+
getUserDebtAmount: (...args: ExtractArgs<Contract['calls']['getUserDebtAmount']>) => Promise<CallReturn<'getUserDebtAmount'>>;
|
|
2275
2739
|
getLatestUserDebtAndTerms: (...args: ExtractArgs<Contract['calls']['getLatestUserDebtAndTerms']>) => Promise<CallReturn<'getLatestUserDebtAndTerms'>>;
|
|
2276
|
-
|
|
2740
|
+
getLatestUserDebtWithInterest: (...args: ExtractArgs<Contract['calls']['getLatestUserDebtWithInterest']>) => Promise<CallReturn<'getLatestUserDebtWithInterest'>>;
|
|
2277
2741
|
hasGoodDebtHealth: (...args: ExtractArgs<Contract['calls']['hasGoodDebtHealth']>) => Promise<CallReturn<'hasGoodDebtHealth'>>;
|
|
2278
2742
|
canLiquidateUser: (...args: ExtractArgs<Contract['calls']['canLiquidateUser']>) => Promise<CallReturn<'canLiquidateUser'>>;
|
|
2279
2743
|
canRedeemUserCollateral: (...args: ExtractArgs<Contract['calls']['canRedeemUserCollateral']>) => Promise<CallReturn<'canRedeemUserCollateral'>>;
|
|
2280
2744
|
getLiquidationThreshold: (...args: ExtractArgs<Contract['calls']['getLiquidationThreshold']>) => Promise<CallReturn<'getLiquidationThreshold'>>;
|
|
2281
2745
|
getRedemptionThreshold: (...args: ExtractArgs<Contract['calls']['getRedemptionThreshold']>) => Promise<CallReturn<'getRedemptionThreshold'>>;
|
|
2746
|
+
getDynamicBorrowRate: (...args: ExtractArgs<Contract['calls']['getDynamicBorrowRate']>) => Promise<CallReturn<'getDynamicBorrowRate'>>;
|
|
2282
2747
|
getMaxWithdrawableForAsset: (...args: ExtractArgs<Contract['calls']['getMaxWithdrawableForAsset']>) => Promise<CallReturn<'getMaxWithdrawableForAsset'>>;
|
|
2748
|
+
undyVaulDiscount: (...args: ExtractArgs<Contract['calls']['undyVaulDiscount']>) => Promise<CallReturn<'undyVaulDiscount'>>;
|
|
2749
|
+
buybackRatio: (...args: ExtractArgs<Contract['calls']['buybackRatio']>) => Promise<CallReturn<'buybackRatio'>>;
|
|
2283
2750
|
pause: (...args: ExtractArgs<Contract['mutations']['pause']>) => Promise<Address>;
|
|
2284
2751
|
recoverFunds: (...args: ExtractArgs<Contract['mutations']['recoverFunds']>) => Promise<Address>;
|
|
2285
2752
|
recoverFundsMany: (...args: ExtractArgs<Contract['mutations']['recoverFundsMany']>) => Promise<Address>;
|
|
2286
2753
|
borrowForUser: (...args: ExtractArgs<Contract['mutations']['borrowForUser']>) => Promise<Address>;
|
|
2287
2754
|
repayForUser: (...args: ExtractArgs<Contract['mutations']['repayForUser']>) => Promise<Address>;
|
|
2288
|
-
repayDuringLiquidation: (...args: ExtractArgs<Contract['mutations']['repayDuringLiquidation']>) => Promise<Address>;
|
|
2289
2755
|
repayDuringAuctionPurchase: (...args: ExtractArgs<Contract['mutations']['repayDuringAuctionPurchase']>) => Promise<Address>;
|
|
2290
|
-
|
|
2756
|
+
repayFromDept: (...args: ExtractArgs<Contract['mutations']['repayFromDept']>) => Promise<Address>;
|
|
2757
|
+
setUnderscoreVaultDiscount: (...args: ExtractArgs<Contract['mutations']['setUnderscoreVaultDiscount']>) => Promise<Address>;
|
|
2291
2758
|
updateDebtForUser: (...args: ExtractArgs<Contract['mutations']['updateDebtForUser']>) => Promise<Address>;
|
|
2759
|
+
transferOrWithdrawViaRedemption: (...args: ExtractArgs<Contract['mutations']['transferOrWithdrawViaRedemption']>) => Promise<Address>;
|
|
2760
|
+
setBuybackRatio: (...args: ExtractArgs<Contract['mutations']['setBuybackRatio']>) => Promise<Address>;
|
|
2292
2761
|
};
|
|
2293
2762
|
export declare function toSdk(publicClient?: PublicClient, walletClient?: WalletClient): SDK;
|
|
2294
2763
|
export {};
|