@raac/rpc 1.2.0-beta.3 → 1.2.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/RPCLibrary.js +214 -0
- package/dist/artifacts/core/collectors/FeeCollector.sol/FeeCollector.json +2 -2
- package/dist/artifacts/core/collectors/NFTRoyaltyFeeCollector.sol/NFTRoyaltyFeeCollector.json +15 -2
- package/dist/artifacts/core/collectors/RAACTokenCollector.sol/RAACTokenCollector.json +2 -2
- package/dist/artifacts/core/collectors/RWAIndexTokenCollector.sol/RWAIndexTokenCollector.json +2 -2
- package/dist/artifacts/core/collectors/Treasury.sol/Treasury.json +2 -2
- package/dist/artifacts/core/governance/gauges/BaseGauge.sol/BaseGauge.json +0 -25
- package/dist/artifacts/core/governance/gauges/GaugeController.sol/GaugeController.json +2 -22
- package/dist/artifacts/core/governance/gauges/GaugeRewardsDistributor.sol/GaugeRewardsDistributor.json +2 -2
- package/dist/artifacts/core/governance/gauges/RAACGauge.sol/RAACGauge.json +2 -27
- package/dist/artifacts/core/governance/gauges/RWAGauge.sol/RWAGauge.json +2 -27
- package/dist/artifacts/core/governance/proposals/Governance.sol/Governance.json +2 -2
- package/dist/artifacts/core/governance/proposals/TimelockController.sol/TimelockController.json +2 -2
- package/dist/artifacts/core/lockers/RAACBotLocker.sol/RAACBotLocker.json +915 -0
- package/dist/artifacts/core/lockers/RAACLiquidLocker.sol/RAACLiquidLocker.json +2158 -0
- package/dist/artifacts/core/lockers/RAACMaturityVault.sol/RAACMaturityVault.json +911 -0
- package/dist/artifacts/core/minters/RAACMinter/RAACMinter.sol/RAACMinter.json +59 -741
- package/dist/artifacts/core/oracles/BaseVRFv2Consumer.sol/BaseVRFv2Consumer.json +106 -2
- package/dist/artifacts/core/oracles/CrvUSDToUSDOracle.sol/CrvUSDToUSDOracle.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 +15 -2
- package/dist/artifacts/core/pools/LendingPool/ERC721AssetAdapter.sol/ERC721AssetAdapter.json +15 -2
- package/dist/artifacts/core/pools/LendingPool/LendingPool.sol/LendingPool.json +20 -49
- package/dist/artifacts/core/pools/StabilityPool/StabilityPool.sol/StabilityPool.json +2 -2
- 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 +21 -2
- package/dist/artifacts/core/tokens/LeRAAC.sol/LiquidEscrowedRAAC.json +621 -0
- package/dist/artifacts/core/tokens/RAACNFT.sol/RAACNFT.json +101 -74
- package/dist/artifacts/core/tokens/RAACToken.sol/RAACToken.json +24 -322
- package/dist/artifacts/core/tokens/RToken.sol/RToken.json +2 -2
- package/dist/artifacts/core/tokens/RWAIndexToken.sol/RWAIndexToken.json +66 -2
- package/dist/artifacts/core/tokens/veRAACToken.sol/veRAACToken.json +45 -32
- package/dist/artifacts/core/vaults/ERC20VaultAdapter.sol/ERC20VaultAdapter.json +15 -2
- package/dist/artifacts/core/vaults/ERC721VaultAdapter.sol/ERC721VaultAdapter.json +15 -2
- package/dist/artifacts/core/vaults/RWAVault.sol/RWAVault.json +46 -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/zap/AladdinZap.sol/AladdinZap.json +398 -0
- package/dist/artifacts/zeno/Auction.sol/Auction.json +2 -2
- package/dist/artifacts/zeno/AuctionFactory.sol/AuctionFactory.json +2 -2
- package/dist/artifacts/zeno/Zeno.sol/Zeno.json +2 -2
- package/dist/artifacts/zeno/ZenoFactory.sol/ZenoFactory.json +2 -2
- package/dist/configs/chains/8453.json +34 -2
- package/dist/contracts/getContractAddress.js +2 -0
- package/dist/contracts/governance/proposals/getProposal.js +14 -11
- package/dist/contracts/lockers/botLocker/_helpers.js +19 -0
- package/dist/contracts/lockers/botLocker/claim.js +16 -0
- package/dist/contracts/lockers/botLocker/getClaimable.js +12 -0
- package/dist/contracts/lockers/botLocker/getClaimables.js +16 -0
- package/dist/contracts/lockers/botLocker/getClaimedRewards.js +13 -0
- package/dist/contracts/lockers/botLocker/getLockedTokenIds.js +10 -0
- package/dist/contracts/lockers/botLocker/getLocks.js +27 -0
- package/dist/contracts/lockers/botLocker/getRewardTokenCount.js +10 -0
- package/dist/contracts/lockers/botLocker/getRewardTokens.js +9 -0
- package/dist/contracts/lockers/botLocker/lock.js +17 -0
- package/dist/contracts/lockers/botLocker/unlock.js +17 -0
- package/dist/contracts/lockers/botLocker/unlockAndClaim.js +16 -0
- package/dist/contracts/lockers/liquidLocker/_helpers.js +19 -0
- package/dist/contracts/lockers/liquidLocker/borrow.js +17 -0
- package/dist/contracts/lockers/liquidLocker/deposit.js +17 -0
- package/dist/contracts/lockers/liquidLocker/donate.js +16 -0
- package/dist/contracts/lockers/liquidLocker/getConfig.js +52 -0
- package/dist/contracts/lockers/liquidLocker/getGlobalInfo.js +39 -0
- package/dist/contracts/lockers/liquidLocker/getUserInfo.js +28 -0
- package/dist/contracts/lockers/liquidLocker/getUserLocks.js +26 -0
- package/dist/contracts/lockers/liquidLocker/harvest.js +17 -0
- package/dist/contracts/lockers/liquidLocker/isKeeper.js +9 -0
- package/dist/contracts/lockers/liquidLocker/processVaultExpiredLocks.js +17 -0
- package/dist/contracts/lockers/liquidLocker/repay.js +17 -0
- package/dist/contracts/lockers/liquidLocker/requestUnlock.js +17 -0
- package/dist/contracts/lockers/liquidLocker/voteGauge.js +17 -0
- package/dist/contracts/lockers/liquidLocker/voteGovernance.js +16 -0
- package/dist/contracts/lockers/liquidLocker/withdrawUnlocked.js +16 -0
- package/dist/contracts/lockers/maturityVault/_helpers.js +19 -0
- package/dist/contracts/lockers/maturityVault/claim.js +16 -0
- package/dist/contracts/lockers/maturityVault/deposit.js +17 -0
- package/dist/contracts/lockers/maturityVault/depositFor.js +16 -0
- package/dist/contracts/lockers/maturityVault/distribute.js +17 -0
- package/dist/contracts/lockers/maturityVault/exit.js +16 -0
- package/dist/contracts/lockers/maturityVault/getConfig.js +26 -0
- package/dist/contracts/lockers/maturityVault/getGlobalInfo.js +45 -0
- package/dist/contracts/lockers/maturityVault/getUserInfo.js +18 -0
- package/dist/contracts/lockers/maturityVault/harvest.js +16 -0
- package/dist/contracts/lockers/maturityVault/isWhitelisted.js +9 -0
- package/dist/contracts/lockers/maturityVault/updatePendingDistribution.js +16 -0
- package/dist/contracts/lockers/maturityVault/withdraw.js +16 -0
- package/dist/contracts/lockers/maturityVault/withdrawAll.js +16 -0
- package/dist/contracts/tokens/leRAAC/_helpers.js +19 -0
- package/dist/contracts/tokens/leRAAC/approve.js +13 -0
- package/dist/contracts/tokens/leRAAC/burn.js +16 -0
- package/dist/contracts/tokens/leRAAC/burnFrom.js +16 -0
- package/dist/contracts/tokens/leRAAC/getAllowance.js +11 -0
- package/dist/contracts/tokens/leRAAC/getBalance.js +11 -0
- package/dist/contracts/tokens/leRAAC/getMinterInfo.js +15 -0
- package/dist/contracts/tokens/leRAAC/getTotalSupply.js +11 -0
- package/dist/contracts/tokens/leRAAC/transfer.js +13 -0
- package/dist/contracts/tokens/leRAAC/transferFrom.js +13 -0
- package/dist/contracts/zap/aladdin/_helpers.js +19 -0
- package/dist/contracts/zap/aladdin/_types.js +38 -0
- package/dist/contracts/zap/aladdin/decodeRoute.js +36 -0
- package/dist/contracts/zap/aladdin/encodeRoute.js +34 -0
- package/dist/contracts/zap/aladdin/getCurvePoolToken.js +13 -0
- package/dist/contracts/zap/aladdin/getOwner.js +9 -0
- package/dist/contracts/zap/aladdin/getPool2Token.js +12 -0
- package/dist/contracts/zap/aladdin/getRoutes.js +16 -0
- package/dist/contracts/zap/aladdin/getVersion.js +9 -0
- package/dist/contracts/zap/aladdin/rescue.js +16 -0
- package/dist/contracts/zap/aladdin/updatePoolTokens.js +19 -0
- package/dist/contracts/zap/aladdin/updateRoute.js +31 -0
- package/dist/contracts/zap/aladdin/validateRoute.js +80 -0
- package/dist/contracts/zap/aladdin/zap.js +18 -0
- package/dist/contracts/zap/aladdin/zapFrom.js +18 -0
- package/dist/contracts/zap/aladdin/zapWithRoutes.js +28 -0
- package/dist/contracts/zap/codec.js +423 -0
- package/dist/minter/_helpers.js +19 -0
- package/dist/minter/activate.js +18 -0
- package/dist/minter/addDistributionPool.js +17 -0
- package/dist/minter/calculateScheduledMintableAmount.js +14 -0
- package/dist/minter/get.js +44 -112
- package/dist/minter/getApy.js +55 -19
- package/dist/minter/getDistributionPools.js +39 -0
- package/dist/minter/getEmissionPerSecond.js +25 -0
- package/dist/minter/getPoolInfo.js +23 -0
- package/dist/minter/isPaused.js +9 -0
- package/dist/minter/manageDistributionPool.js +18 -0
- package/dist/minter/pause.js +24 -0
- package/dist/minter/removeDistributionPool.js +20 -0
- package/dist/minter/tick.js +12 -24
- package/dist/tests/liquidLocker.test.js +262 -0
- package/dist/tests/test.js +1 -1
- package/dist/types/RPCLibrary.d.ts +173 -0
- package/dist/types/contracts/lockers/botLocker/_helpers.d.ts +4 -0
- package/dist/types/contracts/lockers/botLocker/claim.d.ts +6 -0
- package/dist/types/contracts/lockers/botLocker/getClaimable.d.ts +6 -0
- package/dist/types/contracts/lockers/botLocker/getClaimables.d.ts +10 -0
- package/dist/types/contracts/lockers/botLocker/getClaimedRewards.d.ts +7 -0
- package/dist/types/contracts/lockers/botLocker/getLockedTokenIds.d.ts +3 -0
- package/dist/types/contracts/lockers/botLocker/getLocks.d.ts +15 -0
- package/dist/types/contracts/lockers/botLocker/getRewardTokenCount.d.ts +3 -0
- package/dist/types/contracts/lockers/botLocker/getRewardTokens.d.ts +3 -0
- package/dist/types/contracts/lockers/botLocker/lock.d.ts +7 -0
- package/dist/types/contracts/lockers/botLocker/unlock.d.ts +7 -0
- package/dist/types/contracts/lockers/botLocker/unlockAndClaim.d.ts +6 -0
- package/dist/types/contracts/lockers/liquidLocker/_helpers.d.ts +4 -0
- package/dist/types/contracts/lockers/liquidLocker/borrow.d.ts +7 -0
- package/dist/types/contracts/lockers/liquidLocker/deposit.d.ts +7 -0
- package/dist/types/contracts/lockers/liquidLocker/donate.d.ts +6 -0
- package/dist/types/contracts/lockers/liquidLocker/getConfig.d.ts +27 -0
- package/dist/types/contracts/lockers/liquidLocker/getGlobalInfo.d.ts +24 -0
- package/dist/types/contracts/lockers/liquidLocker/getUserInfo.d.ts +21 -0
- package/dist/types/contracts/lockers/liquidLocker/getUserLocks.d.ts +17 -0
- package/dist/types/contracts/lockers/liquidLocker/harvest.d.ts +7 -0
- package/dist/types/contracts/lockers/liquidLocker/isKeeper.d.ts +3 -0
- package/dist/types/contracts/lockers/liquidLocker/processVaultExpiredLocks.d.ts +7 -0
- package/dist/types/contracts/lockers/liquidLocker/repay.d.ts +7 -0
- package/dist/types/contracts/lockers/liquidLocker/requestUnlock.d.ts +7 -0
- package/dist/types/contracts/lockers/liquidLocker/voteGauge.d.ts +7 -0
- package/dist/types/contracts/lockers/liquidLocker/voteGovernance.d.ts +6 -0
- package/dist/types/contracts/lockers/liquidLocker/withdrawUnlocked.d.ts +6 -0
- package/dist/types/contracts/lockers/maturityVault/_helpers.d.ts +4 -0
- package/dist/types/contracts/lockers/maturityVault/claim.d.ts +6 -0
- package/dist/types/contracts/lockers/maturityVault/deposit.d.ts +7 -0
- package/dist/types/contracts/lockers/maturityVault/depositFor.d.ts +6 -0
- package/dist/types/contracts/lockers/maturityVault/distribute.d.ts +7 -0
- package/dist/types/contracts/lockers/maturityVault/exit.d.ts +6 -0
- package/dist/types/contracts/lockers/maturityVault/getConfig.d.ts +12 -0
- package/dist/types/contracts/lockers/maturityVault/getGlobalInfo.d.ts +32 -0
- package/dist/types/contracts/lockers/maturityVault/getUserInfo.d.ts +14 -0
- package/dist/types/contracts/lockers/maturityVault/harvest.d.ts +6 -0
- package/dist/types/contracts/lockers/maturityVault/isWhitelisted.d.ts +3 -0
- package/dist/types/contracts/lockers/maturityVault/updatePendingDistribution.d.ts +6 -0
- package/dist/types/contracts/lockers/maturityVault/withdraw.d.ts +6 -0
- package/dist/types/contracts/lockers/maturityVault/withdrawAll.d.ts +6 -0
- package/dist/types/contracts/tokens/leRAAC/_helpers.d.ts +4 -0
- package/dist/types/contracts/tokens/leRAAC/approve.d.ts +3 -0
- package/dist/types/contracts/tokens/leRAAC/burn.d.ts +6 -0
- package/dist/types/contracts/tokens/leRAAC/burnFrom.d.ts +6 -0
- package/dist/types/contracts/tokens/leRAAC/getAllowance.d.ts +3 -0
- package/dist/types/contracts/tokens/leRAAC/getBalance.d.ts +3 -0
- package/dist/types/contracts/tokens/leRAAC/getMinterInfo.d.ts +8 -0
- package/dist/types/contracts/tokens/leRAAC/getTotalSupply.d.ts +3 -0
- package/dist/types/contracts/tokens/leRAAC/transfer.d.ts +3 -0
- package/dist/types/contracts/tokens/leRAAC/transferFrom.d.ts +3 -0
- package/dist/types/contracts/zap/aladdin/_helpers.d.ts +4 -0
- package/dist/types/contracts/zap/aladdin/_types.d.ts +44 -0
- package/dist/types/contracts/zap/aladdin/decodeRoute.d.ts +14 -0
- package/dist/types/contracts/zap/aladdin/encodeRoute.d.ts +18 -0
- package/dist/types/contracts/zap/aladdin/getCurvePoolToken.d.ts +8 -0
- package/dist/types/contracts/zap/aladdin/getOwner.d.ts +3 -0
- package/dist/types/contracts/zap/aladdin/getPool2Token.d.ts +6 -0
- package/dist/types/contracts/zap/aladdin/getRoutes.d.ts +13 -0
- package/dist/types/contracts/zap/aladdin/getVersion.d.ts +3 -0
- package/dist/types/contracts/zap/aladdin/rescue.d.ts +6 -0
- package/dist/types/contracts/zap/aladdin/updatePoolTokens.d.ts +6 -0
- package/dist/types/contracts/zap/aladdin/updateRoute.d.ts +13 -0
- package/dist/types/contracts/zap/aladdin/validateRoute.d.ts +26 -0
- package/dist/types/contracts/zap/aladdin/zap.d.ts +8 -0
- package/dist/types/contracts/zap/aladdin/zapFrom.d.ts +8 -0
- package/dist/types/contracts/zap/aladdin/zapWithRoutes.d.ts +11 -0
- package/dist/types/contracts/zap/codec.d.ts +36 -0
- package/dist/types/minter/_helpers.d.ts +4 -0
- package/dist/types/minter/activate.d.ts +8 -0
- package/dist/types/minter/addDistributionPool.d.ts +7 -0
- package/dist/types/minter/calculateScheduledMintableAmount.d.ts +8 -0
- package/dist/types/minter/get.d.ts +28 -16
- package/dist/types/minter/getApy.d.ts +19 -2
- package/dist/types/minter/getDistributionPools.d.ts +16 -0
- package/dist/types/minter/getEmissionPerSecond.d.ts +8 -0
- package/dist/types/minter/getPoolInfo.d.ts +13 -0
- package/dist/types/minter/isPaused.d.ts +3 -0
- package/dist/types/minter/manageDistributionPool.d.ts +8 -0
- package/dist/types/minter/pause.d.ts +6 -0
- package/dist/types/minter/removeDistributionPool.d.ts +10 -0
- package/dist/types/minter/tick.d.ts +7 -3
- package/dist/types/tests/liquidLocker.test.d.ts +18 -0
- package/dist/types/typechain-types/@openzeppelin/{contracts-v3/token/ERC20/IERC20.d.ts → contracts/token/ERC20/extensions/ERC20Capped.d.ts} +34 -18
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +1 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/index.d.ts +2 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.d.ts +155 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC20/index.d.ts +1 -0
- package/dist/types/typechain-types/@openzeppelin/index.d.ts +0 -2
- package/dist/types/typechain-types/contracts/core/collectors/NFTRoyaltyFeeCollector.sol/NFTRoyaltyFeeCollector.d.ts +15 -1
- package/dist/types/typechain-types/contracts/core/governance/gauges/BaseGauge.d.ts +1 -25
- package/dist/types/typechain-types/contracts/core/governance/gauges/GaugeController.d.ts +1 -13
- package/dist/types/typechain-types/contracts/core/governance/gauges/RAACGauge.d.ts +1 -25
- package/dist/types/typechain-types/contracts/core/governance/gauges/RWAGauge.d.ts +1 -25
- package/dist/types/typechain-types/contracts/core/lockers/RAACLiquidLocker.d.ts +101 -171
- package/dist/types/typechain-types/contracts/core/lockers/RAACMaturityVault.d.ts +5 -38
- package/dist/types/typechain-types/contracts/core/minters/RAACMinter/RAACMinter.d.ts +58 -418
- package/dist/types/typechain-types/contracts/core/oracles/BaseVRFv2Consumer.d.ts +108 -2
- package/dist/types/typechain-types/contracts/core/oracles/KYCVerifyModule.sol/IKYCVerifyModule.d.ts +25 -0
- package/dist/types/typechain-types/{@openzeppelin/contracts-v3/access/Ownable.d.ts → contracts/core/oracles/KYCVerifyModule.sol/KYCVerifyModule.d.ts} +10 -6
- package/dist/types/typechain-types/contracts/core/oracles/KYCVerifyModule.sol/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/core/oracles/PmUSDToUSDOracle.d.ts +338 -0
- package/dist/types/typechain-types/contracts/core/oracles/RWAIndexTokenOracle.sol/RWAIndexTokenOracle.d.ts +60 -4
- package/dist/types/typechain-types/contracts/core/oracles/ZkMeKYCVerifyModule.sol/ZKMEKYCVerifyModule.d.ts +110 -0
- package/dist/types/typechain-types/contracts/core/oracles/ZkMeKYCVerifyModule.sol/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/core/oracles/index.d.ts +5 -0
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/ERC20AssetAdapter.sol/ERC20AssetAdapter.d.ts +15 -1
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/ERC721AssetAdapter.d.ts +15 -1
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/LendingPool.d.ts +9 -23
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/LendingPoolStorage.d.ts +8 -4
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/LiquidationProxy.d.ts +8 -4
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/VaultProxy.d.ts +8 -4
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/LiquidationSwap.d.ts +70 -1
- package/dist/types/typechain-types/contracts/core/tokens/DEToken.d.ts +16 -1
- package/dist/types/typechain-types/contracts/core/tokens/LeRAAC.sol/LiquidEscrowedRAAC.d.ts +3 -3
- package/dist/types/typechain-types/contracts/core/tokens/RAACNFT.d.ts +65 -50
- package/dist/types/typechain-types/contracts/core/tokens/RAACToken.d.ts +6 -191
- package/dist/types/typechain-types/contracts/core/tokens/RWAIndexToken.d.ts +62 -1
- package/dist/types/typechain-types/contracts/core/tokens/SToken.d.ts +804 -0
- package/dist/types/typechain-types/contracts/core/tokens/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/core/vaults/ERC20VaultAdapter.d.ts +15 -1
- package/dist/types/typechain-types/contracts/core/vaults/ERC721VaultAdapter.d.ts +15 -1
- package/dist/types/typechain-types/contracts/core/vaults/RAACNFTVaultAdapterV2.d.ts +15 -1
- package/dist/types/typechain-types/contracts/core/vaults/RWAVault.d.ts +28 -2
- package/dist/types/typechain-types/contracts/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/interfaces/IZap.d.ts +15 -1
- package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/IBaseGauge.d.ts +1 -25
- package/dist/types/typechain-types/contracts/interfaces/core/lockers/IRaacLiquidLocker.d.ts +30 -37
- package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACMinter/IRAACMinter.d.ts +68 -205
- package/dist/types/typechain-types/contracts/interfaces/core/oracles/IBaseVRFv2Consumer.d.ts +100 -2
- package/dist/types/typechain-types/contracts/interfaces/core/oracles/IZKMEVerifyUpgradeable.d.ts +15 -1
- package/dist/types/typechain-types/contracts/interfaces/core/pools/LendingPool/ILendingPool.d.ts +1 -19
- package/dist/types/typechain-types/contracts/interfaces/core/pools/StabilityPool/ILiquidationSwap.d.ts +70 -1
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IDEToken.d.ts +16 -1
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IRAACNFT.d.ts +36 -25
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IRAACToken.d.ts +2 -179
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/ISToken.d.ts +454 -0
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/interfaces/core/vaults/IBaseHybridVault.d.ts +15 -1
- package/dist/types/typechain-types/contracts/interfaces/core/vaults/IVaultAssetAdapter.d.ts +19 -3
- package/dist/types/typechain-types/contracts/interfaces/curve/ICurveCrvUSDVault.d.ts +47 -1
- package/dist/types/typechain-types/contracts/mocks/core/curve/CurveCrvUSDVaultMock.d.ts +47 -1
- package/dist/types/typechain-types/contracts/mocks/core/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/mocks/core/minters/MockRAACMinterRewardsReceiver.d.ts +181 -0
- package/dist/types/typechain-types/contracts/mocks/core/minters/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/core/oracles/MockZKMEVerifyUpgradeable.d.ts +15 -1
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPoolDebtToken.d.ts +1 -19
- package/dist/types/typechain-types/contracts/mocks/core/tokens/MockFeeOnTransferToken.d.ts +163 -0
- package/dist/types/typechain-types/contracts/mocks/core/tokens/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/minters/EmissionScheduleMock.d.ts +91 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/minters/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/rwaf/ChainlinkOracleAdapter.sol/ChainlinkOracleAdapter.d.ts +212 -0
- package/dist/types/typechain-types/contracts/rwaf/ChainlinkOracleAdapter.sol/IRWACoordinator.d.ts +67 -0
- package/dist/types/typechain-types/contracts/rwaf/ChainlinkOracleAdapter.sol/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/rwaf/TokenBlender.sol/ITokenBlender.d.ts +331 -0
- package/dist/types/typechain-types/contracts/rwaf/TokenBlender.sol/TokenBlender.d.ts +671 -0
- package/dist/types/typechain-types/contracts/rwaf/TokenBlender.sol/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/rwaf/index.d.ts +4 -0
- package/dist/types/typechain-types/contracts/zap/AladdinZap.d.ts +15 -1
- package/dist/types/typechain-types/contracts/zap/index.d.ts +0 -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/token/ERC20/extensions/ERC20Capped__factory.d.ts +271 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +1 -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 -1
- 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 +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/cryptography/MerkleProof__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/@openzeppelin/contracts-upgradeable/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@openzeppelin/{contracts-v3/token/ERC20/IERC20__factory.d.ts → contracts-upgradeable/token/ERC20/ERC20Upgradeable__factory.d.ts} +122 -10
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@openzeppelin/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/core/collectors/ERC20Collector__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/NFTRoyaltyFeeCollector.sol/NFTRoyaltyFeeCollector__factory.d.ts +11 -1
- package/dist/types/typechain-types/factories/contracts/core/collectors/RAACTokenCollector__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/collectors/RWAIndexTokenCollector__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/gauges/BaseGauge__factory.d.ts +0 -20
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/GaugeController__factory.d.ts +1 -17
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/GaugeRewardsDistributor__factory.d.ts +1 -1
- 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/gauges/VeBoostProxy__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/VeBoost__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/lockers/RAACBotLocker__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/lockers/RAACLiquidLocker__factory.d.ts +129 -197
- package/dist/types/typechain-types/factories/contracts/core/lockers/RAACMaturityVault__factory.d.ts +11 -51
- package/dist/types/typechain-types/factories/contracts/core/lockers/RAACNFTLocker__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/minters/RAACMinter/RAACMinter__factory.d.ts +28 -557
- 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 +81 -1
- package/dist/types/typechain-types/factories/contracts/core/oracles/CrvUSDToUSDOracle.sol/CrvUSDToUSDOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/oracles/KYCVerifyModule.sol/IKYCVerifyModule__factory.d.ts +25 -0
- package/dist/types/typechain-types/factories/{@openzeppelin/contracts-v3/access/Ownable__factory.d.ts → contracts/core/oracles/KYCVerifyModule.sol/KYCVerifyModule__factory.d.ts} +38 -4
- package/dist/types/typechain-types/factories/contracts/core/oracles/KYCVerifyModule.sol/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/core/oracles/PmUSDToUSDOracle__factory.d.ts +443 -0
- package/dist/types/typechain-types/factories/contracts/core/oracles/RAACHousePriceOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/oracles/RAACPrimeRateOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/oracles/RWAIndexTokenOracle.sol/RWAIndexTokenOracle__factory.d.ts +97 -3
- package/dist/types/typechain-types/factories/contracts/core/oracles/ZkMeKYCVerifyModule.sol/ZKMEKYCVerifyModule__factory.d.ts +181 -0
- package/dist/types/typechain-types/factories/contracts/core/oracles/ZkMeKYCVerifyModule.sol/index.d.ts +1 -0
- 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/oracles/index.d.ts +3 -0
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/ERC20AssetAdapter.sol/ERC20AssetAdapter__factory.d.ts +11 -1
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/ERC721AssetAdapter__factory.d.ts +11 -1
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/LendingPoolStorage__factory.d.ts +9 -5
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/LendingPool__factory.d.ts +9 -31
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/LiquidationProxy__factory.d.ts +9 -5
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/VaultProxy__factory.d.ts +9 -5
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/LiquidationStrategyProxy__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/LiquidationSwap__factory.d.ts +62 -3
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/StabilityPoolStorage__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/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 +16 -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/LPToken__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/tokens/LeRAAC.sol/LiquidEscrowedRAAC__factory.d.ts +7 -3
- package/dist/types/typechain-types/factories/contracts/core/tokens/RAACNFT__factory.d.ts +79 -58
- package/dist/types/typechain-types/factories/contracts/core/tokens/RAACToken__factory.d.ts +21 -252
- package/dist/types/typechain-types/factories/contracts/core/tokens/RToken__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/tokens/RWAIndexToken__factory.d.ts +51 -1
- package/dist/types/typechain-types/factories/contracts/core/tokens/SToken__factory.d.ts +1153 -0
- package/dist/types/typechain-types/factories/contracts/core/tokens/VeRAACToken__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/tokens/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/core/vaults/ERC20VaultAdapter__factory.d.ts +11 -1
- package/dist/types/typechain-types/factories/contracts/core/vaults/ERC721VaultAdapter__factory.d.ts +11 -1
- package/dist/types/typechain-types/factories/contracts/core/vaults/RAACNFTVaultAdapterOracle.sol/RAACNFTVaultAdapterOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/vaults/RAACNFTVaultAdapterV2__factory.d.ts +11 -1
- package/dist/types/typechain-types/factories/contracts/core/vaults/RWAVault__factory.d.ts +35 -1
- package/dist/types/typechain-types/factories/contracts/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/IZap__factory.d.ts +18 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/IBaseGauge__factory.d.ts +0 -20
- package/dist/types/typechain-types/factories/contracts/interfaces/core/lockers/IRaacLiquidLocker__factory.d.ts +26 -29
- package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACMinter/IRAACMinter__factory.d.ts +44 -230
- package/dist/types/typechain-types/factories/contracts/interfaces/core/oracles/IBaseVRFv2Consumer__factory.d.ts +70 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/oracles/IZKMEVerifyUpgradeable__factory.d.ts +18 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/LendingPool/ILendingPool__factory.d.ts +0 -26
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/StabilityPool/ILiquidationSwap__factory.d.ts +55 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IDEToken__factory.d.ts +15 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IRAACNFT__factory.d.ts +28 -15
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IRAACToken__factory.d.ts +0 -219
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/ISToken__factory.d.ts +564 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/vaults/IBaseHybridVault__factory.d.ts +10 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/vaults/IVaultAssetAdapter__factory.d.ts +10 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/curve/ICurveCrvUSDVault__factory.d.ts +66 -0
- 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/governance/RagequitLib__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/libraries/governance/RewardLib__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 +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/ERC20BurnableMock__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 +67 -1
- 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/libraries/LockManagerMock__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/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/lockers/LLamaLocker.sol/LlamaLocker__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/lockers/MockLamaLocker__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/minters/MockRAACMinterRewardsReceiver__factory.d.ts +184 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/minters/index.d.ts +1 -0
- 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 +19 -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 -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 -27
- 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/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 -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/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 -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/MockFeeOnTransferToken__factory.d.ts +306 -0
- 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/tokens/index.d.ts +1 -0
- 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/MockTimeUtils__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/PowerCheckpointMock__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/RagequitHarness__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/RewardIntegralCalculatorMock.sol/MockRewardIntegralCalculator__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/index.d.ts +1 -0
- 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/minters/EmissionScheduleMock__factory.d.ts +115 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/minters/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/pools/ReserveLibraryMockCalculation__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/rwaf/ChainlinkOracleAdapter.sol/ChainlinkOracleAdapter__factory.d.ts +295 -0
- package/dist/types/typechain-types/factories/contracts/rwaf/ChainlinkOracleAdapter.sol/IRWACoordinator__factory.d.ts +43 -0
- package/dist/types/typechain-types/factories/contracts/rwaf/ChainlinkOracleAdapter.sol/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/rwaf/TokenBlender.sol/ITokenBlender__factory.d.ts +409 -0
- package/dist/types/typechain-types/factories/contracts/rwaf/TokenBlender.sol/TokenBlender__factory.d.ts +990 -0
- package/dist/types/typechain-types/factories/contracts/rwaf/TokenBlender.sol/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/rwaf/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/zap/AladdinZap__factory.d.ts +19 -1
- package/dist/types/typechain-types/factories/contracts/zap/index.d.ts +0 -2
- 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/typechain-types/index.d.ts +34 -8
- package/dist/types/utils/artifacts.d.ts +616 -95
- package/dist/utils/artifacts.js +16 -0
- package/dist/utils/contracts.js +1 -1
- package/package.json +1 -1
- package/dist/types/typechain-types/@openzeppelin/contracts-v3/access/index.d.ts +0 -1
- package/dist/types/typechain-types/@openzeppelin/contracts-v3/index.d.ts +0 -4
- package/dist/types/typechain-types/@openzeppelin/contracts-v3/token/ERC20/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/zap/AladdinCRVZap.d.ts +0 -83
- package/dist/types/typechain-types/contracts/zap/AladdinConvexVaultZap.d.ts +0 -172
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-v3/access/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-v3/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-v3/token/ERC20/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/zap/AladdinCRVZap__factory.d.ts +0 -107
- package/dist/types/typechain-types/factories/contracts/zap/AladdinConvexVaultZap__factory.d.ts +0 -208
- /package/dist/types/typechain-types/@openzeppelin/{contracts-v3 → contracts-upgradeable}/token/index.d.ts +0 -0
- /package/dist/types/typechain-types/factories/@openzeppelin/{contracts-v3 → contracts-upgradeable}/token/index.d.ts +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Provider } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
export interface LiquidLockerGlobalInfo {
|
|
4
|
+
totalLockedGlobal: string;
|
|
5
|
+
totalUnlockedGlobal: string;
|
|
6
|
+
totalDebtGlobal: string;
|
|
7
|
+
pendingCumulatedAmount: string;
|
|
8
|
+
accRewardPerShare: string;
|
|
9
|
+
totalRaacInPool: string;
|
|
10
|
+
poolLockedUnderlying: string;
|
|
11
|
+
raw: {
|
|
12
|
+
totalLockedGlobal: bigint;
|
|
13
|
+
totalUnlockedGlobal: bigint;
|
|
14
|
+
totalDebtGlobal: bigint;
|
|
15
|
+
pendingCumulatedAmount: bigint;
|
|
16
|
+
accRewardPerShare: bigint;
|
|
17
|
+
totalRaacInPool: bigint;
|
|
18
|
+
poolLockedUnderlying: bigint;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* One-shot snapshot of locker global accounting.
|
|
23
|
+
*/
|
|
24
|
+
export declare const getGlobalInfo: (chainId: ChainId, provider?: Provider) => Promise<LiquidLockerGlobalInfo>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Provider } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
export interface LiquidLockerUserInfo {
|
|
4
|
+
totalDeposited: string;
|
|
5
|
+
totalPendingUnlocked: string;
|
|
6
|
+
totalUnlocked: string;
|
|
7
|
+
totalBorrowed: string;
|
|
8
|
+
totalReward: string;
|
|
9
|
+
raw: {
|
|
10
|
+
totalDeposited: bigint;
|
|
11
|
+
totalPendingUnlocked: bigint;
|
|
12
|
+
totalUnlocked: bigint;
|
|
13
|
+
totalBorrowed: bigint;
|
|
14
|
+
totalReward: bigint;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Get a user's locker totals. Mirrors RAACLiquidLocker.getUserInfo with both
|
|
19
|
+
* formatted (ether) and raw values returned for convenience.
|
|
20
|
+
*/
|
|
21
|
+
export declare const getUserInfo: (chainId: ChainId, account: string, provider?: Provider) => Promise<LiquidLockerUserInfo>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Provider } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
export interface PendingUnlockInfo {
|
|
4
|
+
pendingUnlock: string;
|
|
5
|
+
unlockEpoch: number;
|
|
6
|
+
unlockTimestamp: number;
|
|
7
|
+
reserved: boolean;
|
|
8
|
+
raw: {
|
|
9
|
+
pendingUnlock: bigint;
|
|
10
|
+
unlockEpoch: bigint;
|
|
11
|
+
reserved: boolean;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Returns the user's pending (future) unlock entries.
|
|
16
|
+
*/
|
|
17
|
+
export declare const getUserLocks: (chainId: ChainId, account: string, provider?: Provider) => Promise<PendingUnlockInfo[]>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Harvest veRAAC rewards, swap to RAAC via the configured Zap, and distribute.
|
|
5
|
+
* Caller must hold HARVEST_ROLE; receives the harvest bounty at `recipient`.
|
|
6
|
+
*/
|
|
7
|
+
export declare const harvest: (chainId: ChainId, recipient: string, minimumOut: string | number | bigint, signer: Signer) => Promise<import("ethers").ContractTransactionResponse>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Withdraw expired veRAAC locks for the locker contract and re-lock excess liquidity.
|
|
5
|
+
* Caller must be a whitelisted keeper.
|
|
6
|
+
*/
|
|
7
|
+
export declare const processVaultExpiredLocks: (chainId: ChainId, signer: Signer) => Promise<import("ethers").ContractTransactionResponse>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Repay outstanding leRAAC debt. The fee portion is transferred to the treasury,
|
|
5
|
+
* the net portion is burned via leRAAC.burnFrom — caller must approve the locker on the leRAAC token first.
|
|
6
|
+
*/
|
|
7
|
+
export declare const repay: (chainId: ChainId, leRAACAmount: string | number | bigint, signer: Signer) => Promise<import("ethers").ContractTransactionResponse>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Reserve `numLocks` of the caller's pending future-locks for unlock at their existing maturity epoch(s).
|
|
5
|
+
* Health is checked against (totalLocked - newUnlock) and current debt.
|
|
6
|
+
*/
|
|
7
|
+
export declare const requestUnlock: (chainId: ChainId, numLocks: number | bigint, signer: Signer) => Promise<import("ethers").ContractTransactionResponse>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Vote on a gauge using the locker's veRAAC voting power. Treasury-only.
|
|
5
|
+
* `weight` is in basis points (0–10000).
|
|
6
|
+
*/
|
|
7
|
+
export declare const voteGauge: (chainId: ChainId, controller: string, gauge: string, weight: number | bigint, signer: Signer) => Promise<import("ethers").ContractTransactionResponse>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Cast a governance vote with the locker's veRAAC voting power. Treasury-only.
|
|
5
|
+
*/
|
|
6
|
+
export declare const voteGovernance: (chainId: ChainId, governance: string, proposalId: number | bigint, support: boolean, signer: Signer) => Promise<import("ethers").ContractTransactionResponse>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Withdraw all matured (reserved & unlocked) RAAC for the caller.
|
|
5
|
+
*/
|
|
6
|
+
export declare const withdrawUnlocked: (chainId: ChainId, signer: Signer) => Promise<import("ethers").ContractTransactionResponse>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Provider, Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
import { RAACMaturityVault } from "../../../typechain-types";
|
|
4
|
+
export declare function getMaturityVaultContract(chainId: ChainId, runner?: Provider | Signer): Promise<RAACMaturityVault>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Claim realised RAAC to `recipient` (burns the matured leRAAC).
|
|
5
|
+
*/
|
|
6
|
+
export declare const claim: (chainId: ChainId, recipient: string, signer: Signer) => Promise<import("ethers").ContractTransactionResponse>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Deposit leRAAC into the maturity vault for the caller.
|
|
5
|
+
* Caller must have approved leRAAC to the vault first.
|
|
6
|
+
*/
|
|
7
|
+
export declare const deposit: (chainId: ChainId, amount: string | number | bigint, signer: Signer) => Promise<import("ethers").ContractTransactionResponse>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Deposit leRAAC into the maturity vault crediting `account`. Caller pays.
|
|
5
|
+
*/
|
|
6
|
+
export declare const depositFor: (chainId: ChainId, account: string, amount: string | number | bigint, signer: Signer) => Promise<import("ethers").ContractTransactionResponse>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Distribute RAAC into the vault to pay down leRAAC debt. Whitelisted callers only.
|
|
5
|
+
* `origin` is the address whose RAAC balance is consumed via transferFrom.
|
|
6
|
+
*/
|
|
7
|
+
export declare const distribute: (chainId: ChainId, origin: string, amount: string | number | bigint, signer: Signer) => Promise<import("ethers").ContractTransactionResponse>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Exit: withdraw all unrealised leRAAC AND claim all realised RAAC to `recipient`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const exit: (chainId: ChainId, recipient: string, signer: Signer) => Promise<import("ethers").ContractTransactionResponse>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Provider } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
export interface MaturityVaultConfig {
|
|
4
|
+
raac: string;
|
|
5
|
+
leRAAC: string;
|
|
6
|
+
platform: string;
|
|
7
|
+
governor: string;
|
|
8
|
+
owner: string;
|
|
9
|
+
platformFeePercentage: bigint;
|
|
10
|
+
harvestBountyPercentage: bigint;
|
|
11
|
+
}
|
|
12
|
+
export declare const getConfig: (chainId: ChainId, provider?: Provider) => Promise<MaturityVaultConfig>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Provider } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
export interface MaturityVaultRewardInfo {
|
|
4
|
+
ratePerSecond: string;
|
|
5
|
+
periodLength: number;
|
|
6
|
+
lastUpdate: number;
|
|
7
|
+
finishAt: number;
|
|
8
|
+
raw: {
|
|
9
|
+
ratePerSecond: bigint;
|
|
10
|
+
periodLength: bigint;
|
|
11
|
+
lastUpdate: bigint;
|
|
12
|
+
finishAt: bigint;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface MaturityVaultGlobalInfo {
|
|
16
|
+
totalRAACInPool: string;
|
|
17
|
+
totalUnrealised: string;
|
|
18
|
+
totalRealised: string;
|
|
19
|
+
accUnrealisedFraction: bigint;
|
|
20
|
+
distributeIndex: bigint;
|
|
21
|
+
lastPaidOffDistributeIndex: bigint;
|
|
22
|
+
rewardInfo: MaturityVaultRewardInfo;
|
|
23
|
+
raw: {
|
|
24
|
+
totalRAACInPool: bigint;
|
|
25
|
+
totalUnrealised: bigint;
|
|
26
|
+
totalRealised: bigint;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Snapshot of the maturity vault's global accounting and active reward schedule.
|
|
31
|
+
*/
|
|
32
|
+
export declare const getGlobalInfo: (chainId: ChainId, provider?: Provider) => Promise<MaturityVaultGlobalInfo>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Provider } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
export interface MaturityVaultUserInfo {
|
|
4
|
+
unrealised: string;
|
|
5
|
+
realised: string;
|
|
6
|
+
raw: {
|
|
7
|
+
unrealised: bigint;
|
|
8
|
+
realised: bigint;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Returns the user's unrealised (still-earning leRAAC) and realised (claimable RAAC) totals.
|
|
13
|
+
*/
|
|
14
|
+
export declare const getUserInfo: (chainId: ChainId, account: string, provider?: Provider) => Promise<MaturityVaultUserInfo>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Harvest free RAAC in the vault and distribute. Whitelisted callers only.
|
|
5
|
+
*/
|
|
6
|
+
export declare const harvest: (chainId: ChainId, recipient: string, minimumOut: string | number | bigint, signer: Signer) => Promise<import("ethers").ContractTransactionResponse>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Permissionlessly accrue pending linear-distribution rewards.
|
|
5
|
+
*/
|
|
6
|
+
export declare const updatePendingDistribution: (chainId: ChainId, signer: Signer) => Promise<import("ethers").ContractTransactionResponse>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Withdraw `amount` of unrealised leRAAC to `recipient`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const withdraw: (chainId: ChainId, recipient: string, amount: string | number | bigint, signer: Signer) => Promise<import("ethers").ContractTransactionResponse>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Withdraw all unrealised leRAAC to `recipient`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const withdrawAll: (chainId: ChainId, recipient: string, signer: Signer) => Promise<import("ethers").ContractTransactionResponse>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Provider, Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
import { LiquidEscrowedRAAC } from "../../../typechain-types";
|
|
4
|
+
export declare function getLeRAACContract(chainId: ChainId, runner?: Provider | Signer): Promise<LiquidEscrowedRAAC>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Burn `amount` of the caller's leRAAC.
|
|
5
|
+
*/
|
|
6
|
+
export declare const burn: (chainId: ChainId, amount: string | number | bigint, signer: Signer) => Promise<import("ethers").ContractTransactionResponse>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Burn `amount` of `account`'s leRAAC. Caller must have ERC20 allowance from `account`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const burnFrom: (chainId: ChainId, account: string, amount: string | number | bigint, signer: Signer) => Promise<import("ethers").ContractTransactionResponse>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Provider } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
export interface LeRAACMinterInfo {
|
|
4
|
+
isMinter: boolean;
|
|
5
|
+
ceiling: bigint;
|
|
6
|
+
minted: bigint;
|
|
7
|
+
}
|
|
8
|
+
export declare const getMinterInfo: (chainId: ChainId, minter: string, provider?: Provider) => Promise<LeRAACMinterInfo>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare enum AladdinPoolType {
|
|
2
|
+
UniswapV2 = 0,
|
|
3
|
+
UniswapV3 = 1,
|
|
4
|
+
BalancerV2 = 2,
|
|
5
|
+
CurveETHPool = 3,
|
|
6
|
+
CurveCryptoPool = 4,
|
|
7
|
+
CurveMetaCryptoPool = 5,
|
|
8
|
+
CurveTriCryptoPool = 6,
|
|
9
|
+
CurveBasePool = 7,
|
|
10
|
+
CurveAPool = 8,
|
|
11
|
+
CurveAPoolUnderlying = 9,
|
|
12
|
+
CurveYPool = 10,
|
|
13
|
+
CurveYPoolUnderlying = 11,
|
|
14
|
+
CurveMetaPool = 12,
|
|
15
|
+
CurveMetaPoolUnderlying = 13,
|
|
16
|
+
CurveFactoryPlainPool = 14,
|
|
17
|
+
CurveFactoryMetaPool = 15,
|
|
18
|
+
CurveFactoryUSDMetaPoolUnderlying = 16,
|
|
19
|
+
CurveFactoryBTCMetaPoolUnderlying = 17,
|
|
20
|
+
LidoStake = 18,
|
|
21
|
+
LidoWrap = 19,
|
|
22
|
+
CurveFactoryFraxBPMetaPoolUnderlying = 20,
|
|
23
|
+
AladdinCompounder = 21
|
|
24
|
+
}
|
|
25
|
+
export declare const ALADDIN_POOL_TYPE_MAX = AladdinPoolType.AladdinCompounder;
|
|
26
|
+
export declare enum AladdinAction {
|
|
27
|
+
Swap = 0,
|
|
28
|
+
AddLiquidity = 1,
|
|
29
|
+
RemoveLiquidity = 2
|
|
30
|
+
}
|
|
31
|
+
export interface DecodedAladdinRoute {
|
|
32
|
+
pool: string;
|
|
33
|
+
poolType: AladdinPoolType;
|
|
34
|
+
tokens: number;
|
|
35
|
+
indexIn: number;
|
|
36
|
+
indexOut: number;
|
|
37
|
+
action: AladdinAction;
|
|
38
|
+
raw: bigint;
|
|
39
|
+
}
|
|
40
|
+
export interface AladdinRouteValidation {
|
|
41
|
+
valid: boolean;
|
|
42
|
+
errors: string[];
|
|
43
|
+
decoded: DecodedAladdinRoute;
|
|
44
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DecodedAladdinRoute } from "./_types";
|
|
2
|
+
/**
|
|
3
|
+
* Decode a single Aladdin zap route uint256 into its component fields.
|
|
4
|
+
*
|
|
5
|
+
* Encoding (low → high bits):
|
|
6
|
+
* | 160 bits | 8 bits | 2 bits | 2 bits | 2 bits | 2 bits |
|
|
7
|
+
* | pool address | pool type | tokens (count-1) | index_in | index_out | action |
|
|
8
|
+
*/
|
|
9
|
+
export declare const decodeRoute: (route: string | bigint | number) => DecodedAladdinRoute;
|
|
10
|
+
/**
|
|
11
|
+
* Human-readable description of a route (delegates to the shared `decodePoolV2` codec).
|
|
12
|
+
* Format: `${PoolType}[${pool}].${Action} tokenIn[i] tokenOut[j]`.
|
|
13
|
+
*/
|
|
14
|
+
export declare const describeRoute: (route: string | bigint | number) => string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AladdinAction, AladdinPoolType } from "./_types";
|
|
2
|
+
export interface EncodeRouteParams {
|
|
3
|
+
pool: string;
|
|
4
|
+
poolType: AladdinPoolType;
|
|
5
|
+
/** Number of tokens in the pool (must be 1–4). Encoded as `tokens - 1`. */
|
|
6
|
+
tokens: number;
|
|
7
|
+
indexIn: number;
|
|
8
|
+
indexOut: number;
|
|
9
|
+
action: AladdinAction;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Encode a route into the packed uint256 used by AladdinZap.updateRoute / zapWithRoutes.
|
|
13
|
+
* Delegates to the shared codec (`encodePoolHintV2`) ported from
|
|
14
|
+
* `contracts/test/utils/codec.js` so the encoding stays in lockstep with the contracts repo.
|
|
15
|
+
*
|
|
16
|
+
* Throws on out-of-range fields — pair with validateRoute before sending an admin tx.
|
|
17
|
+
*/
|
|
18
|
+
export declare const encodeRoute: (params: EncodeRouteParams) => bigint;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Provider } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
import { AladdinPoolType } from "./_types";
|
|
4
|
+
/**
|
|
5
|
+
* Read the LP token address registered for a Curve pool, falling back to the
|
|
6
|
+
* `pool2token` override if the registry doesn't know the pool.
|
|
7
|
+
*/
|
|
8
|
+
export declare const getCurvePoolToken: (chainId: ChainId, poolType: AladdinPoolType, pool: string, provider?: Provider) => Promise<string>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Provider } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Read the manual pool→LP-token override map (`pool2token`).
|
|
5
|
+
*/
|
|
6
|
+
export declare const getPool2Token: (chainId: ChainId, pool: string, provider?: Provider) => Promise<string>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Provider } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
import { DecodedAladdinRoute } from "./_types";
|
|
4
|
+
export interface GetRoutesResult {
|
|
5
|
+
raw: bigint[];
|
|
6
|
+
decoded: DecodedAladdinRoute[];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Fetch the full route list (zero-or-more packed uint256s) configured for swapping
|
|
10
|
+
* `fromToken` → `toToken` on AladdinZap. Returns both raw values and decoded
|
|
11
|
+
* descriptions for UI rendering.
|
|
12
|
+
*/
|
|
13
|
+
export declare const getRoutes: (chainId: ChainId, fromToken: string, toToken: string, provider?: Provider) => Promise<GetRoutesResult>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Owner-only: drain the listed tokens' balances from the zap into `recipient`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const rescue: (chainId: ChainId, tokens: string[], recipient: string, signer: Signer) => Promise<import("ethers").ContractTransactionResponse>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Owner-only: register pool → LP-token overrides used by `getCurvePoolToken`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const updatePoolTokens: (chainId: ChainId, pools: string[], tokens: string[], signer: Signer) => Promise<import("ethers").ContractTransactionResponse>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Owner-only: register the route list used to swap `fromToken → toToken`.
|
|
5
|
+
*
|
|
6
|
+
* Routes are validated client-side first (action/index/poolType invariants); set
|
|
7
|
+
* `skipValidation: true` to bypass — useful when adding routes whose pool types are
|
|
8
|
+
* deliberately outside the documented set, but normally a misencoded route here will
|
|
9
|
+
* silently make the route revert at swap time, so we default to strict checking.
|
|
10
|
+
*/
|
|
11
|
+
export declare const updateRoute: (chainId: ChainId, fromToken: string, toToken: string, routes: (string | bigint | number)[], signer: Signer, options?: {
|
|
12
|
+
skipValidation?: boolean;
|
|
13
|
+
}) => Promise<import("ethers").ContractTransactionResponse>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AladdinRouteValidation } from "./_types";
|
|
2
|
+
/**
|
|
3
|
+
* Validate a single packed-uint256 Aladdin route. Returns the decoded fields plus a list of
|
|
4
|
+
* problems. Use this before calling `updateRoute` to catch typos and impossible encodings
|
|
5
|
+
* before they get committed to a transaction.
|
|
6
|
+
*
|
|
7
|
+
* Rules enforced (matching TokenZapLogic.swap dispatch):
|
|
8
|
+
* - poolType is within the known enum range (0..21)
|
|
9
|
+
* - pool address is non-zero
|
|
10
|
+
* - action ∈ {Swap, AddLiquidity, RemoveLiquidity}
|
|
11
|
+
* - Swap requires indexIn != indexOut
|
|
12
|
+
* - AddLiquidity / RemoveLiquidity require indexIn == indexOut
|
|
13
|
+
* - LidoStake / LidoWrap support only `action = AddLiquidity` (1)
|
|
14
|
+
* - UniswapV2 / UniswapV3 / BalancerV2 / AladdinCompounder only support Swap; the
|
|
15
|
+
* `_addCurvePool` / `_removeCurvePool` paths reject these pool types at runtime.
|
|
16
|
+
* - For non-Lido pool types, indexIn / indexOut must be < tokens
|
|
17
|
+
*/
|
|
18
|
+
export declare const validateRoute: (route: string | bigint | number) => AladdinRouteValidation;
|
|
19
|
+
/**
|
|
20
|
+
* Validate every route in a list. Returns one validation entry per route plus an
|
|
21
|
+
* `allValid` summary so callers can short-circuit before sending a transaction.
|
|
22
|
+
*/
|
|
23
|
+
export declare const validateRoutes: (routes: (string | bigint | number)[]) => {
|
|
24
|
+
allValid: boolean;
|
|
25
|
+
results: AladdinRouteValidation[];
|
|
26
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Run the configured route for `fromToken → toToken`, assuming `fromToken` is already
|
|
5
|
+
* sitting in the zap contract (or msg.value covers ETH). Use `zapFrom` if the caller
|
|
6
|
+
* is the holder of the input token instead.
|
|
7
|
+
*/
|
|
8
|
+
export declare const zap: (chainId: ChainId, fromToken: string, amountIn: string | number | bigint, toToken: string, minOut: string | number | bigint, signer: Signer, value?: string | number | bigint) => Promise<import("ethers").ContractTransactionResponse>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Pull `amountIn` of `fromToken` from the caller into the zap, then run the configured
|
|
5
|
+
* route to `toToken`. Caller must approve the zap on `fromToken` for ERC20 inputs,
|
|
6
|
+
* or pass `value` for ETH input.
|
|
7
|
+
*/
|
|
8
|
+
export declare const zapFrom: (chainId: ChainId, fromToken: string, amountIn: string | number | bigint, toToken: string, minOut: string | number | bigint, signer: Signer, value?: string | number | bigint) => Promise<import("ethers").ContractTransactionResponse>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Run an explicit list of packed-uint256 routes from `fromToken` to `toToken`.
|
|
5
|
+
* Routes are validated client-side first; pass `skipValidation: true` only if you
|
|
6
|
+
* really know what you're doing.
|
|
7
|
+
*/
|
|
8
|
+
export declare const zapWithRoutes: (chainId: ChainId, fromToken: string, amountIn: string | number | bigint, toToken: string, routes: (string | bigint | number)[], minOut: string | number | bigint, signer: Signer, options?: {
|
|
9
|
+
value?: string | number | bigint;
|
|
10
|
+
skipValidation?: boolean;
|
|
11
|
+
}) => Promise<import("ethers").ContractTransactionResponse>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
type EnumLike = {
|
|
2
|
+
[key: string]: number | string;
|
|
3
|
+
};
|
|
4
|
+
export declare const PoolType: EnumLike;
|
|
5
|
+
export declare const PoolTypeV3: EnumLike;
|
|
6
|
+
export declare const Action: EnumLike;
|
|
7
|
+
export type PoolHintV3Options = {
|
|
8
|
+
fee_num?: number | bigint;
|
|
9
|
+
twamm?: boolean;
|
|
10
|
+
use_eth?: boolean;
|
|
11
|
+
use_underlying?: boolean;
|
|
12
|
+
protocol?: number | bigint;
|
|
13
|
+
};
|
|
14
|
+
export declare function encodePoolHint(poolAddress: string, poolType: number, indexIn: number, indexOut: number): bigint;
|
|
15
|
+
export declare function encodePoolHintV2(poolAddress: string, poolType: number, tokens: number, indexIn: number, indexOut: number, action: number): bigint;
|
|
16
|
+
export declare function encodePoolHintV3(poolAddress: string, poolType: number, tokens: number, indexIn: number, indexOut: number, action: number, options?: PoolHintV3Options): bigint;
|
|
17
|
+
export declare function decodePoolV2(encoding: bigint): string;
|
|
18
|
+
export declare function decodePoolV3(encoding: bigint): string;
|
|
19
|
+
export declare const SpotPricePoolType: EnumLike;
|
|
20
|
+
export type SpotPriceOptions = {
|
|
21
|
+
base_index?: number | bigint;
|
|
22
|
+
quote_index?: number | bigint;
|
|
23
|
+
base_scale?: number | bigint;
|
|
24
|
+
quote_scale?: number | bigint;
|
|
25
|
+
tokens?: number;
|
|
26
|
+
has_amm_precise?: boolean;
|
|
27
|
+
scales?: (number | bigint)[];
|
|
28
|
+
use_cache?: boolean;
|
|
29
|
+
base_is_underlying?: boolean;
|
|
30
|
+
base_is_ETH?: boolean;
|
|
31
|
+
};
|
|
32
|
+
export declare function encodeSpotPricePool(poolAddress: string, poolType: number, options: SpotPriceOptions): bigint;
|
|
33
|
+
export declare function decodeSpotPricePool(encoding: bigint): string;
|
|
34
|
+
export declare function encodeSpotPriceSources(sources: bigint[][]): string;
|
|
35
|
+
export declare function encodeChainlinkPriceFeed(feed: string, scale: bigint, heartbeat: number | bigint): bigint;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Activate the minting schedule. UPDATER_ROLE only. Reverts if already activated.
|
|
5
|
+
* After activation, `mintingStartAtTimestamp` is set to `block.timestamp` and the
|
|
6
|
+
* geometric weekly emission schedule begins counting from week 1.
|
|
7
|
+
*/
|
|
8
|
+
export declare const activate: (chainId: ChainId, signer: Signer) => Promise<import("ethers").ContractTransactionResponse>;
|