@raac/rpc 1.1.0-beta.72 → 1.1.0-beta.74
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 +2 -29
- package/dist/artifacts/core/collectors/RAACTokenCollector.sol/RAACTokenCollector.json +2 -29
- package/dist/artifacts/core/collectors/RWAIndexTokenCollector.sol/RWAIndexTokenCollector.json +2 -29
- package/dist/artifacts/core/collectors/Treasury.sol/Treasury.json +2 -29
- package/dist/artifacts/core/minters/RAACMinter/RAACMinter.sol/RAACMinter.json +2 -2
- package/dist/artifacts/core/oracles/BaseVRFv2Consumer.sol/BaseVRFv2Consumer.json +2 -2
- package/dist/artifacts/core/oracles/RAACHousePriceOracle.sol/RAACHousePriceOracle.json +2 -2
- package/dist/artifacts/core/oracles/RAACPrimeRateOracle.sol/RAACPrimeRateOracle.json +2 -2
- package/dist/artifacts/core/pools/LendingPool/ERC20AssetAdapter.sol/ERC20AssetAdapter.json +2 -29
- package/dist/artifacts/core/pools/LendingPool/ERC721AssetAdapter.sol/ERC721AssetAdapter.json +2 -2
- package/dist/artifacts/core/pools/LendingPool/LendingPool.sol/LendingPool.json +80 -51
- package/dist/artifacts/core/pools/StabilityPool/StabilityPool.sol/StabilityPool.json +55 -34
- package/dist/artifacts/core/primitives/ComplianceRegistry.sol/ComplianceRegistry.json +2 -2
- package/dist/artifacts/core/primitives/RAACHousePrices.sol/RAACHousePrices.json +2 -2
- package/dist/artifacts/core/tokens/DEToken.sol/DEToken.json +2 -29
- package/dist/artifacts/core/tokens/RAACNFT.sol/RAACNFT.json +2 -29
- package/dist/artifacts/core/tokens/RAACToken.sol/RAACToken.json +2 -2
- package/dist/artifacts/core/tokens/RToken.sol/RToken.json +2 -47
- package/dist/artifacts/core/tokens/RWAIndexToken.sol/RWAIndexToken.json +2 -2
- package/dist/artifacts/core/tokens/veRAACToken.sol/veRAACToken.json +2 -29
- package/dist/artifacts/core/vaults/ERC20VaultAdapter.sol/ERC20VaultAdapter.json +2 -29
- package/dist/artifacts/core/vaults/ERC721VaultAdapter.sol/ERC721VaultAdapter.json +2 -2
- package/dist/artifacts/core/vaults/RWAVault.sol/RWAVault.json +2 -2
- package/dist/artifacts/mocks/core/oracles/MockVRFCoordinatorV2.sol/MockVRFCoordinatorV2.json +2 -2
- package/dist/artifacts/mocks/core/tokens/crvUSDToken.sol/crvUSDToken.json +2 -2
- package/dist/artifacts/zeno/Auction.sol/Auction.json +2 -29
- package/dist/artifacts/zeno/AuctionFactory.sol/AuctionFactory.json +2 -2
- package/dist/artifacts/zeno/Zeno.sol/Zeno.json +2 -29
- package/dist/artifacts/zeno/ZenoFactory.sol/ZenoFactory.json +2 -2
- package/dist/configs/chains/8453.json +17 -17
- package/dist/pools/lendingPool/getLendingPoolInfo.js +3 -0
- package/dist/scripts/liquidation.js +31 -12
- package/dist/types/pools/lendingPool/getLendingPoolInfo.d.ts +1 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/index.d.ts +2 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/IERC1967.d.ts +65 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/index.d.ts +2 -0
- package/dist/types/typechain-types/{contracts/core/vaults/ERC721VaultAdapter.sol/IPriceOracle.d.ts → @openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.d.ts} +23 -16
- package/dist/types/typechain-types/@openzeppelin/contracts/{utils/math/Math.d.ts → proxy/ERC1967/ERC1967Utils.d.ts} +4 -4
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/ERC1967/index.d.ts +2 -0
- package/dist/types/typechain-types/{contracts/mocks/core/oracles/MockERC20PriceOracle.sol/IPriceOracle.d.ts → @openzeppelin/contracts/proxy/Proxy.d.ts} +6 -11
- package/dist/types/typechain-types/{contracts/core/vaults/ERC20VaultAdapter.sol/IPriceOracle.d.ts → @openzeppelin/contracts/proxy/beacon/IBeacon.d.ts} +9 -9
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/beacon/index.d.ts +1 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/index.d.ts +7 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.d.ts +74 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy.d.ts +80 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.d.ts +51 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/index.d.ts +2 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/transparent/index.d.ts +3 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/index.d.ts +1 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/math/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/core/oracles/CrvUSDToUSDOracle.sol/CrvUSDToUSDOracle.d.ts +24 -2
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/LendingPool.d.ts +31 -18
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/LendingPoolStorage.d.ts +8 -0
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/LiquidationProxy.d.ts +8 -0
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/VaultProxy.d.ts +8 -0
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/LiquidationStrategyProxy.d.ts +5 -1
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/LiquidationSwap.d.ts +16 -4
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/StabilityPool.d.ts +43 -4
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/StabilityPoolStorage.d.ts +5 -1
- package/dist/types/typechain-types/contracts/core/tokens/RToken.d.ts +1 -15
- package/dist/types/typechain-types/contracts/interfaces/core/pools/LendingPool/ILendingPool.d.ts +1 -15
- package/dist/types/typechain-types/contracts/interfaces/core/pools/StabilityPool/IStabilityPool.d.ts +38 -2
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IRToken.d.ts +5 -15
- package/dist/types/typechain-types/contracts/{mocks/tests/VotingPowerFuzzHelper.sol/IVMTimeControl.d.ts → libraries/pools/LendingPoolFeeLibrary.d.ts} +6 -11
- package/dist/types/typechain-types/contracts/libraries/pools/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPool.d.ts +1 -15
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPoolDebtToken.d.ts +1 -15
- package/dist/types/typechain-types/contracts/mocks/libraries/pools/ReserveLibraryMockCalculation.d.ts +2 -2
- 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/@chainlink/contracts/src/v0.8/vrf/dev/libraries/VRFV2PlusClient__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/mocks/VRFCoordinatorV2_5Mock__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC1967__factory.d.ts +42 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.d.ts +71 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils__factory.d.ts +50 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/Proxy__factory.d.ts +10 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.d.ts +17 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/beacon/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/index.d.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/transparent/ProxyAdmin__factory.d.ts +115 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy__factory.d.ts +56 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy__factory.d.ts +102 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/transparent/index.d.ts +2 -0
- 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 -13
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/Errors__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 +9 -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/cryptography/MerkleProof__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/math/SafeCast__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/math/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/core/collectors/ERC20Collector__factory.d.ts +1 -21
- package/dist/types/typechain-types/factories/contracts/core/collectors/FeeCollector__factory.d.ts +1 -21
- package/dist/types/typechain-types/factories/contracts/core/collectors/NFTRoyaltyFeeCollector.sol/NFTRoyaltyFeeCollector__factory.d.ts +1 -21
- package/dist/types/typechain-types/factories/contracts/core/collectors/RAACTokenCollector__factory.d.ts +1 -21
- package/dist/types/typechain-types/factories/contracts/core/collectors/RWAIndexTokenCollector__factory.d.ts +1 -21
- package/dist/types/typechain-types/factories/contracts/core/collectors/Treasury__factory.d.ts +1 -21
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/BaseGauge__factory.d.ts +0 -20
- 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/GaugeRewardsDistributor__factory.d.ts +1 -21
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/RAACGauge__factory.d.ts +1 -21
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/RWAGauge__factory.d.ts +1 -21
- 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/lockers/LLamaTemple__factory.d.ts +1 -25
- 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/CrvUSDToUSDOracle.sol/CrvUSDToUSDOracle__factory.d.ts +38 -4
- 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/RWAIndexTokenOracle.sol/RWAIndexTokenOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/oracles/crvUSDPriceOracle.sol/CrvUSDPriceOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/ERC20AssetAdapter.sol/ERC20AssetAdapter__factory.d.ts +1 -21
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/ERC721AssetAdapter__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/LendingPoolStorage__factory.d.ts +9 -1
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/LendingPool__factory.d.ts +34 -38
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/LiquidationProxy__factory.d.ts +9 -29
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/VaultProxy__factory.d.ts +9 -21
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/LiquidationStrategyProxy__factory.d.ts +19 -1
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/LiquidationSwap__factory.d.ts +32 -20
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/StabilityPoolStorage__factory.d.ts +11 -1
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/StabilityPool__factory.d.ts +45 -27
- package/dist/types/typechain-types/factories/contracts/core/primitives/ComplianceRegistry.sol/ComplianceRegistry__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 -21
- package/dist/types/typechain-types/factories/contracts/core/tokens/DebtToken__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 -21
- 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 -35
- package/dist/types/typechain-types/factories/contracts/core/tokens/RWAIndexToken__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/tokens/VeRAACToken__factory.d.ts +1 -21
- package/dist/types/typechain-types/factories/contracts/core/vaults/ERC20VaultAdapter__factory.d.ts +1 -21
- package/dist/types/typechain-types/factories/contracts/core/vaults/ERC721VaultAdapter__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/vaults/RAACNFTVaultAdapterV2__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/vaults/RWAVault__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/LendingPool/ILendingPool__factory.d.ts +4 -14
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/StabilityPool/ILiquidationSwap__factory.d.ts +4 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/StabilityPool/IStabilityPool__factory.d.ts +38 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IRToken__factory.d.ts +10 -14
- package/dist/types/typechain-types/factories/contracts/libraries/governance/BoostCalculator__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/math/TimeWeightedAverage__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/libraries/pools/LendingPoolFeeLibrary__factory.d.ts +42 -0
- package/dist/types/typechain-types/factories/contracts/libraries/pools/ReserveLibrary__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/libraries/pools/index.d.ts +1 -0
- 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/collectors/MockWETH__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/curve/CurveCrvUSDVaultMock__factory.d.ts +1 -21
- package/dist/types/typechain-types/factories/contracts/mocks/core/curve/CurveLiquidityGaugeV5Mock.sol/CurveLiquidityGaugeV5Mock__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/TimelockPayableTestTarget__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/lockers/LLamaLocker.sol/LlamaLocker__factory.d.ts +1 -25
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockChainlinkAggregator__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockCurveEMA.sol/MockCurveEMA__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockERC20PriceOracle__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/MockRAACNFTVaultAdapterNAVOracle__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/MockZKMEVerifyUpgradeable__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/CurveStyleCrvUSDiRAACPool__factory.d.ts +1 -21
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPoolCollector__factory.d.ts +1 -21
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPoolDebtToken__factory.d.ts +5 -15
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPool__factory.d.ts +1 -15
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLiquidityPool__factory.d.ts +1 -21
- 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/MockChainAnalysis.sol/MockChainAnalysis__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 -21
- 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/CrvUSDTokenLimited__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 -21
- 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/RAACMockERC20__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/vaults/MockVault__factory.d.ts +1 -21
- 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/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/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/ReserveLibraryMockCalculation__factory.d.ts +5 -1
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/pools/ReserveLibraryMock__factory.d.ts +7 -3
- 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/zeno/AuctionFactory__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/zeno/Auction__factory.d.ts +1 -21
- 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 -21
- package/dist/types/typechain-types/index.d.ts +22 -2
- package/package.json +1 -1
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/VRFConsumerBaseV2.d.ts +0 -35
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/interfaces/VRFCoordinatorV2Interface.d.ts +0 -156
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/interfaces/index.d.ts +0 -1
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/IERC4626.d.ts +0 -318
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/ERC4626.d.ts +0 -318
- package/dist/types/typechain-types/contracts/core/governance/boost/BoostController.d.ts +0 -573
- package/dist/types/typechain-types/contracts/core/governance/boost/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/ERC721AssetAdapter.sol/ERC721AssetAdapter.d.ts +0 -263
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/ERC721AssetAdapter.sol/IPriceOracle.d.ts +0 -29
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/ERC721AssetAdapter.sol/index.d.ts +0 -2
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/NFTLiquidator.d.ts +0 -283
- package/dist/types/typechain-types/contracts/core/primitives/ComplianceRegistry.d.ts +0 -203
- package/dist/types/typechain-types/contracts/core/tokens/IndexToken.d.ts +0 -340
- package/dist/types/typechain-types/contracts/core/vaults/ERC20VaultAdapter.sol/ERC20VaultAdapter.d.ts +0 -174
- package/dist/types/typechain-types/contracts/core/vaults/ERC20VaultAdapter.sol/index.d.ts +0 -2
- package/dist/types/typechain-types/contracts/core/vaults/ERC721VaultAdapter.sol/ERC721VaultAdapter.d.ts +0 -188
- package/dist/types/typechain-types/contracts/core/vaults/ERC721VaultAdapter.sol/index.d.ts +0 -2
- package/dist/types/typechain-types/contracts/core/vaults/RAACNFTVaultAdapter.sol/RAACNFTVaultAdapter.d.ts +0 -218
- package/dist/types/typechain-types/contracts/core/vaults/RAACNFTVaultAdapter.sol/RAACNFTVaultAdapterNAVOracle.d.ts +0 -47
- package/dist/types/typechain-types/contracts/core/vaults/RAACNFTVaultAdapter.sol/index.d.ts +0 -2
- package/dist/types/typechain-types/contracts/interfaces/IHousePrices.d.ts +0 -29
- package/dist/types/typechain-types/contracts/interfaces/IPoolManager.d.ts +0 -37
- package/dist/types/typechain-types/contracts/interfaces/IReserveAllocationLibraryMock.d.ts +0 -164
- package/dist/types/typechain-types/contracts/interfaces/IveRAACDistributor.d.ts +0 -59
- package/dist/types/typechain-types/contracts/interfaces/core/governance/IBoostController.d.ts +0 -269
- package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/IGauge.d.ts +0 -235
- package/dist/types/typechain-types/contracts/interfaces/core/oracles/IRAACHousePrices.d.ts +0 -57
- package/dist/types/typechain-types/contracts/libraries/governance/Checkpoints.d.ts +0 -55
- package/dist/types/typechain-types/contracts/libraries/governance/RAACVoting.d.ts +0 -45
- package/dist/types/typechain-types/contracts/libraries/governance/VotingPowerLib.d.ts +0 -66
- package/dist/types/typechain-types/contracts/mocks/core/governance/gauges/MockBaseGauge.d.ts +0 -845
- package/dist/types/typechain-types/contracts/mocks/core/oracles/MockERC20PriceOracle.sol/MockERC20PriceOracle.d.ts +0 -33
- package/dist/types/typechain-types/contracts/mocks/core/oracles/MockERC20PriceOracle.sol/index.d.ts +0 -2
- package/dist/types/typechain-types/contracts/mocks/core/tokens/MockVeToken.d.ts +0 -510
- package/dist/types/typechain-types/contracts/mocks/libraries/governance/CheckpointsMock.d.ts +0 -83
- package/dist/types/typechain-types/contracts/mocks/libraries/governance/RAACVotingMock.d.ts +0 -41
- package/dist/types/typechain-types/contracts/mocks/libraries/governance/VotingPowerMock.d.ts +0 -281
- package/dist/types/typechain-types/contracts/mocks/tests/VotingPowerFuzzHelper.sol/VotingPowerFuzzHelper.d.ts +0 -100
- package/dist/types/typechain-types/contracts/mocks/tests/VotingPowerFuzzHelper.sol/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/VRFConsumerBaseV2__factory.d.ts +0 -33
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/interfaces/VRFCoordinatorV2Interface__factory.d.ts +0 -171
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/interfaces/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC4626__factory.d.ts +0 -472
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC4626__factory.d.ts +0 -632
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/math/Math__factory.d.ts +0 -26
- package/dist/types/typechain-types/factories/contracts/core/governance/boost/BoostController__factory.d.ts +0 -716
- package/dist/types/typechain-types/factories/contracts/core/governance/boost/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/ERC721AssetAdapter.sol/ERC721AssetAdapter__factory.d.ts +0 -407
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/ERC721AssetAdapter.sol/IPriceOracle__factory.d.ts +0 -21
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/ERC721AssetAdapter.sol/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/NFTLiquidator__factory.d.ts +0 -390
- package/dist/types/typechain-types/factories/contracts/core/primitives/ComplianceRegistry__factory.d.ts +0 -276
- package/dist/types/typechain-types/factories/contracts/core/tokens/IndexToken__factory.d.ts +0 -602
- package/dist/types/typechain-types/factories/contracts/core/vaults/ERC20VaultAdapter.sol/ERC20VaultAdapter__factory.d.ts +0 -285
- package/dist/types/typechain-types/factories/contracts/core/vaults/ERC20VaultAdapter.sol/IPriceOracle__factory.d.ts +0 -17
- package/dist/types/typechain-types/factories/contracts/core/vaults/ERC20VaultAdapter.sol/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/core/vaults/ERC721VaultAdapter.sol/ERC721VaultAdapter__factory.d.ts +0 -307
- package/dist/types/typechain-types/factories/contracts/core/vaults/ERC721VaultAdapter.sol/IPriceOracle__factory.d.ts +0 -21
- package/dist/types/typechain-types/factories/contracts/core/vaults/ERC721VaultAdapter.sol/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/core/vaults/RAACNFTVaultAdapter.sol/RAACNFTVaultAdapterNAVOracle__factory.d.ts +0 -25
- package/dist/types/typechain-types/factories/contracts/core/vaults/RAACNFTVaultAdapter.sol/RAACNFTVaultAdapter__factory.d.ts +0 -350
- package/dist/types/typechain-types/factories/contracts/core/vaults/RAACNFTVaultAdapter.sol/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/interfaces/IHousePrices__factory.d.ts +0 -21
- package/dist/types/typechain-types/factories/contracts/interfaces/IPoolManager__factory.d.ts +0 -43
- package/dist/types/typechain-types/factories/contracts/interfaces/IReserveAllocationLibraryMock__factory.d.ts +0 -189
- package/dist/types/typechain-types/factories/contracts/interfaces/IveRAACDistributor__factory.d.ts +0 -75
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/IBoostController__factory.d.ts +0 -295
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/IGauge__factory.d.ts +0 -307
- package/dist/types/typechain-types/factories/contracts/interfaces/core/oracles/IRAACHousePrices__factory.d.ts +0 -53
- package/dist/types/typechain-types/factories/contracts/libraries/governance/Checkpoints__factory.d.ts +0 -68
- package/dist/types/typechain-types/factories/contracts/libraries/governance/RAACVoting__factory.d.ts +0 -92
- package/dist/types/typechain-types/factories/contracts/libraries/governance/VotingPowerLib__factory.d.ts +0 -74
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/gauges/MockBaseGauge__factory.d.ts +0 -1194
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockERC20PriceOracle.sol/IPriceOracle__factory.d.ts +0 -17
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockERC20PriceOracle.sol/MockERC20PriceOracle__factory.d.ts +0 -42
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockERC20PriceOracle.sol/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockVeToken__factory.d.ts +0 -714
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/CheckpointsMock__factory.d.ts +0 -124
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/RAACVotingMock__factory.d.ts +0 -70
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/VotingPowerMock__factory.d.ts +0 -341
- package/dist/types/typechain-types/factories/contracts/mocks/tests/VotingPowerFuzzHelper.sol/IVMTimeControl__factory.d.ts +0 -17
- package/dist/types/typechain-types/factories/contracts/mocks/tests/VotingPowerFuzzHelper.sol/VotingPowerFuzzHelper__factory.d.ts +0 -113
- package/dist/types/typechain-types/factories/contracts/mocks/tests/VotingPowerFuzzHelper.sol/index.d.ts +0 -2
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"raachouseprices": {
|
|
18
18
|
"id": "raachouseprices",
|
|
19
19
|
"name": "RAAC House Prices",
|
|
20
|
-
"contract": "
|
|
20
|
+
"contract": "0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9"
|
|
21
21
|
},
|
|
22
22
|
"auctionfactory": {
|
|
23
23
|
"id": "auctionfactory",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"feecollector": {
|
|
38
38
|
"id": "feecollector",
|
|
39
39
|
"name": "Fee Collector",
|
|
40
|
-
"contract": "
|
|
40
|
+
"contract": "0x0165878A594ca255338adfa4d48449f69242Eb8F"
|
|
41
41
|
},
|
|
42
42
|
"treasury": {
|
|
43
43
|
"id": "treasury",
|
|
44
44
|
"name": "Treasury",
|
|
45
|
-
"contract": "
|
|
45
|
+
"contract": "0x5FC8d32690cc91D4c39d9d3abcBD16989F875707"
|
|
46
46
|
},
|
|
47
47
|
"repairfund": {
|
|
48
48
|
"id": "repairfund",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"rwavault": {
|
|
58
58
|
"id": "rwavault",
|
|
59
59
|
"name": "RWA Vault",
|
|
60
|
-
"contract": "
|
|
60
|
+
"contract": "0xc6e7DF5E7b4f2A278906862b61205850344D4e7d"
|
|
61
61
|
},
|
|
62
62
|
"complianceregistry": {
|
|
63
63
|
"id": "complianceregistry",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"rwaindextokencollector": {
|
|
68
68
|
"id": "rwaindextokencollector",
|
|
69
69
|
"name": "RWA Index Token Collector",
|
|
70
|
-
"contract": "
|
|
70
|
+
"contract": "0x3Aa5ebB10DC797CAC828524e59A333d0A371443c"
|
|
71
71
|
},
|
|
72
72
|
"raactokencollector": {
|
|
73
73
|
"id": "raactokencollector",
|
|
@@ -89,19 +89,19 @@
|
|
|
89
89
|
"stabilitypool": {
|
|
90
90
|
"id": "stabilitypool",
|
|
91
91
|
"name": "Stability Pool",
|
|
92
|
-
"contract": "
|
|
92
|
+
"contract": "0x9A9f2CCfdE556A7E9Ff0848998Aa4a0CFD8863AE"
|
|
93
93
|
},
|
|
94
94
|
"lendingpool": {
|
|
95
95
|
"id": "lendingpool",
|
|
96
96
|
"name": "Lending Pool",
|
|
97
|
-
"contract": "
|
|
97
|
+
"contract": "0x0DCd1Bf9A1b36cE34237eEaFef220932846BCD82"
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
"nfts": {
|
|
101
101
|
"raacnft": {
|
|
102
102
|
"id": "raacnft",
|
|
103
103
|
"name": "RAAC NFT",
|
|
104
|
-
"contract": "
|
|
104
|
+
"contract": "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9"
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
"assets": {
|
|
@@ -121,13 +121,13 @@
|
|
|
121
121
|
"id": "rtoken",
|
|
122
122
|
"name": "RToken",
|
|
123
123
|
"decimals": 18,
|
|
124
|
-
"contract": "
|
|
124
|
+
"contract": "0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6"
|
|
125
125
|
},
|
|
126
126
|
"detoken": {
|
|
127
127
|
"id": "detoken",
|
|
128
128
|
"name": "DEToken",
|
|
129
129
|
"decimals": 18,
|
|
130
|
-
"contract": "
|
|
130
|
+
"contract": "0x9A676e781A523b5d0C0e43731313A708CB607508"
|
|
131
131
|
},
|
|
132
132
|
"raactoken": {
|
|
133
133
|
"id": "raactoken",
|
|
@@ -145,13 +145,13 @@
|
|
|
145
145
|
"id": "debttoken",
|
|
146
146
|
"name": "Debt Token",
|
|
147
147
|
"decimals": 18,
|
|
148
|
-
"contract": "
|
|
148
|
+
"contract": "0x8A791620dd6260079BF849Dc5567aDC3F2FdC318"
|
|
149
149
|
},
|
|
150
150
|
"rwaindextoken": {
|
|
151
151
|
"id": "rwaindextoken",
|
|
152
152
|
"name": "Index Token",
|
|
153
153
|
"decimals": 18,
|
|
154
|
-
"contract": "
|
|
154
|
+
"contract": "0x68B1D87F95878fE05B998F19b66F4baba5De1aed"
|
|
155
155
|
},
|
|
156
156
|
"complianceregistry": {
|
|
157
157
|
"id": "complianceregistry",
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"id": "rwaindextokencollector",
|
|
164
164
|
"name": "RWA Index Token Collector",
|
|
165
165
|
"decimals": 18,
|
|
166
|
-
"contract": "
|
|
166
|
+
"contract": "0x3Aa5ebB10DC797CAC828524e59A333d0A371443c"
|
|
167
167
|
},
|
|
168
168
|
"raactokencollector": {
|
|
169
169
|
"id": "raactokencollector",
|
|
@@ -177,13 +177,13 @@
|
|
|
177
177
|
"raacnftadapter": {
|
|
178
178
|
"id": "raacnftadapter",
|
|
179
179
|
"name": "RAAC NFT Adapter",
|
|
180
|
-
"contract": "
|
|
180
|
+
"contract": "0x7a2088a1bFc9d81c55368AE168C2C02570cB814F",
|
|
181
181
|
"type": "ERC721"
|
|
182
182
|
},
|
|
183
183
|
"rwaindextokenadapter": {
|
|
184
184
|
"id": "rwaindextokenadapter",
|
|
185
185
|
"name": "RWA Index Token",
|
|
186
|
-
"contract": "
|
|
186
|
+
"contract": "0x4A679253410272dd5232B3Ff7cF5dbB88f295319",
|
|
187
187
|
"type": "ERC20"
|
|
188
188
|
}
|
|
189
189
|
},
|
|
@@ -191,13 +191,13 @@
|
|
|
191
191
|
"raacnftadapter": {
|
|
192
192
|
"id": "raacnftadapter",
|
|
193
193
|
"name": "RAAC NFT Adapter",
|
|
194
|
-
"contract": "
|
|
194
|
+
"contract": "0x322813Fd9A801c5507c9de605d63CEA4f2CE6c44",
|
|
195
195
|
"type": "ERC721"
|
|
196
196
|
},
|
|
197
197
|
"crvusdadapter": {
|
|
198
198
|
"id": "crvusdadapter",
|
|
199
199
|
"name": "CRVUSD Adapter",
|
|
200
|
-
"contract": "
|
|
200
|
+
"contract": "0x4ed7c70F96B99c776995fB64377f0d4aB3B0e1C1",
|
|
201
201
|
"type": "ERC20"
|
|
202
202
|
}
|
|
203
203
|
}
|
|
@@ -39,6 +39,7 @@ async function getLendingPoolInfo(chainId, userAddress, provider) {
|
|
|
39
39
|
const maxRate = rateData?.maxRate ?? 0n;
|
|
40
40
|
const optimalUtilizationRate = rateData?.optimalUtilizationRate ?? 0n;
|
|
41
41
|
const protocolFeeRate = rateData?.protocolFeeRate ?? 0n;
|
|
42
|
+
const pendingProtocolFeeAmount = reserve?.[8];
|
|
42
43
|
// Compute APY
|
|
43
44
|
let apr;
|
|
44
45
|
if (utilization <= optimalUtilizationRate && optimalUtilizationRate > 0) {
|
|
@@ -53,6 +54,7 @@ async function getLendingPoolInfo(chainId, userAddress, provider) {
|
|
|
53
54
|
apr = apr > maxRate ? maxRate : apr;
|
|
54
55
|
}
|
|
55
56
|
// compute the APY
|
|
57
|
+
// FIXME: This is not correct
|
|
56
58
|
let apy;
|
|
57
59
|
const grossLiquidityRate = utilization * currentUsageRate / BigInt(1e27);
|
|
58
60
|
const protocolFeeAmount = grossLiquidityRate * protocolFeeRate / BigInt(1e27);
|
|
@@ -89,6 +91,7 @@ async function getLendingPoolInfo(chainId, userAddress, provider) {
|
|
|
89
91
|
apy: (Number(apy.toString()) / 1e25).toFixed(2),
|
|
90
92
|
userRedeemable: ethers_1.ethers.formatEther(userRedeemable ?? 0n),
|
|
91
93
|
apr: (Number(apr.toString()) / 1e25).toFixed(2),
|
|
94
|
+
pendingProtocolFeeAmount: ethers_1.ethers.formatEther(pendingProtocolFeeAmount),
|
|
92
95
|
};
|
|
93
96
|
return result;
|
|
94
97
|
}
|
|
@@ -53,15 +53,18 @@ async function setupLiquidityPool() {
|
|
|
53
53
|
rpc.address = signer.address;
|
|
54
54
|
rpc.provider = provider;
|
|
55
55
|
rpc.chainId = chainId;
|
|
56
|
-
const MockLiquidityPoolAddress = "
|
|
57
|
-
const MockLiquidityPoolABI = [
|
|
56
|
+
const MockLiquidityPoolAddress = "0x9E545E3C0baAB3E08CdfD552C960A1050f373042";
|
|
57
|
+
const MockLiquidityPoolABI = [
|
|
58
|
+
"function add_liquidity(uint256[2] amounts, uint256 min_mint_amount, address receiver) external",
|
|
59
|
+
];
|
|
58
60
|
const MockLiquidityPoolContract = new ethers_1.ethers.Contract(MockLiquidityPoolAddress, MockLiquidityPoolABI, signer);
|
|
59
61
|
// mint 10 million in crvusd
|
|
60
62
|
console.log("Minting 100 million in crvusd");
|
|
61
63
|
await rpc.wallet.assets.mintAsset(chainId, "crvusd", 200000000n, signer.address, signer);
|
|
62
64
|
// deposit 5 million in the RWA Vault
|
|
63
65
|
console.log("Depositing 5 million in the RWA Vault");
|
|
64
|
-
await rpc.wallet.assets.approveAsset(chainId, "crvusd", await rpc.pools.rwaVault.getAdapterAddress(chainId, "crvusdadapter")
|
|
66
|
+
await rpc.wallet.assets.approveAsset(chainId, "crvusd", await rpc.pools.rwaVault.getAdapterAddress(chainId, "crvusdadapter")
|
|
67
|
+
.address, "100000000", signer);
|
|
65
68
|
const d1 = new ethers_1.ethers.AbiCoder().encode(["uint256"], [ethers_1.ethers.parseEther("100000000")]);
|
|
66
69
|
await rpc.pools.rwaVault.depositToRWAVault(chainId, "crvusdadapter", d1, signer.address, "0", signer);
|
|
67
70
|
// deposit 5 million in the Mock Liquidity Pool
|
|
@@ -69,7 +72,10 @@ async function setupLiquidityPool() {
|
|
|
69
72
|
await rpc.wallet.assets.approveAsset(chainId, "crvusd", MockLiquidityPoolAddress, "100000000", signer);
|
|
70
73
|
const indextokenBalance = (await rpc.wallet.assets.getBalance(chainId, "rwaindextoken", signer.address, provider)).balance;
|
|
71
74
|
await rpc.wallet.assets.approveAsset(chainId, "rwaindextoken", MockLiquidityPoolAddress, indextokenBalance, signer);
|
|
72
|
-
await (await MockLiquidityPoolContract.add_liquidity([
|
|
75
|
+
await (await MockLiquidityPoolContract.add_liquidity([
|
|
76
|
+
ethers_1.ethers.parseEther("100000000"),
|
|
77
|
+
ethers_1.ethers.parseEther(indextokenBalance.toString()),
|
|
78
|
+
], 0, signer.address)).wait();
|
|
73
79
|
return;
|
|
74
80
|
}
|
|
75
81
|
async function setupLendingPool() {
|
|
@@ -105,7 +111,7 @@ async function initiateLiquidation(adapter, user, data) {
|
|
|
105
111
|
const lendingPoolABI = (0, artifacts_1.getABI)("lendingpool");
|
|
106
112
|
const lendingPoolContract = new ethers_1.ethers.Contract(lendingPoolAddress, lendingPoolABI, signer);
|
|
107
113
|
const adapterAddress = rpc.pools.lendingPool.getAdapterAddress(chainId, adapter).address;
|
|
108
|
-
await
|
|
114
|
+
await await lendingPoolContract.initiateLiquidation(adapterAddress, user, data);
|
|
109
115
|
console.log("Liquidation initiated");
|
|
110
116
|
}
|
|
111
117
|
async function liquidate(pooladapter, vaultadapter, user, data) {
|
|
@@ -121,7 +127,7 @@ async function liquidate(pooladapter, vaultadapter, user, data) {
|
|
|
121
127
|
const StabilityPoolContract = new ethers_1.ethers.Contract(StabilityPoolAddress, StabilityPoolABI, signer);
|
|
122
128
|
const adapterAddress = rpc.pools.lendingPool.getAdapterAddress(chainId, pooladapter).address;
|
|
123
129
|
const vaultAddress = rpc.pools.rwaVault.getAdapterAddress(chainId, vaultadapter).address;
|
|
124
|
-
await
|
|
130
|
+
await await StabilityPoolContract.liquidateBorrower(adapterAddress, vaultAddress, user, data, 0);
|
|
125
131
|
console.log("Position liquidated.");
|
|
126
132
|
}
|
|
127
133
|
const updateNFTPrice = async (tokenId, price) => {
|
|
@@ -148,10 +154,23 @@ const updateNFTPrice = async (tokenId, price) => {
|
|
|
148
154
|
* 4. Initiate the liquidation
|
|
149
155
|
* 5. Liquidate
|
|
150
156
|
*/
|
|
151
|
-
|
|
152
|
-
// setupLendingPool()
|
|
153
|
-
// updateNFTPrice("1", "
|
|
154
|
-
// getPosition(
|
|
155
|
-
//
|
|
156
|
-
|
|
157
|
+
setupLiquidityPool();
|
|
158
|
+
// setupLendingPool();
|
|
159
|
+
// updateNFTPrice("1", "760000");
|
|
160
|
+
// getPosition(
|
|
161
|
+
// "raacnftadapter",
|
|
162
|
+
// "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
|
|
163
|
+
// new ethers.AbiCoder().encode(["uint256"], ["1"])
|
|
164
|
+
// );
|
|
165
|
+
// initiateLiquidation(
|
|
166
|
+
// "raacnftadapter",
|
|
167
|
+
// "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
|
|
168
|
+
// new ethers.AbiCoder().encode(["uint256"], ["1"])
|
|
169
|
+
// );
|
|
170
|
+
// liquidate(
|
|
171
|
+
// "raacnftadapter",
|
|
172
|
+
// "raacnftadapter",
|
|
173
|
+
// "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
|
|
174
|
+
// new ethers.AbiCoder().encode(["uint256"], ["1"])
|
|
175
|
+
// );
|
|
157
176
|
// npx ts-node-dev --transpile-only --env-file=.env scripts/liquidation.ts
|
|
@@ -2,6 +2,8 @@ import type * as access from "./access";
|
|
|
2
2
|
export type { access };
|
|
3
3
|
import type * as interfaces from "./interfaces";
|
|
4
4
|
export type { interfaces };
|
|
5
|
+
import type * as proxy from "./proxy";
|
|
6
|
+
export type { proxy };
|
|
5
7
|
import type * as token from "./token";
|
|
6
8
|
export type { token };
|
|
7
9
|
import type * as utils from "./utils";
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { BaseContract, FunctionFragment, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener } from "../../../common";
|
|
3
|
+
export interface IERC1967Interface extends Interface {
|
|
4
|
+
getEvent(nameOrSignatureOrTopic: "AdminChanged" | "BeaconUpgraded" | "Upgraded"): EventFragment;
|
|
5
|
+
}
|
|
6
|
+
export declare namespace AdminChangedEvent {
|
|
7
|
+
type InputTuple = [previousAdmin: AddressLike, newAdmin: AddressLike];
|
|
8
|
+
type OutputTuple = [previousAdmin: string, newAdmin: string];
|
|
9
|
+
interface OutputObject {
|
|
10
|
+
previousAdmin: string;
|
|
11
|
+
newAdmin: string;
|
|
12
|
+
}
|
|
13
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
14
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
15
|
+
type Log = TypedEventLog<Event>;
|
|
16
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
17
|
+
}
|
|
18
|
+
export declare namespace BeaconUpgradedEvent {
|
|
19
|
+
type InputTuple = [beacon: AddressLike];
|
|
20
|
+
type OutputTuple = [beacon: string];
|
|
21
|
+
interface OutputObject {
|
|
22
|
+
beacon: string;
|
|
23
|
+
}
|
|
24
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
25
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
26
|
+
type Log = TypedEventLog<Event>;
|
|
27
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
28
|
+
}
|
|
29
|
+
export declare namespace UpgradedEvent {
|
|
30
|
+
type InputTuple = [implementation: AddressLike];
|
|
31
|
+
type OutputTuple = [implementation: string];
|
|
32
|
+
interface OutputObject {
|
|
33
|
+
implementation: string;
|
|
34
|
+
}
|
|
35
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
36
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
37
|
+
type Log = TypedEventLog<Event>;
|
|
38
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
39
|
+
}
|
|
40
|
+
export interface IERC1967 extends BaseContract {
|
|
41
|
+
connect(runner?: ContractRunner | null): IERC1967;
|
|
42
|
+
waitForDeployment(): Promise<this>;
|
|
43
|
+
interface: IERC1967Interface;
|
|
44
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
45
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
46
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
47
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
48
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
49
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
50
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
51
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
52
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
53
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
54
|
+
getEvent(key: "AdminChanged"): TypedContractEvent<AdminChangedEvent.InputTuple, AdminChangedEvent.OutputTuple, AdminChangedEvent.OutputObject>;
|
|
55
|
+
getEvent(key: "BeaconUpgraded"): TypedContractEvent<BeaconUpgradedEvent.InputTuple, BeaconUpgradedEvent.OutputTuple, BeaconUpgradedEvent.OutputObject>;
|
|
56
|
+
getEvent(key: "Upgraded"): TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
57
|
+
filters: {
|
|
58
|
+
"AdminChanged(address,address)": TypedContractEvent<AdminChangedEvent.InputTuple, AdminChangedEvent.OutputTuple, AdminChangedEvent.OutputObject>;
|
|
59
|
+
AdminChanged: TypedContractEvent<AdminChangedEvent.InputTuple, AdminChangedEvent.OutputTuple, AdminChangedEvent.OutputObject>;
|
|
60
|
+
"BeaconUpgraded(address)": TypedContractEvent<BeaconUpgradedEvent.InputTuple, BeaconUpgradedEvent.OutputTuple, BeaconUpgradedEvent.OutputObject>;
|
|
61
|
+
BeaconUpgraded: TypedContractEvent<BeaconUpgradedEvent.InputTuple, BeaconUpgradedEvent.OutputTuple, BeaconUpgradedEvent.OutputObject>;
|
|
62
|
+
"Upgraded(address)": TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
63
|
+
Upgraded: TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type * as draftIerc6093Sol from "./draft-IERC6093.sol";
|
|
2
2
|
export type { draftIerc6093Sol };
|
|
3
|
+
export type { IERC1363 } from "./IERC1363";
|
|
4
|
+
export type { IERC1967 } from "./IERC1967";
|
|
3
5
|
export type { IERC2981 } from "./IERC2981";
|
|
4
6
|
export type { IERC5267 } from "./IERC5267";
|
|
@@ -1,14 +1,23 @@
|
|
|
1
|
-
import type { BaseContract,
|
|
2
|
-
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog,
|
|
3
|
-
export interface
|
|
4
|
-
|
|
5
|
-
encodeFunctionData(functionFragment: "getLatestPrice", values: [BigNumberish]): string;
|
|
6
|
-
decodeFunctionResult(functionFragment: "getLatestPrice", data: BytesLike): Result;
|
|
1
|
+
import type { BaseContract, FunctionFragment, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener } from "../../../../common";
|
|
3
|
+
export interface ERC1967ProxyInterface extends Interface {
|
|
4
|
+
getEvent(nameOrSignatureOrTopic: "Upgraded"): EventFragment;
|
|
7
5
|
}
|
|
8
|
-
export
|
|
9
|
-
|
|
6
|
+
export declare namespace UpgradedEvent {
|
|
7
|
+
type InputTuple = [implementation: AddressLike];
|
|
8
|
+
type OutputTuple = [implementation: string];
|
|
9
|
+
interface OutputObject {
|
|
10
|
+
implementation: string;
|
|
11
|
+
}
|
|
12
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
13
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
14
|
+
type Log = TypedEventLog<Event>;
|
|
15
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
16
|
+
}
|
|
17
|
+
export interface ERC1967Proxy extends BaseContract {
|
|
18
|
+
connect(runner?: ContractRunner | null): ERC1967Proxy;
|
|
10
19
|
waitForDeployment(): Promise<this>;
|
|
11
|
-
interface:
|
|
20
|
+
interface: ERC1967ProxyInterface;
|
|
12
21
|
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
13
22
|
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
14
23
|
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
@@ -18,12 +27,10 @@ export interface IPriceOracle extends BaseContract {
|
|
|
18
27
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
19
28
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
20
29
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
21
|
-
getLatestPrice: TypedContractMethod<[
|
|
22
|
-
tokenId: BigNumberish
|
|
23
|
-
], [
|
|
24
|
-
bigint
|
|
25
|
-
], "view">;
|
|
26
30
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
27
|
-
|
|
28
|
-
filters: {
|
|
31
|
+
getEvent(key: "Upgraded"): TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
32
|
+
filters: {
|
|
33
|
+
"Upgraded(address)": TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
34
|
+
Upgraded: TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
35
|
+
};
|
|
29
36
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { BaseContract, FunctionFragment, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener } from "../../../../common";
|
|
3
|
-
export interface
|
|
3
|
+
export interface ERC1967UtilsInterface extends Interface {
|
|
4
4
|
}
|
|
5
|
-
export interface
|
|
6
|
-
connect(runner?: ContractRunner | null):
|
|
5
|
+
export interface ERC1967Utils extends BaseContract {
|
|
6
|
+
connect(runner?: ContractRunner | null): ERC1967Utils;
|
|
7
7
|
waitForDeployment(): Promise<this>;
|
|
8
|
-
interface:
|
|
8
|
+
interface: ERC1967UtilsInterface;
|
|
9
9
|
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
10
10
|
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
11
11
|
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import type { BaseContract,
|
|
2
|
-
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener
|
|
3
|
-
export interface
|
|
4
|
-
getFunction(nameOrSignature: "getLatestPrice"): FunctionFragment;
|
|
5
|
-
encodeFunctionData(functionFragment: "getLatestPrice", values?: undefined): string;
|
|
6
|
-
decodeFunctionResult(functionFragment: "getLatestPrice", data: BytesLike): Result;
|
|
1
|
+
import type { BaseContract, FunctionFragment, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener } from "../../../common";
|
|
3
|
+
export interface ProxyInterface extends Interface {
|
|
7
4
|
}
|
|
8
|
-
export interface
|
|
9
|
-
connect(runner?: ContractRunner | null):
|
|
5
|
+
export interface Proxy extends BaseContract {
|
|
6
|
+
connect(runner?: ContractRunner | null): Proxy;
|
|
10
7
|
waitForDeployment(): Promise<this>;
|
|
11
|
-
interface:
|
|
8
|
+
interface: ProxyInterface;
|
|
12
9
|
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
13
10
|
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
14
11
|
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
@@ -18,8 +15,6 @@ export interface IPriceOracle extends BaseContract {
|
|
|
18
15
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
19
16
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
20
17
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
21
|
-
getLatestPrice: TypedContractMethod<[], [bigint], "view">;
|
|
22
18
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
23
|
-
getFunction(nameOrSignature: "getLatestPrice"): TypedContractMethod<[], [bigint], "view">;
|
|
24
19
|
filters: {};
|
|
25
20
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../../common";
|
|
3
|
-
export interface
|
|
4
|
-
getFunction(nameOrSignature: "
|
|
5
|
-
encodeFunctionData(functionFragment: "
|
|
6
|
-
decodeFunctionResult(functionFragment: "
|
|
3
|
+
export interface IBeaconInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "implementation"): FunctionFragment;
|
|
5
|
+
encodeFunctionData(functionFragment: "implementation", values?: undefined): string;
|
|
6
|
+
decodeFunctionResult(functionFragment: "implementation", data: BytesLike): Result;
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
9
|
-
connect(runner?: ContractRunner | null):
|
|
8
|
+
export interface IBeacon extends BaseContract {
|
|
9
|
+
connect(runner?: ContractRunner | null): IBeacon;
|
|
10
10
|
waitForDeployment(): Promise<this>;
|
|
11
|
-
interface:
|
|
11
|
+
interface: IBeaconInterface;
|
|
12
12
|
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
13
13
|
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
14
14
|
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
@@ -18,8 +18,8 @@ export interface IPriceOracle extends BaseContract {
|
|
|
18
18
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
19
19
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
20
20
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
21
|
-
|
|
21
|
+
implementation: TypedContractMethod<[], [string], "view">;
|
|
22
22
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
23
|
-
getFunction(nameOrSignature: "
|
|
23
|
+
getFunction(nameOrSignature: "implementation"): TypedContractMethod<[], [string], "view">;
|
|
24
24
|
filters: {};
|
|
25
25
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { IBeacon } from "./IBeacon";
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../../common";
|
|
3
|
+
export interface ProxyAdminInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "UPGRADE_INTERFACE_VERSION" | "owner" | "renounceOwnership" | "transferOwnership" | "upgradeAndCall"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: "UPGRADE_INTERFACE_VERSION", values?: undefined): string;
|
|
7
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
8
|
+
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
9
|
+
encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string;
|
|
10
|
+
encodeFunctionData(functionFragment: "upgradeAndCall", values: [AddressLike, AddressLike, BytesLike]): string;
|
|
11
|
+
decodeFunctionResult(functionFragment: "UPGRADE_INTERFACE_VERSION", data: BytesLike): Result;
|
|
12
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
13
|
+
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
14
|
+
decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
|
|
15
|
+
decodeFunctionResult(functionFragment: "upgradeAndCall", data: BytesLike): Result;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace OwnershipTransferredEvent {
|
|
18
|
+
type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
|
19
|
+
type OutputTuple = [previousOwner: string, newOwner: string];
|
|
20
|
+
interface OutputObject {
|
|
21
|
+
previousOwner: string;
|
|
22
|
+
newOwner: string;
|
|
23
|
+
}
|
|
24
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
25
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
26
|
+
type Log = TypedEventLog<Event>;
|
|
27
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
28
|
+
}
|
|
29
|
+
export interface ProxyAdmin extends BaseContract {
|
|
30
|
+
connect(runner?: ContractRunner | null): ProxyAdmin;
|
|
31
|
+
waitForDeployment(): Promise<this>;
|
|
32
|
+
interface: ProxyAdminInterface;
|
|
33
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
34
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
35
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
36
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
37
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
38
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
39
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
40
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
41
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
42
|
+
UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], "view">;
|
|
43
|
+
owner: TypedContractMethod<[], [string], "view">;
|
|
44
|
+
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
45
|
+
transferOwnership: TypedContractMethod<[
|
|
46
|
+
newOwner: AddressLike
|
|
47
|
+
], [
|
|
48
|
+
void
|
|
49
|
+
], "nonpayable">;
|
|
50
|
+
upgradeAndCall: TypedContractMethod<[
|
|
51
|
+
proxy: AddressLike,
|
|
52
|
+
implementation: AddressLike,
|
|
53
|
+
data: BytesLike
|
|
54
|
+
], [
|
|
55
|
+
void
|
|
56
|
+
], "payable">;
|
|
57
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
58
|
+
getFunction(nameOrSignature: "UPGRADE_INTERFACE_VERSION"): TypedContractMethod<[], [string], "view">;
|
|
59
|
+
getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
|
|
60
|
+
getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
|
61
|
+
getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
|
|
62
|
+
getFunction(nameOrSignature: "upgradeAndCall"): TypedContractMethod<[
|
|
63
|
+
proxy: AddressLike,
|
|
64
|
+
implementation: AddressLike,
|
|
65
|
+
data: BytesLike
|
|
66
|
+
], [
|
|
67
|
+
void
|
|
68
|
+
], "payable">;
|
|
69
|
+
getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
70
|
+
filters: {
|
|
71
|
+
"OwnershipTransferred(address,address)": TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
72
|
+
OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
73
|
+
};
|
|
74
|
+
}
|