@ripe-finance/sdk 1.13.2 → 1.14.2
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/CreditEngine.d.ts +679 -242
- package/dist/contracts/CreditEngine.d.ts.map +1 -1
- package/dist/contracts/CreditEngine.js +790 -276
- 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/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/SwitchboardAlpha.d.ts +56 -0
- package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
- package/dist/contracts/SwitchboardAlpha.js +73 -1
- 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/Teller.d.ts +419 -0
- package/dist/contracts/Teller.d.ts.map +1 -1
- package/dist/contracts/Teller.js +531 -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 +7 -0
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +7 -0
- package/dist/contracts/sdk.d.ts +14 -0
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/contracts/sdk.js +14 -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 +327 -31
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -0
- package/package.json +2 -2
- 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/Agent.js +0 -3458
- 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/PriceSheets.js +0 -1383
- 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,11 @@ 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";
|
|
98
|
-
readonly type: "uint256";
|
|
99
|
-
readonly indexed: false;
|
|
100
|
-
}, {
|
|
101
|
-
readonly name: "recipient";
|
|
102
|
-
readonly type: "address";
|
|
103
|
-
readonly indexed: true;
|
|
104
|
-
}, {
|
|
105
|
-
readonly name: "caller";
|
|
106
|
-
readonly type: "address";
|
|
107
|
-
readonly indexed: false;
|
|
108
|
-
}, {
|
|
109
|
-
readonly name: "repayValue";
|
|
85
|
+
readonly name: "discount";
|
|
110
86
|
readonly type: "uint256";
|
|
111
87
|
readonly indexed: false;
|
|
112
|
-
}, {
|
|
113
|
-
readonly name: "hasGoodDebtHealth";
|
|
114
|
-
readonly type: "bool";
|
|
115
|
-
readonly indexed: false;
|
|
116
88
|
}];
|
|
117
89
|
readonly anonymous: false;
|
|
118
90
|
readonly type: "event";
|
|
@@ -496,10 +468,98 @@ export declare const abi: readonly [{
|
|
|
496
468
|
}, {
|
|
497
469
|
readonly stateMutability: "nonpayable";
|
|
498
470
|
readonly type: "function";
|
|
499
|
-
readonly name: "
|
|
471
|
+
readonly name: "repayDuringAuctionPurchase";
|
|
472
|
+
readonly inputs: readonly [{
|
|
473
|
+
readonly name: "_liqUser";
|
|
474
|
+
readonly type: "address";
|
|
475
|
+
}, {
|
|
476
|
+
readonly name: "_repayValue";
|
|
477
|
+
readonly type: "uint256";
|
|
478
|
+
}];
|
|
479
|
+
readonly outputs: readonly [{
|
|
480
|
+
readonly name: "";
|
|
481
|
+
readonly type: "bool";
|
|
482
|
+
}];
|
|
483
|
+
}, {
|
|
484
|
+
readonly stateMutability: "nonpayable";
|
|
485
|
+
readonly type: "function";
|
|
486
|
+
readonly name: "repayDuringAuctionPurchase";
|
|
500
487
|
readonly inputs: readonly [{
|
|
501
488
|
readonly name: "_liqUser";
|
|
502
489
|
readonly type: "address";
|
|
490
|
+
}, {
|
|
491
|
+
readonly name: "_repayValue";
|
|
492
|
+
readonly type: "uint256";
|
|
493
|
+
}, {
|
|
494
|
+
readonly name: "_a";
|
|
495
|
+
readonly type: "tuple";
|
|
496
|
+
readonly components: readonly [{
|
|
497
|
+
readonly name: "hq";
|
|
498
|
+
readonly type: "address";
|
|
499
|
+
}, {
|
|
500
|
+
readonly name: "greenToken";
|
|
501
|
+
readonly type: "address";
|
|
502
|
+
}, {
|
|
503
|
+
readonly name: "savingsGreen";
|
|
504
|
+
readonly type: "address";
|
|
505
|
+
}, {
|
|
506
|
+
readonly name: "ripeToken";
|
|
507
|
+
readonly type: "address";
|
|
508
|
+
}, {
|
|
509
|
+
readonly name: "ledger";
|
|
510
|
+
readonly type: "address";
|
|
511
|
+
}, {
|
|
512
|
+
readonly name: "missionControl";
|
|
513
|
+
readonly type: "address";
|
|
514
|
+
}, {
|
|
515
|
+
readonly name: "switchboard";
|
|
516
|
+
readonly type: "address";
|
|
517
|
+
}, {
|
|
518
|
+
readonly name: "priceDesk";
|
|
519
|
+
readonly type: "address";
|
|
520
|
+
}, {
|
|
521
|
+
readonly name: "vaultBook";
|
|
522
|
+
readonly type: "address";
|
|
523
|
+
}, {
|
|
524
|
+
readonly name: "auctionHouse";
|
|
525
|
+
readonly type: "address";
|
|
526
|
+
}, {
|
|
527
|
+
readonly name: "auctionHouseNft";
|
|
528
|
+
readonly type: "address";
|
|
529
|
+
}, {
|
|
530
|
+
readonly name: "boardroom";
|
|
531
|
+
readonly type: "address";
|
|
532
|
+
}, {
|
|
533
|
+
readonly name: "bondRoom";
|
|
534
|
+
readonly type: "address";
|
|
535
|
+
}, {
|
|
536
|
+
readonly name: "creditEngine";
|
|
537
|
+
readonly type: "address";
|
|
538
|
+
}, {
|
|
539
|
+
readonly name: "endaoment";
|
|
540
|
+
readonly type: "address";
|
|
541
|
+
}, {
|
|
542
|
+
readonly name: "humanResources";
|
|
543
|
+
readonly type: "address";
|
|
544
|
+
}, {
|
|
545
|
+
readonly name: "lootbox";
|
|
546
|
+
readonly type: "address";
|
|
547
|
+
}, {
|
|
548
|
+
readonly name: "teller";
|
|
549
|
+
readonly type: "address";
|
|
550
|
+
}];
|
|
551
|
+
}];
|
|
552
|
+
readonly outputs: readonly [{
|
|
553
|
+
readonly name: "";
|
|
554
|
+
readonly type: "bool";
|
|
555
|
+
}];
|
|
556
|
+
}, {
|
|
557
|
+
readonly stateMutability: "nonpayable";
|
|
558
|
+
readonly type: "function";
|
|
559
|
+
readonly name: "repayFromDept";
|
|
560
|
+
readonly inputs: readonly [{
|
|
561
|
+
readonly name: "_user";
|
|
562
|
+
readonly type: "address";
|
|
503
563
|
}, {
|
|
504
564
|
readonly name: "_userDebt";
|
|
505
565
|
readonly type: "tuple";
|
|
@@ -544,6 +604,9 @@ export declare const abi: readonly [{
|
|
|
544
604
|
}, {
|
|
545
605
|
readonly name: "_newInterest";
|
|
546
606
|
readonly type: "uint256";
|
|
607
|
+
}, {
|
|
608
|
+
readonly name: "_numUserVaults";
|
|
609
|
+
readonly type: "uint256";
|
|
547
610
|
}];
|
|
548
611
|
readonly outputs: readonly [{
|
|
549
612
|
readonly name: "";
|
|
@@ -552,9 +615,9 @@ export declare const abi: readonly [{
|
|
|
552
615
|
}, {
|
|
553
616
|
readonly stateMutability: "nonpayable";
|
|
554
617
|
readonly type: "function";
|
|
555
|
-
readonly name: "
|
|
618
|
+
readonly name: "repayFromDept";
|
|
556
619
|
readonly inputs: readonly [{
|
|
557
|
-
readonly name: "
|
|
620
|
+
readonly name: "_user";
|
|
558
621
|
readonly type: "address";
|
|
559
622
|
}, {
|
|
560
623
|
readonly name: "_userDebt";
|
|
@@ -600,6 +663,9 @@ export declare const abi: readonly [{
|
|
|
600
663
|
}, {
|
|
601
664
|
readonly name: "_newInterest";
|
|
602
665
|
readonly type: "uint256";
|
|
666
|
+
}, {
|
|
667
|
+
readonly name: "_numUserVaults";
|
|
668
|
+
readonly type: "uint256";
|
|
603
669
|
}, {
|
|
604
670
|
readonly name: "_a";
|
|
605
671
|
readonly type: "tuple";
|
|
@@ -664,168 +730,180 @@ export declare const abi: readonly [{
|
|
|
664
730
|
readonly type: "bool";
|
|
665
731
|
}];
|
|
666
732
|
}, {
|
|
667
|
-
readonly stateMutability: "
|
|
733
|
+
readonly stateMutability: "view";
|
|
668
734
|
readonly type: "function";
|
|
669
|
-
readonly name: "
|
|
735
|
+
readonly name: "getUserBorrowTerms";
|
|
670
736
|
readonly inputs: readonly [{
|
|
671
|
-
readonly name: "
|
|
737
|
+
readonly name: "_user";
|
|
672
738
|
readonly type: "address";
|
|
673
739
|
}, {
|
|
674
|
-
readonly name: "
|
|
675
|
-
readonly type: "
|
|
740
|
+
readonly name: "_shouldRaise";
|
|
741
|
+
readonly type: "bool";
|
|
676
742
|
}];
|
|
677
743
|
readonly outputs: readonly [{
|
|
678
744
|
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
745
|
readonly type: "tuple";
|
|
694
746
|
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";
|
|
747
|
+
readonly name: "collateralVal";
|
|
748
|
+
readonly type: "uint256";
|
|
736
749
|
}, {
|
|
737
|
-
readonly name: "
|
|
738
|
-
readonly type: "
|
|
750
|
+
readonly name: "totalMaxDebt";
|
|
751
|
+
readonly type: "uint256";
|
|
739
752
|
}, {
|
|
740
|
-
readonly name: "
|
|
741
|
-
readonly type: "
|
|
753
|
+
readonly name: "debtTerms";
|
|
754
|
+
readonly type: "tuple";
|
|
755
|
+
readonly components: readonly [{
|
|
756
|
+
readonly name: "ltv";
|
|
757
|
+
readonly type: "uint256";
|
|
758
|
+
}, {
|
|
759
|
+
readonly name: "redemptionThreshold";
|
|
760
|
+
readonly type: "uint256";
|
|
761
|
+
}, {
|
|
762
|
+
readonly name: "liqThreshold";
|
|
763
|
+
readonly type: "uint256";
|
|
764
|
+
}, {
|
|
765
|
+
readonly name: "liqFee";
|
|
766
|
+
readonly type: "uint256";
|
|
767
|
+
}, {
|
|
768
|
+
readonly name: "borrowRate";
|
|
769
|
+
readonly type: "uint256";
|
|
770
|
+
}, {
|
|
771
|
+
readonly name: "daowry";
|
|
772
|
+
readonly type: "uint256";
|
|
773
|
+
}];
|
|
742
774
|
}, {
|
|
743
|
-
readonly name: "
|
|
744
|
-
readonly type: "
|
|
775
|
+
readonly name: "lowestLtv";
|
|
776
|
+
readonly type: "uint256";
|
|
745
777
|
}, {
|
|
746
|
-
readonly name: "
|
|
747
|
-
readonly type: "
|
|
778
|
+
readonly name: "highestLtv";
|
|
779
|
+
readonly type: "uint256";
|
|
748
780
|
}];
|
|
749
781
|
}];
|
|
750
|
-
readonly outputs: readonly [{
|
|
751
|
-
readonly name: "";
|
|
752
|
-
readonly type: "bool";
|
|
753
|
-
}];
|
|
754
782
|
}, {
|
|
755
|
-
readonly stateMutability: "
|
|
783
|
+
readonly stateMutability: "view";
|
|
756
784
|
readonly type: "function";
|
|
757
|
-
readonly name: "
|
|
785
|
+
readonly name: "getUserBorrowTerms";
|
|
758
786
|
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";
|
|
787
|
+
readonly name: "_user";
|
|
782
788
|
readonly type: "address";
|
|
783
789
|
}, {
|
|
784
|
-
readonly name: "
|
|
790
|
+
readonly name: "_shouldRaise";
|
|
785
791
|
readonly type: "bool";
|
|
786
792
|
}, {
|
|
787
|
-
readonly name: "
|
|
788
|
-
readonly type: "
|
|
793
|
+
readonly name: "_skipVaultId";
|
|
794
|
+
readonly type: "uint256";
|
|
789
795
|
}];
|
|
790
796
|
readonly outputs: readonly [{
|
|
791
797
|
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[]";
|
|
798
|
+
readonly type: "tuple";
|
|
801
799
|
readonly components: readonly [{
|
|
802
|
-
readonly name: "
|
|
803
|
-
readonly type: "
|
|
800
|
+
readonly name: "collateralVal";
|
|
801
|
+
readonly type: "uint256";
|
|
804
802
|
}, {
|
|
805
|
-
readonly name: "
|
|
803
|
+
readonly name: "totalMaxDebt";
|
|
806
804
|
readonly type: "uint256";
|
|
807
805
|
}, {
|
|
808
|
-
readonly name: "
|
|
809
|
-
readonly type: "
|
|
806
|
+
readonly name: "debtTerms";
|
|
807
|
+
readonly type: "tuple";
|
|
808
|
+
readonly components: readonly [{
|
|
809
|
+
readonly name: "ltv";
|
|
810
|
+
readonly type: "uint256";
|
|
811
|
+
}, {
|
|
812
|
+
readonly name: "redemptionThreshold";
|
|
813
|
+
readonly type: "uint256";
|
|
814
|
+
}, {
|
|
815
|
+
readonly name: "liqThreshold";
|
|
816
|
+
readonly type: "uint256";
|
|
817
|
+
}, {
|
|
818
|
+
readonly name: "liqFee";
|
|
819
|
+
readonly type: "uint256";
|
|
820
|
+
}, {
|
|
821
|
+
readonly name: "borrowRate";
|
|
822
|
+
readonly type: "uint256";
|
|
823
|
+
}, {
|
|
824
|
+
readonly name: "daowry";
|
|
825
|
+
readonly type: "uint256";
|
|
826
|
+
}];
|
|
827
|
+
}, {
|
|
828
|
+
readonly name: "lowestLtv";
|
|
829
|
+
readonly type: "uint256";
|
|
810
830
|
}, {
|
|
811
|
-
readonly name: "
|
|
831
|
+
readonly name: "highestLtv";
|
|
812
832
|
readonly type: "uint256";
|
|
813
833
|
}];
|
|
834
|
+
}];
|
|
835
|
+
}, {
|
|
836
|
+
readonly stateMutability: "view";
|
|
837
|
+
readonly type: "function";
|
|
838
|
+
readonly name: "getUserBorrowTerms";
|
|
839
|
+
readonly inputs: readonly [{
|
|
840
|
+
readonly name: "_user";
|
|
841
|
+
readonly type: "address";
|
|
814
842
|
}, {
|
|
815
|
-
readonly name: "
|
|
843
|
+
readonly name: "_shouldRaise";
|
|
844
|
+
readonly type: "bool";
|
|
845
|
+
}, {
|
|
846
|
+
readonly name: "_skipVaultId";
|
|
816
847
|
readonly type: "uint256";
|
|
817
848
|
}, {
|
|
818
|
-
readonly name: "
|
|
849
|
+
readonly name: "_skipAsset";
|
|
819
850
|
readonly type: "address";
|
|
820
|
-
}
|
|
821
|
-
|
|
851
|
+
}];
|
|
852
|
+
readonly outputs: readonly [{
|
|
853
|
+
readonly name: "";
|
|
854
|
+
readonly type: "tuple";
|
|
855
|
+
readonly components: readonly [{
|
|
856
|
+
readonly name: "collateralVal";
|
|
857
|
+
readonly type: "uint256";
|
|
858
|
+
}, {
|
|
859
|
+
readonly name: "totalMaxDebt";
|
|
860
|
+
readonly type: "uint256";
|
|
861
|
+
}, {
|
|
862
|
+
readonly name: "debtTerms";
|
|
863
|
+
readonly type: "tuple";
|
|
864
|
+
readonly components: readonly [{
|
|
865
|
+
readonly name: "ltv";
|
|
866
|
+
readonly type: "uint256";
|
|
867
|
+
}, {
|
|
868
|
+
readonly name: "redemptionThreshold";
|
|
869
|
+
readonly type: "uint256";
|
|
870
|
+
}, {
|
|
871
|
+
readonly name: "liqThreshold";
|
|
872
|
+
readonly type: "uint256";
|
|
873
|
+
}, {
|
|
874
|
+
readonly name: "liqFee";
|
|
875
|
+
readonly type: "uint256";
|
|
876
|
+
}, {
|
|
877
|
+
readonly name: "borrowRate";
|
|
878
|
+
readonly type: "uint256";
|
|
879
|
+
}, {
|
|
880
|
+
readonly name: "daowry";
|
|
881
|
+
readonly type: "uint256";
|
|
882
|
+
}];
|
|
883
|
+
}, {
|
|
884
|
+
readonly name: "lowestLtv";
|
|
885
|
+
readonly type: "uint256";
|
|
886
|
+
}, {
|
|
887
|
+
readonly name: "highestLtv";
|
|
888
|
+
readonly type: "uint256";
|
|
889
|
+
}];
|
|
890
|
+
}];
|
|
891
|
+
}, {
|
|
892
|
+
readonly stateMutability: "view";
|
|
893
|
+
readonly type: "function";
|
|
894
|
+
readonly name: "getUserBorrowTerms";
|
|
895
|
+
readonly inputs: readonly [{
|
|
896
|
+
readonly name: "_user";
|
|
822
897
|
readonly type: "address";
|
|
823
898
|
}, {
|
|
824
|
-
readonly name: "
|
|
899
|
+
readonly name: "_shouldRaise";
|
|
825
900
|
readonly type: "bool";
|
|
826
901
|
}, {
|
|
827
|
-
readonly name: "
|
|
828
|
-
readonly type: "
|
|
902
|
+
readonly name: "_skipVaultId";
|
|
903
|
+
readonly type: "uint256";
|
|
904
|
+
}, {
|
|
905
|
+
readonly name: "_skipAsset";
|
|
906
|
+
readonly type: "address";
|
|
829
907
|
}, {
|
|
830
908
|
readonly name: "_a";
|
|
831
909
|
readonly type: "tuple";
|
|
@@ -887,39 +965,53 @@ export declare const abi: readonly [{
|
|
|
887
965
|
}];
|
|
888
966
|
readonly outputs: readonly [{
|
|
889
967
|
readonly name: "";
|
|
890
|
-
readonly type: "
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
968
|
+
readonly type: "tuple";
|
|
969
|
+
readonly components: readonly [{
|
|
970
|
+
readonly name: "collateralVal";
|
|
971
|
+
readonly type: "uint256";
|
|
972
|
+
}, {
|
|
973
|
+
readonly name: "totalMaxDebt";
|
|
974
|
+
readonly type: "uint256";
|
|
975
|
+
}, {
|
|
976
|
+
readonly name: "debtTerms";
|
|
977
|
+
readonly type: "tuple";
|
|
978
|
+
readonly components: readonly [{
|
|
979
|
+
readonly name: "ltv";
|
|
980
|
+
readonly type: "uint256";
|
|
981
|
+
}, {
|
|
982
|
+
readonly name: "redemptionThreshold";
|
|
983
|
+
readonly type: "uint256";
|
|
984
|
+
}, {
|
|
985
|
+
readonly name: "liqThreshold";
|
|
986
|
+
readonly type: "uint256";
|
|
987
|
+
}, {
|
|
988
|
+
readonly name: "liqFee";
|
|
989
|
+
readonly type: "uint256";
|
|
990
|
+
}, {
|
|
991
|
+
readonly name: "borrowRate";
|
|
992
|
+
readonly type: "uint256";
|
|
993
|
+
}, {
|
|
994
|
+
readonly name: "daowry";
|
|
995
|
+
readonly type: "uint256";
|
|
996
|
+
}];
|
|
997
|
+
}, {
|
|
998
|
+
readonly name: "lowestLtv";
|
|
999
|
+
readonly type: "uint256";
|
|
1000
|
+
}, {
|
|
1001
|
+
readonly name: "highestLtv";
|
|
1002
|
+
readonly type: "uint256";
|
|
1003
|
+
}];
|
|
903
1004
|
}];
|
|
904
1005
|
}, {
|
|
905
1006
|
readonly stateMutability: "view";
|
|
906
1007
|
readonly type: "function";
|
|
907
|
-
readonly name: "
|
|
1008
|
+
readonly name: "getUserBorrowTermsWithNumVaults";
|
|
908
1009
|
readonly inputs: readonly [{
|
|
909
1010
|
readonly name: "_user";
|
|
910
1011
|
readonly type: "address";
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
readonly name: "";
|
|
1012
|
+
}, {
|
|
1013
|
+
readonly name: "_numUserVaults";
|
|
914
1014
|
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
1015
|
}, {
|
|
924
1016
|
readonly name: "_shouldRaise";
|
|
925
1017
|
readonly type: "bool";
|
|
@@ -955,15 +1047,24 @@ export declare const abi: readonly [{
|
|
|
955
1047
|
readonly name: "daowry";
|
|
956
1048
|
readonly type: "uint256";
|
|
957
1049
|
}];
|
|
1050
|
+
}, {
|
|
1051
|
+
readonly name: "lowestLtv";
|
|
1052
|
+
readonly type: "uint256";
|
|
1053
|
+
}, {
|
|
1054
|
+
readonly name: "highestLtv";
|
|
1055
|
+
readonly type: "uint256";
|
|
958
1056
|
}];
|
|
959
1057
|
}];
|
|
960
1058
|
}, {
|
|
961
1059
|
readonly stateMutability: "view";
|
|
962
1060
|
readonly type: "function";
|
|
963
|
-
readonly name: "
|
|
1061
|
+
readonly name: "getUserBorrowTermsWithNumVaults";
|
|
964
1062
|
readonly inputs: readonly [{
|
|
965
1063
|
readonly name: "_user";
|
|
966
1064
|
readonly type: "address";
|
|
1065
|
+
}, {
|
|
1066
|
+
readonly name: "_numUserVaults";
|
|
1067
|
+
readonly type: "uint256";
|
|
967
1068
|
}, {
|
|
968
1069
|
readonly name: "_shouldRaise";
|
|
969
1070
|
readonly type: "bool";
|
|
@@ -1002,15 +1103,24 @@ export declare const abi: readonly [{
|
|
|
1002
1103
|
readonly name: "daowry";
|
|
1003
1104
|
readonly type: "uint256";
|
|
1004
1105
|
}];
|
|
1106
|
+
}, {
|
|
1107
|
+
readonly name: "lowestLtv";
|
|
1108
|
+
readonly type: "uint256";
|
|
1109
|
+
}, {
|
|
1110
|
+
readonly name: "highestLtv";
|
|
1111
|
+
readonly type: "uint256";
|
|
1005
1112
|
}];
|
|
1006
1113
|
}];
|
|
1007
1114
|
}, {
|
|
1008
1115
|
readonly stateMutability: "view";
|
|
1009
1116
|
readonly type: "function";
|
|
1010
|
-
readonly name: "
|
|
1117
|
+
readonly name: "getUserBorrowTermsWithNumVaults";
|
|
1011
1118
|
readonly inputs: readonly [{
|
|
1012
1119
|
readonly name: "_user";
|
|
1013
1120
|
readonly type: "address";
|
|
1121
|
+
}, {
|
|
1122
|
+
readonly name: "_numUserVaults";
|
|
1123
|
+
readonly type: "uint256";
|
|
1014
1124
|
}, {
|
|
1015
1125
|
readonly name: "_shouldRaise";
|
|
1016
1126
|
readonly type: "bool";
|
|
@@ -1052,15 +1162,24 @@ export declare const abi: readonly [{
|
|
|
1052
1162
|
readonly name: "daowry";
|
|
1053
1163
|
readonly type: "uint256";
|
|
1054
1164
|
}];
|
|
1165
|
+
}, {
|
|
1166
|
+
readonly name: "lowestLtv";
|
|
1167
|
+
readonly type: "uint256";
|
|
1168
|
+
}, {
|
|
1169
|
+
readonly name: "highestLtv";
|
|
1170
|
+
readonly type: "uint256";
|
|
1055
1171
|
}];
|
|
1056
1172
|
}];
|
|
1057
1173
|
}, {
|
|
1058
1174
|
readonly stateMutability: "view";
|
|
1059
1175
|
readonly type: "function";
|
|
1060
|
-
readonly name: "
|
|
1176
|
+
readonly name: "getUserBorrowTermsWithNumVaults";
|
|
1061
1177
|
readonly inputs: readonly [{
|
|
1062
1178
|
readonly name: "_user";
|
|
1063
1179
|
readonly type: "address";
|
|
1180
|
+
}, {
|
|
1181
|
+
readonly name: "_numUserVaults";
|
|
1182
|
+
readonly type: "uint256";
|
|
1064
1183
|
}, {
|
|
1065
1184
|
readonly name: "_shouldRaise";
|
|
1066
1185
|
readonly type: "bool";
|
|
@@ -1160,8 +1279,53 @@ export declare const abi: readonly [{
|
|
|
1160
1279
|
readonly name: "daowry";
|
|
1161
1280
|
readonly type: "uint256";
|
|
1162
1281
|
}];
|
|
1282
|
+
}, {
|
|
1283
|
+
readonly name: "lowestLtv";
|
|
1284
|
+
readonly type: "uint256";
|
|
1285
|
+
}, {
|
|
1286
|
+
readonly name: "highestLtv";
|
|
1287
|
+
readonly type: "uint256";
|
|
1163
1288
|
}];
|
|
1164
1289
|
}];
|
|
1290
|
+
}, {
|
|
1291
|
+
readonly stateMutability: "view";
|
|
1292
|
+
readonly type: "function";
|
|
1293
|
+
readonly name: "getUserCollateralValueAndDebtAmount";
|
|
1294
|
+
readonly inputs: readonly [{
|
|
1295
|
+
readonly name: "_user";
|
|
1296
|
+
readonly type: "address";
|
|
1297
|
+
}];
|
|
1298
|
+
readonly outputs: readonly [{
|
|
1299
|
+
readonly name: "";
|
|
1300
|
+
readonly type: "uint256";
|
|
1301
|
+
}, {
|
|
1302
|
+
readonly name: "";
|
|
1303
|
+
readonly type: "uint256";
|
|
1304
|
+
}];
|
|
1305
|
+
}, {
|
|
1306
|
+
readonly stateMutability: "view";
|
|
1307
|
+
readonly type: "function";
|
|
1308
|
+
readonly name: "getCollateralValue";
|
|
1309
|
+
readonly inputs: readonly [{
|
|
1310
|
+
readonly name: "_user";
|
|
1311
|
+
readonly type: "address";
|
|
1312
|
+
}];
|
|
1313
|
+
readonly outputs: readonly [{
|
|
1314
|
+
readonly name: "";
|
|
1315
|
+
readonly type: "uint256";
|
|
1316
|
+
}];
|
|
1317
|
+
}, {
|
|
1318
|
+
readonly stateMutability: "view";
|
|
1319
|
+
readonly type: "function";
|
|
1320
|
+
readonly name: "getUserDebtAmount";
|
|
1321
|
+
readonly inputs: readonly [{
|
|
1322
|
+
readonly name: "_user";
|
|
1323
|
+
readonly type: "address";
|
|
1324
|
+
}];
|
|
1325
|
+
readonly outputs: readonly [{
|
|
1326
|
+
readonly name: "";
|
|
1327
|
+
readonly type: "uint256";
|
|
1328
|
+
}];
|
|
1165
1329
|
}, {
|
|
1166
1330
|
readonly stateMutability: "view";
|
|
1167
1331
|
readonly type: "function";
|
|
@@ -1242,6 +1406,12 @@ export declare const abi: readonly [{
|
|
|
1242
1406
|
readonly name: "daowry";
|
|
1243
1407
|
readonly type: "uint256";
|
|
1244
1408
|
}];
|
|
1409
|
+
}, {
|
|
1410
|
+
readonly name: "lowestLtv";
|
|
1411
|
+
readonly type: "uint256";
|
|
1412
|
+
}, {
|
|
1413
|
+
readonly name: "highestLtv";
|
|
1414
|
+
readonly type: "uint256";
|
|
1245
1415
|
}];
|
|
1246
1416
|
}, {
|
|
1247
1417
|
readonly name: "";
|
|
@@ -1385,6 +1555,12 @@ export declare const abi: readonly [{
|
|
|
1385
1555
|
readonly name: "daowry";
|
|
1386
1556
|
readonly type: "uint256";
|
|
1387
1557
|
}];
|
|
1558
|
+
}, {
|
|
1559
|
+
readonly name: "lowestLtv";
|
|
1560
|
+
readonly type: "uint256";
|
|
1561
|
+
}, {
|
|
1562
|
+
readonly name: "highestLtv";
|
|
1563
|
+
readonly type: "uint256";
|
|
1388
1564
|
}];
|
|
1389
1565
|
}, {
|
|
1390
1566
|
readonly name: "";
|
|
@@ -1393,19 +1569,92 @@ export declare const abi: readonly [{
|
|
|
1393
1569
|
}, {
|
|
1394
1570
|
readonly stateMutability: "view";
|
|
1395
1571
|
readonly type: "function";
|
|
1396
|
-
readonly name: "
|
|
1572
|
+
readonly name: "getLatestUserDebtWithInterest";
|
|
1397
1573
|
readonly inputs: readonly [{
|
|
1398
|
-
readonly name: "
|
|
1399
|
-
readonly type: "
|
|
1574
|
+
readonly name: "_userDebt";
|
|
1575
|
+
readonly type: "tuple";
|
|
1576
|
+
readonly components: readonly [{
|
|
1577
|
+
readonly name: "amount";
|
|
1578
|
+
readonly type: "uint256";
|
|
1579
|
+
}, {
|
|
1580
|
+
readonly name: "principal";
|
|
1581
|
+
readonly type: "uint256";
|
|
1582
|
+
}, {
|
|
1583
|
+
readonly name: "debtTerms";
|
|
1584
|
+
readonly type: "tuple";
|
|
1585
|
+
readonly components: readonly [{
|
|
1586
|
+
readonly name: "ltv";
|
|
1587
|
+
readonly type: "uint256";
|
|
1588
|
+
}, {
|
|
1589
|
+
readonly name: "redemptionThreshold";
|
|
1590
|
+
readonly type: "uint256";
|
|
1591
|
+
}, {
|
|
1592
|
+
readonly name: "liqThreshold";
|
|
1593
|
+
readonly type: "uint256";
|
|
1594
|
+
}, {
|
|
1595
|
+
readonly name: "liqFee";
|
|
1596
|
+
readonly type: "uint256";
|
|
1597
|
+
}, {
|
|
1598
|
+
readonly name: "borrowRate";
|
|
1599
|
+
readonly type: "uint256";
|
|
1600
|
+
}, {
|
|
1601
|
+
readonly name: "daowry";
|
|
1602
|
+
readonly type: "uint256";
|
|
1603
|
+
}];
|
|
1604
|
+
}, {
|
|
1605
|
+
readonly name: "lastTimestamp";
|
|
1606
|
+
readonly type: "uint256";
|
|
1607
|
+
}, {
|
|
1608
|
+
readonly name: "inLiquidation";
|
|
1609
|
+
readonly type: "bool";
|
|
1610
|
+
}];
|
|
1400
1611
|
}];
|
|
1401
1612
|
readonly outputs: readonly [{
|
|
1613
|
+
readonly name: "";
|
|
1614
|
+
readonly type: "tuple";
|
|
1615
|
+
readonly components: readonly [{
|
|
1616
|
+
readonly name: "amount";
|
|
1617
|
+
readonly type: "uint256";
|
|
1618
|
+
}, {
|
|
1619
|
+
readonly name: "principal";
|
|
1620
|
+
readonly type: "uint256";
|
|
1621
|
+
}, {
|
|
1622
|
+
readonly name: "debtTerms";
|
|
1623
|
+
readonly type: "tuple";
|
|
1624
|
+
readonly components: readonly [{
|
|
1625
|
+
readonly name: "ltv";
|
|
1626
|
+
readonly type: "uint256";
|
|
1627
|
+
}, {
|
|
1628
|
+
readonly name: "redemptionThreshold";
|
|
1629
|
+
readonly type: "uint256";
|
|
1630
|
+
}, {
|
|
1631
|
+
readonly name: "liqThreshold";
|
|
1632
|
+
readonly type: "uint256";
|
|
1633
|
+
}, {
|
|
1634
|
+
readonly name: "liqFee";
|
|
1635
|
+
readonly type: "uint256";
|
|
1636
|
+
}, {
|
|
1637
|
+
readonly name: "borrowRate";
|
|
1638
|
+
readonly type: "uint256";
|
|
1639
|
+
}, {
|
|
1640
|
+
readonly name: "daowry";
|
|
1641
|
+
readonly type: "uint256";
|
|
1642
|
+
}];
|
|
1643
|
+
}, {
|
|
1644
|
+
readonly name: "lastTimestamp";
|
|
1645
|
+
readonly type: "uint256";
|
|
1646
|
+
}, {
|
|
1647
|
+
readonly name: "inLiquidation";
|
|
1648
|
+
readonly type: "bool";
|
|
1649
|
+
}];
|
|
1650
|
+
}, {
|
|
1402
1651
|
readonly name: "";
|
|
1403
1652
|
readonly type: "uint256";
|
|
1404
1653
|
}];
|
|
1405
1654
|
}, {
|
|
1406
|
-
readonly stateMutability: "
|
|
1655
|
+
readonly stateMutability: "view";
|
|
1407
1656
|
readonly type: "function";
|
|
1408
|
-
readonly name: "
|
|
1657
|
+
readonly name: "hasGoodDebtHealth";
|
|
1409
1658
|
readonly inputs: readonly [{
|
|
1410
1659
|
readonly name: "_user";
|
|
1411
1660
|
readonly type: "address";
|
|
@@ -1415,9 +1664,9 @@ export declare const abi: readonly [{
|
|
|
1415
1664
|
readonly type: "bool";
|
|
1416
1665
|
}];
|
|
1417
1666
|
}, {
|
|
1418
|
-
readonly stateMutability: "
|
|
1667
|
+
readonly stateMutability: "view";
|
|
1419
1668
|
readonly type: "function";
|
|
1420
|
-
readonly name: "
|
|
1669
|
+
readonly name: "hasGoodDebtHealth";
|
|
1421
1670
|
readonly inputs: readonly [{
|
|
1422
1671
|
readonly name: "_user";
|
|
1423
1672
|
readonly type: "address";
|
|
@@ -1487,7 +1736,7 @@ export declare const abi: readonly [{
|
|
|
1487
1736
|
}, {
|
|
1488
1737
|
readonly stateMutability: "view";
|
|
1489
1738
|
readonly type: "function";
|
|
1490
|
-
readonly name: "
|
|
1739
|
+
readonly name: "canLiquidateUser";
|
|
1491
1740
|
readonly inputs: readonly [{
|
|
1492
1741
|
readonly name: "_user";
|
|
1493
1742
|
readonly type: "address";
|
|
@@ -1499,7 +1748,7 @@ export declare const abi: readonly [{
|
|
|
1499
1748
|
}, {
|
|
1500
1749
|
readonly stateMutability: "view";
|
|
1501
1750
|
readonly type: "function";
|
|
1502
|
-
readonly name: "
|
|
1751
|
+
readonly name: "canLiquidateUser";
|
|
1503
1752
|
readonly inputs: readonly [{
|
|
1504
1753
|
readonly name: "_user";
|
|
1505
1754
|
readonly type: "address";
|
|
@@ -1569,7 +1818,7 @@ export declare const abi: readonly [{
|
|
|
1569
1818
|
}, {
|
|
1570
1819
|
readonly stateMutability: "view";
|
|
1571
1820
|
readonly type: "function";
|
|
1572
|
-
readonly name: "
|
|
1821
|
+
readonly name: "canRedeemUserCollateral";
|
|
1573
1822
|
readonly inputs: readonly [{
|
|
1574
1823
|
readonly name: "_user";
|
|
1575
1824
|
readonly type: "address";
|
|
@@ -1581,7 +1830,7 @@ export declare const abi: readonly [{
|
|
|
1581
1830
|
}, {
|
|
1582
1831
|
readonly stateMutability: "view";
|
|
1583
1832
|
readonly type: "function";
|
|
1584
|
-
readonly name: "
|
|
1833
|
+
readonly name: "canRedeemUserCollateral";
|
|
1585
1834
|
readonly inputs: readonly [{
|
|
1586
1835
|
readonly name: "_user";
|
|
1587
1836
|
readonly type: "address";
|
|
@@ -1651,19 +1900,64 @@ export declare const abi: readonly [{
|
|
|
1651
1900
|
}, {
|
|
1652
1901
|
readonly stateMutability: "view";
|
|
1653
1902
|
readonly type: "function";
|
|
1654
|
-
readonly name: "
|
|
1903
|
+
readonly name: "getLiquidationThreshold";
|
|
1655
1904
|
readonly inputs: readonly [{
|
|
1656
1905
|
readonly name: "_user";
|
|
1657
1906
|
readonly type: "address";
|
|
1658
1907
|
}];
|
|
1659
1908
|
readonly outputs: readonly [{
|
|
1660
1909
|
readonly name: "";
|
|
1661
|
-
readonly type: "
|
|
1910
|
+
readonly type: "uint256";
|
|
1662
1911
|
}];
|
|
1663
1912
|
}, {
|
|
1664
1913
|
readonly stateMutability: "view";
|
|
1665
1914
|
readonly type: "function";
|
|
1666
|
-
readonly name: "
|
|
1915
|
+
readonly name: "getRedemptionThreshold";
|
|
1916
|
+
readonly inputs: readonly [{
|
|
1917
|
+
readonly name: "_user";
|
|
1918
|
+
readonly type: "address";
|
|
1919
|
+
}];
|
|
1920
|
+
readonly outputs: readonly [{
|
|
1921
|
+
readonly name: "";
|
|
1922
|
+
readonly type: "uint256";
|
|
1923
|
+
}];
|
|
1924
|
+
}, {
|
|
1925
|
+
readonly stateMutability: "view";
|
|
1926
|
+
readonly type: "function";
|
|
1927
|
+
readonly name: "getDynamicBorrowRate";
|
|
1928
|
+
readonly inputs: readonly [{
|
|
1929
|
+
readonly name: "_baseRate";
|
|
1930
|
+
readonly type: "uint256";
|
|
1931
|
+
}];
|
|
1932
|
+
readonly outputs: readonly [{
|
|
1933
|
+
readonly name: "";
|
|
1934
|
+
readonly type: "uint256";
|
|
1935
|
+
}];
|
|
1936
|
+
}, {
|
|
1937
|
+
readonly stateMutability: "nonpayable";
|
|
1938
|
+
readonly type: "function";
|
|
1939
|
+
readonly name: "setUnderscoreVaultDiscount";
|
|
1940
|
+
readonly inputs: readonly [{
|
|
1941
|
+
readonly name: "_discount";
|
|
1942
|
+
readonly type: "uint256";
|
|
1943
|
+
}];
|
|
1944
|
+
readonly outputs: readonly [];
|
|
1945
|
+
}, {
|
|
1946
|
+
readonly stateMutability: "nonpayable";
|
|
1947
|
+
readonly type: "function";
|
|
1948
|
+
readonly name: "updateDebtForUser";
|
|
1949
|
+
readonly inputs: readonly [{
|
|
1950
|
+
readonly name: "_user";
|
|
1951
|
+
readonly type: "address";
|
|
1952
|
+
}];
|
|
1953
|
+
readonly outputs: readonly [{
|
|
1954
|
+
readonly name: "";
|
|
1955
|
+
readonly type: "bool";
|
|
1956
|
+
}];
|
|
1957
|
+
}, {
|
|
1958
|
+
readonly stateMutability: "nonpayable";
|
|
1959
|
+
readonly type: "function";
|
|
1960
|
+
readonly name: "updateDebtForUser";
|
|
1667
1961
|
readonly inputs: readonly [{
|
|
1668
1962
|
readonly name: "_user";
|
|
1669
1963
|
readonly type: "address";
|
|
@@ -1731,24 +2025,88 @@ export declare const abi: readonly [{
|
|
|
1731
2025
|
readonly type: "bool";
|
|
1732
2026
|
}];
|
|
1733
2027
|
}, {
|
|
1734
|
-
readonly stateMutability: "
|
|
2028
|
+
readonly stateMutability: "nonpayable";
|
|
1735
2029
|
readonly type: "function";
|
|
1736
|
-
readonly name: "
|
|
2030
|
+
readonly name: "transferOrWithdrawViaRedemption";
|
|
1737
2031
|
readonly inputs: readonly [{
|
|
2032
|
+
readonly name: "_shouldTransferBalance";
|
|
2033
|
+
readonly type: "bool";
|
|
2034
|
+
}, {
|
|
2035
|
+
readonly name: "_asset";
|
|
2036
|
+
readonly type: "address";
|
|
2037
|
+
}, {
|
|
1738
2038
|
readonly name: "_user";
|
|
1739
2039
|
readonly type: "address";
|
|
1740
|
-
}
|
|
1741
|
-
|
|
1742
|
-
readonly
|
|
2040
|
+
}, {
|
|
2041
|
+
readonly name: "_recipient";
|
|
2042
|
+
readonly type: "address";
|
|
2043
|
+
}, {
|
|
2044
|
+
readonly name: "_amount";
|
|
1743
2045
|
readonly type: "uint256";
|
|
1744
|
-
}
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
readonly inputs: readonly [{
|
|
1750
|
-
readonly name: "_user";
|
|
2046
|
+
}, {
|
|
2047
|
+
readonly name: "_vaultId";
|
|
2048
|
+
readonly type: "uint256";
|
|
2049
|
+
}, {
|
|
2050
|
+
readonly name: "_vaultAddr";
|
|
1751
2051
|
readonly type: "address";
|
|
2052
|
+
}, {
|
|
2053
|
+
readonly name: "_a";
|
|
2054
|
+
readonly type: "tuple";
|
|
2055
|
+
readonly components: readonly [{
|
|
2056
|
+
readonly name: "hq";
|
|
2057
|
+
readonly type: "address";
|
|
2058
|
+
}, {
|
|
2059
|
+
readonly name: "greenToken";
|
|
2060
|
+
readonly type: "address";
|
|
2061
|
+
}, {
|
|
2062
|
+
readonly name: "savingsGreen";
|
|
2063
|
+
readonly type: "address";
|
|
2064
|
+
}, {
|
|
2065
|
+
readonly name: "ripeToken";
|
|
2066
|
+
readonly type: "address";
|
|
2067
|
+
}, {
|
|
2068
|
+
readonly name: "ledger";
|
|
2069
|
+
readonly type: "address";
|
|
2070
|
+
}, {
|
|
2071
|
+
readonly name: "missionControl";
|
|
2072
|
+
readonly type: "address";
|
|
2073
|
+
}, {
|
|
2074
|
+
readonly name: "switchboard";
|
|
2075
|
+
readonly type: "address";
|
|
2076
|
+
}, {
|
|
2077
|
+
readonly name: "priceDesk";
|
|
2078
|
+
readonly type: "address";
|
|
2079
|
+
}, {
|
|
2080
|
+
readonly name: "vaultBook";
|
|
2081
|
+
readonly type: "address";
|
|
2082
|
+
}, {
|
|
2083
|
+
readonly name: "auctionHouse";
|
|
2084
|
+
readonly type: "address";
|
|
2085
|
+
}, {
|
|
2086
|
+
readonly name: "auctionHouseNft";
|
|
2087
|
+
readonly type: "address";
|
|
2088
|
+
}, {
|
|
2089
|
+
readonly name: "boardroom";
|
|
2090
|
+
readonly type: "address";
|
|
2091
|
+
}, {
|
|
2092
|
+
readonly name: "bondRoom";
|
|
2093
|
+
readonly type: "address";
|
|
2094
|
+
}, {
|
|
2095
|
+
readonly name: "creditEngine";
|
|
2096
|
+
readonly type: "address";
|
|
2097
|
+
}, {
|
|
2098
|
+
readonly name: "endaoment";
|
|
2099
|
+
readonly type: "address";
|
|
2100
|
+
}, {
|
|
2101
|
+
readonly name: "humanResources";
|
|
2102
|
+
readonly type: "address";
|
|
2103
|
+
}, {
|
|
2104
|
+
readonly name: "lootbox";
|
|
2105
|
+
readonly type: "address";
|
|
2106
|
+
}, {
|
|
2107
|
+
readonly name: "teller";
|
|
2108
|
+
readonly type: "address";
|
|
2109
|
+
}];
|
|
1752
2110
|
}];
|
|
1753
2111
|
readonly outputs: readonly [{
|
|
1754
2112
|
readonly name: "";
|
|
@@ -1872,6 +2230,15 @@ export declare const abi: readonly [{
|
|
|
1872
2230
|
readonly name: "";
|
|
1873
2231
|
readonly type: "uint256";
|
|
1874
2232
|
}];
|
|
2233
|
+
}, {
|
|
2234
|
+
readonly stateMutability: "view";
|
|
2235
|
+
readonly type: "function";
|
|
2236
|
+
readonly name: "undyVaulDiscount";
|
|
2237
|
+
readonly inputs: readonly [];
|
|
2238
|
+
readonly outputs: readonly [{
|
|
2239
|
+
readonly name: "";
|
|
2240
|
+
readonly type: "uint256";
|
|
2241
|
+
}];
|
|
1875
2242
|
}, {
|
|
1876
2243
|
readonly stateMutability: "nonpayable";
|
|
1877
2244
|
readonly type: "constructor";
|
|
@@ -1909,8 +2276,6 @@ export type Contract = {
|
|
|
1909
2276
|
canMintRipe: () => Promise<boolean>;
|
|
1910
2277
|
isPaused: () => Promise<boolean>;
|
|
1911
2278
|
getMaxBorrowAmount: (user: `0x${string}`) => Promise<bigint>;
|
|
1912
|
-
getMaxRedeemValue: (user: `0x${string}`) => Promise<bigint>;
|
|
1913
|
-
getCollateralValue: (user: `0x${string}`) => Promise<bigint>;
|
|
1914
2279
|
getUserBorrowTerms: (user: `0x${string}`, shouldRaise: boolean, skipVaultId?: bigint, skipAsset?: `0x${string}`, a?: {
|
|
1915
2280
|
hq: `0x${string}`;
|
|
1916
2281
|
greenToken: `0x${string}`;
|
|
@@ -1941,7 +2306,45 @@ export type Contract = {
|
|
|
1941
2306
|
borrowRate: bigint;
|
|
1942
2307
|
daowry: bigint;
|
|
1943
2308
|
};
|
|
2309
|
+
lowestLtv: bigint;
|
|
2310
|
+
highestLtv: bigint;
|
|
2311
|
+
}>;
|
|
2312
|
+
getUserBorrowTermsWithNumVaults: (user: `0x${string}`, numUserVaults: bigint, shouldRaise: boolean, skipVaultId?: bigint, skipAsset?: `0x${string}`, a?: {
|
|
2313
|
+
hq: `0x${string}`;
|
|
2314
|
+
greenToken: `0x${string}`;
|
|
2315
|
+
savingsGreen: `0x${string}`;
|
|
2316
|
+
ripeToken: `0x${string}`;
|
|
2317
|
+
ledger: `0x${string}`;
|
|
2318
|
+
missionControl: `0x${string}`;
|
|
2319
|
+
switchboard: `0x${string}`;
|
|
2320
|
+
priceDesk: `0x${string}`;
|
|
2321
|
+
vaultBook: `0x${string}`;
|
|
2322
|
+
auctionHouse: `0x${string}`;
|
|
2323
|
+
auctionHouseNft: `0x${string}`;
|
|
2324
|
+
boardroom: `0x${string}`;
|
|
2325
|
+
bondRoom: `0x${string}`;
|
|
2326
|
+
creditEngine: `0x${string}`;
|
|
2327
|
+
endaoment: `0x${string}`;
|
|
2328
|
+
humanResources: `0x${string}`;
|
|
2329
|
+
lootbox: `0x${string}`;
|
|
2330
|
+
teller: `0x${string}`;
|
|
2331
|
+
}) => Promise<{
|
|
2332
|
+
collateralVal: bigint;
|
|
2333
|
+
totalMaxDebt: bigint;
|
|
2334
|
+
debtTerms: {
|
|
2335
|
+
ltv: bigint;
|
|
2336
|
+
redemptionThreshold: bigint;
|
|
2337
|
+
liqThreshold: bigint;
|
|
2338
|
+
liqFee: bigint;
|
|
2339
|
+
borrowRate: bigint;
|
|
2340
|
+
daowry: bigint;
|
|
2341
|
+
};
|
|
2342
|
+
lowestLtv: bigint;
|
|
2343
|
+
highestLtv: bigint;
|
|
1944
2344
|
}>;
|
|
2345
|
+
getUserCollateralValueAndDebtAmount: (user: `0x${string}`) => Promise<[bigint, bigint]>;
|
|
2346
|
+
getCollateralValue: (user: `0x${string}`) => Promise<bigint>;
|
|
2347
|
+
getUserDebtAmount: (user: `0x${string}`) => Promise<bigint>;
|
|
1945
2348
|
getLatestUserDebtAndTerms: (user: `0x${string}`, shouldRaise: boolean, a?: {
|
|
1946
2349
|
hq: `0x${string}`;
|
|
1947
2350
|
greenToken: `0x${string}`;
|
|
@@ -1987,10 +2390,41 @@ export type Contract = {
|
|
|
1987
2390
|
borrowRate: bigint;
|
|
1988
2391
|
daowry: bigint;
|
|
1989
2392
|
};
|
|
2393
|
+
lowestLtv: bigint;
|
|
2394
|
+
highestLtv: bigint;
|
|
2395
|
+
},
|
|
2396
|
+
bigint
|
|
2397
|
+
]>;
|
|
2398
|
+
getLatestUserDebtWithInterest: (userDebt: {
|
|
2399
|
+
amount: bigint;
|
|
2400
|
+
principal: bigint;
|
|
2401
|
+
debtTerms: {
|
|
2402
|
+
ltv: bigint;
|
|
2403
|
+
redemptionThreshold: bigint;
|
|
2404
|
+
liqThreshold: bigint;
|
|
2405
|
+
liqFee: bigint;
|
|
2406
|
+
borrowRate: bigint;
|
|
2407
|
+
daowry: bigint;
|
|
2408
|
+
};
|
|
2409
|
+
lastTimestamp: bigint;
|
|
2410
|
+
inLiquidation: boolean;
|
|
2411
|
+
}) => Promise<[
|
|
2412
|
+
{
|
|
2413
|
+
amount: bigint;
|
|
2414
|
+
principal: bigint;
|
|
2415
|
+
debtTerms: {
|
|
2416
|
+
ltv: bigint;
|
|
2417
|
+
redemptionThreshold: bigint;
|
|
2418
|
+
liqThreshold: bigint;
|
|
2419
|
+
liqFee: bigint;
|
|
2420
|
+
borrowRate: bigint;
|
|
2421
|
+
daowry: bigint;
|
|
2422
|
+
};
|
|
2423
|
+
lastTimestamp: bigint;
|
|
2424
|
+
inLiquidation: boolean;
|
|
1990
2425
|
},
|
|
1991
2426
|
bigint
|
|
1992
2427
|
]>;
|
|
1993
|
-
getDynamicBorrowRate: (baseRate: bigint) => Promise<bigint>;
|
|
1994
2428
|
hasGoodDebtHealth: (user: `0x${string}`, a?: {
|
|
1995
2429
|
hq: `0x${string}`;
|
|
1996
2430
|
greenToken: `0x${string}`;
|
|
@@ -2053,6 +2487,7 @@ export type Contract = {
|
|
|
2053
2487
|
}) => Promise<boolean>;
|
|
2054
2488
|
getLiquidationThreshold: (user: `0x${string}`) => Promise<bigint>;
|
|
2055
2489
|
getRedemptionThreshold: (user: `0x${string}`) => Promise<bigint>;
|
|
2490
|
+
getDynamicBorrowRate: (baseRate: bigint) => Promise<bigint>;
|
|
2056
2491
|
getMaxWithdrawableForAsset: (user: `0x${string}`, vaultId: bigint, asset: `0x${string}`, vaultAddr?: `0x${string}`, a?: {
|
|
2057
2492
|
hq: `0x${string}`;
|
|
2058
2493
|
greenToken: `0x${string}`;
|
|
@@ -2073,6 +2508,7 @@ export type Contract = {
|
|
|
2073
2508
|
lootbox: `0x${string}`;
|
|
2074
2509
|
teller: `0x${string}`;
|
|
2075
2510
|
}) => Promise<bigint>;
|
|
2511
|
+
undyVaulDiscount: () => Promise<bigint>;
|
|
2076
2512
|
};
|
|
2077
2513
|
mutations: {
|
|
2078
2514
|
pause: (shouldPause: boolean) => Promise<void>;
|
|
@@ -2118,20 +2554,7 @@ export type Contract = {
|
|
|
2118
2554
|
lootbox: `0x${string}`;
|
|
2119
2555
|
teller: `0x${string}`;
|
|
2120
2556
|
}) => 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?: {
|
|
2557
|
+
repayDuringAuctionPurchase: (liqUser: `0x${string}`, repayValue: bigint, a?: {
|
|
2135
2558
|
hq: `0x${string}`;
|
|
2136
2559
|
greenToken: `0x${string}`;
|
|
2137
2560
|
savingsGreen: `0x${string}`;
|
|
@@ -2151,7 +2574,20 @@ export type Contract = {
|
|
|
2151
2574
|
lootbox: `0x${string}`;
|
|
2152
2575
|
teller: `0x${string}`;
|
|
2153
2576
|
}) => Promise<boolean>;
|
|
2154
|
-
|
|
2577
|
+
repayFromDept: (user: `0x${string}`, userDebt: {
|
|
2578
|
+
amount: bigint;
|
|
2579
|
+
principal: bigint;
|
|
2580
|
+
debtTerms: {
|
|
2581
|
+
ltv: bigint;
|
|
2582
|
+
redemptionThreshold: bigint;
|
|
2583
|
+
liqThreshold: bigint;
|
|
2584
|
+
liqFee: bigint;
|
|
2585
|
+
borrowRate: bigint;
|
|
2586
|
+
daowry: bigint;
|
|
2587
|
+
};
|
|
2588
|
+
lastTimestamp: bigint;
|
|
2589
|
+
inLiquidation: boolean;
|
|
2590
|
+
}, repayValue: bigint, newInterest: bigint, numUserVaults: bigint, a?: {
|
|
2155
2591
|
hq: `0x${string}`;
|
|
2156
2592
|
greenToken: `0x${string}`;
|
|
2157
2593
|
savingsGreen: `0x${string}`;
|
|
@@ -2171,12 +2607,8 @@ export type Contract = {
|
|
|
2171
2607
|
lootbox: `0x${string}`;
|
|
2172
2608
|
teller: `0x${string}`;
|
|
2173
2609
|
}) => 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?: {
|
|
2610
|
+
setUnderscoreVaultDiscount: (discount: bigint) => Promise<void>;
|
|
2611
|
+
updateDebtForUser: (user: `0x${string}`, a?: {
|
|
2180
2612
|
hq: `0x${string}`;
|
|
2181
2613
|
greenToken: `0x${string}`;
|
|
2182
2614
|
savingsGreen: `0x${string}`;
|
|
@@ -2195,8 +2627,8 @@ export type Contract = {
|
|
|
2195
2627
|
humanResources: `0x${string}`;
|
|
2196
2628
|
lootbox: `0x${string}`;
|
|
2197
2629
|
teller: `0x${string}`;
|
|
2198
|
-
}) => Promise<
|
|
2199
|
-
|
|
2630
|
+
}) => Promise<boolean>;
|
|
2631
|
+
transferOrWithdrawViaRedemption: (shouldTransferBalance: boolean, asset: `0x${string}`, user: `0x${string}`, recipient: `0x${string}`, amount: bigint, vaultId: bigint, vaultAddr: `0x${string}`, a: {
|
|
2200
2632
|
hq: `0x${string}`;
|
|
2201
2633
|
greenToken: `0x${string}`;
|
|
2202
2634
|
savingsGreen: `0x${string}`;
|
|
@@ -2215,12 +2647,12 @@ export type Contract = {
|
|
|
2215
2647
|
humanResources: `0x${string}`;
|
|
2216
2648
|
lootbox: `0x${string}`;
|
|
2217
2649
|
teller: `0x${string}`;
|
|
2218
|
-
}) => Promise<
|
|
2650
|
+
}) => Promise<bigint>;
|
|
2219
2651
|
};
|
|
2220
2652
|
events: {
|
|
2221
2653
|
NewBorrow: (user: `0x${string}`, newLoan: bigint, daowry: bigint, didReceiveSavingsGreen: boolean, outstandingUserDebt: bigint, userCollateralVal: bigint, maxUserDebt: bigint, globalYieldRealized: bigint) => Promise<void>;
|
|
2222
2654
|
RepayDebt: (user: `0x${string}`, repayValue: bigint, repayType: bigint, refundAmount: bigint, refundWasSavingsGreen: boolean, outstandingUserDebt: bigint, userCollateralVal: bigint, maxUserDebt: bigint, hasGoodDebtHealth: boolean) => Promise<void>;
|
|
2223
|
-
|
|
2655
|
+
UnderscoreVaultDiscountSet: (discount: bigint) => Promise<void>;
|
|
2224
2656
|
DepartmentPauseModified: (isPaused: boolean) => Promise<void>;
|
|
2225
2657
|
DepartmentFundsRecovered: (asset: `0x${string}`, recipient: `0x${string}`, balance: bigint) => Promise<void>;
|
|
2226
2658
|
};
|
|
@@ -2269,26 +2701,31 @@ export type SDK = {
|
|
|
2269
2701
|
canMintRipe: (...args: ExtractArgs<Contract['calls']['canMintRipe']>) => Promise<CallReturn<'canMintRipe'>>;
|
|
2270
2702
|
isPaused: (...args: ExtractArgs<Contract['calls']['isPaused']>) => Promise<CallReturn<'isPaused'>>;
|
|
2271
2703
|
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
2704
|
getUserBorrowTerms: (...args: ExtractArgs<Contract['calls']['getUserBorrowTerms']>) => Promise<CallReturn<'getUserBorrowTerms'>>;
|
|
2705
|
+
getUserBorrowTermsWithNumVaults: (...args: ExtractArgs<Contract['calls']['getUserBorrowTermsWithNumVaults']>) => Promise<CallReturn<'getUserBorrowTermsWithNumVaults'>>;
|
|
2706
|
+
getUserCollateralValueAndDebtAmount: (...args: ExtractArgs<Contract['calls']['getUserCollateralValueAndDebtAmount']>) => Promise<CallReturn<'getUserCollateralValueAndDebtAmount'>>;
|
|
2707
|
+
getCollateralValue: (...args: ExtractArgs<Contract['calls']['getCollateralValue']>) => Promise<CallReturn<'getCollateralValue'>>;
|
|
2708
|
+
getUserDebtAmount: (...args: ExtractArgs<Contract['calls']['getUserDebtAmount']>) => Promise<CallReturn<'getUserDebtAmount'>>;
|
|
2275
2709
|
getLatestUserDebtAndTerms: (...args: ExtractArgs<Contract['calls']['getLatestUserDebtAndTerms']>) => Promise<CallReturn<'getLatestUserDebtAndTerms'>>;
|
|
2276
|
-
|
|
2710
|
+
getLatestUserDebtWithInterest: (...args: ExtractArgs<Contract['calls']['getLatestUserDebtWithInterest']>) => Promise<CallReturn<'getLatestUserDebtWithInterest'>>;
|
|
2277
2711
|
hasGoodDebtHealth: (...args: ExtractArgs<Contract['calls']['hasGoodDebtHealth']>) => Promise<CallReturn<'hasGoodDebtHealth'>>;
|
|
2278
2712
|
canLiquidateUser: (...args: ExtractArgs<Contract['calls']['canLiquidateUser']>) => Promise<CallReturn<'canLiquidateUser'>>;
|
|
2279
2713
|
canRedeemUserCollateral: (...args: ExtractArgs<Contract['calls']['canRedeemUserCollateral']>) => Promise<CallReturn<'canRedeemUserCollateral'>>;
|
|
2280
2714
|
getLiquidationThreshold: (...args: ExtractArgs<Contract['calls']['getLiquidationThreshold']>) => Promise<CallReturn<'getLiquidationThreshold'>>;
|
|
2281
2715
|
getRedemptionThreshold: (...args: ExtractArgs<Contract['calls']['getRedemptionThreshold']>) => Promise<CallReturn<'getRedemptionThreshold'>>;
|
|
2716
|
+
getDynamicBorrowRate: (...args: ExtractArgs<Contract['calls']['getDynamicBorrowRate']>) => Promise<CallReturn<'getDynamicBorrowRate'>>;
|
|
2282
2717
|
getMaxWithdrawableForAsset: (...args: ExtractArgs<Contract['calls']['getMaxWithdrawableForAsset']>) => Promise<CallReturn<'getMaxWithdrawableForAsset'>>;
|
|
2718
|
+
undyVaulDiscount: (...args: ExtractArgs<Contract['calls']['undyVaulDiscount']>) => Promise<CallReturn<'undyVaulDiscount'>>;
|
|
2283
2719
|
pause: (...args: ExtractArgs<Contract['mutations']['pause']>) => Promise<Address>;
|
|
2284
2720
|
recoverFunds: (...args: ExtractArgs<Contract['mutations']['recoverFunds']>) => Promise<Address>;
|
|
2285
2721
|
recoverFundsMany: (...args: ExtractArgs<Contract['mutations']['recoverFundsMany']>) => Promise<Address>;
|
|
2286
2722
|
borrowForUser: (...args: ExtractArgs<Contract['mutations']['borrowForUser']>) => Promise<Address>;
|
|
2287
2723
|
repayForUser: (...args: ExtractArgs<Contract['mutations']['repayForUser']>) => Promise<Address>;
|
|
2288
|
-
repayDuringLiquidation: (...args: ExtractArgs<Contract['mutations']['repayDuringLiquidation']>) => Promise<Address>;
|
|
2289
2724
|
repayDuringAuctionPurchase: (...args: ExtractArgs<Contract['mutations']['repayDuringAuctionPurchase']>) => Promise<Address>;
|
|
2290
|
-
|
|
2725
|
+
repayFromDept: (...args: ExtractArgs<Contract['mutations']['repayFromDept']>) => Promise<Address>;
|
|
2726
|
+
setUnderscoreVaultDiscount: (...args: ExtractArgs<Contract['mutations']['setUnderscoreVaultDiscount']>) => Promise<Address>;
|
|
2291
2727
|
updateDebtForUser: (...args: ExtractArgs<Contract['mutations']['updateDebtForUser']>) => Promise<Address>;
|
|
2728
|
+
transferOrWithdrawViaRedemption: (...args: ExtractArgs<Contract['mutations']['transferOrWithdrawViaRedemption']>) => Promise<Address>;
|
|
2292
2729
|
};
|
|
2293
2730
|
export declare function toSdk(publicClient?: PublicClient, walletClient?: WalletClient): SDK;
|
|
2294
2731
|
export {};
|