@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
package/dist/types/typechain-types/contracts/interfaces/core/pools/LendingPool/ILendingPool.d.ts
CHANGED
|
@@ -1,50 +1,142 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../../../common";
|
|
3
|
+
export declare namespace ILendingPool {
|
|
4
|
+
type NFTPositionViewStruct = {
|
|
5
|
+
rawDebtBalance: BigNumberish;
|
|
6
|
+
scaledDebtBalance: BigNumberish;
|
|
7
|
+
healthFactor: BigNumberish;
|
|
8
|
+
isUnderLiquidation: boolean;
|
|
9
|
+
liquidationStartTime: BigNumberish;
|
|
10
|
+
positionIndex: BigNumberish;
|
|
11
|
+
isInsured: boolean;
|
|
12
|
+
};
|
|
13
|
+
type NFTPositionViewStructOutput = [
|
|
14
|
+
rawDebtBalance: bigint,
|
|
15
|
+
scaledDebtBalance: bigint,
|
|
16
|
+
healthFactor: bigint,
|
|
17
|
+
isUnderLiquidation: boolean,
|
|
18
|
+
liquidationStartTime: bigint,
|
|
19
|
+
positionIndex: bigint,
|
|
20
|
+
isInsured: boolean
|
|
21
|
+
] & {
|
|
22
|
+
rawDebtBalance: bigint;
|
|
23
|
+
scaledDebtBalance: bigint;
|
|
24
|
+
healthFactor: bigint;
|
|
25
|
+
isUnderLiquidation: boolean;
|
|
26
|
+
liquidationStartTime: bigint;
|
|
27
|
+
positionIndex: bigint;
|
|
28
|
+
isInsured: boolean;
|
|
29
|
+
};
|
|
30
|
+
type UserDataViewStruct = {
|
|
31
|
+
nftTokenIds: BigNumberish[];
|
|
32
|
+
scaledDebtBalance: BigNumberish;
|
|
33
|
+
collateralValue: BigNumberish;
|
|
34
|
+
positions: ILendingPool.NFTPositionViewStruct[];
|
|
35
|
+
};
|
|
36
|
+
type UserDataViewStructOutput = [
|
|
37
|
+
nftTokenIds: bigint[],
|
|
38
|
+
scaledDebtBalance: bigint,
|
|
39
|
+
collateralValue: bigint,
|
|
40
|
+
positions: ILendingPool.NFTPositionViewStructOutput[]
|
|
41
|
+
] & {
|
|
42
|
+
nftTokenIds: bigint[];
|
|
43
|
+
scaledDebtBalance: bigint;
|
|
44
|
+
collateralValue: bigint;
|
|
45
|
+
positions: ILendingPool.NFTPositionViewStructOutput[];
|
|
46
|
+
};
|
|
47
|
+
type NFTPositionStruct = {
|
|
48
|
+
rawDebtBalance: BigNumberish;
|
|
49
|
+
isUnderLiquidation: boolean;
|
|
50
|
+
liquidationStartTime: BigNumberish;
|
|
51
|
+
positionIndex: BigNumberish;
|
|
52
|
+
isInsured: boolean;
|
|
53
|
+
rawInsuredBalance: BigNumberish;
|
|
54
|
+
};
|
|
55
|
+
type NFTPositionStructOutput = [
|
|
56
|
+
rawDebtBalance: bigint,
|
|
57
|
+
isUnderLiquidation: boolean,
|
|
58
|
+
liquidationStartTime: bigint,
|
|
59
|
+
positionIndex: bigint,
|
|
60
|
+
isInsured: boolean,
|
|
61
|
+
rawInsuredBalance: bigint
|
|
62
|
+
] & {
|
|
63
|
+
rawDebtBalance: bigint;
|
|
64
|
+
isUnderLiquidation: boolean;
|
|
65
|
+
liquidationStartTime: bigint;
|
|
66
|
+
positionIndex: bigint;
|
|
67
|
+
isInsured: boolean;
|
|
68
|
+
rawInsuredBalance: bigint;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
3
71
|
export interface ILendingPoolInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "borrow" | "calculateHealthFactor" | "closeLiquidation" | "deposit" | "depositNFT" | "finalizeLiquidation" | "getNFTPrice" | "getNormalizedDebt" | "getNormalizedIncome" | "getUserCollateralValue" | "getUserDebt" | "initiateLiquidation" | "onERC721Received" | "repay" | "
|
|
5
|
-
getEvent(nameOrSignatureOrTopic: "Borrow" | "CanPaybackDebtChanged" | "
|
|
6
|
-
encodeFunctionData(functionFragment: "borrow", values: [BigNumberish]): string;
|
|
7
|
-
encodeFunctionData(functionFragment: "calculateHealthFactor", values: [AddressLike]): string;
|
|
8
|
-
encodeFunctionData(functionFragment: "
|
|
72
|
+
getFunction(nameOrSignature: "borrow" | "calculateHealthFactor" | "claimCollectorRewards" | "claimReward" | "closeLiquidation" | "deposit" | "depositNFT" | "depositRewardTokens" | "finalizeLiquidation" | "getAllUserData" | "getNFTPrice" | "getNormalizedDebt" | "getNormalizedIncome" | "getPendingReward" | "getPosition" | "getPositionData" | "getPositionDebt" | "getPositionScaledDebt" | "getPositionsScaledDebt" | "getRAACNFTAddress" | "getUserCollateralValue" | "getUserDebt" | "initiateLiquidation" | "onERC721Received" | "repay" | "repayOnBehalf" | "setParameter" | "setPrimeRate" | "setStabilityPool" | "transferAccruedDust" | "updateState" | "updateUserReward" | "withdraw" | "withdrawNFT"): FunctionFragment;
|
|
73
|
+
getEvent(nameOrSignatureOrTopic: "Borrow" | "CanPaybackDebtChanged" | "Deposit" | "FeeCollectorUpdated" | "InsufficientFees" | "InsuranceFeeUpdated" | "InsuredNFT" | "Liquidation" | "LiquidationClosed" | "LiquidationFinalized" | "LiquidationInitiated" | "LiquidationParametersUpdated" | "LiquidityBufferRatioUpdated" | "LiquidityRebalanced" | "NFTDeposited" | "NFTWithdrawn" | "NotFeeCollector" | "ProtocolFeeRateUpdated" | "ProtocolFeesCollected" | "ProtocolFeesWithdrawn" | "Repay" | "RewardClaimed" | "RewardDistributed" | "RewardParametersUpdated" | "RewardTokenAdded" | "RewardTokensDeposited" | "StabilityPoolUpdated" | "VaultRewardsClaimed" | "VaultUpdated" | "VaultWithdrawalFailed" | "Withdraw" | "WithdrawalsPauseStatusChanged"): EventFragment;
|
|
74
|
+
encodeFunctionData(functionFragment: "borrow", values: [BigNumberish, BigNumberish]): string;
|
|
75
|
+
encodeFunctionData(functionFragment: "calculateHealthFactor", values: [AddressLike, BigNumberish]): string;
|
|
76
|
+
encodeFunctionData(functionFragment: "claimCollectorRewards", values?: undefined): string;
|
|
77
|
+
encodeFunctionData(functionFragment: "claimReward", values?: undefined): string;
|
|
78
|
+
encodeFunctionData(functionFragment: "closeLiquidation", values: [BigNumberish]): string;
|
|
9
79
|
encodeFunctionData(functionFragment: "deposit", values: [BigNumberish]): string;
|
|
10
80
|
encodeFunctionData(functionFragment: "depositNFT", values: [BigNumberish]): string;
|
|
11
|
-
encodeFunctionData(functionFragment: "
|
|
81
|
+
encodeFunctionData(functionFragment: "depositRewardTokens", values: [BigNumberish]): string;
|
|
82
|
+
encodeFunctionData(functionFragment: "finalizeLiquidation", values: [AddressLike, BigNumberish]): string;
|
|
83
|
+
encodeFunctionData(functionFragment: "getAllUserData", values: [AddressLike]): string;
|
|
12
84
|
encodeFunctionData(functionFragment: "getNFTPrice", values: [BigNumberish]): string;
|
|
13
85
|
encodeFunctionData(functionFragment: "getNormalizedDebt", values?: undefined): string;
|
|
14
86
|
encodeFunctionData(functionFragment: "getNormalizedIncome", values?: undefined): string;
|
|
87
|
+
encodeFunctionData(functionFragment: "getPendingReward", values: [AddressLike]): string;
|
|
88
|
+
encodeFunctionData(functionFragment: "getPosition", values: [AddressLike, BigNumberish]): string;
|
|
89
|
+
encodeFunctionData(functionFragment: "getPositionData", values: [AddressLike, BigNumberish]): string;
|
|
90
|
+
encodeFunctionData(functionFragment: "getPositionDebt", values: [AddressLike, BigNumberish]): string;
|
|
91
|
+
encodeFunctionData(functionFragment: "getPositionScaledDebt", values: [AddressLike, BigNumberish]): string;
|
|
92
|
+
encodeFunctionData(functionFragment: "getPositionsScaledDebt", values: [AddressLike]): string;
|
|
93
|
+
encodeFunctionData(functionFragment: "getRAACNFTAddress", values?: undefined): string;
|
|
15
94
|
encodeFunctionData(functionFragment: "getUserCollateralValue", values: [AddressLike]): string;
|
|
16
95
|
encodeFunctionData(functionFragment: "getUserDebt", values: [AddressLike]): string;
|
|
17
|
-
encodeFunctionData(functionFragment: "initiateLiquidation", values: [AddressLike]): string;
|
|
96
|
+
encodeFunctionData(functionFragment: "initiateLiquidation", values: [AddressLike, BigNumberish]): string;
|
|
18
97
|
encodeFunctionData(functionFragment: "onERC721Received", values: [AddressLike, AddressLike, BigNumberish, BytesLike]): string;
|
|
19
|
-
encodeFunctionData(functionFragment: "repay", values: [BigNumberish]): string;
|
|
98
|
+
encodeFunctionData(functionFragment: "repay", values: [BigNumberish, BigNumberish]): string;
|
|
99
|
+
encodeFunctionData(functionFragment: "repayOnBehalf", values: [BigNumberish, BigNumberish, AddressLike]): string;
|
|
20
100
|
encodeFunctionData(functionFragment: "setParameter", values: [BigNumberish, BigNumberish]): string;
|
|
21
101
|
encodeFunctionData(functionFragment: "setPrimeRate", values: [BigNumberish]): string;
|
|
22
|
-
encodeFunctionData(functionFragment: "setProtocolFeeRate", values: [BigNumberish]): string;
|
|
23
102
|
encodeFunctionData(functionFragment: "setStabilityPool", values: [AddressLike]): string;
|
|
24
103
|
encodeFunctionData(functionFragment: "transferAccruedDust", values: [AddressLike, BigNumberish]): string;
|
|
25
104
|
encodeFunctionData(functionFragment: "updateState", values?: undefined): string;
|
|
105
|
+
encodeFunctionData(functionFragment: "updateUserReward", values: [AddressLike]): string;
|
|
26
106
|
encodeFunctionData(functionFragment: "withdraw", values: [BigNumberish]): string;
|
|
27
107
|
encodeFunctionData(functionFragment: "withdrawNFT", values: [BigNumberish]): string;
|
|
28
108
|
decodeFunctionResult(functionFragment: "borrow", data: BytesLike): Result;
|
|
29
109
|
decodeFunctionResult(functionFragment: "calculateHealthFactor", data: BytesLike): Result;
|
|
110
|
+
decodeFunctionResult(functionFragment: "claimCollectorRewards", data: BytesLike): Result;
|
|
111
|
+
decodeFunctionResult(functionFragment: "claimReward", data: BytesLike): Result;
|
|
30
112
|
decodeFunctionResult(functionFragment: "closeLiquidation", data: BytesLike): Result;
|
|
31
113
|
decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
|
|
32
114
|
decodeFunctionResult(functionFragment: "depositNFT", data: BytesLike): Result;
|
|
115
|
+
decodeFunctionResult(functionFragment: "depositRewardTokens", data: BytesLike): Result;
|
|
33
116
|
decodeFunctionResult(functionFragment: "finalizeLiquidation", data: BytesLike): Result;
|
|
117
|
+
decodeFunctionResult(functionFragment: "getAllUserData", data: BytesLike): Result;
|
|
34
118
|
decodeFunctionResult(functionFragment: "getNFTPrice", data: BytesLike): Result;
|
|
35
119
|
decodeFunctionResult(functionFragment: "getNormalizedDebt", data: BytesLike): Result;
|
|
36
120
|
decodeFunctionResult(functionFragment: "getNormalizedIncome", data: BytesLike): Result;
|
|
121
|
+
decodeFunctionResult(functionFragment: "getPendingReward", data: BytesLike): Result;
|
|
122
|
+
decodeFunctionResult(functionFragment: "getPosition", data: BytesLike): Result;
|
|
123
|
+
decodeFunctionResult(functionFragment: "getPositionData", data: BytesLike): Result;
|
|
124
|
+
decodeFunctionResult(functionFragment: "getPositionDebt", data: BytesLike): Result;
|
|
125
|
+
decodeFunctionResult(functionFragment: "getPositionScaledDebt", data: BytesLike): Result;
|
|
126
|
+
decodeFunctionResult(functionFragment: "getPositionsScaledDebt", data: BytesLike): Result;
|
|
127
|
+
decodeFunctionResult(functionFragment: "getRAACNFTAddress", data: BytesLike): Result;
|
|
37
128
|
decodeFunctionResult(functionFragment: "getUserCollateralValue", data: BytesLike): Result;
|
|
38
129
|
decodeFunctionResult(functionFragment: "getUserDebt", data: BytesLike): Result;
|
|
39
130
|
decodeFunctionResult(functionFragment: "initiateLiquidation", data: BytesLike): Result;
|
|
40
131
|
decodeFunctionResult(functionFragment: "onERC721Received", data: BytesLike): Result;
|
|
41
132
|
decodeFunctionResult(functionFragment: "repay", data: BytesLike): Result;
|
|
133
|
+
decodeFunctionResult(functionFragment: "repayOnBehalf", data: BytesLike): Result;
|
|
42
134
|
decodeFunctionResult(functionFragment: "setParameter", data: BytesLike): Result;
|
|
43
135
|
decodeFunctionResult(functionFragment: "setPrimeRate", data: BytesLike): Result;
|
|
44
|
-
decodeFunctionResult(functionFragment: "setProtocolFeeRate", data: BytesLike): Result;
|
|
45
136
|
decodeFunctionResult(functionFragment: "setStabilityPool", data: BytesLike): Result;
|
|
46
137
|
decodeFunctionResult(functionFragment: "transferAccruedDust", data: BytesLike): Result;
|
|
47
138
|
decodeFunctionResult(functionFragment: "updateState", data: BytesLike): Result;
|
|
139
|
+
decodeFunctionResult(functionFragment: "updateUserReward", data: BytesLike): Result;
|
|
48
140
|
decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
|
|
49
141
|
decodeFunctionResult(functionFragment: "withdrawNFT", data: BytesLike): Result;
|
|
50
142
|
}
|
|
@@ -71,18 +163,6 @@ export declare namespace CanPaybackDebtChangedEvent {
|
|
|
71
163
|
type Log = TypedEventLog<Event>;
|
|
72
164
|
type LogDescription = TypedLogDescription<Event>;
|
|
73
165
|
}
|
|
74
|
-
export declare namespace CurveVaultUpdatedEvent {
|
|
75
|
-
type InputTuple = [oldVault: AddressLike, newVault: AddressLike];
|
|
76
|
-
type OutputTuple = [oldVault: string, newVault: string];
|
|
77
|
-
interface OutputObject {
|
|
78
|
-
oldVault: string;
|
|
79
|
-
newVault: string;
|
|
80
|
-
}
|
|
81
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
82
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
83
|
-
type Log = TypedEventLog<Event>;
|
|
84
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
85
|
-
}
|
|
86
166
|
export declare namespace DepositEvent {
|
|
87
167
|
type InputTuple = [
|
|
88
168
|
user: AddressLike,
|
|
@@ -104,6 +184,58 @@ export declare namespace DepositEvent {
|
|
|
104
184
|
type Log = TypedEventLog<Event>;
|
|
105
185
|
type LogDescription = TypedLogDescription<Event>;
|
|
106
186
|
}
|
|
187
|
+
export declare namespace FeeCollectorUpdatedEvent {
|
|
188
|
+
type InputTuple = [
|
|
189
|
+
oldFeeCollector: AddressLike,
|
|
190
|
+
newFeeCollector: AddressLike
|
|
191
|
+
];
|
|
192
|
+
type OutputTuple = [oldFeeCollector: string, newFeeCollector: string];
|
|
193
|
+
interface OutputObject {
|
|
194
|
+
oldFeeCollector: string;
|
|
195
|
+
newFeeCollector: string;
|
|
196
|
+
}
|
|
197
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
198
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
199
|
+
type Log = TypedEventLog<Event>;
|
|
200
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
201
|
+
}
|
|
202
|
+
export declare namespace InsufficientFeesEvent {
|
|
203
|
+
type InputTuple = [];
|
|
204
|
+
type OutputTuple = [];
|
|
205
|
+
interface OutputObject {
|
|
206
|
+
}
|
|
207
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
208
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
209
|
+
type Log = TypedEventLog<Event>;
|
|
210
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
211
|
+
}
|
|
212
|
+
export declare namespace InsuranceFeeUpdatedEvent {
|
|
213
|
+
type InputTuple = [
|
|
214
|
+
oldInsuranceFee: BigNumberish,
|
|
215
|
+
newInsuranceFee: BigNumberish
|
|
216
|
+
];
|
|
217
|
+
type OutputTuple = [oldInsuranceFee: bigint, newInsuranceFee: bigint];
|
|
218
|
+
interface OutputObject {
|
|
219
|
+
oldInsuranceFee: bigint;
|
|
220
|
+
newInsuranceFee: bigint;
|
|
221
|
+
}
|
|
222
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
223
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
224
|
+
type Log = TypedEventLog<Event>;
|
|
225
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
226
|
+
}
|
|
227
|
+
export declare namespace InsuredNFTEvent {
|
|
228
|
+
type InputTuple = [tokenId: BigNumberish, amount: BigNumberish];
|
|
229
|
+
type OutputTuple = [tokenId: bigint, amount: bigint];
|
|
230
|
+
interface OutputObject {
|
|
231
|
+
tokenId: bigint;
|
|
232
|
+
amount: bigint;
|
|
233
|
+
}
|
|
234
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
235
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
236
|
+
type Log = TypedEventLog<Event>;
|
|
237
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
238
|
+
}
|
|
107
239
|
export declare namespace LiquidationEvent {
|
|
108
240
|
type InputTuple = [
|
|
109
241
|
liquidator: AddressLike,
|
|
@@ -129,10 +261,11 @@ export declare namespace LiquidationEvent {
|
|
|
129
261
|
type LogDescription = TypedLogDescription<Event>;
|
|
130
262
|
}
|
|
131
263
|
export declare namespace LiquidationClosedEvent {
|
|
132
|
-
type InputTuple = [user: AddressLike];
|
|
133
|
-
type OutputTuple = [user: string];
|
|
264
|
+
type InputTuple = [user: AddressLike, tokenId: BigNumberish];
|
|
265
|
+
type OutputTuple = [user: string, tokenId: bigint];
|
|
134
266
|
interface OutputObject {
|
|
135
267
|
user: string;
|
|
268
|
+
tokenId: bigint;
|
|
136
269
|
}
|
|
137
270
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
138
271
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -143,18 +276,21 @@ export declare namespace LiquidationFinalizedEvent {
|
|
|
143
276
|
type InputTuple = [
|
|
144
277
|
liquidator: AddressLike,
|
|
145
278
|
user: AddressLike,
|
|
279
|
+
tokenId: BigNumberish,
|
|
146
280
|
debtRepaid: BigNumberish,
|
|
147
281
|
collateralLiquidated: BigNumberish
|
|
148
282
|
];
|
|
149
283
|
type OutputTuple = [
|
|
150
284
|
liquidator: string,
|
|
151
285
|
user: string,
|
|
286
|
+
tokenId: bigint,
|
|
152
287
|
debtRepaid: bigint,
|
|
153
288
|
collateralLiquidated: bigint
|
|
154
289
|
];
|
|
155
290
|
interface OutputObject {
|
|
156
291
|
liquidator: string;
|
|
157
292
|
user: string;
|
|
293
|
+
tokenId: bigint;
|
|
158
294
|
debtRepaid: bigint;
|
|
159
295
|
collateralLiquidated: bigint;
|
|
160
296
|
}
|
|
@@ -164,11 +300,16 @@ export declare namespace LiquidationFinalizedEvent {
|
|
|
164
300
|
type LogDescription = TypedLogDescription<Event>;
|
|
165
301
|
}
|
|
166
302
|
export declare namespace LiquidationInitiatedEvent {
|
|
167
|
-
type InputTuple = [
|
|
168
|
-
|
|
303
|
+
type InputTuple = [
|
|
304
|
+
liquidator: AddressLike,
|
|
305
|
+
user: AddressLike,
|
|
306
|
+
tokenId: BigNumberish
|
|
307
|
+
];
|
|
308
|
+
type OutputTuple = [liquidator: string, user: string, tokenId: bigint];
|
|
169
309
|
interface OutputObject {
|
|
170
310
|
liquidator: string;
|
|
171
311
|
user: string;
|
|
312
|
+
tokenId: bigint;
|
|
172
313
|
}
|
|
173
314
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
174
315
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -247,6 +388,58 @@ export declare namespace NFTWithdrawnEvent {
|
|
|
247
388
|
type Log = TypedEventLog<Event>;
|
|
248
389
|
type LogDescription = TypedLogDescription<Event>;
|
|
249
390
|
}
|
|
391
|
+
export declare namespace NotFeeCollectorEvent {
|
|
392
|
+
type InputTuple = [];
|
|
393
|
+
type OutputTuple = [];
|
|
394
|
+
interface OutputObject {
|
|
395
|
+
}
|
|
396
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
397
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
398
|
+
type Log = TypedEventLog<Event>;
|
|
399
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
400
|
+
}
|
|
401
|
+
export declare namespace ProtocolFeeRateUpdatedEvent {
|
|
402
|
+
type InputTuple = [oldValue: BigNumberish, newValue: BigNumberish];
|
|
403
|
+
type OutputTuple = [oldValue: bigint, newValue: bigint];
|
|
404
|
+
interface OutputObject {
|
|
405
|
+
oldValue: bigint;
|
|
406
|
+
newValue: bigint;
|
|
407
|
+
}
|
|
408
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
409
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
410
|
+
type Log = TypedEventLog<Event>;
|
|
411
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
412
|
+
}
|
|
413
|
+
export declare namespace ProtocolFeesCollectedEvent {
|
|
414
|
+
type InputTuple = [
|
|
415
|
+
protocolFee: BigNumberish,
|
|
416
|
+
accumulatedProtocolFees: BigNumberish
|
|
417
|
+
];
|
|
418
|
+
type OutputTuple = [
|
|
419
|
+
protocolFee: bigint,
|
|
420
|
+
accumulatedProtocolFees: bigint
|
|
421
|
+
];
|
|
422
|
+
interface OutputObject {
|
|
423
|
+
protocolFee: bigint;
|
|
424
|
+
accumulatedProtocolFees: bigint;
|
|
425
|
+
}
|
|
426
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
427
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
428
|
+
type Log = TypedEventLog<Event>;
|
|
429
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
430
|
+
}
|
|
431
|
+
export declare namespace ProtocolFeesWithdrawnEvent {
|
|
432
|
+
type InputTuple = [feeCollector: AddressLike, amount: BigNumberish];
|
|
433
|
+
type OutputTuple = [feeCollector: string, amount: bigint];
|
|
434
|
+
interface OutputObject {
|
|
435
|
+
feeCollector: string;
|
|
436
|
+
amount: bigint;
|
|
437
|
+
}
|
|
438
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
439
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
440
|
+
type Log = TypedEventLog<Event>;
|
|
441
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
442
|
+
}
|
|
250
443
|
export declare namespace RepayEvent {
|
|
251
444
|
type InputTuple = [
|
|
252
445
|
user: AddressLike,
|
|
@@ -264,6 +457,89 @@ export declare namespace RepayEvent {
|
|
|
264
457
|
type Log = TypedEventLog<Event>;
|
|
265
458
|
type LogDescription = TypedLogDescription<Event>;
|
|
266
459
|
}
|
|
460
|
+
export declare namespace RewardClaimedEvent {
|
|
461
|
+
type InputTuple = [
|
|
462
|
+
user: AddressLike,
|
|
463
|
+
token: AddressLike,
|
|
464
|
+
amount: BigNumberish
|
|
465
|
+
];
|
|
466
|
+
type OutputTuple = [user: string, token: string, amount: bigint];
|
|
467
|
+
interface OutputObject {
|
|
468
|
+
user: string;
|
|
469
|
+
token: string;
|
|
470
|
+
amount: bigint;
|
|
471
|
+
}
|
|
472
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
473
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
474
|
+
type Log = TypedEventLog<Event>;
|
|
475
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
476
|
+
}
|
|
477
|
+
export declare namespace RewardDistributedEvent {
|
|
478
|
+
type InputTuple = [user: AddressLike, amount: BigNumberish];
|
|
479
|
+
type OutputTuple = [user: string, amount: bigint];
|
|
480
|
+
interface OutputObject {
|
|
481
|
+
user: string;
|
|
482
|
+
amount: bigint;
|
|
483
|
+
}
|
|
484
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
485
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
486
|
+
type Log = TypedEventLog<Event>;
|
|
487
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
488
|
+
}
|
|
489
|
+
export declare namespace RewardParametersUpdatedEvent {
|
|
490
|
+
type InputTuple = [
|
|
491
|
+
token: AddressLike,
|
|
492
|
+
rewardRate: BigNumberish,
|
|
493
|
+
duration: BigNumberish
|
|
494
|
+
];
|
|
495
|
+
type OutputTuple = [
|
|
496
|
+
token: string,
|
|
497
|
+
rewardRate: bigint,
|
|
498
|
+
duration: bigint
|
|
499
|
+
];
|
|
500
|
+
interface OutputObject {
|
|
501
|
+
token: string;
|
|
502
|
+
rewardRate: bigint;
|
|
503
|
+
duration: bigint;
|
|
504
|
+
}
|
|
505
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
506
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
507
|
+
type Log = TypedEventLog<Event>;
|
|
508
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
509
|
+
}
|
|
510
|
+
export declare namespace RewardTokenAddedEvent {
|
|
511
|
+
type InputTuple = [
|
|
512
|
+
token: AddressLike,
|
|
513
|
+
rewardRate: BigNumberish,
|
|
514
|
+
duration: BigNumberish
|
|
515
|
+
];
|
|
516
|
+
type OutputTuple = [
|
|
517
|
+
token: string,
|
|
518
|
+
rewardRate: bigint,
|
|
519
|
+
duration: bigint
|
|
520
|
+
];
|
|
521
|
+
interface OutputObject {
|
|
522
|
+
token: string;
|
|
523
|
+
rewardRate: bigint;
|
|
524
|
+
duration: bigint;
|
|
525
|
+
}
|
|
526
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
527
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
528
|
+
type Log = TypedEventLog<Event>;
|
|
529
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
530
|
+
}
|
|
531
|
+
export declare namespace RewardTokensDepositedEvent {
|
|
532
|
+
type InputTuple = [user: AddressLike, amount: BigNumberish];
|
|
533
|
+
type OutputTuple = [user: string, amount: bigint];
|
|
534
|
+
interface OutputObject {
|
|
535
|
+
user: string;
|
|
536
|
+
amount: bigint;
|
|
537
|
+
}
|
|
538
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
539
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
540
|
+
type Log = TypedEventLog<Event>;
|
|
541
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
542
|
+
}
|
|
267
543
|
export declare namespace StabilityPoolUpdatedEvent {
|
|
268
544
|
type InputTuple = [
|
|
269
545
|
oldStabilityPool: AddressLike,
|
|
@@ -282,6 +558,40 @@ export declare namespace StabilityPoolUpdatedEvent {
|
|
|
282
558
|
type Log = TypedEventLog<Event>;
|
|
283
559
|
type LogDescription = TypedLogDescription<Event>;
|
|
284
560
|
}
|
|
561
|
+
export declare namespace VaultRewardsClaimedEvent {
|
|
562
|
+
type InputTuple = [amount: BigNumberish];
|
|
563
|
+
type OutputTuple = [amount: bigint];
|
|
564
|
+
interface OutputObject {
|
|
565
|
+
amount: bigint;
|
|
566
|
+
}
|
|
567
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
568
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
569
|
+
type Log = TypedEventLog<Event>;
|
|
570
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
571
|
+
}
|
|
572
|
+
export declare namespace VaultUpdatedEvent {
|
|
573
|
+
type InputTuple = [oldVault: AddressLike, newVault: AddressLike];
|
|
574
|
+
type OutputTuple = [oldVault: string, newVault: string];
|
|
575
|
+
interface OutputObject {
|
|
576
|
+
oldVault: string;
|
|
577
|
+
newVault: string;
|
|
578
|
+
}
|
|
579
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
580
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
581
|
+
type Log = TypedEventLog<Event>;
|
|
582
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
583
|
+
}
|
|
584
|
+
export declare namespace VaultWithdrawalFailedEvent {
|
|
585
|
+
type InputTuple = [vault: AddressLike];
|
|
586
|
+
type OutputTuple = [vault: string];
|
|
587
|
+
interface OutputObject {
|
|
588
|
+
vault: string;
|
|
589
|
+
}
|
|
590
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
591
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
592
|
+
type Log = TypedEventLog<Event>;
|
|
593
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
594
|
+
}
|
|
285
595
|
export declare namespace WithdrawEvent {
|
|
286
596
|
type InputTuple = [user: AddressLike, amount: BigNumberish];
|
|
287
597
|
type OutputTuple = [user: string, amount: bigint];
|
|
@@ -318,27 +628,81 @@ export interface ILendingPool extends BaseContract {
|
|
|
318
628
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
319
629
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
320
630
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
321
|
-
borrow: TypedContractMethod<[
|
|
631
|
+
borrow: TypedContractMethod<[
|
|
632
|
+
tokenId: BigNumberish,
|
|
633
|
+
amount: BigNumberish
|
|
634
|
+
], [
|
|
635
|
+
void
|
|
636
|
+
], "nonpayable">;
|
|
322
637
|
calculateHealthFactor: TypedContractMethod<[
|
|
323
|
-
userAddress: AddressLike
|
|
638
|
+
userAddress: AddressLike,
|
|
639
|
+
tokenId: BigNumberish
|
|
324
640
|
], [
|
|
325
641
|
bigint
|
|
326
642
|
], "view">;
|
|
327
|
-
|
|
643
|
+
claimCollectorRewards: TypedContractMethod<[], [bigint], "nonpayable">;
|
|
644
|
+
claimReward: TypedContractMethod<[], [boolean], "nonpayable">;
|
|
645
|
+
closeLiquidation: TypedContractMethod<[
|
|
646
|
+
tokenId: BigNumberish
|
|
647
|
+
], [
|
|
648
|
+
void
|
|
649
|
+
], "nonpayable">;
|
|
328
650
|
deposit: TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
|
|
329
651
|
depositNFT: TypedContractMethod<[
|
|
330
652
|
tokenId: BigNumberish
|
|
331
653
|
], [
|
|
332
654
|
void
|
|
333
655
|
], "nonpayable">;
|
|
656
|
+
depositRewardTokens: TypedContractMethod<[
|
|
657
|
+
amount: BigNumberish
|
|
658
|
+
], [
|
|
659
|
+
void
|
|
660
|
+
], "nonpayable">;
|
|
334
661
|
finalizeLiquidation: TypedContractMethod<[
|
|
335
|
-
userAddress: AddressLike
|
|
662
|
+
userAddress: AddressLike,
|
|
663
|
+
tokenId: BigNumberish
|
|
336
664
|
], [
|
|
337
665
|
void
|
|
338
666
|
], "nonpayable">;
|
|
667
|
+
getAllUserData: TypedContractMethod<[
|
|
668
|
+
userAddress: AddressLike
|
|
669
|
+
], [
|
|
670
|
+
ILendingPool.UserDataViewStructOutput
|
|
671
|
+
], "view">;
|
|
339
672
|
getNFTPrice: TypedContractMethod<[tokenId: BigNumberish], [bigint], "view">;
|
|
340
673
|
getNormalizedDebt: TypedContractMethod<[], [bigint], "view">;
|
|
341
674
|
getNormalizedIncome: TypedContractMethod<[], [bigint], "view">;
|
|
675
|
+
getPendingReward: TypedContractMethod<[user: AddressLike], [bigint], "view">;
|
|
676
|
+
getPosition: TypedContractMethod<[
|
|
677
|
+
userAddress: AddressLike,
|
|
678
|
+
tokenId: BigNumberish
|
|
679
|
+
], [
|
|
680
|
+
ILendingPool.NFTPositionStructOutput
|
|
681
|
+
], "view">;
|
|
682
|
+
getPositionData: TypedContractMethod<[
|
|
683
|
+
userAddress: AddressLike,
|
|
684
|
+
tokenId: BigNumberish
|
|
685
|
+
], [
|
|
686
|
+
[bigint, bigint]
|
|
687
|
+
], "view">;
|
|
688
|
+
getPositionDebt: TypedContractMethod<[
|
|
689
|
+
userAddress: AddressLike,
|
|
690
|
+
tokenId: BigNumberish
|
|
691
|
+
], [
|
|
692
|
+
bigint
|
|
693
|
+
], "view">;
|
|
694
|
+
getPositionScaledDebt: TypedContractMethod<[
|
|
695
|
+
userAddress: AddressLike,
|
|
696
|
+
tokenId: BigNumberish
|
|
697
|
+
], [
|
|
698
|
+
bigint
|
|
699
|
+
], "view">;
|
|
700
|
+
getPositionsScaledDebt: TypedContractMethod<[
|
|
701
|
+
userAddress: AddressLike
|
|
702
|
+
], [
|
|
703
|
+
bigint
|
|
704
|
+
], "view">;
|
|
705
|
+
getRAACNFTAddress: TypedContractMethod<[], [string], "view">;
|
|
342
706
|
getUserCollateralValue: TypedContractMethod<[
|
|
343
707
|
userAddress: AddressLike
|
|
344
708
|
], [
|
|
@@ -350,7 +714,8 @@ export interface ILendingPool extends BaseContract {
|
|
|
350
714
|
bigint
|
|
351
715
|
], "view">;
|
|
352
716
|
initiateLiquidation: TypedContractMethod<[
|
|
353
|
-
userAddress: AddressLike
|
|
717
|
+
userAddress: AddressLike,
|
|
718
|
+
tokenId: BigNumberish
|
|
354
719
|
], [
|
|
355
720
|
void
|
|
356
721
|
], "nonpayable">;
|
|
@@ -362,7 +727,19 @@ export interface ILendingPool extends BaseContract {
|
|
|
362
727
|
], [
|
|
363
728
|
string
|
|
364
729
|
], "nonpayable">;
|
|
365
|
-
repay: TypedContractMethod<[
|
|
730
|
+
repay: TypedContractMethod<[
|
|
731
|
+
tokenId: BigNumberish,
|
|
732
|
+
amount: BigNumberish
|
|
733
|
+
], [
|
|
734
|
+
void
|
|
735
|
+
], "nonpayable">;
|
|
736
|
+
repayOnBehalf: TypedContractMethod<[
|
|
737
|
+
tokenId: BigNumberish,
|
|
738
|
+
amount: BigNumberish,
|
|
739
|
+
onBehalfOf: AddressLike
|
|
740
|
+
], [
|
|
741
|
+
void
|
|
742
|
+
], "nonpayable">;
|
|
366
743
|
setParameter: TypedContractMethod<[
|
|
367
744
|
param: BigNumberish,
|
|
368
745
|
newValue: BigNumberish
|
|
@@ -374,11 +751,6 @@ export interface ILendingPool extends BaseContract {
|
|
|
374
751
|
], [
|
|
375
752
|
void
|
|
376
753
|
], "nonpayable">;
|
|
377
|
-
setProtocolFeeRate: TypedContractMethod<[
|
|
378
|
-
newProtocolFeeRate: BigNumberish
|
|
379
|
-
], [
|
|
380
|
-
void
|
|
381
|
-
], "nonpayable">;
|
|
382
754
|
setStabilityPool: TypedContractMethod<[
|
|
383
755
|
newStabilityPool: AddressLike
|
|
384
756
|
], [
|
|
@@ -391,6 +763,11 @@ export interface ILendingPool extends BaseContract {
|
|
|
391
763
|
void
|
|
392
764
|
], "nonpayable">;
|
|
393
765
|
updateState: TypedContractMethod<[], [void], "nonpayable">;
|
|
766
|
+
updateUserReward: TypedContractMethod<[
|
|
767
|
+
user: AddressLike
|
|
768
|
+
], [
|
|
769
|
+
void
|
|
770
|
+
], "nonpayable">;
|
|
394
771
|
withdraw: TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
|
|
395
772
|
withdrawNFT: TypedContractMethod<[
|
|
396
773
|
tokenId: BigNumberish
|
|
@@ -398,18 +775,73 @@ export interface ILendingPool extends BaseContract {
|
|
|
398
775
|
void
|
|
399
776
|
], "nonpayable">;
|
|
400
777
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
401
|
-
getFunction(nameOrSignature: "borrow"): TypedContractMethod<[
|
|
402
|
-
|
|
403
|
-
|
|
778
|
+
getFunction(nameOrSignature: "borrow"): TypedContractMethod<[
|
|
779
|
+
tokenId: BigNumberish,
|
|
780
|
+
amount: BigNumberish
|
|
781
|
+
], [
|
|
782
|
+
void
|
|
783
|
+
], "nonpayable">;
|
|
784
|
+
getFunction(nameOrSignature: "calculateHealthFactor"): TypedContractMethod<[
|
|
785
|
+
userAddress: AddressLike,
|
|
786
|
+
tokenId: BigNumberish
|
|
787
|
+
], [
|
|
788
|
+
bigint
|
|
789
|
+
], "view">;
|
|
790
|
+
getFunction(nameOrSignature: "claimCollectorRewards"): TypedContractMethod<[], [bigint], "nonpayable">;
|
|
791
|
+
getFunction(nameOrSignature: "claimReward"): TypedContractMethod<[], [boolean], "nonpayable">;
|
|
792
|
+
getFunction(nameOrSignature: "closeLiquidation"): TypedContractMethod<[tokenId: BigNumberish], [void], "nonpayable">;
|
|
404
793
|
getFunction(nameOrSignature: "deposit"): TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
|
|
405
794
|
getFunction(nameOrSignature: "depositNFT"): TypedContractMethod<[tokenId: BigNumberish], [void], "nonpayable">;
|
|
406
|
-
getFunction(nameOrSignature: "
|
|
795
|
+
getFunction(nameOrSignature: "depositRewardTokens"): TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
|
|
796
|
+
getFunction(nameOrSignature: "finalizeLiquidation"): TypedContractMethod<[
|
|
797
|
+
userAddress: AddressLike,
|
|
798
|
+
tokenId: BigNumberish
|
|
799
|
+
], [
|
|
800
|
+
void
|
|
801
|
+
], "nonpayable">;
|
|
802
|
+
getFunction(nameOrSignature: "getAllUserData"): TypedContractMethod<[
|
|
803
|
+
userAddress: AddressLike
|
|
804
|
+
], [
|
|
805
|
+
ILendingPool.UserDataViewStructOutput
|
|
806
|
+
], "view">;
|
|
407
807
|
getFunction(nameOrSignature: "getNFTPrice"): TypedContractMethod<[tokenId: BigNumberish], [bigint], "view">;
|
|
408
808
|
getFunction(nameOrSignature: "getNormalizedDebt"): TypedContractMethod<[], [bigint], "view">;
|
|
409
809
|
getFunction(nameOrSignature: "getNormalizedIncome"): TypedContractMethod<[], [bigint], "view">;
|
|
810
|
+
getFunction(nameOrSignature: "getPendingReward"): TypedContractMethod<[user: AddressLike], [bigint], "view">;
|
|
811
|
+
getFunction(nameOrSignature: "getPosition"): TypedContractMethod<[
|
|
812
|
+
userAddress: AddressLike,
|
|
813
|
+
tokenId: BigNumberish
|
|
814
|
+
], [
|
|
815
|
+
ILendingPool.NFTPositionStructOutput
|
|
816
|
+
], "view">;
|
|
817
|
+
getFunction(nameOrSignature: "getPositionData"): TypedContractMethod<[
|
|
818
|
+
userAddress: AddressLike,
|
|
819
|
+
tokenId: BigNumberish
|
|
820
|
+
], [
|
|
821
|
+
[bigint, bigint]
|
|
822
|
+
], "view">;
|
|
823
|
+
getFunction(nameOrSignature: "getPositionDebt"): TypedContractMethod<[
|
|
824
|
+
userAddress: AddressLike,
|
|
825
|
+
tokenId: BigNumberish
|
|
826
|
+
], [
|
|
827
|
+
bigint
|
|
828
|
+
], "view">;
|
|
829
|
+
getFunction(nameOrSignature: "getPositionScaledDebt"): TypedContractMethod<[
|
|
830
|
+
userAddress: AddressLike,
|
|
831
|
+
tokenId: BigNumberish
|
|
832
|
+
], [
|
|
833
|
+
bigint
|
|
834
|
+
], "view">;
|
|
835
|
+
getFunction(nameOrSignature: "getPositionsScaledDebt"): TypedContractMethod<[userAddress: AddressLike], [bigint], "view">;
|
|
836
|
+
getFunction(nameOrSignature: "getRAACNFTAddress"): TypedContractMethod<[], [string], "view">;
|
|
410
837
|
getFunction(nameOrSignature: "getUserCollateralValue"): TypedContractMethod<[userAddress: AddressLike], [bigint], "view">;
|
|
411
838
|
getFunction(nameOrSignature: "getUserDebt"): TypedContractMethod<[userAddress: AddressLike], [bigint], "view">;
|
|
412
|
-
getFunction(nameOrSignature: "initiateLiquidation"): TypedContractMethod<[
|
|
839
|
+
getFunction(nameOrSignature: "initiateLiquidation"): TypedContractMethod<[
|
|
840
|
+
userAddress: AddressLike,
|
|
841
|
+
tokenId: BigNumberish
|
|
842
|
+
], [
|
|
843
|
+
void
|
|
844
|
+
], "nonpayable">;
|
|
413
845
|
getFunction(nameOrSignature: "onERC721Received"): TypedContractMethod<[
|
|
414
846
|
operator: AddressLike,
|
|
415
847
|
from: AddressLike,
|
|
@@ -418,7 +850,19 @@ export interface ILendingPool extends BaseContract {
|
|
|
418
850
|
], [
|
|
419
851
|
string
|
|
420
852
|
], "nonpayable">;
|
|
421
|
-
getFunction(nameOrSignature: "repay"): TypedContractMethod<[
|
|
853
|
+
getFunction(nameOrSignature: "repay"): TypedContractMethod<[
|
|
854
|
+
tokenId: BigNumberish,
|
|
855
|
+
amount: BigNumberish
|
|
856
|
+
], [
|
|
857
|
+
void
|
|
858
|
+
], "nonpayable">;
|
|
859
|
+
getFunction(nameOrSignature: "repayOnBehalf"): TypedContractMethod<[
|
|
860
|
+
tokenId: BigNumberish,
|
|
861
|
+
amount: BigNumberish,
|
|
862
|
+
onBehalfOf: AddressLike
|
|
863
|
+
], [
|
|
864
|
+
void
|
|
865
|
+
], "nonpayable">;
|
|
422
866
|
getFunction(nameOrSignature: "setParameter"): TypedContractMethod<[
|
|
423
867
|
param: BigNumberish,
|
|
424
868
|
newValue: BigNumberish
|
|
@@ -426,11 +870,6 @@ export interface ILendingPool extends BaseContract {
|
|
|
426
870
|
void
|
|
427
871
|
], "nonpayable">;
|
|
428
872
|
getFunction(nameOrSignature: "setPrimeRate"): TypedContractMethod<[newPrimeRate: BigNumberish], [void], "nonpayable">;
|
|
429
|
-
getFunction(nameOrSignature: "setProtocolFeeRate"): TypedContractMethod<[
|
|
430
|
-
newProtocolFeeRate: BigNumberish
|
|
431
|
-
], [
|
|
432
|
-
void
|
|
433
|
-
], "nonpayable">;
|
|
434
873
|
getFunction(nameOrSignature: "setStabilityPool"): TypedContractMethod<[newStabilityPool: AddressLike], [void], "nonpayable">;
|
|
435
874
|
getFunction(nameOrSignature: "transferAccruedDust"): TypedContractMethod<[
|
|
436
875
|
recipient: AddressLike,
|
|
@@ -439,12 +878,16 @@ export interface ILendingPool extends BaseContract {
|
|
|
439
878
|
void
|
|
440
879
|
], "nonpayable">;
|
|
441
880
|
getFunction(nameOrSignature: "updateState"): TypedContractMethod<[], [void], "nonpayable">;
|
|
881
|
+
getFunction(nameOrSignature: "updateUserReward"): TypedContractMethod<[user: AddressLike], [void], "nonpayable">;
|
|
442
882
|
getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
|
|
443
883
|
getFunction(nameOrSignature: "withdrawNFT"): TypedContractMethod<[tokenId: BigNumberish], [void], "nonpayable">;
|
|
444
884
|
getEvent(key: "Borrow"): TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
|
|
445
885
|
getEvent(key: "CanPaybackDebtChanged"): TypedContractEvent<CanPaybackDebtChangedEvent.InputTuple, CanPaybackDebtChangedEvent.OutputTuple, CanPaybackDebtChangedEvent.OutputObject>;
|
|
446
|
-
getEvent(key: "CurveVaultUpdated"): TypedContractEvent<CurveVaultUpdatedEvent.InputTuple, CurveVaultUpdatedEvent.OutputTuple, CurveVaultUpdatedEvent.OutputObject>;
|
|
447
886
|
getEvent(key: "Deposit"): TypedContractEvent<DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject>;
|
|
887
|
+
getEvent(key: "FeeCollectorUpdated"): TypedContractEvent<FeeCollectorUpdatedEvent.InputTuple, FeeCollectorUpdatedEvent.OutputTuple, FeeCollectorUpdatedEvent.OutputObject>;
|
|
888
|
+
getEvent(key: "InsufficientFees"): TypedContractEvent<InsufficientFeesEvent.InputTuple, InsufficientFeesEvent.OutputTuple, InsufficientFeesEvent.OutputObject>;
|
|
889
|
+
getEvent(key: "InsuranceFeeUpdated"): TypedContractEvent<InsuranceFeeUpdatedEvent.InputTuple, InsuranceFeeUpdatedEvent.OutputTuple, InsuranceFeeUpdatedEvent.OutputObject>;
|
|
890
|
+
getEvent(key: "InsuredNFT"): TypedContractEvent<InsuredNFTEvent.InputTuple, InsuredNFTEvent.OutputTuple, InsuredNFTEvent.OutputObject>;
|
|
448
891
|
getEvent(key: "Liquidation"): TypedContractEvent<LiquidationEvent.InputTuple, LiquidationEvent.OutputTuple, LiquidationEvent.OutputObject>;
|
|
449
892
|
getEvent(key: "LiquidationClosed"): TypedContractEvent<LiquidationClosedEvent.InputTuple, LiquidationClosedEvent.OutputTuple, LiquidationClosedEvent.OutputObject>;
|
|
450
893
|
getEvent(key: "LiquidationFinalized"): TypedContractEvent<LiquidationFinalizedEvent.InputTuple, LiquidationFinalizedEvent.OutputTuple, LiquidationFinalizedEvent.OutputObject>;
|
|
@@ -454,8 +897,20 @@ export interface ILendingPool extends BaseContract {
|
|
|
454
897
|
getEvent(key: "LiquidityRebalanced"): TypedContractEvent<LiquidityRebalancedEvent.InputTuple, LiquidityRebalancedEvent.OutputTuple, LiquidityRebalancedEvent.OutputObject>;
|
|
455
898
|
getEvent(key: "NFTDeposited"): TypedContractEvent<NFTDepositedEvent.InputTuple, NFTDepositedEvent.OutputTuple, NFTDepositedEvent.OutputObject>;
|
|
456
899
|
getEvent(key: "NFTWithdrawn"): TypedContractEvent<NFTWithdrawnEvent.InputTuple, NFTWithdrawnEvent.OutputTuple, NFTWithdrawnEvent.OutputObject>;
|
|
900
|
+
getEvent(key: "NotFeeCollector"): TypedContractEvent<NotFeeCollectorEvent.InputTuple, NotFeeCollectorEvent.OutputTuple, NotFeeCollectorEvent.OutputObject>;
|
|
901
|
+
getEvent(key: "ProtocolFeeRateUpdated"): TypedContractEvent<ProtocolFeeRateUpdatedEvent.InputTuple, ProtocolFeeRateUpdatedEvent.OutputTuple, ProtocolFeeRateUpdatedEvent.OutputObject>;
|
|
902
|
+
getEvent(key: "ProtocolFeesCollected"): TypedContractEvent<ProtocolFeesCollectedEvent.InputTuple, ProtocolFeesCollectedEvent.OutputTuple, ProtocolFeesCollectedEvent.OutputObject>;
|
|
903
|
+
getEvent(key: "ProtocolFeesWithdrawn"): TypedContractEvent<ProtocolFeesWithdrawnEvent.InputTuple, ProtocolFeesWithdrawnEvent.OutputTuple, ProtocolFeesWithdrawnEvent.OutputObject>;
|
|
457
904
|
getEvent(key: "Repay"): TypedContractEvent<RepayEvent.InputTuple, RepayEvent.OutputTuple, RepayEvent.OutputObject>;
|
|
905
|
+
getEvent(key: "RewardClaimed"): TypedContractEvent<RewardClaimedEvent.InputTuple, RewardClaimedEvent.OutputTuple, RewardClaimedEvent.OutputObject>;
|
|
906
|
+
getEvent(key: "RewardDistributed"): TypedContractEvent<RewardDistributedEvent.InputTuple, RewardDistributedEvent.OutputTuple, RewardDistributedEvent.OutputObject>;
|
|
907
|
+
getEvent(key: "RewardParametersUpdated"): TypedContractEvent<RewardParametersUpdatedEvent.InputTuple, RewardParametersUpdatedEvent.OutputTuple, RewardParametersUpdatedEvent.OutputObject>;
|
|
908
|
+
getEvent(key: "RewardTokenAdded"): TypedContractEvent<RewardTokenAddedEvent.InputTuple, RewardTokenAddedEvent.OutputTuple, RewardTokenAddedEvent.OutputObject>;
|
|
909
|
+
getEvent(key: "RewardTokensDeposited"): TypedContractEvent<RewardTokensDepositedEvent.InputTuple, RewardTokensDepositedEvent.OutputTuple, RewardTokensDepositedEvent.OutputObject>;
|
|
458
910
|
getEvent(key: "StabilityPoolUpdated"): TypedContractEvent<StabilityPoolUpdatedEvent.InputTuple, StabilityPoolUpdatedEvent.OutputTuple, StabilityPoolUpdatedEvent.OutputObject>;
|
|
911
|
+
getEvent(key: "VaultRewardsClaimed"): TypedContractEvent<VaultRewardsClaimedEvent.InputTuple, VaultRewardsClaimedEvent.OutputTuple, VaultRewardsClaimedEvent.OutputObject>;
|
|
912
|
+
getEvent(key: "VaultUpdated"): TypedContractEvent<VaultUpdatedEvent.InputTuple, VaultUpdatedEvent.OutputTuple, VaultUpdatedEvent.OutputObject>;
|
|
913
|
+
getEvent(key: "VaultWithdrawalFailed"): TypedContractEvent<VaultWithdrawalFailedEvent.InputTuple, VaultWithdrawalFailedEvent.OutputTuple, VaultWithdrawalFailedEvent.OutputObject>;
|
|
459
914
|
getEvent(key: "Withdraw"): TypedContractEvent<WithdrawEvent.InputTuple, WithdrawEvent.OutputTuple, WithdrawEvent.OutputObject>;
|
|
460
915
|
getEvent(key: "WithdrawalsPauseStatusChanged"): TypedContractEvent<WithdrawalsPauseStatusChangedEvent.InputTuple, WithdrawalsPauseStatusChangedEvent.OutputTuple, WithdrawalsPauseStatusChangedEvent.OutputObject>;
|
|
461
916
|
filters: {
|
|
@@ -463,17 +918,23 @@ export interface ILendingPool extends BaseContract {
|
|
|
463
918
|
Borrow: TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
|
|
464
919
|
"CanPaybackDebtChanged(bool)": TypedContractEvent<CanPaybackDebtChangedEvent.InputTuple, CanPaybackDebtChangedEvent.OutputTuple, CanPaybackDebtChangedEvent.OutputObject>;
|
|
465
920
|
CanPaybackDebtChanged: TypedContractEvent<CanPaybackDebtChangedEvent.InputTuple, CanPaybackDebtChangedEvent.OutputTuple, CanPaybackDebtChangedEvent.OutputObject>;
|
|
466
|
-
"CurveVaultUpdated(address,address)": TypedContractEvent<CurveVaultUpdatedEvent.InputTuple, CurveVaultUpdatedEvent.OutputTuple, CurveVaultUpdatedEvent.OutputObject>;
|
|
467
|
-
CurveVaultUpdated: TypedContractEvent<CurveVaultUpdatedEvent.InputTuple, CurveVaultUpdatedEvent.OutputTuple, CurveVaultUpdatedEvent.OutputObject>;
|
|
468
921
|
"Deposit(address,uint256,uint256)": TypedContractEvent<DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject>;
|
|
469
922
|
Deposit: TypedContractEvent<DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject>;
|
|
923
|
+
"FeeCollectorUpdated(address,address)": TypedContractEvent<FeeCollectorUpdatedEvent.InputTuple, FeeCollectorUpdatedEvent.OutputTuple, FeeCollectorUpdatedEvent.OutputObject>;
|
|
924
|
+
FeeCollectorUpdated: TypedContractEvent<FeeCollectorUpdatedEvent.InputTuple, FeeCollectorUpdatedEvent.OutputTuple, FeeCollectorUpdatedEvent.OutputObject>;
|
|
925
|
+
"InsufficientFees()": TypedContractEvent<InsufficientFeesEvent.InputTuple, InsufficientFeesEvent.OutputTuple, InsufficientFeesEvent.OutputObject>;
|
|
926
|
+
InsufficientFees: TypedContractEvent<InsufficientFeesEvent.InputTuple, InsufficientFeesEvent.OutputTuple, InsufficientFeesEvent.OutputObject>;
|
|
927
|
+
"InsuranceFeeUpdated(uint256,uint256)": TypedContractEvent<InsuranceFeeUpdatedEvent.InputTuple, InsuranceFeeUpdatedEvent.OutputTuple, InsuranceFeeUpdatedEvent.OutputObject>;
|
|
928
|
+
InsuranceFeeUpdated: TypedContractEvent<InsuranceFeeUpdatedEvent.InputTuple, InsuranceFeeUpdatedEvent.OutputTuple, InsuranceFeeUpdatedEvent.OutputObject>;
|
|
929
|
+
"InsuredNFT(uint256,uint256)": TypedContractEvent<InsuredNFTEvent.InputTuple, InsuredNFTEvent.OutputTuple, InsuredNFTEvent.OutputObject>;
|
|
930
|
+
InsuredNFT: TypedContractEvent<InsuredNFTEvent.InputTuple, InsuredNFTEvent.OutputTuple, InsuredNFTEvent.OutputObject>;
|
|
470
931
|
"Liquidation(address,address,uint256,uint256)": TypedContractEvent<LiquidationEvent.InputTuple, LiquidationEvent.OutputTuple, LiquidationEvent.OutputObject>;
|
|
471
932
|
Liquidation: TypedContractEvent<LiquidationEvent.InputTuple, LiquidationEvent.OutputTuple, LiquidationEvent.OutputObject>;
|
|
472
|
-
"LiquidationClosed(address)": TypedContractEvent<LiquidationClosedEvent.InputTuple, LiquidationClosedEvent.OutputTuple, LiquidationClosedEvent.OutputObject>;
|
|
933
|
+
"LiquidationClosed(address,uint256)": TypedContractEvent<LiquidationClosedEvent.InputTuple, LiquidationClosedEvent.OutputTuple, LiquidationClosedEvent.OutputObject>;
|
|
473
934
|
LiquidationClosed: TypedContractEvent<LiquidationClosedEvent.InputTuple, LiquidationClosedEvent.OutputTuple, LiquidationClosedEvent.OutputObject>;
|
|
474
|
-
"LiquidationFinalized(address,address,uint256,uint256)": TypedContractEvent<LiquidationFinalizedEvent.InputTuple, LiquidationFinalizedEvent.OutputTuple, LiquidationFinalizedEvent.OutputObject>;
|
|
935
|
+
"LiquidationFinalized(address,address,uint256,uint256,uint256)": TypedContractEvent<LiquidationFinalizedEvent.InputTuple, LiquidationFinalizedEvent.OutputTuple, LiquidationFinalizedEvent.OutputObject>;
|
|
475
936
|
LiquidationFinalized: TypedContractEvent<LiquidationFinalizedEvent.InputTuple, LiquidationFinalizedEvent.OutputTuple, LiquidationFinalizedEvent.OutputObject>;
|
|
476
|
-
"LiquidationInitiated(address,address)": TypedContractEvent<LiquidationInitiatedEvent.InputTuple, LiquidationInitiatedEvent.OutputTuple, LiquidationInitiatedEvent.OutputObject>;
|
|
937
|
+
"LiquidationInitiated(address,address,uint256)": TypedContractEvent<LiquidationInitiatedEvent.InputTuple, LiquidationInitiatedEvent.OutputTuple, LiquidationInitiatedEvent.OutputObject>;
|
|
477
938
|
LiquidationInitiated: TypedContractEvent<LiquidationInitiatedEvent.InputTuple, LiquidationInitiatedEvent.OutputTuple, LiquidationInitiatedEvent.OutputObject>;
|
|
478
939
|
"LiquidationParametersUpdated(uint256,uint256,uint256)": TypedContractEvent<LiquidationParametersUpdatedEvent.InputTuple, LiquidationParametersUpdatedEvent.OutputTuple, LiquidationParametersUpdatedEvent.OutputObject>;
|
|
479
940
|
LiquidationParametersUpdated: TypedContractEvent<LiquidationParametersUpdatedEvent.InputTuple, LiquidationParametersUpdatedEvent.OutputTuple, LiquidationParametersUpdatedEvent.OutputObject>;
|
|
@@ -485,10 +946,34 @@ export interface ILendingPool extends BaseContract {
|
|
|
485
946
|
NFTDeposited: TypedContractEvent<NFTDepositedEvent.InputTuple, NFTDepositedEvent.OutputTuple, NFTDepositedEvent.OutputObject>;
|
|
486
947
|
"NFTWithdrawn(address,uint256)": TypedContractEvent<NFTWithdrawnEvent.InputTuple, NFTWithdrawnEvent.OutputTuple, NFTWithdrawnEvent.OutputObject>;
|
|
487
948
|
NFTWithdrawn: TypedContractEvent<NFTWithdrawnEvent.InputTuple, NFTWithdrawnEvent.OutputTuple, NFTWithdrawnEvent.OutputObject>;
|
|
949
|
+
"NotFeeCollector()": TypedContractEvent<NotFeeCollectorEvent.InputTuple, NotFeeCollectorEvent.OutputTuple, NotFeeCollectorEvent.OutputObject>;
|
|
950
|
+
NotFeeCollector: TypedContractEvent<NotFeeCollectorEvent.InputTuple, NotFeeCollectorEvent.OutputTuple, NotFeeCollectorEvent.OutputObject>;
|
|
951
|
+
"ProtocolFeeRateUpdated(uint256,uint256)": TypedContractEvent<ProtocolFeeRateUpdatedEvent.InputTuple, ProtocolFeeRateUpdatedEvent.OutputTuple, ProtocolFeeRateUpdatedEvent.OutputObject>;
|
|
952
|
+
ProtocolFeeRateUpdated: TypedContractEvent<ProtocolFeeRateUpdatedEvent.InputTuple, ProtocolFeeRateUpdatedEvent.OutputTuple, ProtocolFeeRateUpdatedEvent.OutputObject>;
|
|
953
|
+
"ProtocolFeesCollected(uint256,uint256)": TypedContractEvent<ProtocolFeesCollectedEvent.InputTuple, ProtocolFeesCollectedEvent.OutputTuple, ProtocolFeesCollectedEvent.OutputObject>;
|
|
954
|
+
ProtocolFeesCollected: TypedContractEvent<ProtocolFeesCollectedEvent.InputTuple, ProtocolFeesCollectedEvent.OutputTuple, ProtocolFeesCollectedEvent.OutputObject>;
|
|
955
|
+
"ProtocolFeesWithdrawn(address,uint256)": TypedContractEvent<ProtocolFeesWithdrawnEvent.InputTuple, ProtocolFeesWithdrawnEvent.OutputTuple, ProtocolFeesWithdrawnEvent.OutputObject>;
|
|
956
|
+
ProtocolFeesWithdrawn: TypedContractEvent<ProtocolFeesWithdrawnEvent.InputTuple, ProtocolFeesWithdrawnEvent.OutputTuple, ProtocolFeesWithdrawnEvent.OutputObject>;
|
|
488
957
|
"Repay(address,address,uint256)": TypedContractEvent<RepayEvent.InputTuple, RepayEvent.OutputTuple, RepayEvent.OutputObject>;
|
|
489
958
|
Repay: TypedContractEvent<RepayEvent.InputTuple, RepayEvent.OutputTuple, RepayEvent.OutputObject>;
|
|
959
|
+
"RewardClaimed(address,address,uint256)": TypedContractEvent<RewardClaimedEvent.InputTuple, RewardClaimedEvent.OutputTuple, RewardClaimedEvent.OutputObject>;
|
|
960
|
+
RewardClaimed: TypedContractEvent<RewardClaimedEvent.InputTuple, RewardClaimedEvent.OutputTuple, RewardClaimedEvent.OutputObject>;
|
|
961
|
+
"RewardDistributed(address,uint256)": TypedContractEvent<RewardDistributedEvent.InputTuple, RewardDistributedEvent.OutputTuple, RewardDistributedEvent.OutputObject>;
|
|
962
|
+
RewardDistributed: TypedContractEvent<RewardDistributedEvent.InputTuple, RewardDistributedEvent.OutputTuple, RewardDistributedEvent.OutputObject>;
|
|
963
|
+
"RewardParametersUpdated(address,uint256,uint256)": TypedContractEvent<RewardParametersUpdatedEvent.InputTuple, RewardParametersUpdatedEvent.OutputTuple, RewardParametersUpdatedEvent.OutputObject>;
|
|
964
|
+
RewardParametersUpdated: TypedContractEvent<RewardParametersUpdatedEvent.InputTuple, RewardParametersUpdatedEvent.OutputTuple, RewardParametersUpdatedEvent.OutputObject>;
|
|
965
|
+
"RewardTokenAdded(address,uint256,uint256)": TypedContractEvent<RewardTokenAddedEvent.InputTuple, RewardTokenAddedEvent.OutputTuple, RewardTokenAddedEvent.OutputObject>;
|
|
966
|
+
RewardTokenAdded: TypedContractEvent<RewardTokenAddedEvent.InputTuple, RewardTokenAddedEvent.OutputTuple, RewardTokenAddedEvent.OutputObject>;
|
|
967
|
+
"RewardTokensDeposited(address,uint256)": TypedContractEvent<RewardTokensDepositedEvent.InputTuple, RewardTokensDepositedEvent.OutputTuple, RewardTokensDepositedEvent.OutputObject>;
|
|
968
|
+
RewardTokensDeposited: TypedContractEvent<RewardTokensDepositedEvent.InputTuple, RewardTokensDepositedEvent.OutputTuple, RewardTokensDepositedEvent.OutputObject>;
|
|
490
969
|
"StabilityPoolUpdated(address,address)": TypedContractEvent<StabilityPoolUpdatedEvent.InputTuple, StabilityPoolUpdatedEvent.OutputTuple, StabilityPoolUpdatedEvent.OutputObject>;
|
|
491
970
|
StabilityPoolUpdated: TypedContractEvent<StabilityPoolUpdatedEvent.InputTuple, StabilityPoolUpdatedEvent.OutputTuple, StabilityPoolUpdatedEvent.OutputObject>;
|
|
971
|
+
"VaultRewardsClaimed(uint256)": TypedContractEvent<VaultRewardsClaimedEvent.InputTuple, VaultRewardsClaimedEvent.OutputTuple, VaultRewardsClaimedEvent.OutputObject>;
|
|
972
|
+
VaultRewardsClaimed: TypedContractEvent<VaultRewardsClaimedEvent.InputTuple, VaultRewardsClaimedEvent.OutputTuple, VaultRewardsClaimedEvent.OutputObject>;
|
|
973
|
+
"VaultUpdated(address,address)": TypedContractEvent<VaultUpdatedEvent.InputTuple, VaultUpdatedEvent.OutputTuple, VaultUpdatedEvent.OutputObject>;
|
|
974
|
+
VaultUpdated: TypedContractEvent<VaultUpdatedEvent.InputTuple, VaultUpdatedEvent.OutputTuple, VaultUpdatedEvent.OutputObject>;
|
|
975
|
+
"VaultWithdrawalFailed(address)": TypedContractEvent<VaultWithdrawalFailedEvent.InputTuple, VaultWithdrawalFailedEvent.OutputTuple, VaultWithdrawalFailedEvent.OutputObject>;
|
|
976
|
+
VaultWithdrawalFailed: TypedContractEvent<VaultWithdrawalFailedEvent.InputTuple, VaultWithdrawalFailedEvent.OutputTuple, VaultWithdrawalFailedEvent.OutputObject>;
|
|
492
977
|
"Withdraw(address,uint256)": TypedContractEvent<WithdrawEvent.InputTuple, WithdrawEvent.OutputTuple, WithdrawEvent.OutputObject>;
|
|
493
978
|
Withdraw: TypedContractEvent<WithdrawEvent.InputTuple, WithdrawEvent.OutputTuple, WithdrawEvent.OutputObject>;
|
|
494
979
|
"WithdrawalsPauseStatusChanged(bool)": TypedContractEvent<WithdrawalsPauseStatusChangedEvent.InputTuple, WithdrawalsPauseStatusChangedEvent.OutputTuple, WithdrawalsPauseStatusChangedEvent.OutputObject>;
|