@raac/rpc 1.0.1 → 1.0.2-beta.1
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/RPCLibrary.js +61 -8
- package/dist/artifacts/core/collectors/FeeCollector.sol/FeeCollector.json +1743 -0
- package/dist/artifacts/core/minters/RAACMinter/RAACMinter.sol/RAACMinter.json +175 -67
- package/dist/artifacts/core/oracles/BaseVRFv2Consumer.sol/BaseVRFv2Consumer.json +279 -0
- package/dist/artifacts/core/pools/LendingPool/LendingPool.sol/LendingPool.json +1231 -195
- package/dist/artifacts/core/pools/StabilityPool/StabilityPool.sol/StabilityPool.json +153 -199
- package/dist/artifacts/core/primitives/RAACHousePrices.sol/RAACHousePrices.json +72 -2
- package/dist/artifacts/core/tokens/DEToken.sol/DEToken.json +2 -2
- package/dist/artifacts/core/tokens/IndexToken.sol/IndexToken.json +770 -0
- package/dist/artifacts/core/tokens/RAACNFT.sol/RAACNFT.json +707 -49
- package/dist/artifacts/core/tokens/RAACToken.sol/RAACToken.json +23 -84
- package/dist/artifacts/core/tokens/RToken.sol/RToken.json +62 -62
- package/dist/artifacts/core/tokens/veRAACToken.sol/veRAACToken.json +2 -2
- package/dist/artifacts/mocks/core/oracles/MockVRFCoordinatorV2.sol/MockVRFCoordinatorV2.json +774 -0
- package/dist/artifacts/zeno/Auction.sol/Auction.json +34 -114
- package/dist/artifacts/zeno/AuctionFactory.sol/AuctionFactory.json +3 -3
- package/dist/artifacts/zeno/Zeno.sol/Zeno.json +3 -3
- package/dist/artifacts/zeno/ZenoFactory.sol/ZenoFactory.json +3 -3
- package/dist/configs/chains/17000.json +127 -0
- package/dist/configs/chains/8453.json +26 -14
- package/dist/configs/chains/index.js +2 -0
- package/dist/configs/createConfig.js +6 -0
- package/dist/contracts/feeCollector/claimRewardFromPool.js +24 -0
- package/dist/contracts/housePrices/getLatestPrice.js +1 -1
- package/dist/contracts/indexToken/getNextRandomNFT.js +30 -0
- package/dist/contracts/indexToken/redeemNFT.js +39 -0
- package/dist/nfts/getAllTokens.js +34 -0
- package/dist/nfts/{addNewBatch.js → getBaseUri.js} +7 -8
- package/dist/nfts/getMintFeePercentage.js +23 -0
- package/dist/nfts/getMintPrice.js +28 -0
- package/dist/nfts/getTokenURI.js +23 -0
- package/dist/nfts/getTokensByOwner.js +35 -0
- package/dist/nfts/getTotalPropertiesCount.js +23 -0
- package/dist/nfts/{getCurrentBatchSize.js → totalNFTSupply.js} +3 -3
- package/dist/pools/lendingPool/borrowFromLendingPool.js +4 -3
- package/dist/pools/lendingPool/borrowFromLendingPoolWithInsurance.js +40 -0
- package/dist/pools/lendingPool/calculateInsuranceFee.js +20 -0
- package/dist/pools/lendingPool/claimReward.js +22 -0
- package/dist/pools/lendingPool/closeLiquidation.js +28 -0
- package/dist/pools/lendingPool/depositNFTToLendingPool.js +0 -1
- package/dist/pools/lendingPool/depositToLendingPool.js +2 -2
- package/dist/pools/lendingPool/getAllUserData.js +28 -0
- package/dist/pools/lendingPool/getEligibleUserDeposits.js +27 -0
- package/dist/pools/lendingPool/getHealthFactor.js +27 -0
- package/dist/pools/lendingPool/getLendingPoolInfo.js +8 -5
- package/dist/pools/lendingPool/getPendingReward.js +20 -0
- package/dist/pools/lendingPool/getPositionDebt.js +27 -0
- package/dist/pools/lendingPool/getPositionScaledDebt.js +27 -0
- package/dist/pools/lendingPool/getPositionView.js +38 -0
- package/dist/pools/lendingPool/getPositionsScaledDebt.js +27 -0
- package/dist/pools/lendingPool/getRawUserDepositsInLendingPool.js +21 -0
- package/dist/pools/lendingPool/getUserCollateralValue.js +27 -0
- package/dist/pools/lendingPool/initializeLiquidation.js +28 -0
- package/dist/pools/lendingPool/repayToLendingPool.js +4 -8
- package/dist/pools/lendingPool/withdrawFromLendingPool.js +2 -2
- package/dist/pools/stabilityPool/depositNFTToStabilityPool.js +40 -0
- package/dist/pools/stabilityPool/getRawUserDepositsInStabilityPool.js +21 -0
- package/dist/pools/stabilityPool/getStabilityPoolInfo.js +2 -12
- package/dist/scripts/index.js +90 -35
- package/dist/types/RPCLibrary.d.ts +61 -8
- package/dist/types/configs/chains/index.d.ts +2 -0
- package/dist/types/configs/createConfig.d.ts +6 -0
- package/dist/types/configs/index.d.ts +1 -0
- package/dist/types/contracts/feeCollector/claimRewardFromPool.d.ts +4 -0
- package/dist/types/contracts/housePrices/getLatestPrice.d.ts +1 -1
- package/dist/types/contracts/indexToken/getNextRandomNFT.d.ts +7 -0
- package/dist/types/contracts/indexToken/redeemNFT.d.ts +4 -0
- package/dist/types/nfts/getAllTokens.d.ts +7 -0
- package/dist/types/nfts/getBaseUri.d.ts +4 -0
- package/dist/types/nfts/getMintFeePercentage.d.ts +4 -0
- package/dist/types/nfts/getMintPrice.d.ts +7 -0
- package/dist/types/nfts/getTokenURI.d.ts +4 -0
- package/dist/types/nfts/getTokensByOwner.d.ts +10 -0
- package/dist/types/nfts/getTotalPropertiesCount.d.ts +4 -0
- package/dist/types/nfts/totalNFTSupply.d.ts +4 -0
- package/dist/types/pools/lendingPool/borrowFromLendingPool.d.ts +1 -1
- package/dist/types/pools/lendingPool/borrowFromLendingPoolWithInsurance.d.ts +4 -0
- package/dist/types/pools/lendingPool/calculateInsuranceFee.d.ts +4 -0
- package/dist/types/pools/lendingPool/claimReward.d.ts +4 -0
- package/dist/types/pools/lendingPool/closeLiquidation.d.ts +11 -0
- package/dist/types/pools/lendingPool/getAllUserData.d.ts +16 -0
- package/dist/types/pools/lendingPool/getEligibleUserDeposits.d.ts +11 -0
- package/dist/types/pools/lendingPool/getHealthFactor.d.ts +11 -0
- package/dist/types/pools/lendingPool/getLendingPoolInfo.d.ts +2 -1
- package/dist/types/pools/lendingPool/getPendingReward.d.ts +4 -0
- package/dist/types/pools/lendingPool/getPositionDebt.d.ts +11 -0
- package/dist/types/pools/lendingPool/getPositionScaledDebt.d.ts +11 -0
- package/dist/types/pools/lendingPool/getPositionView.d.ts +27 -0
- package/dist/types/pools/lendingPool/getPositionsScaledDebt.d.ts +11 -0
- package/dist/types/pools/lendingPool/getRawUserDepositsInLendingPool.d.ts +4 -0
- package/dist/types/pools/lendingPool/getUserCollateralValue.d.ts +11 -0
- package/dist/types/pools/lendingPool/initializeLiquidation.d.ts +11 -0
- package/dist/types/pools/lendingPool/repayToLendingPool.d.ts +2 -2
- package/dist/types/pools/lendingPool/withdrawNFTFromLendingPool.d.ts +1 -1
- package/dist/types/pools/stabilityPool/depositNFTToStabilityPool.d.ts +4 -0
- package/dist/types/pools/stabilityPool/getRawUserDepositsInStabilityPool.d.ts +4 -0
- package/dist/types/pools/stabilityPool/getStabilityPoolInfo.d.ts +1 -3
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/index.d.ts +2 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/VRFConsumerBaseV2.d.ts +35 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/index.d.ts +3 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/interfaces/VRFCoordinatorV2Interface.d.ts +156 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/interfaces/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/core/collectors/FeeCollector.d.ts +446 -221
- package/dist/types/typechain-types/contracts/core/minters/RAACMinter/RAACMinter.d.ts +108 -20
- package/dist/types/typechain-types/contracts/core/minters/RAACReleaseOrchestrator/RAACReleaseOrchestrator.d.ts +6 -16
- package/dist/types/typechain-types/contracts/core/oracles/BaseVRFv2Consumer.d.ts +166 -0
- package/dist/types/typechain-types/contracts/core/oracles/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/LendingPool.d.ts +811 -99
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/StabilityPool.d.ts +152 -148
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/core/primitives/RAACHousePrices.d.ts +29 -2
- package/dist/types/typechain-types/contracts/core/tokens/DebtToken.d.ts +65 -51
- package/dist/types/typechain-types/contracts/core/tokens/IndexToken.d.ts +187 -2
- package/dist/types/typechain-types/contracts/core/tokens/RAACNFT.d.ts +413 -19
- package/dist/types/typechain-types/contracts/core/tokens/RToken.d.ts +40 -40
- package/dist/types/typechain-types/contracts/interfaces/core/collectors/IBaseCollector.d.ts +39 -0
- package/dist/types/typechain-types/contracts/interfaces/core/collectors/IFeeCollector.d.ts +317 -130
- package/dist/types/typechain-types/contracts/interfaces/core/collectors/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/interfaces/core/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACMinter/IRAACMinter.d.ts +58 -22
- package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACReleaseOrchestrator/IReleaseOrchestrator.d.ts +5 -3
- package/dist/types/typechain-types/contracts/interfaces/core/oracles/IBaseVRFv2Consumer.d.ts +86 -0
- package/dist/types/typechain-types/contracts/interfaces/core/oracles/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/interfaces/core/pools/ILiquidityPool.d.ts +83 -45
- package/dist/types/typechain-types/contracts/interfaces/core/pools/LendingPool/ILendingPool.d.ts +539 -54
- package/dist/types/typechain-types/contracts/interfaces/core/pools/StabilityPool/IStabilityPool.d.ts +92 -71
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IDebtToken.d.ts +123 -27
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IIndexToken.d.ts +187 -0
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IRAACNFT.d.ts +243 -17
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IRToken.d.ts +37 -37
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/interfaces/core/vaults/IBaseVault.d.ts +83 -0
- package/dist/types/typechain-types/contracts/interfaces/core/vaults/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/interfaces/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/mocks/core/collectors/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/mocks/core/governance/proposals/TimelockTestTarget.d.ts +5 -1
- package/dist/types/typechain-types/contracts/mocks/core/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/mocks/core/oracles/MockVRFCoordinatorV2.d.ts +530 -0
- package/dist/types/typechain-types/contracts/mocks/core/oracles/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPoolCollector.d.ts +156 -0
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPoolDebtToken.d.ts +557 -102
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockLiquidityPool.d.ts +486 -0
- package/dist/types/typechain-types/contracts/mocks/core/pools/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/mocks/core/primitives/MockDistributableContract.d.ts +35 -0
- package/dist/types/typechain-types/contracts/mocks/core/primitives/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/core/tokens/MockCollectableUnderlying.d.ts +292 -0
- package/dist/types/typechain-types/contracts/mocks/core/tokens/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/core/vaults/MockVault.d.ts +290 -0
- package/dist/types/typechain-types/contracts/mocks/core/vaults/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/MockStringUtils.d.ts +25 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/VRFConsumerBaseV2__factory.d.ts +33 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/interfaces/VRFCoordinatorV2Interface__factory.d.ts +171 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/interfaces/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/core/collectors/FeeCollector__factory.d.ts +571 -194
- package/dist/types/typechain-types/factories/contracts/core/minters/RAACMinter/RAACMinter__factory.d.ts +138 -54
- package/dist/types/typechain-types/factories/contracts/core/minters/RAACReleaseOrchestrator/RAACReleaseOrchestrator__factory.d.ts +5 -31
- package/dist/types/typechain-types/factories/contracts/core/oracles/BaseVRFv2Consumer__factory.d.ts +231 -0
- package/dist/types/typechain-types/factories/contracts/core/oracles/RAACHousePriceOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/oracles/RAACPrimeRateOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/oracles/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/LendingPool__factory.d.ts +897 -64
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/NFTLiquidator__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/StabilityPool__factory.d.ts +128 -161
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/core/primitives/RAACHousePrices__factory.d.ts +54 -1
- package/dist/types/typechain-types/factories/contracts/core/tokens/DebtToken__factory.d.ts +47 -29
- package/dist/types/typechain-types/factories/contracts/core/tokens/IndexToken__factory.d.ts +317 -1
- package/dist/types/typechain-types/factories/contracts/core/tokens/RAACNFT__factory.d.ts +525 -17
- package/dist/types/typechain-types/factories/contracts/core/tokens/RAACToken__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/tokens/RToken__factory.d.ts +52 -52
- package/dist/types/typechain-types/factories/contracts/core/tokens/VeRAACToken__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/IBaseCollector__factory.d.ts +33 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/IFeeCollector__factory.d.ts +409 -90
- package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACMinter/IRAACMinter__factory.d.ts +59 -15
- package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACReleaseOrchestrator/IReleaseOrchestrator__factory.d.ts +4 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/oracles/IBaseVRFv2Consumer__factory.d.ts +78 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/oracles/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/ILiquidityPool__factory.d.ts +119 -39
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/LendingPool/ILendingPool__factory.d.ts +547 -19
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/StabilityPool/IStabilityPool__factory.d.ts +68 -67
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IDebtToken__factory.d.ts +119 -6
- package/dist/types/typechain-types/factories/{erc721a/contracts/IERC721A__factory.d.ts → contracts/interfaces/core/tokens/IIndexToken__factory.d.ts} +74 -215
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IRAACNFT__factory.d.ts +274 -10
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IRToken__factory.d.ts +26 -26
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/{IMarketCreator__factory.d.ts → core/vaults/IBaseVault__factory.d.ts} +78 -42
- package/dist/types/typechain-types/factories/contracts/interfaces/core/vaults/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/libraries/pools/ReserveLibrary__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/collectors/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/gauges/MockBaseGauge__factory.d.ts +16 -4
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/proposals/TimelockTestTarget__factory.d.ts +10 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockVRFCoordinatorV2__factory.d.ts +620 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/TestRAACHousePriceOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/TestRAACPrimeRateOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPoolCollector__factory.d.ts +234 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPoolDebtToken__factory.d.ts +539 -77
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPool__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLiquidityPool__factory.d.ts +795 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockStabilityPool__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/MockDistributableContract__factory.d.ts +68 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockCollectableUnderlying__factory.d.ts +451 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/vaults/MockVault__factory.d.ts +525 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/vaults/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/MockStringUtils__factory.d.ts +40 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/pools/ReserveLibraryMock__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/tests/VeRAACFuzzHelper__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/index.d.ts +0 -1
- package/dist/types/typechain-types/index.d.ts +28 -10
- package/dist/types/utils/artifacts.d.ts +677 -39
- package/dist/types/utils/contracts.d.ts +2 -0
- package/dist/utils/artifacts.js +9 -0
- package/package.json +1 -1
- package/dist/nfts/getDepositedNFTs.js +0 -19
- package/dist/nfts/getOwnedNFTs.js +0 -34
- package/dist/types/nfts/addNewBatch.d.ts +0 -4
- package/dist/types/nfts/getCurrentBatchSize.d.ts +0 -4
- package/dist/types/nfts/getDepositedNFTs.d.ts +0 -7
- package/dist/types/nfts/getOwnedNFTs.d.ts +0 -7
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/MarketCreator.d.ts +0 -274
- package/dist/types/typechain-types/contracts/interfaces/IMarketCreator.d.ts +0 -85
- package/dist/types/typechain-types/contracts/mocks/core/collectors/MockFeeCollector.d.ts +0 -708
- package/dist/types/typechain-types/erc721a/contracts/IERC721A.d.ts +0 -242
- package/dist/types/typechain-types/erc721a/contracts/index.d.ts +0 -1
- package/dist/types/typechain-types/erc721a/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/MarketCreator__factory.d.ts +0 -405
- package/dist/types/typechain-types/factories/contracts/mocks/core/collectors/MockFeeCollector__factory.d.ts +0 -985
- package/dist/types/typechain-types/factories/erc721a/contracts/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/erc721a/index.d.ts +0 -1
|
@@ -79,6 +79,11 @@ export declare class IStabilityPool__factory {
|
|
|
79
79
|
readonly internalType: "address";
|
|
80
80
|
readonly name: "user";
|
|
81
81
|
readonly type: "address";
|
|
82
|
+
}, {
|
|
83
|
+
readonly indexed: false;
|
|
84
|
+
readonly internalType: "uint256";
|
|
85
|
+
readonly name: "tokenId";
|
|
86
|
+
readonly type: "uint256";
|
|
82
87
|
}, {
|
|
83
88
|
readonly indexed: false;
|
|
84
89
|
readonly internalType: "uint256";
|
|
@@ -107,6 +112,16 @@ export declare class IStabilityPool__factory {
|
|
|
107
112
|
}];
|
|
108
113
|
readonly name: "Deposit";
|
|
109
114
|
readonly type: "event";
|
|
115
|
+
}, {
|
|
116
|
+
readonly anonymous: false;
|
|
117
|
+
readonly inputs: readonly [{
|
|
118
|
+
readonly indexed: false;
|
|
119
|
+
readonly internalType: "uint256";
|
|
120
|
+
readonly name: "indexTokenMintingFee";
|
|
121
|
+
readonly type: "uint256";
|
|
122
|
+
}];
|
|
123
|
+
readonly name: "IndexTokenMintingFeeSet";
|
|
124
|
+
readonly type: "event";
|
|
110
125
|
}, {
|
|
111
126
|
readonly anonymous: false;
|
|
112
127
|
readonly inputs: readonly [{
|
|
@@ -124,11 +139,6 @@ export declare class IStabilityPool__factory {
|
|
|
124
139
|
readonly internalType: "address";
|
|
125
140
|
readonly name: "manager";
|
|
126
141
|
readonly type: "address";
|
|
127
|
-
}, {
|
|
128
|
-
readonly indexed: false;
|
|
129
|
-
readonly internalType: "uint256";
|
|
130
|
-
readonly name: "allocation";
|
|
131
|
-
readonly type: "uint256";
|
|
132
142
|
}];
|
|
133
143
|
readonly name: "ManagerAdded";
|
|
134
144
|
readonly type: "event";
|
|
@@ -182,6 +192,21 @@ export declare class IStabilityPool__factory {
|
|
|
182
192
|
}];
|
|
183
193
|
readonly name: "MarketRemoved";
|
|
184
194
|
readonly type: "event";
|
|
195
|
+
}, {
|
|
196
|
+
readonly anonymous: false;
|
|
197
|
+
readonly inputs: readonly [{
|
|
198
|
+
readonly indexed: true;
|
|
199
|
+
readonly internalType: "address";
|
|
200
|
+
readonly name: "nft";
|
|
201
|
+
readonly type: "address";
|
|
202
|
+
}, {
|
|
203
|
+
readonly indexed: false;
|
|
204
|
+
readonly internalType: "uint256";
|
|
205
|
+
readonly name: "tokenId";
|
|
206
|
+
readonly type: "uint256";
|
|
207
|
+
}];
|
|
208
|
+
readonly name: "NFTDeposited";
|
|
209
|
+
readonly type: "event";
|
|
185
210
|
}, {
|
|
186
211
|
readonly anonymous: false;
|
|
187
212
|
readonly inputs: readonly [{
|
|
@@ -227,10 +252,6 @@ export declare class IStabilityPool__factory {
|
|
|
227
252
|
readonly internalType: "address";
|
|
228
253
|
readonly name: "manager";
|
|
229
254
|
readonly type: "address";
|
|
230
|
-
}, {
|
|
231
|
-
readonly internalType: "uint256";
|
|
232
|
-
readonly name: "allocation";
|
|
233
|
-
readonly type: "uint256";
|
|
234
255
|
}];
|
|
235
256
|
readonly name: "addManager";
|
|
236
257
|
readonly outputs: readonly [];
|
|
@@ -302,57 +323,23 @@ export declare class IStabilityPool__factory {
|
|
|
302
323
|
readonly outputs: readonly [];
|
|
303
324
|
readonly stateMutability: "nonpayable";
|
|
304
325
|
readonly type: "function";
|
|
305
|
-
}, {
|
|
306
|
-
readonly inputs: readonly [{
|
|
307
|
-
readonly internalType: "uint256";
|
|
308
|
-
readonly name: "amount";
|
|
309
|
-
readonly type: "uint256";
|
|
310
|
-
}];
|
|
311
|
-
readonly name: "depositRAACFromPool";
|
|
312
|
-
readonly outputs: readonly [];
|
|
313
|
-
readonly stateMutability: "nonpayable";
|
|
314
|
-
readonly type: "function";
|
|
315
|
-
}, {
|
|
316
|
-
readonly inputs: readonly [];
|
|
317
|
-
readonly name: "getExchangeRate";
|
|
318
|
-
readonly outputs: readonly [{
|
|
319
|
-
readonly internalType: "uint256";
|
|
320
|
-
readonly name: "";
|
|
321
|
-
readonly type: "uint256";
|
|
322
|
-
}];
|
|
323
|
-
readonly stateMutability: "view";
|
|
324
|
-
readonly type: "function";
|
|
325
|
-
}, {
|
|
326
|
-
readonly inputs: readonly [{
|
|
327
|
-
readonly internalType: "address";
|
|
328
|
-
readonly name: "manager";
|
|
329
|
-
readonly type: "address";
|
|
330
|
-
}];
|
|
331
|
-
readonly name: "getManager";
|
|
332
|
-
readonly outputs: readonly [{
|
|
333
|
-
readonly internalType: "bool";
|
|
334
|
-
readonly name: "";
|
|
335
|
-
readonly type: "bool";
|
|
336
|
-
}];
|
|
337
|
-
readonly stateMutability: "view";
|
|
338
|
-
readonly type: "function";
|
|
339
326
|
}, {
|
|
340
327
|
readonly inputs: readonly [{
|
|
341
328
|
readonly internalType: "address";
|
|
342
|
-
readonly name: "
|
|
329
|
+
readonly name: "nft";
|
|
343
330
|
readonly type: "address";
|
|
344
|
-
}
|
|
345
|
-
readonly name: "getManagerAllocation";
|
|
346
|
-
readonly outputs: readonly [{
|
|
331
|
+
}, {
|
|
347
332
|
readonly internalType: "uint256";
|
|
348
|
-
readonly name: "";
|
|
333
|
+
readonly name: "tokenId";
|
|
349
334
|
readonly type: "uint256";
|
|
350
335
|
}];
|
|
351
|
-
readonly
|
|
336
|
+
readonly name: "depositNFT";
|
|
337
|
+
readonly outputs: readonly [];
|
|
338
|
+
readonly stateMutability: "nonpayable";
|
|
352
339
|
readonly type: "function";
|
|
353
340
|
}, {
|
|
354
341
|
readonly inputs: readonly [];
|
|
355
|
-
readonly name: "
|
|
342
|
+
readonly name: "getManagerList";
|
|
356
343
|
readonly outputs: readonly [{
|
|
357
344
|
readonly internalType: "address[]";
|
|
358
345
|
readonly name: "";
|
|
@@ -376,7 +363,7 @@ export declare class IStabilityPool__factory {
|
|
|
376
363
|
readonly type: "function";
|
|
377
364
|
}, {
|
|
378
365
|
readonly inputs: readonly [];
|
|
379
|
-
readonly name: "
|
|
366
|
+
readonly name: "getTotalDeposits";
|
|
380
367
|
readonly outputs: readonly [{
|
|
381
368
|
readonly internalType: "uint256";
|
|
382
369
|
readonly name: "";
|
|
@@ -385,8 +372,12 @@ export declare class IStabilityPool__factory {
|
|
|
385
372
|
readonly stateMutability: "view";
|
|
386
373
|
readonly type: "function";
|
|
387
374
|
}, {
|
|
388
|
-
readonly inputs: readonly [
|
|
389
|
-
|
|
375
|
+
readonly inputs: readonly [{
|
|
376
|
+
readonly internalType: "address";
|
|
377
|
+
readonly name: "user";
|
|
378
|
+
readonly type: "address";
|
|
379
|
+
}];
|
|
380
|
+
readonly name: "getUserDeposit";
|
|
390
381
|
readonly outputs: readonly [{
|
|
391
382
|
readonly internalType: "uint256";
|
|
392
383
|
readonly name: "";
|
|
@@ -397,14 +388,14 @@ export declare class IStabilityPool__factory {
|
|
|
397
388
|
}, {
|
|
398
389
|
readonly inputs: readonly [{
|
|
399
390
|
readonly internalType: "address";
|
|
400
|
-
readonly name: "
|
|
391
|
+
readonly name: "manager";
|
|
401
392
|
readonly type: "address";
|
|
402
393
|
}];
|
|
403
|
-
readonly name: "
|
|
394
|
+
readonly name: "isAddressManager";
|
|
404
395
|
readonly outputs: readonly [{
|
|
405
|
-
readonly internalType: "
|
|
396
|
+
readonly internalType: "bool";
|
|
406
397
|
readonly name: "";
|
|
407
|
-
readonly type: "
|
|
398
|
+
readonly type: "bool";
|
|
408
399
|
}];
|
|
409
400
|
readonly stateMutability: "view";
|
|
410
401
|
readonly type: "function";
|
|
@@ -413,6 +404,10 @@ export declare class IStabilityPool__factory {
|
|
|
413
404
|
readonly internalType: "address";
|
|
414
405
|
readonly name: "userAddress";
|
|
415
406
|
readonly type: "address";
|
|
407
|
+
}, {
|
|
408
|
+
readonly internalType: "uint256";
|
|
409
|
+
readonly name: "tokenId";
|
|
410
|
+
readonly type: "uint256";
|
|
416
411
|
}];
|
|
417
412
|
readonly name: "liquidateBorrower";
|
|
418
413
|
readonly outputs: readonly [];
|
|
@@ -437,30 +432,36 @@ export declare class IStabilityPool__factory {
|
|
|
437
432
|
}, {
|
|
438
433
|
readonly inputs: readonly [{
|
|
439
434
|
readonly internalType: "address";
|
|
440
|
-
readonly name: "
|
|
435
|
+
readonly name: "_indexToken";
|
|
441
436
|
readonly type: "address";
|
|
442
437
|
}];
|
|
443
|
-
readonly name: "
|
|
438
|
+
readonly name: "setIndexToken";
|
|
444
439
|
readonly outputs: readonly [];
|
|
445
440
|
readonly stateMutability: "nonpayable";
|
|
446
441
|
readonly type: "function";
|
|
447
442
|
}, {
|
|
448
|
-
readonly inputs: readonly [
|
|
449
|
-
|
|
443
|
+
readonly inputs: readonly [{
|
|
444
|
+
readonly internalType: "address";
|
|
445
|
+
readonly name: "_minter";
|
|
446
|
+
readonly type: "address";
|
|
447
|
+
}];
|
|
448
|
+
readonly name: "setMinter";
|
|
450
449
|
readonly outputs: readonly [];
|
|
451
450
|
readonly stateMutability: "nonpayable";
|
|
452
451
|
readonly type: "function";
|
|
453
452
|
}, {
|
|
454
453
|
readonly inputs: readonly [{
|
|
455
454
|
readonly internalType: "address";
|
|
456
|
-
readonly name: "
|
|
455
|
+
readonly name: "_treasury";
|
|
457
456
|
readonly type: "address";
|
|
458
|
-
}, {
|
|
459
|
-
readonly internalType: "uint256";
|
|
460
|
-
readonly name: "newAllocation";
|
|
461
|
-
readonly type: "uint256";
|
|
462
457
|
}];
|
|
463
|
-
readonly name: "
|
|
458
|
+
readonly name: "setTreasury";
|
|
459
|
+
readonly outputs: readonly [];
|
|
460
|
+
readonly stateMutability: "nonpayable";
|
|
461
|
+
readonly type: "function";
|
|
462
|
+
}, {
|
|
463
|
+
readonly inputs: readonly [];
|
|
464
|
+
readonly name: "unpause";
|
|
464
465
|
readonly outputs: readonly [];
|
|
465
466
|
readonly stateMutability: "nonpayable";
|
|
466
467
|
readonly type: "function";
|
|
@@ -2,6 +2,26 @@ import { type ContractRunner } from "ethers";
|
|
|
2
2
|
import type { IDebtToken, IDebtTokenInterface } from "../../../../../contracts/interfaces/core/tokens/IDebtToken";
|
|
3
3
|
export declare class IDebtToken__factory {
|
|
4
4
|
static readonly abi: readonly [{
|
|
5
|
+
readonly inputs: readonly [];
|
|
6
|
+
readonly name: "InsufficientBalance";
|
|
7
|
+
readonly type: "error";
|
|
8
|
+
}, {
|
|
9
|
+
readonly inputs: readonly [];
|
|
10
|
+
readonly name: "InvalidAddress";
|
|
11
|
+
readonly type: "error";
|
|
12
|
+
}, {
|
|
13
|
+
readonly inputs: readonly [];
|
|
14
|
+
readonly name: "InvalidAmount";
|
|
15
|
+
readonly type: "error";
|
|
16
|
+
}, {
|
|
17
|
+
readonly inputs: readonly [];
|
|
18
|
+
readonly name: "OnlyLendingPool";
|
|
19
|
+
readonly type: "error";
|
|
20
|
+
}, {
|
|
21
|
+
readonly inputs: readonly [];
|
|
22
|
+
readonly name: "TransfersNotAllowed";
|
|
23
|
+
readonly type: "error";
|
|
24
|
+
}, {
|
|
5
25
|
readonly anonymous: false;
|
|
6
26
|
readonly inputs: readonly [{
|
|
7
27
|
readonly indexed: true;
|
|
@@ -21,6 +41,81 @@ export declare class IDebtToken__factory {
|
|
|
21
41
|
}];
|
|
22
42
|
readonly name: "Approval";
|
|
23
43
|
readonly type: "event";
|
|
44
|
+
}, {
|
|
45
|
+
readonly anonymous: false;
|
|
46
|
+
readonly inputs: readonly [{
|
|
47
|
+
readonly indexed: true;
|
|
48
|
+
readonly internalType: "address";
|
|
49
|
+
readonly name: "from";
|
|
50
|
+
readonly type: "address";
|
|
51
|
+
}, {
|
|
52
|
+
readonly indexed: false;
|
|
53
|
+
readonly internalType: "uint256";
|
|
54
|
+
readonly name: "amount";
|
|
55
|
+
readonly type: "uint256";
|
|
56
|
+
}, {
|
|
57
|
+
readonly indexed: false;
|
|
58
|
+
readonly internalType: "uint256";
|
|
59
|
+
readonly name: "index";
|
|
60
|
+
readonly type: "uint256";
|
|
61
|
+
}, {
|
|
62
|
+
readonly indexed: false;
|
|
63
|
+
readonly internalType: "uint256";
|
|
64
|
+
readonly name: "positionIndex";
|
|
65
|
+
readonly type: "uint256";
|
|
66
|
+
}];
|
|
67
|
+
readonly name: "Burn";
|
|
68
|
+
readonly type: "event";
|
|
69
|
+
}, {
|
|
70
|
+
readonly anonymous: false;
|
|
71
|
+
readonly inputs: readonly [{
|
|
72
|
+
readonly indexed: true;
|
|
73
|
+
readonly internalType: "address";
|
|
74
|
+
readonly name: "oldLendingPool";
|
|
75
|
+
readonly type: "address";
|
|
76
|
+
}, {
|
|
77
|
+
readonly indexed: true;
|
|
78
|
+
readonly internalType: "address";
|
|
79
|
+
readonly name: "newLendingPool";
|
|
80
|
+
readonly type: "address";
|
|
81
|
+
}];
|
|
82
|
+
readonly name: "LendingPoolUpdated";
|
|
83
|
+
readonly type: "event";
|
|
84
|
+
}, {
|
|
85
|
+
readonly anonymous: false;
|
|
86
|
+
readonly inputs: readonly [{
|
|
87
|
+
readonly indexed: true;
|
|
88
|
+
readonly internalType: "address";
|
|
89
|
+
readonly name: "caller";
|
|
90
|
+
readonly type: "address";
|
|
91
|
+
}, {
|
|
92
|
+
readonly indexed: true;
|
|
93
|
+
readonly internalType: "address";
|
|
94
|
+
readonly name: "onBehalfOf";
|
|
95
|
+
readonly type: "address";
|
|
96
|
+
}, {
|
|
97
|
+
readonly indexed: false;
|
|
98
|
+
readonly internalType: "uint256";
|
|
99
|
+
readonly name: "amount";
|
|
100
|
+
readonly type: "uint256";
|
|
101
|
+
}, {
|
|
102
|
+
readonly indexed: false;
|
|
103
|
+
readonly internalType: "uint256";
|
|
104
|
+
readonly name: "balanceIncrease";
|
|
105
|
+
readonly type: "uint256";
|
|
106
|
+
}, {
|
|
107
|
+
readonly indexed: false;
|
|
108
|
+
readonly internalType: "uint256";
|
|
109
|
+
readonly name: "index";
|
|
110
|
+
readonly type: "uint256";
|
|
111
|
+
}, {
|
|
112
|
+
readonly indexed: false;
|
|
113
|
+
readonly internalType: "uint256";
|
|
114
|
+
readonly name: "positionIndex";
|
|
115
|
+
readonly type: "uint256";
|
|
116
|
+
}];
|
|
117
|
+
readonly name: "Mint";
|
|
118
|
+
readonly type: "event";
|
|
24
119
|
}, {
|
|
25
120
|
readonly anonymous: false;
|
|
26
121
|
readonly inputs: readonly [{
|
|
@@ -41,6 +136,16 @@ export declare class IDebtToken__factory {
|
|
|
41
136
|
}];
|
|
42
137
|
readonly name: "Transfer";
|
|
43
138
|
readonly type: "event";
|
|
139
|
+
}, {
|
|
140
|
+
readonly anonymous: false;
|
|
141
|
+
readonly inputs: readonly [{
|
|
142
|
+
readonly indexed: false;
|
|
143
|
+
readonly internalType: "uint256";
|
|
144
|
+
readonly name: "newUsageIndex";
|
|
145
|
+
readonly type: "uint256";
|
|
146
|
+
}];
|
|
147
|
+
readonly name: "UsageIndexUpdated";
|
|
148
|
+
readonly type: "event";
|
|
44
149
|
}, {
|
|
45
150
|
readonly inputs: readonly [{
|
|
46
151
|
readonly internalType: "address";
|
|
@@ -104,6 +209,10 @@ export declare class IDebtToken__factory {
|
|
|
104
209
|
readonly internalType: "uint256";
|
|
105
210
|
readonly name: "index";
|
|
106
211
|
readonly type: "uint256";
|
|
212
|
+
}, {
|
|
213
|
+
readonly internalType: "uint256";
|
|
214
|
+
readonly name: "positionIndex";
|
|
215
|
+
readonly type: "uint256";
|
|
107
216
|
}];
|
|
108
217
|
readonly name: "burn";
|
|
109
218
|
readonly outputs: readonly [{
|
|
@@ -127,7 +236,7 @@ export declare class IDebtToken__factory {
|
|
|
127
236
|
readonly type: "function";
|
|
128
237
|
}, {
|
|
129
238
|
readonly inputs: readonly [];
|
|
130
|
-
readonly name: "
|
|
239
|
+
readonly name: "getLendingPool";
|
|
131
240
|
readonly outputs: readonly [{
|
|
132
241
|
readonly internalType: "address";
|
|
133
242
|
readonly name: "";
|
|
@@ -148,7 +257,7 @@ export declare class IDebtToken__factory {
|
|
|
148
257
|
}, {
|
|
149
258
|
readonly inputs: readonly [{
|
|
150
259
|
readonly internalType: "address";
|
|
151
|
-
readonly name: "
|
|
260
|
+
readonly name: "caller";
|
|
152
261
|
readonly type: "address";
|
|
153
262
|
}, {
|
|
154
263
|
readonly internalType: "address";
|
|
@@ -162,6 +271,10 @@ export declare class IDebtToken__factory {
|
|
|
162
271
|
readonly internalType: "uint256";
|
|
163
272
|
readonly name: "index";
|
|
164
273
|
readonly type: "uint256";
|
|
274
|
+
}, {
|
|
275
|
+
readonly internalType: "uint256";
|
|
276
|
+
readonly name: "positionIndex";
|
|
277
|
+
readonly type: "uint256";
|
|
165
278
|
}];
|
|
166
279
|
readonly name: "mint";
|
|
167
280
|
readonly outputs: readonly [{
|
|
@@ -185,7 +298,7 @@ export declare class IDebtToken__factory {
|
|
|
185
298
|
readonly name: "user";
|
|
186
299
|
readonly type: "address";
|
|
187
300
|
}];
|
|
188
|
-
readonly name: "
|
|
301
|
+
readonly name: "rawBalanceOf";
|
|
189
302
|
readonly outputs: readonly [{
|
|
190
303
|
readonly internalType: "uint256";
|
|
191
304
|
readonly name: "";
|
|
@@ -195,7 +308,7 @@ export declare class IDebtToken__factory {
|
|
|
195
308
|
readonly type: "function";
|
|
196
309
|
}, {
|
|
197
310
|
readonly inputs: readonly [];
|
|
198
|
-
readonly name: "
|
|
311
|
+
readonly name: "rawTotalSupply";
|
|
199
312
|
readonly outputs: readonly [{
|
|
200
313
|
readonly internalType: "uint256";
|
|
201
314
|
readonly name: "";
|
|
@@ -206,10 +319,10 @@ export declare class IDebtToken__factory {
|
|
|
206
319
|
}, {
|
|
207
320
|
readonly inputs: readonly [{
|
|
208
321
|
readonly internalType: "address";
|
|
209
|
-
readonly name: "
|
|
322
|
+
readonly name: "newLendingPool";
|
|
210
323
|
readonly type: "address";
|
|
211
324
|
}];
|
|
212
|
-
readonly name: "
|
|
325
|
+
readonly name: "setLendingPool";
|
|
213
326
|
readonly outputs: readonly [];
|
|
214
327
|
readonly stateMutability: "nonpayable";
|
|
215
328
|
readonly type: "function";
|