@raac/rpc 1.1.0-beta.3 → 1.1.0-beta.4
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/artifacts/core/collectors/FeeCollector.sol/FeeCollector.json +1688 -1688
- package/dist/artifacts/core/minters/RAACMinter/RAACMinter.sol/RAACMinter.json +1418 -1418
- package/dist/artifacts/core/oracles/BaseVRFv2Consumer.sol/BaseVRFv2Consumer.json +247 -247
- package/dist/artifacts/core/oracles/RAACPrimeRateOracle.sol/RAACPrimeRateOracle.json +310 -310
- package/dist/artifacts/core/pools/LendingPool/LendingPool.sol/LendingPool.json +2635 -2699
- package/dist/artifacts/core/pools/StabilityPool/StabilityPool.sol/StabilityPool.json +1107 -1107
- package/dist/artifacts/core/primitives/RAACHousePrices.sol/RAACHousePrices.json +259 -259
- package/dist/artifacts/core/tokens/DEToken.sol/DEToken.json +856 -856
- package/dist/artifacts/core/tokens/IndexToken.sol/IndexToken.json +710 -710
- package/dist/artifacts/core/tokens/RAACNFT.sol/RAACNFT.json +1391 -1391
- package/dist/artifacts/core/tokens/RAACToken.sol/RAACToken.json +796 -796
- package/dist/artifacts/core/tokens/RToken.sol/RToken.json +1084 -1084
- package/dist/artifacts/core/tokens/veRAACToken.sol/veRAACToken.json +1555 -1555
- package/dist/artifacts/mocks/core/oracles/MockVRFCoordinatorV2.sol/MockVRFCoordinatorV2.json +772 -772
- package/dist/artifacts/mocks/core/tokens/crvUSDToken.sol/crvUSDToken.json +433 -433
- package/dist/artifacts/zeno/Auction.sol/Auction.json +356 -356
- package/dist/artifacts/zeno/AuctionFactory.sol/AuctionFactory.json +282 -282
- package/dist/artifacts/zeno/Zeno.sol/Zeno.json +582 -582
- package/dist/artifacts/zeno/ZenoFactory.sol/ZenoFactory.json +252 -252
- package/dist/assets/getSupply.js +3 -0
- package/dist/methods/approveToken.js +1 -9
- package/dist/minter/tick.js +3 -7
- package/dist/pools/lendingPool/borrowFromLendingPool.js +1 -1
- package/dist/pools/lendingPool/depositNFTToLendingPool.js +2 -2
- package/dist/pools/lendingPool/depositToLendingPool.js +2 -6
- package/dist/pools/lendingPool/getPositionView.js +1 -0
- package/dist/pools/lendingPool/withdrawFromLendingPool.js +1 -5
- package/dist/pools/stabilityPool/depositToStabilityPool.js +0 -6
- package/dist/pools/stabilityPool/withdrawFromStabilityPool.js +0 -6
- package/dist/scripts/index.js +12 -10
- package/dist/types/pools/lendingPool/getAllUserData.d.ts +1 -0
- package/dist/types/pools/lendingPool/getPositionView.d.ts +2 -0
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/LendingPool.d.ts +2 -49
- package/dist/types/typechain-types/contracts/interfaces/core/pools/LendingPool/ILendingPool.d.ts +1 -40
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPoolDebtToken.d.ts +1 -40
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/functions/v1_0_0/libraries/FunctionsRequest__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/access/ConfirmedOwnerWithProposal__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/access/ConfirmedOwner__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/Address__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/ShortStrings__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/Strings__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/cryptography/ECDSA__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/math/Math__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/math/SafeCast__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/collectors/FeeCollector__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/collectors/Treasury__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/governance/boost/BoostController__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/GaugeController__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/RAACGauge__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/RWAGauge__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/governance/proposals/Governance__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/governance/proposals/TimelockController__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/minters/RAACMinter/RAACMinter__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/minters/RAACReleaseOrchestrator/RAACReleaseOrchestrator__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/oracles/BaseVRFv2Consumer__factory.d.ts +1 -1
- 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/pools/LendingPool/LendingPool__factory.d.ts +1 -51
- 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 +1 -1
- package/dist/types/typechain-types/factories/contracts/core/primitives/RAACHousePrices__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/tokens/DEToken__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/tokens/DebtToken__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/tokens/IndexToken__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/tokens/LPToken__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/tokens/RAACNFT__factory.d.ts +1 -1
- 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 +1 -1
- package/dist/types/typechain-types/factories/contracts/core/tokens/VeRAACToken__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/LendingPool/ILendingPool__factory.d.ts +0 -30
- package/dist/types/typechain-types/factories/contracts/libraries/governance/BoostCalculator__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/libraries/governance/Checkpoints__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/libraries/governance/LockManager__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/libraries/governance/PowerCheckpoint__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/libraries/governance/RAACVoting__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/libraries/governance/VotingPowerLib__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/libraries/math/TimeWeightedAverage__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/libraries/pools/ReserveLibrary__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/libraries/utils/StringUtils__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/collectors/MockTreasury__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/gauges/MockBaseGauge__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/gauges/MockGaugeController__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/proposals/TimelockTestTarget__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockFunctionsRouter.sol/MockFunctionsRouter__factory.d.ts +1 -1
- 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 +1 -1
- 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/pools/MockLendingPoolCollector__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPoolDebtToken__factory.d.ts +1 -31
- 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 +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockPool__factory.d.ts +1 -1
- 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/primitives/MockContractWithConfig__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/MockContract__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/MockDistributableContract__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/RAACHousePricesMock__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/CrvUSDToken__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/ERC20Mock__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/ERC721Mock__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockCollectableUnderlying__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockFeeCollectorToken__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockToken__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockUSDC__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockVeToken__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/RAACMockERC20__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/vaults/MockVault__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/MockStringUtils__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/BoostCalculatorMock__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/CheckpointsMock__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/LockManagerMock__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/PowerCheckpointMock__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/RAACVotingMock__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/VotingPowerMock__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/math/TimeWeightedAverageMock__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/math/WadRayMathMock__factory.d.ts +1 -1
- 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/MaliciousDeposit__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/tests/MaliciousWithdraw__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/contracts/mocks/tests/VotingPowerFuzzHelper.sol/VotingPowerFuzzHelper__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/zeno/AuctionFactory__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/zeno/Auction__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/zeno/ZENOFactory__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/zeno/ZENO__factory.d.ts +1 -1
- package/dist/types/utils/artifacts.d.ts +1201 -2
- package/dist/utils/artifacts.js +2 -2
- package/dist/wallet/assets/approveAsset.js +2 -6
- package/dist/wallet/assets/burnAsset.js +0 -6
- package/dist/wallet/assets/mintAsset.js +1 -6
- package/dist/wallet/assets/transferAsset.js +0 -7
- package/package.json +3 -3
- package/dist/artifacts/core/collectors/FeeCollector.sol/FeeCollector.dbg.json +0 -4
- package/dist/artifacts/core/collectors/Treasury.sol/Treasury.dbg.json +0 -4
- package/dist/artifacts/core/collectors/Treasury.sol/Treasury.json +0 -481
- package/dist/artifacts/core/governance/boost/BoostController.sol/BoostController.dbg.json +0 -4
- package/dist/artifacts/core/governance/boost/BoostController.sol/BoostController.json +0 -905
- package/dist/artifacts/core/governance/gauges/BaseGauge.sol/BaseGauge.dbg.json +0 -4
- package/dist/artifacts/core/governance/gauges/BaseGauge.sol/BaseGauge.json +0 -1398
- package/dist/artifacts/core/governance/gauges/GaugeController.sol/GaugeController.dbg.json +0 -4
- package/dist/artifacts/core/governance/gauges/GaugeController.sol/GaugeController.json +0 -1435
- package/dist/artifacts/core/governance/gauges/RAACGauge.sol/RAACGauge.dbg.json +0 -4
- package/dist/artifacts/core/governance/gauges/RAACGauge.sol/RAACGauge.json +0 -1471
- package/dist/artifacts/core/governance/gauges/RWAGauge.sol/RWAGauge.dbg.json +0 -4
- package/dist/artifacts/core/governance/gauges/RWAGauge.sol/RWAGauge.json +0 -1471
- package/dist/artifacts/core/governance/proposals/Governance.sol/Governance.dbg.json +0 -4
- package/dist/artifacts/core/governance/proposals/Governance.sol/Governance.json +0 -1242
- package/dist/artifacts/core/governance/proposals/TimelockController.sol/TimelockController.dbg.json +0 -4
- package/dist/artifacts/core/governance/proposals/TimelockController.sol/TimelockController.json +0 -988
- package/dist/artifacts/core/minters/RAACMinter/RAACMinter.sol/RAACMinter.dbg.json +0 -4
- package/dist/artifacts/core/minters/RAACReleaseOrchestrator/RAACReleaseOrchestrator.sol/RAACReleaseOrchestrator.dbg.json +0 -4
- package/dist/artifacts/core/minters/RAACReleaseOrchestrator/RAACReleaseOrchestrator.sol/RAACReleaseOrchestrator.json +0 -860
- package/dist/artifacts/core/oracles/BaseChainlinkFunctionsOracle.sol/BaseChainlinkFunctionsOracle.dbg.json +0 -4
- package/dist/artifacts/core/oracles/BaseChainlinkFunctionsOracle.sol/BaseChainlinkFunctionsOracle.json +0 -264
- package/dist/artifacts/core/oracles/BaseVRFv2Consumer.sol/BaseVRFv2Consumer.dbg.json +0 -4
- package/dist/artifacts/core/oracles/RAACHousePriceOracle.sol/RAACHousePriceOracle.dbg.json +0 -4
- package/dist/artifacts/core/oracles/RAACHousePriceOracle.sol/RAACHousePriceOracle.json +0 -335
- package/dist/artifacts/core/oracles/RAACPrimeRateOracle.sol/RAACPrimeRateOracle.dbg.json +0 -4
- package/dist/artifacts/core/pools/LendingPool/LendingPool.sol/LendingPool.dbg.json +0 -4
- package/dist/artifacts/core/pools/StabilityPool/NFTLiquidator.sol/NFTLiquidator.dbg.json +0 -4
- package/dist/artifacts/core/pools/StabilityPool/NFTLiquidator.sol/NFTLiquidator.json +0 -485
- package/dist/artifacts/core/pools/StabilityPool/StabilityPool.sol/StabilityPool.dbg.json +0 -4
- package/dist/artifacts/core/primitives/RAACHousePrices.sol/RAACHousePrices.dbg.json +0 -4
- package/dist/artifacts/core/tokens/DEToken.sol/DEToken.dbg.json +0 -4
- package/dist/artifacts/core/tokens/DebtToken.sol/DebtToken.dbg.json +0 -4
- package/dist/artifacts/core/tokens/DebtToken.sol/DebtToken.json +0 -953
- package/dist/artifacts/core/tokens/IndexToken.sol/IndexToken.dbg.json +0 -4
- package/dist/artifacts/core/tokens/LPToken.sol/LPToken.dbg.json +0 -4
- package/dist/artifacts/core/tokens/LPToken.sol/LPToken.json +0 -507
- package/dist/artifacts/core/tokens/RAACNFT.sol/RAACNFT.dbg.json +0 -4
- package/dist/artifacts/core/tokens/RAACToken.sol/RAACToken.dbg.json +0 -4
- package/dist/artifacts/core/tokens/RToken.sol/RToken.dbg.json +0 -4
- package/dist/artifacts/core/tokens/veRAACToken.sol/veRAACToken.dbg.json +0 -4
- package/dist/artifacts/interfaces/IERC20.sol/IERC20.dbg.json +0 -4
- package/dist/artifacts/interfaces/IERC20.sol/IERC20.json +0 -194
- package/dist/artifacts/interfaces/IHousePrices.sol/IHousePrices.dbg.json +0 -4
- package/dist/artifacts/interfaces/IHousePrices.sol/IHousePrices.json +0 -30
- package/dist/artifacts/interfaces/INFTLiquidator.sol/INFTLiquidator.dbg.json +0 -4
- package/dist/artifacts/interfaces/INFTLiquidator.sol/INFTLiquidator.json +0 -86
- package/dist/artifacts/interfaces/IPoolManager.sol/IPoolManager.dbg.json +0 -4
- package/dist/artifacts/interfaces/IPoolManager.sol/IPoolManager.json +0 -57
- package/dist/artifacts/interfaces/IReserveAllocationLibraryMock.sol/IReserveAllocationLibraryMock.dbg.json +0 -4
- package/dist/artifacts/interfaces/IReserveAllocationLibraryMock.sol/IReserveAllocationLibraryMock.json +0 -246
- package/dist/artifacts/interfaces/IUSDC.sol/IUSDC.dbg.json +0 -4
- package/dist/artifacts/interfaces/IUSDC.sol/IUSDC.json +0 -194
- package/dist/artifacts/interfaces/IveRAACDistributor.sol/IveRAACDistributor.dbg.json +0 -4
- package/dist/artifacts/interfaces/IveRAACDistributor.sol/IveRAACDistributor.json +0 -100
- package/dist/artifacts/interfaces/core/collectors/IBaseCollector.sol/IBaseCollector.dbg.json +0 -4
- package/dist/artifacts/interfaces/core/collectors/IBaseCollector.sol/IBaseCollector.json +0 -45
- package/dist/artifacts/interfaces/core/collectors/IFeeCollector.sol/IFeeCollector.dbg.json +0 -4
- package/dist/artifacts/interfaces/core/collectors/IFeeCollector.sol/IFeeCollector.json +0 -922
- package/dist/artifacts/interfaces/core/collectors/ITreasury.sol/ITreasury.dbg.json +0 -4
- package/dist/artifacts/interfaces/core/collectors/ITreasury.sol/ITreasury.json +0 -214
- package/dist/artifacts/interfaces/core/governance/IBoostController.sol/IBoostController.dbg.json +0 -4
- package/dist/artifacts/interfaces/core/governance/IBoostController.sol/IBoostController.json +0 -378
- package/dist/artifacts/interfaces/core/governance/gauges/IGauge.sol/IGauge.dbg.json +0 -4
- package/dist/artifacts/interfaces/core/governance/gauges/IGauge.sol/IGauge.json +0 -394
- package/dist/artifacts/interfaces/core/governance/gauges/IGaugeController.sol/IGaugeController.dbg.json +0 -4
- package/dist/artifacts/interfaces/core/governance/gauges/IGaugeController.sol/IGaugeController.json +0 -577
- package/dist/artifacts/interfaces/core/governance/proposals/IGovernance.sol/IGovernance.dbg.json +0 -4
- package/dist/artifacts/interfaces/core/governance/proposals/IGovernance.sol/IGovernance.json +0 -1134
- package/dist/artifacts/interfaces/core/governance/proposals/ITimelockController.sol/ITimelockController.dbg.json +0 -4
- package/dist/artifacts/interfaces/core/governance/proposals/ITimelockController.sol/ITimelockController.json +0 -612
- package/dist/artifacts/interfaces/core/minters/RAACMinter/IRAACMinter.sol/IRAACMinter.dbg.json +0 -4
- package/dist/artifacts/interfaces/core/minters/RAACMinter/IRAACMinter.sol/IRAACMinter.json +0 -542
- package/dist/artifacts/interfaces/core/minters/RAACReleaseOrchestrator/IReleaseOrchestrator.sol/IReleaseOrchestrator.dbg.json +0 -4
- package/dist/artifacts/interfaces/core/minters/RAACReleaseOrchestrator/IReleaseOrchestrator.sol/IReleaseOrchestrator.json +0 -358
- package/dist/artifacts/interfaces/core/oracles/IBaseVRFv2Consumer.sol/IBaseVRFv2Consumer.dbg.json +0 -4
- package/dist/artifacts/interfaces/core/oracles/IBaseVRFv2Consumer.sol/IBaseVRFv2Consumer.json +0 -102
- package/dist/artifacts/interfaces/core/oracles/IRAACHousePrices.sol/IRAACHousePrices.dbg.json +0 -4
- package/dist/artifacts/interfaces/core/oracles/IRAACHousePrices.sol/IRAACHousePrices.json +0 -193
- package/dist/artifacts/interfaces/core/pools/ILiquidityPool.sol/ILiquidityPool.dbg.json +0 -4
- package/dist/artifacts/interfaces/core/pools/ILiquidityPool.sol/ILiquidityPool.json +0 -310
- package/dist/artifacts/interfaces/core/pools/LendingPool/ILendingPool.sol/ILendingPool.dbg.json +0 -4
- package/dist/artifacts/interfaces/core/pools/LendingPool/ILendingPool.sol/ILendingPool.json +0 -1538
- package/dist/artifacts/interfaces/core/pools/StabilityPool/IStabilityPool.sol/IStabilityPool.dbg.json +0 -4
- package/dist/artifacts/interfaces/core/pools/StabilityPool/IStabilityPool.sol/IStabilityPool.json +0 -622
- package/dist/artifacts/interfaces/core/tokens/IDEToken.sol/IDEToken.dbg.json +0 -4
- package/dist/artifacts/interfaces/core/tokens/IDEToken.sol/IDEToken.json +0 -333
- package/dist/artifacts/interfaces/core/tokens/IDebtToken.sol/IDebtToken.dbg.json +0 -4
- package/dist/artifacts/interfaces/core/tokens/IDebtToken.sol/IDebtToken.json +0 -507
- package/dist/artifacts/interfaces/core/tokens/IIndexToken.sol/IIndexToken.dbg.json +0 -4
- package/dist/artifacts/interfaces/core/tokens/IIndexToken.sol/IIndexToken.json +0 -299
- package/dist/artifacts/interfaces/core/tokens/IRAACNFT.sol/IRAACNFT.dbg.json +0 -4
- package/dist/artifacts/interfaces/core/tokens/IRAACNFT.sol/IRAACNFT.json +0 -816
- package/dist/artifacts/interfaces/core/tokens/IRAACToken.sol/IRAACToken.dbg.json +0 -4
- package/dist/artifacts/interfaces/core/tokens/IRAACToken.sol/IRAACToken.json +0 -567
- package/dist/artifacts/interfaces/core/tokens/IRToken.sol/IRToken.dbg.json +0 -4
- package/dist/artifacts/interfaces/core/tokens/IRToken.sol/IRToken.json +0 -641
- package/dist/artifacts/interfaces/core/tokens/IveRAACToken.sol/IveRAACToken.dbg.json +0 -4
- package/dist/artifacts/interfaces/core/tokens/IveRAACToken.sol/IveRAACToken.json +0 -560
- package/dist/artifacts/interfaces/core/vaults/IBaseVault.sol/IBaseVault.dbg.json +0 -4
- package/dist/artifacts/interfaces/core/vaults/IBaseVault.sol/IBaseVault.json +0 -185
- package/dist/artifacts/interfaces/curve/ICurveCrvUSDVault.sol/ICurveCrvUSDVault.dbg.json +0 -4
- package/dist/artifacts/interfaces/curve/ICurveCrvUSDVault.sol/ICurveCrvUSDVault.json +0 -250
- package/dist/artifacts/interfaces/zeno/IAuction.sol/IAuction.dbg.json +0 -4
- package/dist/artifacts/interfaces/zeno/IAuction.sol/IAuction.json +0 -162
- package/dist/artifacts/interfaces/zeno/IZENO.sol/IZENO.dbg.json +0 -4
- package/dist/artifacts/interfaces/zeno/IZENO.sol/IZENO.json +0 -321
- package/dist/artifacts/libraries/governance/BoostCalculator.sol/BoostCalculator.dbg.json +0 -4
- package/dist/artifacts/libraries/governance/BoostCalculator.sol/BoostCalculator.json +0 -51
- package/dist/artifacts/libraries/governance/Checkpoints.sol/Checkpoints.dbg.json +0 -4
- package/dist/artifacts/libraries/governance/Checkpoints.sol/Checkpoints.json +0 -69
- package/dist/artifacts/libraries/governance/LockManager.sol/LockManager.dbg.json +0 -4
- package/dist/artifacts/libraries/governance/LockManager.sol/LockManager.json +0 -123
- package/dist/artifacts/libraries/governance/PowerCheckpoint.sol/PowerCheckpoint.dbg.json +0 -4
- package/dist/artifacts/libraries/governance/PowerCheckpoint.sol/PowerCheckpoint.json +0 -70
- package/dist/artifacts/libraries/governance/RAACVoting.sol/RAACVoting.dbg.json +0 -4
- package/dist/artifacts/libraries/governance/RAACVoting.sol/RAACVoting.json +0 -102
- package/dist/artifacts/libraries/governance/VotingPowerLib.sol/VotingPowerLib.dbg.json +0 -4
- package/dist/artifacts/libraries/governance/VotingPowerLib.sol/VotingPowerLib.json +0 -76
- package/dist/artifacts/libraries/math/PercentageMath.sol/PercentageMath.dbg.json +0 -4
- package/dist/artifacts/libraries/math/PercentageMath.sol/PercentageMath.json +0 -10
- package/dist/artifacts/libraries/math/TimeWeightedAverage.sol/TimeWeightedAverage.dbg.json +0 -4
- package/dist/artifacts/libraries/math/TimeWeightedAverage.sol/TimeWeightedAverage.json +0 -142
- package/dist/artifacts/libraries/math/WadRayMath.sol/WadRayMath.dbg.json +0 -4
- package/dist/artifacts/libraries/math/WadRayMath.sol/WadRayMath.json +0 -10
- package/dist/artifacts/libraries/pools/DataTypes.sol/DataTypes.dbg.json +0 -4
- package/dist/artifacts/libraries/pools/DataTypes.sol/DataTypes.json +0 -10
- package/dist/artifacts/libraries/pools/ReserveLibrary.sol/ReserveLibrary.dbg.json +0 -4
- package/dist/artifacts/libraries/pools/ReserveLibrary.sol/ReserveLibrary.json +0 -153
- package/dist/artifacts/libraries/utils/StringUtils.sol/StringUtils.dbg.json +0 -4
- package/dist/artifacts/libraries/utils/StringUtils.sol/StringUtils.json +0 -16
- package/dist/artifacts/mocks/core/collectors/MockTreasury.sol/MockTreasury.dbg.json +0 -4
- package/dist/artifacts/mocks/core/collectors/MockTreasury.sol/MockTreasury.json +0 -255
- package/dist/artifacts/mocks/core/governance/gauges/MockBaseGauge.sol/MockBaseGauge.dbg.json +0 -4
- package/dist/artifacts/mocks/core/governance/gauges/MockBaseGauge.sol/MockBaseGauge.json +0 -1522
- package/dist/artifacts/mocks/core/governance/gauges/MockGaugeController.sol/MockGaugeController.dbg.json +0 -4
- package/dist/artifacts/mocks/core/governance/gauges/MockGaugeController.sol/MockGaugeController.json +0 -49
- package/dist/artifacts/mocks/core/governance/proposals/TimelockTestTarget.sol/TimelockTestTarget.dbg.json +0 -4
- package/dist/artifacts/mocks/core/governance/proposals/TimelockTestTarget.sol/TimelockTestTarget.json +0 -112
- package/dist/artifacts/mocks/core/oracles/MockFunctionsRouter.sol/IFunctionsRouter.dbg.json +0 -4
- package/dist/artifacts/mocks/core/oracles/MockFunctionsRouter.sol/IFunctionsRouter.json +0 -50
- package/dist/artifacts/mocks/core/oracles/MockFunctionsRouter.sol/MockFunctionsRouter.dbg.json +0 -4
- package/dist/artifacts/mocks/core/oracles/MockFunctionsRouter.sol/MockFunctionsRouter.json +0 -69
- package/dist/artifacts/mocks/core/oracles/MockOracle.sol/MockOracle.dbg.json +0 -4
- package/dist/artifacts/mocks/core/oracles/MockOracle.sol/MockOracle.json +0 -63
- package/dist/artifacts/mocks/core/oracles/MockVRFCoordinatorV2.sol/MockVRFCoordinatorV2.dbg.json +0 -4
- package/dist/artifacts/mocks/core/oracles/TestRAACHousePriceOracle.sol/TestRAACHousePriceOracle.dbg.json +0 -4
- package/dist/artifacts/mocks/core/oracles/TestRAACHousePriceOracle.sol/TestRAACHousePriceOracle.json +0 -358
- package/dist/artifacts/mocks/core/oracles/TestRAACPrimeRateOracle.sol/TestRAACPrimeRateOracle.dbg.json +0 -4
- package/dist/artifacts/mocks/core/oracles/TestRAACPrimeRateOracle.sol/TestRAACPrimeRateOracle.json +0 -373
- package/dist/artifacts/mocks/core/pools/MockLendingPool.sol/MockLendingPool.dbg.json +0 -4
- package/dist/artifacts/mocks/core/pools/MockLendingPool.sol/MockLendingPool.json +0 -241
- package/dist/artifacts/mocks/core/pools/MockLendingPoolCollector.sol/MockLendingPoolCollector.dbg.json +0 -4
- package/dist/artifacts/mocks/core/pools/MockLendingPoolCollector.sol/MockLendingPoolCollector.json +0 -288
- package/dist/artifacts/mocks/core/pools/MockLendingPoolDebtToken.sol/MockLendingPoolDebtToken.dbg.json +0 -4
- package/dist/artifacts/mocks/core/pools/MockLendingPoolDebtToken.sol/MockLendingPoolDebtToken.json +0 -1560
- package/dist/artifacts/mocks/core/pools/MockLiquidityPool.sol/MockLiquidityPool.dbg.json +0 -4
- package/dist/artifacts/mocks/core/pools/MockLiquidityPool.sol/MockLiquidityPool.json +0 -1019
- package/dist/artifacts/mocks/core/pools/MockPool.sol/MockPool.dbg.json +0 -4
- package/dist/artifacts/mocks/core/pools/MockPool.sol/MockPool.json +0 -93
- package/dist/artifacts/mocks/core/pools/MockStabilityPool.sol/MockStabilityPool.dbg.json +0 -4
- package/dist/artifacts/mocks/core/pools/MockStabilityPool.sol/MockStabilityPool.json +0 -126
- package/dist/artifacts/mocks/core/primitives/MockContract.sol/MockContract.dbg.json +0 -4
- package/dist/artifacts/mocks/core/primitives/MockContract.sol/MockContract.json +0 -37
- package/dist/artifacts/mocks/core/primitives/MockContractWithConfig.sol/MockContractWithConfig.dbg.json +0 -4
- package/dist/artifacts/mocks/core/primitives/MockContractWithConfig.sol/MockContractWithConfig.json +0 -52
- package/dist/artifacts/mocks/core/primitives/MockDistributableContract.sol/MockDistributableContract.dbg.json +0 -4
- package/dist/artifacts/mocks/core/primitives/MockDistributableContract.sol/MockDistributableContract.json +0 -73
- package/dist/artifacts/mocks/core/primitives/RAACHousePricesMock.sol/RAACHousePricesMock.dbg.json +0 -4
- package/dist/artifacts/mocks/core/primitives/RAACHousePricesMock.sol/RAACHousePricesMock.json +0 -67
- package/dist/artifacts/mocks/core/tokens/ERC20Mock.sol/ERC20Mock.dbg.json +0 -4
- package/dist/artifacts/mocks/core/tokens/ERC20Mock.sol/ERC20Mock.json +0 -353
- package/dist/artifacts/mocks/core/tokens/ERC721Mock.sol/ERC721Mock.dbg.json +0 -4
- package/dist/artifacts/mocks/core/tokens/ERC721Mock.sol/ERC721Mock.json +0 -491
- package/dist/artifacts/mocks/core/tokens/MockCollectableUnderlying.sol/MockCollectableUnderlying.dbg.json +0 -4
- package/dist/artifacts/mocks/core/tokens/MockCollectableUnderlying.sol/MockCollectableUnderlying.json +0 -568
- package/dist/artifacts/mocks/core/tokens/MockFeeCollectorToken.sol/MockFeeCollectorToken.dbg.json +0 -4
- package/dist/artifacts/mocks/core/tokens/MockFeeCollectorToken.sol/MockFeeCollectorToken.json +0 -515
- package/dist/artifacts/mocks/core/tokens/MockToken.sol/MockToken.dbg.json +0 -4
- package/dist/artifacts/mocks/core/tokens/MockToken.sol/MockToken.json +0 -426
- package/dist/artifacts/mocks/core/tokens/MockUSDC.sol/MockUSDC.dbg.json +0 -4
- package/dist/artifacts/mocks/core/tokens/MockUSDC.sol/MockUSDC.json +0 -348
- package/dist/artifacts/mocks/core/tokens/MockVeToken.sol/MockVeToken.dbg.json +0 -4
- package/dist/artifacts/mocks/core/tokens/MockVeToken.sol/MockVeToken.json +0 -905
- package/dist/artifacts/mocks/core/tokens/RAACMockERC20.sol/RAACMockERC20.dbg.json +0 -4
- package/dist/artifacts/mocks/core/tokens/RAACMockERC20.sol/RAACMockERC20.json +0 -422
- package/dist/artifacts/mocks/core/tokens/crvUSDToken.sol/crvUSDToken.dbg.json +0 -4
- package/dist/artifacts/mocks/core/vaults/MockVault.sol/MockVault.dbg.json +0 -4
- package/dist/artifacts/mocks/core/vaults/MockVault.sol/MockVault.json +0 -672
- package/dist/artifacts/mocks/libraries/MockStringUtils.sol/MockStringUtils.dbg.json +0 -4
- package/dist/artifacts/mocks/libraries/MockStringUtils.sol/MockStringUtils.json +0 -35
- package/dist/artifacts/mocks/libraries/governance/BoostCalculatorMock.sol/BoostCalculatorMock.dbg.json +0 -4
- package/dist/artifacts/mocks/libraries/governance/BoostCalculatorMock.sol/BoostCalculatorMock.json +0 -431
- package/dist/artifacts/mocks/libraries/governance/CheckpointsMock.sol/CheckpointsMock.dbg.json +0 -4
- package/dist/artifacts/mocks/libraries/governance/CheckpointsMock.sol/CheckpointsMock.json +0 -144
- package/dist/artifacts/mocks/libraries/governance/LockManagerMock.sol/LockManagerMock.dbg.json +0 -4
- package/dist/artifacts/mocks/libraries/governance/LockManagerMock.sol/LockManagerMock.json +0 -237
- package/dist/artifacts/mocks/libraries/governance/PowerCheckpointMock.sol/PowerCheckpointMock.dbg.json +0 -4
- package/dist/artifacts/mocks/libraries/governance/PowerCheckpointMock.sol/PowerCheckpointMock.json +0 -221
- package/dist/artifacts/mocks/libraries/governance/RAACVotingMock.sol/RAACVotingMock.dbg.json +0 -4
- package/dist/artifacts/mocks/libraries/governance/RAACVotingMock.sol/RAACVotingMock.json +0 -95
- package/dist/artifacts/mocks/libraries/governance/VotingPowerMock.sol/VotingPowerMock.dbg.json +0 -4
- package/dist/artifacts/mocks/libraries/governance/VotingPowerMock.sol/VotingPowerMock.json +0 -442
- package/dist/artifacts/mocks/libraries/math/TimeWeightedAverageMock.sol/TimeWeightedAverageMock.dbg.json +0 -4
- package/dist/artifacts/mocks/libraries/math/TimeWeightedAverageMock.sol/TimeWeightedAverageMock.json +0 -309
- package/dist/artifacts/mocks/libraries/math/WadRayMathMock.sol/WadRayMathMock.dbg.json +0 -4
- package/dist/artifacts/mocks/libraries/math/WadRayMathMock.sol/WadRayMathMock.json +0 -188
- package/dist/artifacts/mocks/libraries/pools/ReserveLibraryMock.sol/ReserveLibraryMock.dbg.json +0 -4
- package/dist/artifacts/mocks/libraries/pools/ReserveLibraryMock.sol/ReserveLibraryMock.json +0 -339
- package/dist/artifacts/mocks/tests/MaliciousDeposit.sol/MaliciousDeposit.dbg.json +0 -4
- package/dist/artifacts/mocks/tests/MaliciousDeposit.sol/MaliciousDeposit.json +0 -52
- package/dist/artifacts/mocks/tests/MaliciousWithdraw.sol/MaliciousWithdraw.dbg.json +0 -4
- package/dist/artifacts/mocks/tests/MaliciousWithdraw.sol/MaliciousWithdraw.json +0 -52
- package/dist/artifacts/mocks/tests/VeRAACFuzzHelper.sol/VeRAACFuzzHelper.dbg.json +0 -4
- package/dist/artifacts/mocks/tests/VeRAACFuzzHelper.sol/VeRAACFuzzHelper.json +0 -88
- package/dist/artifacts/mocks/tests/VotingPowerFuzzHelper.sol/IVMTimeControl.dbg.json +0 -4
- package/dist/artifacts/mocks/tests/VotingPowerFuzzHelper.sol/IVMTimeControl.json +0 -24
- package/dist/artifacts/mocks/tests/VotingPowerFuzzHelper.sol/VotingPowerFuzzHelper.dbg.json +0 -4
- package/dist/artifacts/mocks/tests/VotingPowerFuzzHelper.sol/VotingPowerFuzzHelper.json +0 -129
- package/dist/artifacts/zeno/Auction.sol/Auction.dbg.json +0 -4
- package/dist/artifacts/zeno/AuctionFactory.sol/AuctionFactory.dbg.json +0 -4
- package/dist/artifacts/zeno/Zeno.sol/ZENO.dbg.json +0 -4
- package/dist/artifacts/zeno/ZenoFactory.sol/ZENOFactory.dbg.json +0 -4
package/dist/assets/getSupply.js
CHANGED
|
@@ -7,6 +7,9 @@ async function getSupply(chainId, assetId, provider) {
|
|
|
7
7
|
const SUPPLY_ABI = ["function totalSupply() view returns (uint256)"];
|
|
8
8
|
const contractAddress = (0, contracts_1.getContractAddress)(chainId, assetId);
|
|
9
9
|
const contract = new ethers_1.ethers.Contract(contractAddress, SUPPLY_ABI, provider);
|
|
10
|
+
if (contract?.totalSupply === undefined) {
|
|
11
|
+
return 0;
|
|
12
|
+
}
|
|
10
13
|
const supply = await contract.totalSupply();
|
|
11
14
|
return ethers_1.ethers.formatEther(supply);
|
|
12
15
|
}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
const ethers_1 = require("ethers");
|
|
7
4
|
const getContractAddress_1 = require("../contracts/getContractAddress");
|
|
8
|
-
const estimateGasPrice_1 = __importDefault(require("./commons/estimateGasPrice"));
|
|
9
5
|
const approveToken = async (chainId, tokenSymbol, spender, amount, signer) => {
|
|
10
6
|
if (!signer) {
|
|
11
7
|
throw new Error("Wallet not connected");
|
|
@@ -17,11 +13,7 @@ const approveToken = async (chainId, tokenSymbol, spender, amount, signer) => {
|
|
|
17
13
|
const tokenContract = new ethers_1.ethers.Contract(tokenAddress, tokenABI, signer);
|
|
18
14
|
try {
|
|
19
15
|
const amountInWei = ethers_1.ethers.parseEther(amount);
|
|
20
|
-
const
|
|
21
|
-
const tx = await tokenContract.approve(spender, amountInWei, {
|
|
22
|
-
maxFeePerGas,
|
|
23
|
-
// maxPriorityFeePerGas
|
|
24
|
-
});
|
|
16
|
+
const tx = await tokenContract.approve(spender, amountInWei);
|
|
25
17
|
console.log(`Approval transaction sent:`, tx.hash);
|
|
26
18
|
const receipt = await tx.wait();
|
|
27
19
|
console.log(`Approved ${amount} ${tokenSymbol} for ${spender} successfully:`, receipt.transactionHash);
|
package/dist/minter/tick.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
const ethers_1 = require("ethers");
|
|
7
4
|
const contracts_1 = require("../utils/contracts");
|
|
8
5
|
const artifacts_1 = require("../utils/artifacts");
|
|
9
|
-
const estimateGasPrice_1 = __importDefault(require("../methods/commons/estimateGasPrice"));
|
|
10
6
|
async function tick(chainId, signer) {
|
|
11
7
|
if (!signer) {
|
|
12
8
|
throw new Error("Wallet not connected");
|
|
@@ -15,10 +11,10 @@ async function tick(chainId, signer) {
|
|
|
15
11
|
const raacMinterAddress = (0, contracts_1.getContractAddress)(chainId, "raacminter");
|
|
16
12
|
const raacMinterABI = (0, artifacts_1.getABI)("raacminter");
|
|
17
13
|
const raacMinterContract = new ethers_1.ethers.Contract(raacMinterAddress, raacMinterABI, signer);
|
|
18
|
-
const { maxFeePerGas } = await (
|
|
19
|
-
console.log({ maxFeePerGas });
|
|
14
|
+
// const { maxFeePerGas } = await estimateGasPrice(signer);
|
|
15
|
+
// console.log({ maxFeePerGas });
|
|
20
16
|
const tick = await raacMinterContract.tick({
|
|
21
|
-
maxFeePerGas,
|
|
17
|
+
// maxFeePerGas,
|
|
22
18
|
nonce: await signer.getNonce(),
|
|
23
19
|
});
|
|
24
20
|
if (tick.wait) {
|
|
@@ -12,7 +12,7 @@ async function borrowFromLendingPool(chainId, tokenId, amount, signer) {
|
|
|
12
12
|
console.log("Borrowing amount in wei:", amountInWei.toString());
|
|
13
13
|
const tx = await lendingPoolContract.borrow(tokenId, amountInWei.toString());
|
|
14
14
|
const receipt = await tx.wait();
|
|
15
|
-
console.log(`Borrowed ${
|
|
15
|
+
console.log(`Borrowed ${amount} from lending pool`);
|
|
16
16
|
console.log(`Transaction hash: ${receipt?.hash}`);
|
|
17
17
|
return receipt;
|
|
18
18
|
}
|
|
@@ -27,14 +27,14 @@ async function depositNFTToLendingPool(chainId, tokenId, signer) {
|
|
|
27
27
|
}
|
|
28
28
|
// Approve the lending pool to transfer the NFT
|
|
29
29
|
const approveTx = await nftContract.approve(lendingPoolAddress, tokenId, {
|
|
30
|
-
maxFeePerGas,
|
|
30
|
+
// maxFeePerGas,
|
|
31
31
|
nonce: await signer.getNonce(),
|
|
32
32
|
});
|
|
33
33
|
await approveTx.wait();
|
|
34
34
|
console.log(`Approved lending pool to transfer NFT #${tokenId}`);
|
|
35
35
|
// Deposit (stake) the NFT
|
|
36
36
|
const depositTx = await lendingPoolContract.depositNFT(tokenId, {
|
|
37
|
-
maxFeePerGas,
|
|
37
|
+
// maxFeePerGas,
|
|
38
38
|
nonce: await signer.getNonce(),
|
|
39
39
|
});
|
|
40
40
|
console.log(`Deposit transaction sent for NFT #${tokenId}:`, depositTx.hash);
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
const ethers_1 = require("ethers");
|
|
7
4
|
const contracts_1 = require("../../utils/contracts");
|
|
8
5
|
const artifacts_1 = require("../../utils/artifacts");
|
|
9
|
-
const estimateGasPrice_1 = __importDefault(require("../../methods/commons/estimateGasPrice"));
|
|
10
6
|
// checked
|
|
11
7
|
async function depositToLendingPool(chainId, amount, signer) {
|
|
12
8
|
if (!signer) {
|
|
@@ -17,9 +13,9 @@ async function depositToLendingPool(chainId, amount, signer) {
|
|
|
17
13
|
const lendingPoolABI = (0, artifacts_1.getABI)("lendingpool");
|
|
18
14
|
const lendingPoolContract = new ethers_1.ethers.Contract(lendingPoolAddress, lendingPoolABI, signer);
|
|
19
15
|
const amountInWei = ethers_1.ethers.parseEther(amount);
|
|
20
|
-
const { maxFeePerGas } = await (
|
|
16
|
+
// const { maxFeePerGas } = await estimateGasPrice(signer);
|
|
21
17
|
const depositTx = await lendingPoolContract.deposit(amountInWei.toString(), {
|
|
22
|
-
maxFeePerGas,
|
|
18
|
+
// maxFeePerGas,
|
|
23
19
|
nonce: await signer.getNonce(),
|
|
24
20
|
});
|
|
25
21
|
console.log(`Deposit transaction sent for rToken:`, depositTx.hash);
|
|
@@ -12,6 +12,7 @@ function transformPositionView(positionView) {
|
|
|
12
12
|
isUnderLiquidation: positionView?.[3] || false,
|
|
13
13
|
liquidationStartTime: (positionView?.[4] || 0n).toString(),
|
|
14
14
|
positionIndex: (positionView?.[5] || 0n).toString(),
|
|
15
|
+
isInsured: positionView?.[6] || false,
|
|
15
16
|
};
|
|
16
17
|
}
|
|
17
18
|
/**
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
const ethers_1 = require("ethers");
|
|
7
4
|
const getContractAddress_1 = require("../../contracts/getContractAddress");
|
|
8
5
|
const artifacts_1 = require("../../utils/artifacts");
|
|
9
|
-
const estimateGasPrice_1 = __importDefault(require("../../methods/commons/estimateGasPrice"));
|
|
10
6
|
async function withdrawFromLendingPool(chainId, amount, signer) {
|
|
11
7
|
try {
|
|
12
8
|
const lendingPoolAddress = (0, getContractAddress_1.getContractAddress)(chainId, "lendingpool");
|
|
@@ -16,7 +12,7 @@ async function withdrawFromLendingPool(chainId, amount, signer) {
|
|
|
16
12
|
const lendingPoolContract = new ethers_1.ethers.Contract(lendingPoolAddress, lendingPoolABI, signer);
|
|
17
13
|
const rTokenContract = new ethers_1.ethers.Contract(rtokenAddress, assetABI, signer);
|
|
18
14
|
const amountInWei = ethers_1.ethers.parseEther(amount.toString());
|
|
19
|
-
const { maxFeePerGas } = await (
|
|
15
|
+
// const { maxFeePerGas } = await estimateGasPrice(signer);
|
|
20
16
|
const userBalance = await rTokenContract.balanceOf(await signer.getAddress());
|
|
21
17
|
if (userBalance < parseFloat(amount)) {
|
|
22
18
|
throw new Error(`Insufficient rToken balance. Available: ${ethers_1.ethers.formatEther(userBalance)}, Requested: ${ethers_1.ethers.formatEther(amount)}`);
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
const ethers_1 = require("ethers");
|
|
7
4
|
const contracts_1 = require("../../utils/contracts");
|
|
8
5
|
const artifacts_1 = require("../../utils/artifacts");
|
|
9
|
-
const estimateGasPrice_1 = __importDefault(require("../../methods/commons/estimateGasPrice"));
|
|
10
6
|
async function depositToStabilityPool(chainId, amount, signer) {
|
|
11
7
|
if (!signer) {
|
|
12
8
|
throw new Error("Wallet not connected");
|
|
@@ -16,9 +12,7 @@ async function depositToStabilityPool(chainId, amount, signer) {
|
|
|
16
12
|
const abi = (0, artifacts_1.getABI)("stabilitypool");
|
|
17
13
|
const stabilityPoolContract = new ethers_1.ethers.Contract(stabilityPoolAddress, abi, signer);
|
|
18
14
|
const amountInWei = ethers_1.ethers.parseEther(amount);
|
|
19
|
-
const { maxFeePerGas } = await (0, estimateGasPrice_1.default)(signer);
|
|
20
15
|
const tx = await stabilityPoolContract.deposit(amountInWei.toString(), {
|
|
21
|
-
maxFeePerGas,
|
|
22
16
|
nonce: await signer.getNonce(),
|
|
23
17
|
});
|
|
24
18
|
console.log(`Deposit transaction sent to Stability Pool:`, tx.hash);
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
const ethers_1 = require("ethers");
|
|
7
4
|
const contracts_1 = require("../../utils/contracts");
|
|
8
5
|
const artifacts_1 = require("../../utils/artifacts");
|
|
9
|
-
const estimateGasPrice_1 = __importDefault(require("../../methods/commons/estimateGasPrice"));
|
|
10
6
|
async function withdrawFromStabilityPool(chainId, amount, signer) {
|
|
11
7
|
if (!signer) {
|
|
12
8
|
throw new Error("Wallet not connected");
|
|
@@ -16,9 +12,7 @@ async function withdrawFromStabilityPool(chainId, amount, signer) {
|
|
|
16
12
|
const abi = (0, artifacts_1.getABI)("stabilitypool");
|
|
17
13
|
const stabilityPoolContract = new ethers_1.ethers.Contract(stabilityPoolAddress, abi, signer);
|
|
18
14
|
const amountInWei = ethers_1.ethers.parseEther(amount);
|
|
19
|
-
const { maxFeePerGas } = await (0, estimateGasPrice_1.default)(signer);
|
|
20
15
|
const tx = await stabilityPoolContract.withdraw(amountInWei.toString(), {
|
|
21
|
-
maxFeePerGas,
|
|
22
16
|
nonce: await signer.getNonce(),
|
|
23
17
|
});
|
|
24
18
|
console.log(`Withdrawal transaction sent to Stability Pool:`, tx.hash);
|
package/dist/scripts/index.js
CHANGED
|
@@ -9,7 +9,7 @@ const chains_1 = __importDefault(require("../configs/chains"));
|
|
|
9
9
|
const RPCLibrary_1 = __importDefault(require("../RPCLibrary"));
|
|
10
10
|
const contracts_1 = require("../utils/contracts");
|
|
11
11
|
const artifacts_1 = require("../utils/artifacts");
|
|
12
|
-
const chainId =
|
|
12
|
+
const chainId = 8453;
|
|
13
13
|
const config = chains_1.default[chainId];
|
|
14
14
|
const TEST_MNEMONIC = process.env.TEST_MNEMONIC;
|
|
15
15
|
const TEST_PRIVATE_KEY = process.env.TEST_PRIVATE_KEY;
|
|
@@ -17,14 +17,16 @@ async function getProvider() {
|
|
|
17
17
|
return new ethers_1.ethers.JsonRpcProvider(config.rpcs[0]);
|
|
18
18
|
}
|
|
19
19
|
async function createWallet(mnemonic, provider) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
//
|
|
23
|
-
// return wallet;
|
|
24
|
-
// load from private key
|
|
25
|
-
const wallet = new ethers_1.ethers.Wallet(TEST_PRIVATE_KEY, provider);
|
|
26
|
-
console.info(`[${chainId}]: Loaded wallet from private key: ${wallet.address}`);
|
|
20
|
+
const wallet = ethers_1.ethers.Wallet.fromPhrase(mnemonic, provider);
|
|
21
|
+
console.info(`[${chainId}]: Loaded wallet from mnemonic: ${wallet.address}`);
|
|
22
|
+
// the signer is the wallet
|
|
27
23
|
return wallet;
|
|
24
|
+
// load from private key
|
|
25
|
+
// const wallet = new ethers.Wallet(TEST_PRIVATE_KEY, provider);
|
|
26
|
+
// console.info(
|
|
27
|
+
// `[${chainId}]: Loaded wallet from private key: ${wallet.address}`
|
|
28
|
+
// );
|
|
29
|
+
// return wallet;
|
|
28
30
|
}
|
|
29
31
|
async function setup() {
|
|
30
32
|
const provider = await getProvider();
|
|
@@ -144,7 +146,7 @@ const fulfillRequest = async () => {
|
|
|
144
146
|
const redemptionToken = await rpc.contracts.indexToken.getNextRandomNFT(chainId, provider);
|
|
145
147
|
console.log("Redemption token", redemptionToken);
|
|
146
148
|
};
|
|
147
|
-
execute();
|
|
149
|
+
// execute();
|
|
148
150
|
// setup();
|
|
149
151
|
// fulfillRequest();
|
|
150
|
-
|
|
152
|
+
updateNFTPrice("1", "200000");
|
|
@@ -8,6 +8,7 @@ export declare function transformPositionView(positionView: ILendingPool.NFTPosi
|
|
|
8
8
|
isUnderLiquidation: boolean;
|
|
9
9
|
liquidationStartTime: string;
|
|
10
10
|
positionIndex: string;
|
|
11
|
+
isInsured: boolean;
|
|
11
12
|
};
|
|
12
13
|
/**
|
|
13
14
|
* @description Return all the information about a NFT position
|
|
@@ -23,5 +24,6 @@ declare function getPositionView(chainId: ChainId, address: string, tokenId: str
|
|
|
23
24
|
isUnderLiquidation: boolean;
|
|
24
25
|
liquidationStartTime: string;
|
|
25
26
|
positionIndex: string;
|
|
27
|
+
isInsured: boolean;
|
|
26
28
|
}>;
|
|
27
29
|
export default getPositionView;
|
|
@@ -129,8 +129,8 @@ export declare namespace ReserveLibrary {
|
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
131
|
export interface LendingPoolInterface extends Interface {
|
|
132
|
-
getFunction(nameOrSignature: "BASE_HEALTH_FACTOR_LIQUIDATION_THRESHOLD" | "BASE_LIQUIDATION_GRACE_PERIOD" | "BASE_LIQUIDATION_THRESHOLD" | "borrow" | "borrowWithInsurance" | "calculateHealthFactor" | "calculateInsuranceFee" | "canPaybackDebt" | "claimCollectorRewards" | "claimReward" | "closeLiquidation" | "debtToken" | "deposit" | "
|
|
133
|
-
getEvent(nameOrSignatureOrTopic: "Borrow" | "CanPaybackDebtChanged" | "Deposit(address,uint256,uint256)" | "Deposit(address,uint256,uint256)" | "
|
|
132
|
+
getFunction(nameOrSignature: "BASE_HEALTH_FACTOR_LIQUIDATION_THRESHOLD" | "BASE_LIQUIDATION_GRACE_PERIOD" | "BASE_LIQUIDATION_THRESHOLD" | "borrow" | "borrowWithInsurance" | "calculateHealthFactor" | "calculateInsuranceFee" | "canPaybackDebt" | "claimCollectorRewards" | "claimReward" | "closeLiquidation" | "debtToken" | "deposit" | "depositNFT" | "depositRewardTokens" | "feeCollector" | "finalizeLiquidation" | "getAllUserData" | "getEligibleUserDeposits" | "getNFTPrice" | "getNormalizedDebt" | "getNormalizedIncome" | "getPendingReward" | "getPosition" | "getPositionData" | "getPositionDebt" | "getPositionScaledDebt" | "getPositionView" | "getPositionsScaledDebt" | "getPrimeRate" | "getRAACNFTAddress" | "getReserveRateData" | "getReserveState" | "getUnclaimedVaultRewards" | "getUninsuredBalance" | "getUserCollateralValue" | "getUserDebt" | "getUserDeposits" | "getUserDepositsInStabilityPool" | "getUserOfDepositedNFT" | "healthFactorLiquidationThreshold" | "initiateLiquidation" | "insuranceFee" | "liquidationGracePeriod" | "liquidationThreshold" | "liquidityBufferRatio" | "onERC721Received" | "owner" | "pause" | "paused" | "positions" | "priceOracle" | "primeRateOracle" | "rToken" | "raacNFT" | "rateData" | "renounceOwnership" | "repay" | "repayOnBehalf" | "rescueToken" | "reserve" | "reserveAssetToken" | "rewardData" | "setFeeCollector" | "setParameter" | "setPrimeRate" | "setPrimeRateOracle" | "setRewardToken" | "setStabilityPool" | "setVault" | "stabilityPool" | "transferAccruedDust" | "transferOwnership" | "unpause" | "updateState" | "updateUserReward" | "userData" | "vault" | "vaultRewards" | "withdraw" | "withdrawNFT" | "withdrawalsPaused"): FunctionFragment;
|
|
133
|
+
getEvent(nameOrSignatureOrTopic: "Borrow" | "CanPaybackDebtChanged" | "Deposit(address,uint256,uint256)" | "Deposit(address,uint256,uint256)" | "FeeCollectorUpdated" | "InsufficientFees" | "InsuranceFeeUpdated" | "InsuredNFT" | "InterestRatesUpdated" | "Liquidation" | "LiquidationClosed" | "LiquidationFinalized" | "LiquidationInitiated" | "LiquidationParametersUpdated" | "LiquidityBufferRatioUpdated" | "LiquidityRebalanced" | "NFTDeposited" | "NFTWithdrawn" | "NotFeeCollector" | "OwnershipTransferred" | "Paused" | "PrimeRateUpdated" | "ProtocolFeeRateUpdated" | "ProtocolFeesCollected" | "ProtocolFeesWithdrawn" | "Repay" | "ReserveInterestsUpdated" | "RewardClaimed" | "RewardDistributed" | "RewardParametersUpdated" | "RewardTokenAdded" | "RewardTokensDeposited" | "StabilityPoolUpdated" | "Unpaused" | "VaultRewardsClaimed" | "VaultUpdated" | "VaultWithdrawalFailed" | "Withdraw(address,uint256)" | "Withdraw(address,uint256,uint256)" | "WithdrawalsPauseStatusChanged"): EventFragment;
|
|
134
134
|
encodeFunctionData(functionFragment: "BASE_HEALTH_FACTOR_LIQUIDATION_THRESHOLD", values?: undefined): string;
|
|
135
135
|
encodeFunctionData(functionFragment: "BASE_LIQUIDATION_GRACE_PERIOD", values?: undefined): string;
|
|
136
136
|
encodeFunctionData(functionFragment: "BASE_LIQUIDATION_THRESHOLD", values?: undefined): string;
|
|
@@ -144,7 +144,6 @@ export interface LendingPoolInterface extends Interface {
|
|
|
144
144
|
encodeFunctionData(functionFragment: "closeLiquidation", values: [BigNumberish]): string;
|
|
145
145
|
encodeFunctionData(functionFragment: "debtToken", values?: undefined): string;
|
|
146
146
|
encodeFunctionData(functionFragment: "deposit", values: [BigNumberish]): string;
|
|
147
|
-
encodeFunctionData(functionFragment: "depositFee", values?: undefined): string;
|
|
148
147
|
encodeFunctionData(functionFragment: "depositNFT", values: [BigNumberish]): string;
|
|
149
148
|
encodeFunctionData(functionFragment: "depositRewardTokens", values: [BigNumberish]): string;
|
|
150
149
|
encodeFunctionData(functionFragment: "feeCollector", values?: undefined): string;
|
|
@@ -213,7 +212,6 @@ export interface LendingPoolInterface extends Interface {
|
|
|
213
212
|
encodeFunctionData(functionFragment: "vaultRewards", values?: undefined): string;
|
|
214
213
|
encodeFunctionData(functionFragment: "withdraw", values: [BigNumberish]): string;
|
|
215
214
|
encodeFunctionData(functionFragment: "withdrawNFT", values: [BigNumberish]): string;
|
|
216
|
-
encodeFunctionData(functionFragment: "withdrawalFee", values?: undefined): string;
|
|
217
215
|
encodeFunctionData(functionFragment: "withdrawalsPaused", values?: undefined): string;
|
|
218
216
|
decodeFunctionResult(functionFragment: "BASE_HEALTH_FACTOR_LIQUIDATION_THRESHOLD", data: BytesLike): Result;
|
|
219
217
|
decodeFunctionResult(functionFragment: "BASE_LIQUIDATION_GRACE_PERIOD", data: BytesLike): Result;
|
|
@@ -228,7 +226,6 @@ export interface LendingPoolInterface extends Interface {
|
|
|
228
226
|
decodeFunctionResult(functionFragment: "closeLiquidation", data: BytesLike): Result;
|
|
229
227
|
decodeFunctionResult(functionFragment: "debtToken", data: BytesLike): Result;
|
|
230
228
|
decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
|
|
231
|
-
decodeFunctionResult(functionFragment: "depositFee", data: BytesLike): Result;
|
|
232
229
|
decodeFunctionResult(functionFragment: "depositNFT", data: BytesLike): Result;
|
|
233
230
|
decodeFunctionResult(functionFragment: "depositRewardTokens", data: BytesLike): Result;
|
|
234
231
|
decodeFunctionResult(functionFragment: "feeCollector", data: BytesLike): Result;
|
|
@@ -297,7 +294,6 @@ export interface LendingPoolInterface extends Interface {
|
|
|
297
294
|
decodeFunctionResult(functionFragment: "vaultRewards", data: BytesLike): Result;
|
|
298
295
|
decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
|
|
299
296
|
decodeFunctionResult(functionFragment: "withdrawNFT", data: BytesLike): Result;
|
|
300
|
-
decodeFunctionResult(functionFragment: "withdrawalFee", data: BytesLike): Result;
|
|
301
297
|
decodeFunctionResult(functionFragment: "withdrawalsPaused", data: BytesLike): Result;
|
|
302
298
|
}
|
|
303
299
|
export declare namespace BorrowEvent {
|
|
@@ -365,21 +361,6 @@ export declare namespace Deposit_address_uint256_uint256_Event {
|
|
|
365
361
|
type Log = TypedEventLog<Event>;
|
|
366
362
|
type LogDescription = TypedLogDescription<Event>;
|
|
367
363
|
}
|
|
368
|
-
export declare namespace DepositFeeUpdatedEvent {
|
|
369
|
-
type InputTuple = [
|
|
370
|
-
oldDepositFee: BigNumberish,
|
|
371
|
-
newDepositFee: BigNumberish
|
|
372
|
-
];
|
|
373
|
-
type OutputTuple = [oldDepositFee: bigint, newDepositFee: bigint];
|
|
374
|
-
interface OutputObject {
|
|
375
|
-
oldDepositFee: bigint;
|
|
376
|
-
newDepositFee: bigint;
|
|
377
|
-
}
|
|
378
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
379
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
380
|
-
type Log = TypedEventLog<Event>;
|
|
381
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
382
|
-
}
|
|
383
364
|
export declare namespace FeeCollectorUpdatedEvent {
|
|
384
365
|
type InputTuple = [
|
|
385
366
|
oldFeeCollector: AddressLike,
|
|
@@ -900,24 +881,6 @@ export declare namespace Withdraw_address_uint256_uint256_Event {
|
|
|
900
881
|
type Log = TypedEventLog<Event>;
|
|
901
882
|
type LogDescription = TypedLogDescription<Event>;
|
|
902
883
|
}
|
|
903
|
-
export declare namespace WithdrawFeeUpdatedEvent {
|
|
904
|
-
type InputTuple = [
|
|
905
|
-
oldWithdrawalFee: BigNumberish,
|
|
906
|
-
newWithdrawalFee: BigNumberish
|
|
907
|
-
];
|
|
908
|
-
type OutputTuple = [
|
|
909
|
-
oldWithdrawalFee: bigint,
|
|
910
|
-
newWithdrawalFee: bigint
|
|
911
|
-
];
|
|
912
|
-
interface OutputObject {
|
|
913
|
-
oldWithdrawalFee: bigint;
|
|
914
|
-
newWithdrawalFee: bigint;
|
|
915
|
-
}
|
|
916
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
917
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
918
|
-
type Log = TypedEventLog<Event>;
|
|
919
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
920
|
-
}
|
|
921
884
|
export declare namespace WithdrawalsPauseStatusChangedEvent {
|
|
922
885
|
type InputTuple = [isPaused: boolean];
|
|
923
886
|
type OutputTuple = [isPaused: boolean];
|
|
@@ -983,7 +946,6 @@ export interface LendingPool extends BaseContract {
|
|
|
983
946
|
], "nonpayable">;
|
|
984
947
|
debtToken: TypedContractMethod<[], [string], "view">;
|
|
985
948
|
deposit: TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
|
|
986
|
-
depositFee: TypedContractMethod<[], [bigint], "view">;
|
|
987
949
|
depositNFT: TypedContractMethod<[
|
|
988
950
|
tokenId: BigNumberish
|
|
989
951
|
], [
|
|
@@ -1289,7 +1251,6 @@ export interface LendingPool extends BaseContract {
|
|
|
1289
1251
|
], [
|
|
1290
1252
|
void
|
|
1291
1253
|
], "nonpayable">;
|
|
1292
|
-
withdrawalFee: TypedContractMethod<[], [bigint], "view">;
|
|
1293
1254
|
withdrawalsPaused: TypedContractMethod<[], [boolean], "view">;
|
|
1294
1255
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
1295
1256
|
getFunction(nameOrSignature: "BASE_HEALTH_FACTOR_LIQUIDATION_THRESHOLD"): TypedContractMethod<[], [bigint], "view">;
|
|
@@ -1326,7 +1287,6 @@ export interface LendingPool extends BaseContract {
|
|
|
1326
1287
|
getFunction(nameOrSignature: "closeLiquidation"): TypedContractMethod<[tokenId: BigNumberish], [void], "nonpayable">;
|
|
1327
1288
|
getFunction(nameOrSignature: "debtToken"): TypedContractMethod<[], [string], "view">;
|
|
1328
1289
|
getFunction(nameOrSignature: "deposit"): TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
|
|
1329
|
-
getFunction(nameOrSignature: "depositFee"): TypedContractMethod<[], [bigint], "view">;
|
|
1330
1290
|
getFunction(nameOrSignature: "depositNFT"): TypedContractMethod<[tokenId: BigNumberish], [void], "nonpayable">;
|
|
1331
1291
|
getFunction(nameOrSignature: "depositRewardTokens"): TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
|
|
1332
1292
|
getFunction(nameOrSignature: "feeCollector"): TypedContractMethod<[], [string], "view">;
|
|
@@ -1565,13 +1525,11 @@ export interface LendingPool extends BaseContract {
|
|
|
1565
1525
|
], "view">;
|
|
1566
1526
|
getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
|
|
1567
1527
|
getFunction(nameOrSignature: "withdrawNFT"): TypedContractMethod<[tokenId: BigNumberish], [void], "nonpayable">;
|
|
1568
|
-
getFunction(nameOrSignature: "withdrawalFee"): TypedContractMethod<[], [bigint], "view">;
|
|
1569
1528
|
getFunction(nameOrSignature: "withdrawalsPaused"): TypedContractMethod<[], [boolean], "view">;
|
|
1570
1529
|
getEvent(key: "Borrow"): TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
|
|
1571
1530
|
getEvent(key: "CanPaybackDebtChanged"): TypedContractEvent<CanPaybackDebtChangedEvent.InputTuple, CanPaybackDebtChangedEvent.OutputTuple, CanPaybackDebtChangedEvent.OutputObject>;
|
|
1572
1531
|
getEvent(key: "Deposit(address,uint256,uint256)"): TypedContractEvent<Deposit_address_uint256_uint256_Event.InputTuple, Deposit_address_uint256_uint256_Event.OutputTuple, Deposit_address_uint256_uint256_Event.OutputObject>;
|
|
1573
1532
|
getEvent(key: "Deposit(address,uint256,uint256)"): TypedContractEvent<Deposit_address_uint256_uint256_Event.InputTuple, Deposit_address_uint256_uint256_Event.OutputTuple, Deposit_address_uint256_uint256_Event.OutputObject>;
|
|
1574
|
-
getEvent(key: "DepositFeeUpdated"): TypedContractEvent<DepositFeeUpdatedEvent.InputTuple, DepositFeeUpdatedEvent.OutputTuple, DepositFeeUpdatedEvent.OutputObject>;
|
|
1575
1533
|
getEvent(key: "FeeCollectorUpdated"): TypedContractEvent<FeeCollectorUpdatedEvent.InputTuple, FeeCollectorUpdatedEvent.OutputTuple, FeeCollectorUpdatedEvent.OutputObject>;
|
|
1576
1534
|
getEvent(key: "InsufficientFees"): TypedContractEvent<InsufficientFeesEvent.InputTuple, InsufficientFeesEvent.OutputTuple, InsufficientFeesEvent.OutputObject>;
|
|
1577
1535
|
getEvent(key: "InsuranceFeeUpdated"): TypedContractEvent<InsuranceFeeUpdatedEvent.InputTuple, InsuranceFeeUpdatedEvent.OutputTuple, InsuranceFeeUpdatedEvent.OutputObject>;
|
|
@@ -1607,7 +1565,6 @@ export interface LendingPool extends BaseContract {
|
|
|
1607
1565
|
getEvent(key: "VaultWithdrawalFailed"): TypedContractEvent<VaultWithdrawalFailedEvent.InputTuple, VaultWithdrawalFailedEvent.OutputTuple, VaultWithdrawalFailedEvent.OutputObject>;
|
|
1608
1566
|
getEvent(key: "Withdraw(address,uint256)"): TypedContractEvent<Withdraw_address_uint256_Event.InputTuple, Withdraw_address_uint256_Event.OutputTuple, Withdraw_address_uint256_Event.OutputObject>;
|
|
1609
1567
|
getEvent(key: "Withdraw(address,uint256,uint256)"): TypedContractEvent<Withdraw_address_uint256_uint256_Event.InputTuple, Withdraw_address_uint256_uint256_Event.OutputTuple, Withdraw_address_uint256_uint256_Event.OutputObject>;
|
|
1610
|
-
getEvent(key: "WithdrawFeeUpdated"): TypedContractEvent<WithdrawFeeUpdatedEvent.InputTuple, WithdrawFeeUpdatedEvent.OutputTuple, WithdrawFeeUpdatedEvent.OutputObject>;
|
|
1611
1568
|
getEvent(key: "WithdrawalsPauseStatusChanged"): TypedContractEvent<WithdrawalsPauseStatusChangedEvent.InputTuple, WithdrawalsPauseStatusChangedEvent.OutputTuple, WithdrawalsPauseStatusChangedEvent.OutputObject>;
|
|
1612
1569
|
filters: {
|
|
1613
1570
|
"Borrow(address,uint256)": TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
|
|
@@ -1616,8 +1573,6 @@ export interface LendingPool extends BaseContract {
|
|
|
1616
1573
|
CanPaybackDebtChanged: TypedContractEvent<CanPaybackDebtChangedEvent.InputTuple, CanPaybackDebtChangedEvent.OutputTuple, CanPaybackDebtChangedEvent.OutputObject>;
|
|
1617
1574
|
"Deposit(address,uint256,uint256)": TypedContractEvent<Deposit_address_uint256_uint256_Event.InputTuple, Deposit_address_uint256_uint256_Event.OutputTuple, Deposit_address_uint256_uint256_Event.OutputObject>;
|
|
1618
1575
|
"Deposit(address,uint256,uint256)": TypedContractEvent<Deposit_address_uint256_uint256_Event.InputTuple, Deposit_address_uint256_uint256_Event.OutputTuple, Deposit_address_uint256_uint256_Event.OutputObject>;
|
|
1619
|
-
"DepositFeeUpdated(uint256,uint256)": TypedContractEvent<DepositFeeUpdatedEvent.InputTuple, DepositFeeUpdatedEvent.OutputTuple, DepositFeeUpdatedEvent.OutputObject>;
|
|
1620
|
-
DepositFeeUpdated: TypedContractEvent<DepositFeeUpdatedEvent.InputTuple, DepositFeeUpdatedEvent.OutputTuple, DepositFeeUpdatedEvent.OutputObject>;
|
|
1621
1576
|
"FeeCollectorUpdated(address,address)": TypedContractEvent<FeeCollectorUpdatedEvent.InputTuple, FeeCollectorUpdatedEvent.OutputTuple, FeeCollectorUpdatedEvent.OutputObject>;
|
|
1622
1577
|
FeeCollectorUpdated: TypedContractEvent<FeeCollectorUpdatedEvent.InputTuple, FeeCollectorUpdatedEvent.OutputTuple, FeeCollectorUpdatedEvent.OutputObject>;
|
|
1623
1578
|
"InsufficientFees()": TypedContractEvent<InsufficientFeesEvent.InputTuple, InsufficientFeesEvent.OutputTuple, InsufficientFeesEvent.OutputObject>;
|
|
@@ -1686,8 +1641,6 @@ export interface LendingPool extends BaseContract {
|
|
|
1686
1641
|
VaultWithdrawalFailed: TypedContractEvent<VaultWithdrawalFailedEvent.InputTuple, VaultWithdrawalFailedEvent.OutputTuple, VaultWithdrawalFailedEvent.OutputObject>;
|
|
1687
1642
|
"Withdraw(address,uint256)": TypedContractEvent<Withdraw_address_uint256_Event.InputTuple, Withdraw_address_uint256_Event.OutputTuple, Withdraw_address_uint256_Event.OutputObject>;
|
|
1688
1643
|
"Withdraw(address,uint256,uint256)": TypedContractEvent<Withdraw_address_uint256_uint256_Event.InputTuple, Withdraw_address_uint256_uint256_Event.OutputTuple, Withdraw_address_uint256_uint256_Event.OutputObject>;
|
|
1689
|
-
"WithdrawFeeUpdated(uint256,uint256)": TypedContractEvent<WithdrawFeeUpdatedEvent.InputTuple, WithdrawFeeUpdatedEvent.OutputTuple, WithdrawFeeUpdatedEvent.OutputObject>;
|
|
1690
|
-
WithdrawFeeUpdated: TypedContractEvent<WithdrawFeeUpdatedEvent.InputTuple, WithdrawFeeUpdatedEvent.OutputTuple, WithdrawFeeUpdatedEvent.OutputObject>;
|
|
1691
1644
|
"WithdrawalsPauseStatusChanged(bool)": TypedContractEvent<WithdrawalsPauseStatusChangedEvent.InputTuple, WithdrawalsPauseStatusChangedEvent.OutputTuple, WithdrawalsPauseStatusChangedEvent.OutputObject>;
|
|
1692
1645
|
WithdrawalsPauseStatusChanged: TypedContractEvent<WithdrawalsPauseStatusChangedEvent.InputTuple, WithdrawalsPauseStatusChangedEvent.OutputTuple, WithdrawalsPauseStatusChangedEvent.OutputObject>;
|
|
1693
1646
|
};
|
package/dist/types/typechain-types/contracts/interfaces/core/pools/LendingPool/ILendingPool.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ export declare namespace ILendingPool {
|
|
|
70
70
|
}
|
|
71
71
|
export interface ILendingPoolInterface extends Interface {
|
|
72
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" | "
|
|
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
74
|
encodeFunctionData(functionFragment: "borrow", values: [BigNumberish, BigNumberish]): string;
|
|
75
75
|
encodeFunctionData(functionFragment: "calculateHealthFactor", values: [AddressLike, BigNumberish]): string;
|
|
76
76
|
encodeFunctionData(functionFragment: "claimCollectorRewards", values?: undefined): string;
|
|
@@ -184,21 +184,6 @@ export declare namespace DepositEvent {
|
|
|
184
184
|
type Log = TypedEventLog<Event>;
|
|
185
185
|
type LogDescription = TypedLogDescription<Event>;
|
|
186
186
|
}
|
|
187
|
-
export declare namespace DepositFeeUpdatedEvent {
|
|
188
|
-
type InputTuple = [
|
|
189
|
-
oldDepositFee: BigNumberish,
|
|
190
|
-
newDepositFee: BigNumberish
|
|
191
|
-
];
|
|
192
|
-
type OutputTuple = [oldDepositFee: bigint, newDepositFee: bigint];
|
|
193
|
-
interface OutputObject {
|
|
194
|
-
oldDepositFee: bigint;
|
|
195
|
-
newDepositFee: bigint;
|
|
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
187
|
export declare namespace FeeCollectorUpdatedEvent {
|
|
203
188
|
type InputTuple = [
|
|
204
189
|
oldFeeCollector: AddressLike,
|
|
@@ -619,24 +604,6 @@ export declare namespace WithdrawEvent {
|
|
|
619
604
|
type Log = TypedEventLog<Event>;
|
|
620
605
|
type LogDescription = TypedLogDescription<Event>;
|
|
621
606
|
}
|
|
622
|
-
export declare namespace WithdrawFeeUpdatedEvent {
|
|
623
|
-
type InputTuple = [
|
|
624
|
-
oldWithdrawalFee: BigNumberish,
|
|
625
|
-
newWithdrawalFee: BigNumberish
|
|
626
|
-
];
|
|
627
|
-
type OutputTuple = [
|
|
628
|
-
oldWithdrawalFee: bigint,
|
|
629
|
-
newWithdrawalFee: bigint
|
|
630
|
-
];
|
|
631
|
-
interface OutputObject {
|
|
632
|
-
oldWithdrawalFee: bigint;
|
|
633
|
-
newWithdrawalFee: bigint;
|
|
634
|
-
}
|
|
635
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
636
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
637
|
-
type Log = TypedEventLog<Event>;
|
|
638
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
639
|
-
}
|
|
640
607
|
export declare namespace WithdrawalsPauseStatusChangedEvent {
|
|
641
608
|
type InputTuple = [isPaused: boolean];
|
|
642
609
|
type OutputTuple = [isPaused: boolean];
|
|
@@ -917,7 +884,6 @@ export interface ILendingPool extends BaseContract {
|
|
|
917
884
|
getEvent(key: "Borrow"): TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
|
|
918
885
|
getEvent(key: "CanPaybackDebtChanged"): TypedContractEvent<CanPaybackDebtChangedEvent.InputTuple, CanPaybackDebtChangedEvent.OutputTuple, CanPaybackDebtChangedEvent.OutputObject>;
|
|
919
886
|
getEvent(key: "Deposit"): TypedContractEvent<DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject>;
|
|
920
|
-
getEvent(key: "DepositFeeUpdated"): TypedContractEvent<DepositFeeUpdatedEvent.InputTuple, DepositFeeUpdatedEvent.OutputTuple, DepositFeeUpdatedEvent.OutputObject>;
|
|
921
887
|
getEvent(key: "FeeCollectorUpdated"): TypedContractEvent<FeeCollectorUpdatedEvent.InputTuple, FeeCollectorUpdatedEvent.OutputTuple, FeeCollectorUpdatedEvent.OutputObject>;
|
|
922
888
|
getEvent(key: "InsufficientFees"): TypedContractEvent<InsufficientFeesEvent.InputTuple, InsufficientFeesEvent.OutputTuple, InsufficientFeesEvent.OutputObject>;
|
|
923
889
|
getEvent(key: "InsuranceFeeUpdated"): TypedContractEvent<InsuranceFeeUpdatedEvent.InputTuple, InsuranceFeeUpdatedEvent.OutputTuple, InsuranceFeeUpdatedEvent.OutputObject>;
|
|
@@ -946,7 +912,6 @@ export interface ILendingPool extends BaseContract {
|
|
|
946
912
|
getEvent(key: "VaultUpdated"): TypedContractEvent<VaultUpdatedEvent.InputTuple, VaultUpdatedEvent.OutputTuple, VaultUpdatedEvent.OutputObject>;
|
|
947
913
|
getEvent(key: "VaultWithdrawalFailed"): TypedContractEvent<VaultWithdrawalFailedEvent.InputTuple, VaultWithdrawalFailedEvent.OutputTuple, VaultWithdrawalFailedEvent.OutputObject>;
|
|
948
914
|
getEvent(key: "Withdraw"): TypedContractEvent<WithdrawEvent.InputTuple, WithdrawEvent.OutputTuple, WithdrawEvent.OutputObject>;
|
|
949
|
-
getEvent(key: "WithdrawFeeUpdated"): TypedContractEvent<WithdrawFeeUpdatedEvent.InputTuple, WithdrawFeeUpdatedEvent.OutputTuple, WithdrawFeeUpdatedEvent.OutputObject>;
|
|
950
915
|
getEvent(key: "WithdrawalsPauseStatusChanged"): TypedContractEvent<WithdrawalsPauseStatusChangedEvent.InputTuple, WithdrawalsPauseStatusChangedEvent.OutputTuple, WithdrawalsPauseStatusChangedEvent.OutputObject>;
|
|
951
916
|
filters: {
|
|
952
917
|
"Borrow(address,uint256)": TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
|
|
@@ -955,8 +920,6 @@ export interface ILendingPool extends BaseContract {
|
|
|
955
920
|
CanPaybackDebtChanged: TypedContractEvent<CanPaybackDebtChangedEvent.InputTuple, CanPaybackDebtChangedEvent.OutputTuple, CanPaybackDebtChangedEvent.OutputObject>;
|
|
956
921
|
"Deposit(address,uint256,uint256)": TypedContractEvent<DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject>;
|
|
957
922
|
Deposit: TypedContractEvent<DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject>;
|
|
958
|
-
"DepositFeeUpdated(uint256,uint256)": TypedContractEvent<DepositFeeUpdatedEvent.InputTuple, DepositFeeUpdatedEvent.OutputTuple, DepositFeeUpdatedEvent.OutputObject>;
|
|
959
|
-
DepositFeeUpdated: TypedContractEvent<DepositFeeUpdatedEvent.InputTuple, DepositFeeUpdatedEvent.OutputTuple, DepositFeeUpdatedEvent.OutputObject>;
|
|
960
923
|
"FeeCollectorUpdated(address,address)": TypedContractEvent<FeeCollectorUpdatedEvent.InputTuple, FeeCollectorUpdatedEvent.OutputTuple, FeeCollectorUpdatedEvent.OutputObject>;
|
|
961
924
|
FeeCollectorUpdated: TypedContractEvent<FeeCollectorUpdatedEvent.InputTuple, FeeCollectorUpdatedEvent.OutputTuple, FeeCollectorUpdatedEvent.OutputObject>;
|
|
962
925
|
"InsufficientFees()": TypedContractEvent<InsufficientFeesEvent.InputTuple, InsufficientFeesEvent.OutputTuple, InsufficientFeesEvent.OutputObject>;
|
|
@@ -1013,8 +976,6 @@ export interface ILendingPool extends BaseContract {
|
|
|
1013
976
|
VaultWithdrawalFailed: TypedContractEvent<VaultWithdrawalFailedEvent.InputTuple, VaultWithdrawalFailedEvent.OutputTuple, VaultWithdrawalFailedEvent.OutputObject>;
|
|
1014
977
|
"Withdraw(address,uint256)": TypedContractEvent<WithdrawEvent.InputTuple, WithdrawEvent.OutputTuple, WithdrawEvent.OutputObject>;
|
|
1015
978
|
Withdraw: TypedContractEvent<WithdrawEvent.InputTuple, WithdrawEvent.OutputTuple, WithdrawEvent.OutputObject>;
|
|
1016
|
-
"WithdrawFeeUpdated(uint256,uint256)": TypedContractEvent<WithdrawFeeUpdatedEvent.InputTuple, WithdrawFeeUpdatedEvent.OutputTuple, WithdrawFeeUpdatedEvent.OutputObject>;
|
|
1017
|
-
WithdrawFeeUpdated: TypedContractEvent<WithdrawFeeUpdatedEvent.InputTuple, WithdrawFeeUpdatedEvent.OutputTuple, WithdrawFeeUpdatedEvent.OutputObject>;
|
|
1018
979
|
"WithdrawalsPauseStatusChanged(bool)": TypedContractEvent<WithdrawalsPauseStatusChangedEvent.InputTuple, WithdrawalsPauseStatusChangedEvent.OutputTuple, WithdrawalsPauseStatusChangedEvent.OutputObject>;
|
|
1019
980
|
WithdrawalsPauseStatusChanged: TypedContractEvent<WithdrawalsPauseStatusChangedEvent.InputTuple, WithdrawalsPauseStatusChangedEvent.OutputTuple, WithdrawalsPauseStatusChangedEvent.OutputObject>;
|
|
1020
981
|
};
|
|
@@ -70,7 +70,7 @@ export declare namespace ILendingPool {
|
|
|
70
70
|
}
|
|
71
71
|
export interface MockLendingPoolDebtTokenInterface extends Interface {
|
|
72
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" | "setNormalizedDebt" | "setParameter" | "setPrimeRate" | "setStabilityPool" | "transferAccruedDust" | "updateState" | "updateUserReward" | "withdraw" | "withdrawNFT"): FunctionFragment;
|
|
73
|
-
getEvent(nameOrSignatureOrTopic: "Borrow" | "CanPaybackDebtChanged" | "Deposit" | "
|
|
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
74
|
encodeFunctionData(functionFragment: "borrow", values: [BigNumberish, BigNumberish]): string;
|
|
75
75
|
encodeFunctionData(functionFragment: "calculateHealthFactor", values: [AddressLike, BigNumberish]): string;
|
|
76
76
|
encodeFunctionData(functionFragment: "claimCollectorRewards", values?: undefined): string;
|
|
@@ -186,21 +186,6 @@ export declare namespace DepositEvent {
|
|
|
186
186
|
type Log = TypedEventLog<Event>;
|
|
187
187
|
type LogDescription = TypedLogDescription<Event>;
|
|
188
188
|
}
|
|
189
|
-
export declare namespace DepositFeeUpdatedEvent {
|
|
190
|
-
type InputTuple = [
|
|
191
|
-
oldDepositFee: BigNumberish,
|
|
192
|
-
newDepositFee: BigNumberish
|
|
193
|
-
];
|
|
194
|
-
type OutputTuple = [oldDepositFee: bigint, newDepositFee: bigint];
|
|
195
|
-
interface OutputObject {
|
|
196
|
-
oldDepositFee: bigint;
|
|
197
|
-
newDepositFee: bigint;
|
|
198
|
-
}
|
|
199
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
200
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
201
|
-
type Log = TypedEventLog<Event>;
|
|
202
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
203
|
-
}
|
|
204
189
|
export declare namespace FeeCollectorUpdatedEvent {
|
|
205
190
|
type InputTuple = [
|
|
206
191
|
oldFeeCollector: AddressLike,
|
|
@@ -621,24 +606,6 @@ export declare namespace WithdrawEvent {
|
|
|
621
606
|
type Log = TypedEventLog<Event>;
|
|
622
607
|
type LogDescription = TypedLogDescription<Event>;
|
|
623
608
|
}
|
|
624
|
-
export declare namespace WithdrawFeeUpdatedEvent {
|
|
625
|
-
type InputTuple = [
|
|
626
|
-
oldWithdrawalFee: BigNumberish,
|
|
627
|
-
newWithdrawalFee: BigNumberish
|
|
628
|
-
];
|
|
629
|
-
type OutputTuple = [
|
|
630
|
-
oldWithdrawalFee: bigint,
|
|
631
|
-
newWithdrawalFee: bigint
|
|
632
|
-
];
|
|
633
|
-
interface OutputObject {
|
|
634
|
-
oldWithdrawalFee: bigint;
|
|
635
|
-
newWithdrawalFee: bigint;
|
|
636
|
-
}
|
|
637
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
638
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
639
|
-
type Log = TypedEventLog<Event>;
|
|
640
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
641
|
-
}
|
|
642
609
|
export declare namespace WithdrawalsPauseStatusChangedEvent {
|
|
643
610
|
type InputTuple = [isPaused: boolean];
|
|
644
611
|
type OutputTuple = [isPaused: boolean];
|
|
@@ -929,7 +896,6 @@ export interface MockLendingPoolDebtToken extends BaseContract {
|
|
|
929
896
|
getEvent(key: "Borrow"): TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
|
|
930
897
|
getEvent(key: "CanPaybackDebtChanged"): TypedContractEvent<CanPaybackDebtChangedEvent.InputTuple, CanPaybackDebtChangedEvent.OutputTuple, CanPaybackDebtChangedEvent.OutputObject>;
|
|
931
898
|
getEvent(key: "Deposit"): TypedContractEvent<DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject>;
|
|
932
|
-
getEvent(key: "DepositFeeUpdated"): TypedContractEvent<DepositFeeUpdatedEvent.InputTuple, DepositFeeUpdatedEvent.OutputTuple, DepositFeeUpdatedEvent.OutputObject>;
|
|
933
899
|
getEvent(key: "FeeCollectorUpdated"): TypedContractEvent<FeeCollectorUpdatedEvent.InputTuple, FeeCollectorUpdatedEvent.OutputTuple, FeeCollectorUpdatedEvent.OutputObject>;
|
|
934
900
|
getEvent(key: "InsufficientFees"): TypedContractEvent<InsufficientFeesEvent.InputTuple, InsufficientFeesEvent.OutputTuple, InsufficientFeesEvent.OutputObject>;
|
|
935
901
|
getEvent(key: "InsuranceFeeUpdated"): TypedContractEvent<InsuranceFeeUpdatedEvent.InputTuple, InsuranceFeeUpdatedEvent.OutputTuple, InsuranceFeeUpdatedEvent.OutputObject>;
|
|
@@ -958,7 +924,6 @@ export interface MockLendingPoolDebtToken extends BaseContract {
|
|
|
958
924
|
getEvent(key: "VaultUpdated"): TypedContractEvent<VaultUpdatedEvent.InputTuple, VaultUpdatedEvent.OutputTuple, VaultUpdatedEvent.OutputObject>;
|
|
959
925
|
getEvent(key: "VaultWithdrawalFailed"): TypedContractEvent<VaultWithdrawalFailedEvent.InputTuple, VaultWithdrawalFailedEvent.OutputTuple, VaultWithdrawalFailedEvent.OutputObject>;
|
|
960
926
|
getEvent(key: "Withdraw"): TypedContractEvent<WithdrawEvent.InputTuple, WithdrawEvent.OutputTuple, WithdrawEvent.OutputObject>;
|
|
961
|
-
getEvent(key: "WithdrawFeeUpdated"): TypedContractEvent<WithdrawFeeUpdatedEvent.InputTuple, WithdrawFeeUpdatedEvent.OutputTuple, WithdrawFeeUpdatedEvent.OutputObject>;
|
|
962
927
|
getEvent(key: "WithdrawalsPauseStatusChanged"): TypedContractEvent<WithdrawalsPauseStatusChangedEvent.InputTuple, WithdrawalsPauseStatusChangedEvent.OutputTuple, WithdrawalsPauseStatusChangedEvent.OutputObject>;
|
|
963
928
|
filters: {
|
|
964
929
|
"Borrow(address,uint256)": TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
|
|
@@ -967,8 +932,6 @@ export interface MockLendingPoolDebtToken extends BaseContract {
|
|
|
967
932
|
CanPaybackDebtChanged: TypedContractEvent<CanPaybackDebtChangedEvent.InputTuple, CanPaybackDebtChangedEvent.OutputTuple, CanPaybackDebtChangedEvent.OutputObject>;
|
|
968
933
|
"Deposit(address,uint256,uint256)": TypedContractEvent<DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject>;
|
|
969
934
|
Deposit: TypedContractEvent<DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject>;
|
|
970
|
-
"DepositFeeUpdated(uint256,uint256)": TypedContractEvent<DepositFeeUpdatedEvent.InputTuple, DepositFeeUpdatedEvent.OutputTuple, DepositFeeUpdatedEvent.OutputObject>;
|
|
971
|
-
DepositFeeUpdated: TypedContractEvent<DepositFeeUpdatedEvent.InputTuple, DepositFeeUpdatedEvent.OutputTuple, DepositFeeUpdatedEvent.OutputObject>;
|
|
972
935
|
"FeeCollectorUpdated(address,address)": TypedContractEvent<FeeCollectorUpdatedEvent.InputTuple, FeeCollectorUpdatedEvent.OutputTuple, FeeCollectorUpdatedEvent.OutputObject>;
|
|
973
936
|
FeeCollectorUpdated: TypedContractEvent<FeeCollectorUpdatedEvent.InputTuple, FeeCollectorUpdatedEvent.OutputTuple, FeeCollectorUpdatedEvent.OutputObject>;
|
|
974
937
|
"InsufficientFees()": TypedContractEvent<InsufficientFeesEvent.InputTuple, InsufficientFeesEvent.OutputTuple, InsufficientFeesEvent.OutputObject>;
|
|
@@ -1025,8 +988,6 @@ export interface MockLendingPoolDebtToken extends BaseContract {
|
|
|
1025
988
|
VaultWithdrawalFailed: TypedContractEvent<VaultWithdrawalFailedEvent.InputTuple, VaultWithdrawalFailedEvent.OutputTuple, VaultWithdrawalFailedEvent.OutputObject>;
|
|
1026
989
|
"Withdraw(address,uint256)": TypedContractEvent<WithdrawEvent.InputTuple, WithdrawEvent.OutputTuple, WithdrawEvent.OutputObject>;
|
|
1027
990
|
Withdraw: TypedContractEvent<WithdrawEvent.InputTuple, WithdrawEvent.OutputTuple, WithdrawEvent.OutputObject>;
|
|
1028
|
-
"WithdrawFeeUpdated(uint256,uint256)": TypedContractEvent<WithdrawFeeUpdatedEvent.InputTuple, WithdrawFeeUpdatedEvent.OutputTuple, WithdrawFeeUpdatedEvent.OutputObject>;
|
|
1029
|
-
WithdrawFeeUpdated: TypedContractEvent<WithdrawFeeUpdatedEvent.InputTuple, WithdrawFeeUpdatedEvent.OutputTuple, WithdrawFeeUpdatedEvent.OutputObject>;
|
|
1030
991
|
"WithdrawalsPauseStatusChanged(bool)": TypedContractEvent<WithdrawalsPauseStatusChangedEvent.InputTuple, WithdrawalsPauseStatusChangedEvent.OutputTuple, WithdrawalsPauseStatusChangedEvent.OutputObject>;
|
|
1031
992
|
WithdrawalsPauseStatusChanged: TypedContractEvent<WithdrawalsPauseStatusChangedEvent.InputTuple, WithdrawalsPauseStatusChangedEvent.OutputTuple, WithdrawalsPauseStatusChangedEvent.OutputObject>;
|
|
1032
993
|
};
|