@raac/rpc 1.0.1 → 1.0.2-beta.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/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/11155111.json +132 -0
- package/dist/configs/chains/17000.json +127 -0
- package/dist/configs/chains/8453.json +26 -14
- package/dist/configs/chains/index.js +4 -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/methods/commons/estimateGasPrice.js +7 -2
- 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 +5 -1
- package/dist/types/configs/createConfig.d.ts +6 -0
- package/dist/types/configs/index.d.ts +2 -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 +4 -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
|
@@ -9,6 +9,10 @@ export declare class ILendingPool__factory {
|
|
|
9
9
|
readonly inputs: readonly [];
|
|
10
10
|
readonly name: "CannotBorrowUnderLiquidation";
|
|
11
11
|
readonly type: "error";
|
|
12
|
+
}, {
|
|
13
|
+
readonly inputs: readonly [];
|
|
14
|
+
readonly name: "CannotRepayUnderLiquidationWithoutInsurance";
|
|
15
|
+
readonly type: "error";
|
|
12
16
|
}, {
|
|
13
17
|
readonly inputs: readonly [];
|
|
14
18
|
readonly name: "CannotWithdrawUnderLiquidation";
|
|
@@ -29,6 +33,10 @@ export declare class ILendingPool__factory {
|
|
|
29
33
|
readonly inputs: readonly [];
|
|
30
34
|
readonly name: "HealthFactorTooLow";
|
|
31
35
|
readonly type: "error";
|
|
36
|
+
}, {
|
|
37
|
+
readonly inputs: readonly [];
|
|
38
|
+
readonly name: "InsufficientAllowanceForFees";
|
|
39
|
+
readonly type: "error";
|
|
32
40
|
}, {
|
|
33
41
|
readonly inputs: readonly [];
|
|
34
42
|
readonly name: "InsufficientBalance";
|
|
@@ -49,6 +57,10 @@ export declare class ILendingPool__factory {
|
|
|
49
57
|
readonly inputs: readonly [];
|
|
50
58
|
readonly name: "InvalidParameter";
|
|
51
59
|
readonly type: "error";
|
|
60
|
+
}, {
|
|
61
|
+
readonly inputs: readonly [];
|
|
62
|
+
readonly name: "InvalidVaultAsset";
|
|
63
|
+
readonly type: "error";
|
|
52
64
|
}, {
|
|
53
65
|
readonly inputs: readonly [];
|
|
54
66
|
readonly name: "NFTAlreadyDeposited";
|
|
@@ -57,10 +69,26 @@ export declare class ILendingPool__factory {
|
|
|
57
69
|
readonly inputs: readonly [];
|
|
58
70
|
readonly name: "NFTNotDeposited";
|
|
59
71
|
readonly type: "error";
|
|
72
|
+
}, {
|
|
73
|
+
readonly inputs: readonly [];
|
|
74
|
+
readonly name: "NFTNotInsured";
|
|
75
|
+
readonly type: "error";
|
|
76
|
+
}, {
|
|
77
|
+
readonly inputs: readonly [];
|
|
78
|
+
readonly name: "NoActiveRewardToken";
|
|
79
|
+
readonly type: "error";
|
|
60
80
|
}, {
|
|
61
81
|
readonly inputs: readonly [];
|
|
62
82
|
readonly name: "NoCollateral";
|
|
63
83
|
readonly type: "error";
|
|
84
|
+
}, {
|
|
85
|
+
readonly inputs: readonly [];
|
|
86
|
+
readonly name: "NoDeposits";
|
|
87
|
+
readonly type: "error";
|
|
88
|
+
}, {
|
|
89
|
+
readonly inputs: readonly [];
|
|
90
|
+
readonly name: "NoRewardsToClaim";
|
|
91
|
+
readonly type: "error";
|
|
64
92
|
}, {
|
|
65
93
|
readonly inputs: readonly [];
|
|
66
94
|
readonly name: "NotEnoughCollateralToBorrow";
|
|
@@ -81,6 +109,10 @@ export declare class ILendingPool__factory {
|
|
|
81
109
|
readonly inputs: readonly [];
|
|
82
110
|
readonly name: "RepayAmountTooHigh";
|
|
83
111
|
readonly type: "error";
|
|
112
|
+
}, {
|
|
113
|
+
readonly inputs: readonly [];
|
|
114
|
+
readonly name: "RewardTokenAlreadySet";
|
|
115
|
+
readonly type: "error";
|
|
84
116
|
}, {
|
|
85
117
|
readonly inputs: readonly [];
|
|
86
118
|
readonly name: "SameAddressNotAllowed";
|
|
@@ -139,35 +171,70 @@ export declare class ILendingPool__factory {
|
|
|
139
171
|
readonly inputs: readonly [{
|
|
140
172
|
readonly indexed: true;
|
|
141
173
|
readonly internalType: "address";
|
|
142
|
-
readonly name: "
|
|
174
|
+
readonly name: "user";
|
|
143
175
|
readonly type: "address";
|
|
144
176
|
}, {
|
|
145
|
-
readonly indexed:
|
|
146
|
-
readonly internalType: "
|
|
147
|
-
readonly name: "
|
|
148
|
-
readonly type: "
|
|
177
|
+
readonly indexed: false;
|
|
178
|
+
readonly internalType: "uint256";
|
|
179
|
+
readonly name: "amount";
|
|
180
|
+
readonly type: "uint256";
|
|
181
|
+
}, {
|
|
182
|
+
readonly indexed: false;
|
|
183
|
+
readonly internalType: "uint256";
|
|
184
|
+
readonly name: "mintedAmount";
|
|
185
|
+
readonly type: "uint256";
|
|
149
186
|
}];
|
|
150
|
-
readonly name: "
|
|
187
|
+
readonly name: "Deposit";
|
|
151
188
|
readonly type: "event";
|
|
152
189
|
}, {
|
|
153
190
|
readonly anonymous: false;
|
|
154
191
|
readonly inputs: readonly [{
|
|
155
192
|
readonly indexed: true;
|
|
156
193
|
readonly internalType: "address";
|
|
157
|
-
readonly name: "
|
|
194
|
+
readonly name: "oldFeeCollector";
|
|
158
195
|
readonly type: "address";
|
|
159
196
|
}, {
|
|
197
|
+
readonly indexed: true;
|
|
198
|
+
readonly internalType: "address";
|
|
199
|
+
readonly name: "newFeeCollector";
|
|
200
|
+
readonly type: "address";
|
|
201
|
+
}];
|
|
202
|
+
readonly name: "FeeCollectorUpdated";
|
|
203
|
+
readonly type: "event";
|
|
204
|
+
}, {
|
|
205
|
+
readonly anonymous: false;
|
|
206
|
+
readonly inputs: readonly [];
|
|
207
|
+
readonly name: "InsufficientFees";
|
|
208
|
+
readonly type: "event";
|
|
209
|
+
}, {
|
|
210
|
+
readonly anonymous: false;
|
|
211
|
+
readonly inputs: readonly [{
|
|
160
212
|
readonly indexed: false;
|
|
161
213
|
readonly internalType: "uint256";
|
|
162
|
-
readonly name: "
|
|
214
|
+
readonly name: "oldInsuranceFee";
|
|
163
215
|
readonly type: "uint256";
|
|
164
216
|
}, {
|
|
165
217
|
readonly indexed: false;
|
|
166
218
|
readonly internalType: "uint256";
|
|
167
|
-
readonly name: "
|
|
219
|
+
readonly name: "newInsuranceFee";
|
|
168
220
|
readonly type: "uint256";
|
|
169
221
|
}];
|
|
170
|
-
readonly name: "
|
|
222
|
+
readonly name: "InsuranceFeeUpdated";
|
|
223
|
+
readonly type: "event";
|
|
224
|
+
}, {
|
|
225
|
+
readonly anonymous: false;
|
|
226
|
+
readonly inputs: readonly [{
|
|
227
|
+
readonly indexed: true;
|
|
228
|
+
readonly internalType: "uint256";
|
|
229
|
+
readonly name: "tokenId";
|
|
230
|
+
readonly type: "uint256";
|
|
231
|
+
}, {
|
|
232
|
+
readonly indexed: false;
|
|
233
|
+
readonly internalType: "uint256";
|
|
234
|
+
readonly name: "amount";
|
|
235
|
+
readonly type: "uint256";
|
|
236
|
+
}];
|
|
237
|
+
readonly name: "InsuredNFT";
|
|
171
238
|
readonly type: "event";
|
|
172
239
|
}, {
|
|
173
240
|
readonly anonymous: false;
|
|
@@ -201,6 +268,11 @@ export declare class ILendingPool__factory {
|
|
|
201
268
|
readonly internalType: "address";
|
|
202
269
|
readonly name: "user";
|
|
203
270
|
readonly type: "address";
|
|
271
|
+
}, {
|
|
272
|
+
readonly indexed: true;
|
|
273
|
+
readonly internalType: "uint256";
|
|
274
|
+
readonly name: "tokenId";
|
|
275
|
+
readonly type: "uint256";
|
|
204
276
|
}];
|
|
205
277
|
readonly name: "LiquidationClosed";
|
|
206
278
|
readonly type: "event";
|
|
@@ -216,6 +288,11 @@ export declare class ILendingPool__factory {
|
|
|
216
288
|
readonly internalType: "address";
|
|
217
289
|
readonly name: "user";
|
|
218
290
|
readonly type: "address";
|
|
291
|
+
}, {
|
|
292
|
+
readonly indexed: true;
|
|
293
|
+
readonly internalType: "uint256";
|
|
294
|
+
readonly name: "tokenId";
|
|
295
|
+
readonly type: "uint256";
|
|
219
296
|
}, {
|
|
220
297
|
readonly indexed: false;
|
|
221
298
|
readonly internalType: "uint256";
|
|
@@ -241,6 +318,11 @@ export declare class ILendingPool__factory {
|
|
|
241
318
|
readonly internalType: "address";
|
|
242
319
|
readonly name: "user";
|
|
243
320
|
readonly type: "address";
|
|
321
|
+
}, {
|
|
322
|
+
readonly indexed: true;
|
|
323
|
+
readonly internalType: "uint256";
|
|
324
|
+
readonly name: "tokenId";
|
|
325
|
+
readonly type: "uint256";
|
|
244
326
|
}];
|
|
245
327
|
readonly name: "LiquidationInitiated";
|
|
246
328
|
readonly type: "event";
|
|
@@ -324,6 +406,56 @@ export declare class ILendingPool__factory {
|
|
|
324
406
|
}];
|
|
325
407
|
readonly name: "NFTWithdrawn";
|
|
326
408
|
readonly type: "event";
|
|
409
|
+
}, {
|
|
410
|
+
readonly anonymous: false;
|
|
411
|
+
readonly inputs: readonly [];
|
|
412
|
+
readonly name: "NotFeeCollector";
|
|
413
|
+
readonly type: "event";
|
|
414
|
+
}, {
|
|
415
|
+
readonly anonymous: false;
|
|
416
|
+
readonly inputs: readonly [{
|
|
417
|
+
readonly indexed: false;
|
|
418
|
+
readonly internalType: "uint256";
|
|
419
|
+
readonly name: "oldValue";
|
|
420
|
+
readonly type: "uint256";
|
|
421
|
+
}, {
|
|
422
|
+
readonly indexed: false;
|
|
423
|
+
readonly internalType: "uint256";
|
|
424
|
+
readonly name: "newValue";
|
|
425
|
+
readonly type: "uint256";
|
|
426
|
+
}];
|
|
427
|
+
readonly name: "ProtocolFeeRateUpdated";
|
|
428
|
+
readonly type: "event";
|
|
429
|
+
}, {
|
|
430
|
+
readonly anonymous: false;
|
|
431
|
+
readonly inputs: readonly [{
|
|
432
|
+
readonly indexed: false;
|
|
433
|
+
readonly internalType: "uint256";
|
|
434
|
+
readonly name: "protocolFee";
|
|
435
|
+
readonly type: "uint256";
|
|
436
|
+
}, {
|
|
437
|
+
readonly indexed: false;
|
|
438
|
+
readonly internalType: "uint256";
|
|
439
|
+
readonly name: "accumulatedProtocolFees";
|
|
440
|
+
readonly type: "uint256";
|
|
441
|
+
}];
|
|
442
|
+
readonly name: "ProtocolFeesCollected";
|
|
443
|
+
readonly type: "event";
|
|
444
|
+
}, {
|
|
445
|
+
readonly anonymous: false;
|
|
446
|
+
readonly inputs: readonly [{
|
|
447
|
+
readonly indexed: true;
|
|
448
|
+
readonly internalType: "address";
|
|
449
|
+
readonly name: "feeCollector";
|
|
450
|
+
readonly type: "address";
|
|
451
|
+
}, {
|
|
452
|
+
readonly indexed: false;
|
|
453
|
+
readonly internalType: "uint256";
|
|
454
|
+
readonly name: "amount";
|
|
455
|
+
readonly type: "uint256";
|
|
456
|
+
}];
|
|
457
|
+
readonly name: "ProtocolFeesWithdrawn";
|
|
458
|
+
readonly type: "event";
|
|
327
459
|
}, {
|
|
328
460
|
readonly anonymous: false;
|
|
329
461
|
readonly inputs: readonly [{
|
|
@@ -344,6 +476,96 @@ export declare class ILendingPool__factory {
|
|
|
344
476
|
}];
|
|
345
477
|
readonly name: "Repay";
|
|
346
478
|
readonly type: "event";
|
|
479
|
+
}, {
|
|
480
|
+
readonly anonymous: false;
|
|
481
|
+
readonly inputs: readonly [{
|
|
482
|
+
readonly indexed: true;
|
|
483
|
+
readonly internalType: "address";
|
|
484
|
+
readonly name: "user";
|
|
485
|
+
readonly type: "address";
|
|
486
|
+
}, {
|
|
487
|
+
readonly indexed: true;
|
|
488
|
+
readonly internalType: "address";
|
|
489
|
+
readonly name: "token";
|
|
490
|
+
readonly type: "address";
|
|
491
|
+
}, {
|
|
492
|
+
readonly indexed: false;
|
|
493
|
+
readonly internalType: "uint256";
|
|
494
|
+
readonly name: "amount";
|
|
495
|
+
readonly type: "uint256";
|
|
496
|
+
}];
|
|
497
|
+
readonly name: "RewardClaimed";
|
|
498
|
+
readonly type: "event";
|
|
499
|
+
}, {
|
|
500
|
+
readonly anonymous: false;
|
|
501
|
+
readonly inputs: readonly [{
|
|
502
|
+
readonly indexed: true;
|
|
503
|
+
readonly internalType: "address";
|
|
504
|
+
readonly name: "user";
|
|
505
|
+
readonly type: "address";
|
|
506
|
+
}, {
|
|
507
|
+
readonly indexed: false;
|
|
508
|
+
readonly internalType: "uint256";
|
|
509
|
+
readonly name: "amount";
|
|
510
|
+
readonly type: "uint256";
|
|
511
|
+
}];
|
|
512
|
+
readonly name: "RewardDistributed";
|
|
513
|
+
readonly type: "event";
|
|
514
|
+
}, {
|
|
515
|
+
readonly anonymous: false;
|
|
516
|
+
readonly inputs: readonly [{
|
|
517
|
+
readonly indexed: true;
|
|
518
|
+
readonly internalType: "address";
|
|
519
|
+
readonly name: "token";
|
|
520
|
+
readonly type: "address";
|
|
521
|
+
}, {
|
|
522
|
+
readonly indexed: false;
|
|
523
|
+
readonly internalType: "uint256";
|
|
524
|
+
readonly name: "rewardRate";
|
|
525
|
+
readonly type: "uint256";
|
|
526
|
+
}, {
|
|
527
|
+
readonly indexed: false;
|
|
528
|
+
readonly internalType: "uint256";
|
|
529
|
+
readonly name: "duration";
|
|
530
|
+
readonly type: "uint256";
|
|
531
|
+
}];
|
|
532
|
+
readonly name: "RewardParametersUpdated";
|
|
533
|
+
readonly type: "event";
|
|
534
|
+
}, {
|
|
535
|
+
readonly anonymous: false;
|
|
536
|
+
readonly inputs: readonly [{
|
|
537
|
+
readonly indexed: true;
|
|
538
|
+
readonly internalType: "address";
|
|
539
|
+
readonly name: "token";
|
|
540
|
+
readonly type: "address";
|
|
541
|
+
}, {
|
|
542
|
+
readonly indexed: false;
|
|
543
|
+
readonly internalType: "uint256";
|
|
544
|
+
readonly name: "rewardRate";
|
|
545
|
+
readonly type: "uint256";
|
|
546
|
+
}, {
|
|
547
|
+
readonly indexed: false;
|
|
548
|
+
readonly internalType: "uint256";
|
|
549
|
+
readonly name: "duration";
|
|
550
|
+
readonly type: "uint256";
|
|
551
|
+
}];
|
|
552
|
+
readonly name: "RewardTokenAdded";
|
|
553
|
+
readonly type: "event";
|
|
554
|
+
}, {
|
|
555
|
+
readonly anonymous: false;
|
|
556
|
+
readonly inputs: readonly [{
|
|
557
|
+
readonly indexed: true;
|
|
558
|
+
readonly internalType: "address";
|
|
559
|
+
readonly name: "user";
|
|
560
|
+
readonly type: "address";
|
|
561
|
+
}, {
|
|
562
|
+
readonly indexed: false;
|
|
563
|
+
readonly internalType: "uint256";
|
|
564
|
+
readonly name: "amount";
|
|
565
|
+
readonly type: "uint256";
|
|
566
|
+
}];
|
|
567
|
+
readonly name: "RewardTokensDeposited";
|
|
568
|
+
readonly type: "event";
|
|
347
569
|
}, {
|
|
348
570
|
readonly anonymous: false;
|
|
349
571
|
readonly inputs: readonly [{
|
|
@@ -359,6 +581,41 @@ export declare class ILendingPool__factory {
|
|
|
359
581
|
}];
|
|
360
582
|
readonly name: "StabilityPoolUpdated";
|
|
361
583
|
readonly type: "event";
|
|
584
|
+
}, {
|
|
585
|
+
readonly anonymous: false;
|
|
586
|
+
readonly inputs: readonly [{
|
|
587
|
+
readonly indexed: false;
|
|
588
|
+
readonly internalType: "uint256";
|
|
589
|
+
readonly name: "amount";
|
|
590
|
+
readonly type: "uint256";
|
|
591
|
+
}];
|
|
592
|
+
readonly name: "VaultRewardsClaimed";
|
|
593
|
+
readonly type: "event";
|
|
594
|
+
}, {
|
|
595
|
+
readonly anonymous: false;
|
|
596
|
+
readonly inputs: readonly [{
|
|
597
|
+
readonly indexed: true;
|
|
598
|
+
readonly internalType: "address";
|
|
599
|
+
readonly name: "oldVault";
|
|
600
|
+
readonly type: "address";
|
|
601
|
+
}, {
|
|
602
|
+
readonly indexed: true;
|
|
603
|
+
readonly internalType: "address";
|
|
604
|
+
readonly name: "newVault";
|
|
605
|
+
readonly type: "address";
|
|
606
|
+
}];
|
|
607
|
+
readonly name: "VaultUpdated";
|
|
608
|
+
readonly type: "event";
|
|
609
|
+
}, {
|
|
610
|
+
readonly anonymous: false;
|
|
611
|
+
readonly inputs: readonly [{
|
|
612
|
+
readonly indexed: true;
|
|
613
|
+
readonly internalType: "address";
|
|
614
|
+
readonly name: "vault";
|
|
615
|
+
readonly type: "address";
|
|
616
|
+
}];
|
|
617
|
+
readonly name: "VaultWithdrawalFailed";
|
|
618
|
+
readonly type: "event";
|
|
362
619
|
}, {
|
|
363
620
|
readonly anonymous: false;
|
|
364
621
|
readonly inputs: readonly [{
|
|
@@ -386,6 +643,10 @@ export declare class ILendingPool__factory {
|
|
|
386
643
|
readonly type: "event";
|
|
387
644
|
}, {
|
|
388
645
|
readonly inputs: readonly [{
|
|
646
|
+
readonly internalType: "uint256";
|
|
647
|
+
readonly name: "tokenId";
|
|
648
|
+
readonly type: "uint256";
|
|
649
|
+
}, {
|
|
389
650
|
readonly internalType: "uint256";
|
|
390
651
|
readonly name: "amount";
|
|
391
652
|
readonly type: "uint256";
|
|
@@ -399,6 +660,10 @@ export declare class ILendingPool__factory {
|
|
|
399
660
|
readonly internalType: "address";
|
|
400
661
|
readonly name: "userAddress";
|
|
401
662
|
readonly type: "address";
|
|
663
|
+
}, {
|
|
664
|
+
readonly internalType: "uint256";
|
|
665
|
+
readonly name: "tokenId";
|
|
666
|
+
readonly type: "uint256";
|
|
402
667
|
}];
|
|
403
668
|
readonly name: "calculateHealthFactor";
|
|
404
669
|
readonly outputs: readonly [{
|
|
@@ -410,6 +675,30 @@ export declare class ILendingPool__factory {
|
|
|
410
675
|
readonly type: "function";
|
|
411
676
|
}, {
|
|
412
677
|
readonly inputs: readonly [];
|
|
678
|
+
readonly name: "claimCollectorRewards";
|
|
679
|
+
readonly outputs: readonly [{
|
|
680
|
+
readonly internalType: "uint256";
|
|
681
|
+
readonly name: "";
|
|
682
|
+
readonly type: "uint256";
|
|
683
|
+
}];
|
|
684
|
+
readonly stateMutability: "nonpayable";
|
|
685
|
+
readonly type: "function";
|
|
686
|
+
}, {
|
|
687
|
+
readonly inputs: readonly [];
|
|
688
|
+
readonly name: "claimReward";
|
|
689
|
+
readonly outputs: readonly [{
|
|
690
|
+
readonly internalType: "bool";
|
|
691
|
+
readonly name: "";
|
|
692
|
+
readonly type: "bool";
|
|
693
|
+
}];
|
|
694
|
+
readonly stateMutability: "nonpayable";
|
|
695
|
+
readonly type: "function";
|
|
696
|
+
}, {
|
|
697
|
+
readonly inputs: readonly [{
|
|
698
|
+
readonly internalType: "uint256";
|
|
699
|
+
readonly name: "tokenId";
|
|
700
|
+
readonly type: "uint256";
|
|
701
|
+
}];
|
|
413
702
|
readonly name: "closeLiquidation";
|
|
414
703
|
readonly outputs: readonly [];
|
|
415
704
|
readonly stateMutability: "nonpayable";
|
|
@@ -434,16 +723,90 @@ export declare class ILendingPool__factory {
|
|
|
434
723
|
readonly outputs: readonly [];
|
|
435
724
|
readonly stateMutability: "nonpayable";
|
|
436
725
|
readonly type: "function";
|
|
726
|
+
}, {
|
|
727
|
+
readonly inputs: readonly [{
|
|
728
|
+
readonly internalType: "uint256";
|
|
729
|
+
readonly name: "amount";
|
|
730
|
+
readonly type: "uint256";
|
|
731
|
+
}];
|
|
732
|
+
readonly name: "depositRewardTokens";
|
|
733
|
+
readonly outputs: readonly [];
|
|
734
|
+
readonly stateMutability: "nonpayable";
|
|
735
|
+
readonly type: "function";
|
|
437
736
|
}, {
|
|
438
737
|
readonly inputs: readonly [{
|
|
439
738
|
readonly internalType: "address";
|
|
440
739
|
readonly name: "userAddress";
|
|
441
740
|
readonly type: "address";
|
|
741
|
+
}, {
|
|
742
|
+
readonly internalType: "uint256";
|
|
743
|
+
readonly name: "tokenId";
|
|
744
|
+
readonly type: "uint256";
|
|
442
745
|
}];
|
|
443
746
|
readonly name: "finalizeLiquidation";
|
|
444
747
|
readonly outputs: readonly [];
|
|
445
748
|
readonly stateMutability: "nonpayable";
|
|
446
749
|
readonly type: "function";
|
|
750
|
+
}, {
|
|
751
|
+
readonly inputs: readonly [{
|
|
752
|
+
readonly internalType: "address";
|
|
753
|
+
readonly name: "userAddress";
|
|
754
|
+
readonly type: "address";
|
|
755
|
+
}];
|
|
756
|
+
readonly name: "getAllUserData";
|
|
757
|
+
readonly outputs: readonly [{
|
|
758
|
+
readonly components: readonly [{
|
|
759
|
+
readonly internalType: "uint256[]";
|
|
760
|
+
readonly name: "nftTokenIds";
|
|
761
|
+
readonly type: "uint256[]";
|
|
762
|
+
}, {
|
|
763
|
+
readonly internalType: "uint256";
|
|
764
|
+
readonly name: "scaledDebtBalance";
|
|
765
|
+
readonly type: "uint256";
|
|
766
|
+
}, {
|
|
767
|
+
readonly internalType: "uint256";
|
|
768
|
+
readonly name: "collateralValue";
|
|
769
|
+
readonly type: "uint256";
|
|
770
|
+
}, {
|
|
771
|
+
readonly components: readonly [{
|
|
772
|
+
readonly internalType: "uint256";
|
|
773
|
+
readonly name: "rawDebtBalance";
|
|
774
|
+
readonly type: "uint256";
|
|
775
|
+
}, {
|
|
776
|
+
readonly internalType: "uint256";
|
|
777
|
+
readonly name: "scaledDebtBalance";
|
|
778
|
+
readonly type: "uint256";
|
|
779
|
+
}, {
|
|
780
|
+
readonly internalType: "uint256";
|
|
781
|
+
readonly name: "healthFactor";
|
|
782
|
+
readonly type: "uint256";
|
|
783
|
+
}, {
|
|
784
|
+
readonly internalType: "bool";
|
|
785
|
+
readonly name: "isUnderLiquidation";
|
|
786
|
+
readonly type: "bool";
|
|
787
|
+
}, {
|
|
788
|
+
readonly internalType: "uint256";
|
|
789
|
+
readonly name: "liquidationStartTime";
|
|
790
|
+
readonly type: "uint256";
|
|
791
|
+
}, {
|
|
792
|
+
readonly internalType: "uint256";
|
|
793
|
+
readonly name: "positionIndex";
|
|
794
|
+
readonly type: "uint256";
|
|
795
|
+
}, {
|
|
796
|
+
readonly internalType: "bool";
|
|
797
|
+
readonly name: "isInsured";
|
|
798
|
+
readonly type: "bool";
|
|
799
|
+
}];
|
|
800
|
+
readonly internalType: "struct ILendingPool.NFTPositionView[]";
|
|
801
|
+
readonly name: "positions";
|
|
802
|
+
readonly type: "tuple[]";
|
|
803
|
+
}];
|
|
804
|
+
readonly internalType: "struct ILendingPool.UserDataView";
|
|
805
|
+
readonly name: "";
|
|
806
|
+
readonly type: "tuple";
|
|
807
|
+
}];
|
|
808
|
+
readonly stateMutability: "view";
|
|
809
|
+
readonly type: "function";
|
|
447
810
|
}, {
|
|
448
811
|
readonly inputs: readonly [{
|
|
449
812
|
readonly internalType: "uint256";
|
|
@@ -478,6 +841,145 @@ export declare class ILendingPool__factory {
|
|
|
478
841
|
}];
|
|
479
842
|
readonly stateMutability: "view";
|
|
480
843
|
readonly type: "function";
|
|
844
|
+
}, {
|
|
845
|
+
readonly inputs: readonly [{
|
|
846
|
+
readonly internalType: "address";
|
|
847
|
+
readonly name: "user";
|
|
848
|
+
readonly type: "address";
|
|
849
|
+
}];
|
|
850
|
+
readonly name: "getPendingReward";
|
|
851
|
+
readonly outputs: readonly [{
|
|
852
|
+
readonly internalType: "uint256";
|
|
853
|
+
readonly name: "";
|
|
854
|
+
readonly type: "uint256";
|
|
855
|
+
}];
|
|
856
|
+
readonly stateMutability: "view";
|
|
857
|
+
readonly type: "function";
|
|
858
|
+
}, {
|
|
859
|
+
readonly inputs: readonly [{
|
|
860
|
+
readonly internalType: "address";
|
|
861
|
+
readonly name: "userAddress";
|
|
862
|
+
readonly type: "address";
|
|
863
|
+
}, {
|
|
864
|
+
readonly internalType: "uint256";
|
|
865
|
+
readonly name: "tokenId";
|
|
866
|
+
readonly type: "uint256";
|
|
867
|
+
}];
|
|
868
|
+
readonly name: "getPosition";
|
|
869
|
+
readonly outputs: readonly [{
|
|
870
|
+
readonly components: readonly [{
|
|
871
|
+
readonly internalType: "uint256";
|
|
872
|
+
readonly name: "rawDebtBalance";
|
|
873
|
+
readonly type: "uint256";
|
|
874
|
+
}, {
|
|
875
|
+
readonly internalType: "bool";
|
|
876
|
+
readonly name: "isUnderLiquidation";
|
|
877
|
+
readonly type: "bool";
|
|
878
|
+
}, {
|
|
879
|
+
readonly internalType: "uint256";
|
|
880
|
+
readonly name: "liquidationStartTime";
|
|
881
|
+
readonly type: "uint256";
|
|
882
|
+
}, {
|
|
883
|
+
readonly internalType: "uint256";
|
|
884
|
+
readonly name: "positionIndex";
|
|
885
|
+
readonly type: "uint256";
|
|
886
|
+
}, {
|
|
887
|
+
readonly internalType: "bool";
|
|
888
|
+
readonly name: "isInsured";
|
|
889
|
+
readonly type: "bool";
|
|
890
|
+
}, {
|
|
891
|
+
readonly internalType: "uint256";
|
|
892
|
+
readonly name: "rawInsuredBalance";
|
|
893
|
+
readonly type: "uint256";
|
|
894
|
+
}];
|
|
895
|
+
readonly internalType: "struct ILendingPool.NFTPosition";
|
|
896
|
+
readonly name: "";
|
|
897
|
+
readonly type: "tuple";
|
|
898
|
+
}];
|
|
899
|
+
readonly stateMutability: "view";
|
|
900
|
+
readonly type: "function";
|
|
901
|
+
}, {
|
|
902
|
+
readonly inputs: readonly [{
|
|
903
|
+
readonly internalType: "address";
|
|
904
|
+
readonly name: "userAddress";
|
|
905
|
+
readonly type: "address";
|
|
906
|
+
}, {
|
|
907
|
+
readonly internalType: "uint256";
|
|
908
|
+
readonly name: "tokenId";
|
|
909
|
+
readonly type: "uint256";
|
|
910
|
+
}];
|
|
911
|
+
readonly name: "getPositionData";
|
|
912
|
+
readonly outputs: readonly [{
|
|
913
|
+
readonly internalType: "uint256";
|
|
914
|
+
readonly name: "";
|
|
915
|
+
readonly type: "uint256";
|
|
916
|
+
}, {
|
|
917
|
+
readonly internalType: "uint256";
|
|
918
|
+
readonly name: "";
|
|
919
|
+
readonly type: "uint256";
|
|
920
|
+
}];
|
|
921
|
+
readonly stateMutability: "view";
|
|
922
|
+
readonly type: "function";
|
|
923
|
+
}, {
|
|
924
|
+
readonly inputs: readonly [{
|
|
925
|
+
readonly internalType: "address";
|
|
926
|
+
readonly name: "userAddress";
|
|
927
|
+
readonly type: "address";
|
|
928
|
+
}, {
|
|
929
|
+
readonly internalType: "uint256";
|
|
930
|
+
readonly name: "tokenId";
|
|
931
|
+
readonly type: "uint256";
|
|
932
|
+
}];
|
|
933
|
+
readonly name: "getPositionDebt";
|
|
934
|
+
readonly outputs: readonly [{
|
|
935
|
+
readonly internalType: "uint256";
|
|
936
|
+
readonly name: "";
|
|
937
|
+
readonly type: "uint256";
|
|
938
|
+
}];
|
|
939
|
+
readonly stateMutability: "view";
|
|
940
|
+
readonly type: "function";
|
|
941
|
+
}, {
|
|
942
|
+
readonly inputs: readonly [{
|
|
943
|
+
readonly internalType: "address";
|
|
944
|
+
readonly name: "userAddress";
|
|
945
|
+
readonly type: "address";
|
|
946
|
+
}, {
|
|
947
|
+
readonly internalType: "uint256";
|
|
948
|
+
readonly name: "tokenId";
|
|
949
|
+
readonly type: "uint256";
|
|
950
|
+
}];
|
|
951
|
+
readonly name: "getPositionScaledDebt";
|
|
952
|
+
readonly outputs: readonly [{
|
|
953
|
+
readonly internalType: "uint256";
|
|
954
|
+
readonly name: "";
|
|
955
|
+
readonly type: "uint256";
|
|
956
|
+
}];
|
|
957
|
+
readonly stateMutability: "view";
|
|
958
|
+
readonly type: "function";
|
|
959
|
+
}, {
|
|
960
|
+
readonly inputs: readonly [{
|
|
961
|
+
readonly internalType: "address";
|
|
962
|
+
readonly name: "userAddress";
|
|
963
|
+
readonly type: "address";
|
|
964
|
+
}];
|
|
965
|
+
readonly name: "getPositionsScaledDebt";
|
|
966
|
+
readonly outputs: readonly [{
|
|
967
|
+
readonly internalType: "uint256";
|
|
968
|
+
readonly name: "";
|
|
969
|
+
readonly type: "uint256";
|
|
970
|
+
}];
|
|
971
|
+
readonly stateMutability: "view";
|
|
972
|
+
readonly type: "function";
|
|
973
|
+
}, {
|
|
974
|
+
readonly inputs: readonly [];
|
|
975
|
+
readonly name: "getRAACNFTAddress";
|
|
976
|
+
readonly outputs: readonly [{
|
|
977
|
+
readonly internalType: "address";
|
|
978
|
+
readonly name: "";
|
|
979
|
+
readonly type: "address";
|
|
980
|
+
}];
|
|
981
|
+
readonly stateMutability: "view";
|
|
982
|
+
readonly type: "function";
|
|
481
983
|
}, {
|
|
482
984
|
readonly inputs: readonly [{
|
|
483
985
|
readonly internalType: "address";
|
|
@@ -511,6 +1013,10 @@ export declare class ILendingPool__factory {
|
|
|
511
1013
|
readonly internalType: "address";
|
|
512
1014
|
readonly name: "userAddress";
|
|
513
1015
|
readonly type: "address";
|
|
1016
|
+
}, {
|
|
1017
|
+
readonly internalType: "uint256";
|
|
1018
|
+
readonly name: "tokenId";
|
|
1019
|
+
readonly type: "uint256";
|
|
514
1020
|
}];
|
|
515
1021
|
readonly name: "initiateLiquidation";
|
|
516
1022
|
readonly outputs: readonly [];
|
|
@@ -544,6 +1050,10 @@ export declare class ILendingPool__factory {
|
|
|
544
1050
|
readonly type: "function";
|
|
545
1051
|
}, {
|
|
546
1052
|
readonly inputs: readonly [{
|
|
1053
|
+
readonly internalType: "uint256";
|
|
1054
|
+
readonly name: "tokenId";
|
|
1055
|
+
readonly type: "uint256";
|
|
1056
|
+
}, {
|
|
547
1057
|
readonly internalType: "uint256";
|
|
548
1058
|
readonly name: "amount";
|
|
549
1059
|
readonly type: "uint256";
|
|
@@ -554,35 +1064,43 @@ export declare class ILendingPool__factory {
|
|
|
554
1064
|
readonly type: "function";
|
|
555
1065
|
}, {
|
|
556
1066
|
readonly inputs: readonly [{
|
|
557
|
-
readonly internalType: "
|
|
558
|
-
readonly name: "
|
|
559
|
-
readonly type: "
|
|
1067
|
+
readonly internalType: "uint256";
|
|
1068
|
+
readonly name: "tokenId";
|
|
1069
|
+
readonly type: "uint256";
|
|
560
1070
|
}, {
|
|
561
1071
|
readonly internalType: "uint256";
|
|
562
|
-
readonly name: "
|
|
1072
|
+
readonly name: "amount";
|
|
563
1073
|
readonly type: "uint256";
|
|
1074
|
+
}, {
|
|
1075
|
+
readonly internalType: "address";
|
|
1076
|
+
readonly name: "onBehalfOf";
|
|
1077
|
+
readonly type: "address";
|
|
564
1078
|
}];
|
|
565
|
-
readonly name: "
|
|
1079
|
+
readonly name: "repayOnBehalf";
|
|
566
1080
|
readonly outputs: readonly [];
|
|
567
1081
|
readonly stateMutability: "nonpayable";
|
|
568
1082
|
readonly type: "function";
|
|
569
1083
|
}, {
|
|
570
1084
|
readonly inputs: readonly [{
|
|
1085
|
+
readonly internalType: "enum ILendingPool.OwnerParameter";
|
|
1086
|
+
readonly name: "param";
|
|
1087
|
+
readonly type: "uint8";
|
|
1088
|
+
}, {
|
|
571
1089
|
readonly internalType: "uint256";
|
|
572
|
-
readonly name: "
|
|
1090
|
+
readonly name: "newValue";
|
|
573
1091
|
readonly type: "uint256";
|
|
574
1092
|
}];
|
|
575
|
-
readonly name: "
|
|
1093
|
+
readonly name: "setParameter";
|
|
576
1094
|
readonly outputs: readonly [];
|
|
577
1095
|
readonly stateMutability: "nonpayable";
|
|
578
1096
|
readonly type: "function";
|
|
579
1097
|
}, {
|
|
580
1098
|
readonly inputs: readonly [{
|
|
581
1099
|
readonly internalType: "uint256";
|
|
582
|
-
readonly name: "
|
|
1100
|
+
readonly name: "newPrimeRate";
|
|
583
1101
|
readonly type: "uint256";
|
|
584
1102
|
}];
|
|
585
|
-
readonly name: "
|
|
1103
|
+
readonly name: "setPrimeRate";
|
|
586
1104
|
readonly outputs: readonly [];
|
|
587
1105
|
readonly stateMutability: "nonpayable";
|
|
588
1106
|
readonly type: "function";
|
|
@@ -616,6 +1134,16 @@ export declare class ILendingPool__factory {
|
|
|
616
1134
|
readonly outputs: readonly [];
|
|
617
1135
|
readonly stateMutability: "nonpayable";
|
|
618
1136
|
readonly type: "function";
|
|
1137
|
+
}, {
|
|
1138
|
+
readonly inputs: readonly [{
|
|
1139
|
+
readonly internalType: "address";
|
|
1140
|
+
readonly name: "user";
|
|
1141
|
+
readonly type: "address";
|
|
1142
|
+
}];
|
|
1143
|
+
readonly name: "updateUserReward";
|
|
1144
|
+
readonly outputs: readonly [];
|
|
1145
|
+
readonly stateMutability: "nonpayable";
|
|
1146
|
+
readonly type: "function";
|
|
619
1147
|
}, {
|
|
620
1148
|
readonly inputs: readonly [{
|
|
621
1149
|
readonly internalType: "uint256";
|