@raac/rpc 1.1.0-beta.92 → 1.2.0-beta.10
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 +446 -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 +1608 -0
- package/dist/artifacts/core/governance/gauges/GaugeController.sol/GaugeController.json +1425 -0
- package/dist/artifacts/core/governance/gauges/GaugeRewardsDistributor.sol/GaugeRewardsDistributor.json +755 -0
- package/dist/artifacts/core/governance/gauges/RAACGauge.sol/RAACGauge.json +1644 -0
- package/dist/artifacts/core/governance/gauges/RWAGauge.sol/RWAGauge.json +1657 -0
- package/dist/artifacts/core/governance/proposals/Governance.sol/Governance.json +1490 -0
- package/dist/artifacts/core/governance/proposals/TimelockController.sol/TimelockController.json +1014 -0
- 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/pmBlender/pmBlender.json +1 -0
- package/dist/artifacts/core/pmMarket/pmMarket.json +1 -0
- package/dist/artifacts/core/pmTreasury/pmTreasury.json +1 -0
- 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 +30 -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 +82 -7
- 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 +58 -2
- package/dist/artifacts/core/tokens/RWAIndexToken.sol/RWAIndexToken.json +66 -2
- package/dist/artifacts/core/tokens/veRAACToken.sol/veRAACToken.json +1059 -509
- 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 -20
- 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/mocks/core/tokens/pmUSD.sol/pmUSD.json +1 -0
- package/dist/artifacts/mocks/core/tokens/xPM.sol/xPM.json +1 -0
- 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/1.json +77 -33
- package/dist/configs/chains/11155111.json +166 -18
- package/dist/configs/chains/17000.json +56 -1
- package/dist/configs/chains/18453.json +56 -1
- package/dist/configs/chains/8453.json +103 -8
- package/dist/configs/chains/index.js +2 -2
- package/dist/contracts/decodeCall.js +61 -0
- package/dist/contracts/findContract.js +61 -0
- package/dist/contracts/getContractAddress.js +4 -0
- package/dist/contracts/governance/_helpers.js +39 -0
- package/dist/contracts/governance/distributor/claimAll.js +25 -0
- package/dist/contracts/governance/distributor/claimForGauge.js +26 -0
- package/dist/contracts/governance/distributor/deposit.js +27 -0
- package/dist/contracts/governance/distributor/getClaimableForGauge.js +29 -0
- package/dist/contracts/governance/distributor/getClaimedAtEpoch.js +30 -0
- package/dist/contracts/governance/distributor/getDepositedAtEpoch.js +30 -0
- package/dist/contracts/governance/distributor/getGaugeController.js +28 -0
- package/dist/contracts/governance/distributor/getLastClaimedEpoch.js +29 -0
- package/dist/contracts/governance/distributor/getPeriodDuration.js +28 -0
- package/dist/contracts/governance/distributor/getRewardToken.js +28 -0
- package/dist/contracts/governance/distributor/getRewardTokenInfo.js +29 -0
- package/dist/contracts/governance/distributor/getRewardTokenStats.js +30 -0
- package/dist/contracts/governance/distributor/getStartEpoch.js +28 -0
- package/dist/contracts/governance/distributor/index.js +33 -0
- package/dist/contracts/governance/distributor/setController.js +26 -0
- package/dist/contracts/governance/distributor/withdrawRemovedGaugeRewards.js +27 -0
- package/dist/contracts/governance/distributor/withdrawUnallocatedRewards.js +26 -0
- package/dist/contracts/governance/gauge/addRewardToken.js +34 -0
- package/dist/contracts/governance/gauge/claimExtraReward.js +34 -0
- package/dist/contracts/governance/gauge/claimExtraRewards.js +33 -0
- package/dist/contracts/governance/gauge/claimOnBehalfOf.js +36 -0
- package/dist/contracts/governance/gauge/claimRewardToken.js +43 -0
- package/dist/contracts/governance/gauge/claimRewardsFor.js +34 -0
- package/dist/contracts/governance/gauge/depositRewardToken.js +35 -0
- package/dist/contracts/governance/gauge/getAllPendingExtraRewards.js +36 -0
- package/dist/contracts/governance/gauge/getBalanceOf.js +43 -0
- package/dist/contracts/governance/gauge/getControllerAddress.js +34 -0
- package/dist/contracts/governance/gauge/getDecimalAdjustment.js +35 -0
- package/dist/contracts/governance/gauge/getDepositRAACOnClaim.js +34 -0
- package/dist/contracts/governance/gauge/getDistributorData.js +36 -0
- package/dist/contracts/governance/gauge/getDistributors.js +34 -0
- package/dist/contracts/governance/gauge/getEarnedReward.js +36 -0
- package/dist/contracts/governance/gauge/getExtraRewardTokens.js +34 -0
- package/dist/contracts/governance/gauge/getGaugeRewardTokenData.js +44 -0
- package/dist/contracts/governance/gauge/getPendingExtraRewards.js +36 -0
- package/dist/contracts/governance/gauge/getPendingRewards.js +36 -0
- package/dist/contracts/governance/gauge/getPeriodBoundaries.js +45 -0
- package/dist/contracts/governance/gauge/getPeriodDuration.js +42 -0
- package/dist/contracts/governance/gauge/getRaacAutolockMin.js +34 -0
- package/dist/contracts/governance/gauge/getRawBalanceOf.js +43 -0
- package/dist/contracts/governance/gauge/getRawTotalSupply.js +42 -0
- package/dist/contracts/governance/gauge/getTotalSupply.js +42 -0
- package/dist/contracts/governance/gauge/getUserClaimableRewards.js +135 -0
- package/dist/contracts/governance/gauge/getUserRewardTokenData.js +37 -0
- package/dist/contracts/governance/gauge/getUserWeight.js +35 -0
- package/dist/contracts/governance/gauge/index.js +56 -0
- package/dist/contracts/governance/gauge/isPaused.js +34 -0
- package/dist/contracts/governance/gauge/manageDistributor.js +35 -0
- package/dist/contracts/governance/gauge/setController.js +34 -0
- package/dist/contracts/governance/gauge/setDepositRAACOnClaim.js +34 -0
- package/dist/contracts/governance/gauge/setDistributorApproval.js +35 -0
- package/dist/contracts/governance/gauge/setEmergencyPaused.js +34 -0
- package/dist/contracts/governance/gauge/setGaugeRewardDistributor.js +34 -0
- package/dist/contracts/governance/gauge/setRaacAutolockMin.js +34 -0
- package/dist/contracts/governance/gauge/stake.js +51 -0
- package/dist/contracts/governance/gauge/updateUserRewards.js +51 -0
- package/dist/contracts/governance/gauge/withdraw.js +51 -0
- package/dist/contracts/governance/gaugeController/addGauge.js +24 -0
- package/dist/contracts/governance/gaugeController/batchVote.js +25 -0
- package/dist/contracts/governance/gaugeController/calculateBoost.js +36 -0
- package/dist/contracts/governance/gaugeController/forceCompleteCheckpoint.js +24 -0
- package/dist/contracts/governance/gaugeController/getActiveGauges.js +36 -0
- package/dist/contracts/governance/gaugeController/getConstants.js +45 -0
- package/dist/contracts/governance/gaugeController/getCurrentEpoch.js +27 -0
- package/dist/contracts/governance/gaugeController/getGauge.js +29 -0
- package/dist/contracts/governance/gaugeController/getGaugeEmissions.js +157 -0
- package/dist/contracts/governance/gaugeController/getGaugeRelativeWeight.js +29 -0
- package/dist/contracts/governance/gaugeController/getGaugeRelativeWeightView.js +30 -0
- package/dist/contracts/governance/gaugeController/getGaugeWeight.js +29 -0
- package/dist/contracts/governance/gaugeController/getLastVoteTime.js +29 -0
- package/dist/contracts/governance/gaugeController/getNextEpoch.js +27 -0
- package/dist/contracts/governance/gaugeController/getTotalWeight.js +28 -0
- package/dist/contracts/governance/gaugeController/getUserGaugeVotePower.js +29 -0
- package/dist/contracts/governance/gaugeController/getUserVotePowerRemaining.js +29 -0
- package/dist/contracts/governance/gaugeController/getVeToken.js +27 -0
- package/dist/contracts/governance/gaugeController/getVoteUserPower.js +28 -0
- package/dist/contracts/governance/gaugeController/getVoteUserSlope.js +30 -0
- package/dist/contracts/governance/gaugeController/index.js +46 -0
- package/dist/contracts/governance/gaugeController/isGaugeActive.js +28 -0
- package/dist/contracts/governance/gaugeController/isPaused.js +27 -0
- package/dist/contracts/governance/gaugeController/kick.js +24 -0
- package/dist/contracts/governance/gaugeController/removeGauge.js +24 -0
- package/dist/contracts/governance/gaugeController/removePowerFromGauge.js +24 -0
- package/dist/contracts/governance/gaugeController/setBoostAmplificationEnabled.js +25 -0
- package/dist/contracts/governance/gaugeController/setEmergencyGaugePause.js +25 -0
- package/dist/contracts/governance/gaugeController/setEmergencyPause.js +24 -0
- package/dist/contracts/governance/gaugeController/vote.js +34 -0
- package/dist/contracts/governance/proposals/cancel.js +38 -0
- package/dist/contracts/governance/proposals/castVote.js +45 -0
- package/dist/contracts/governance/proposals/execute.js +38 -0
- package/dist/contracts/governance/proposals/getGovernances.js +22 -0
- package/dist/contracts/governance/proposals/getLabel.js +29 -0
- package/dist/contracts/governance/proposals/getProposal.js +51 -0
- package/dist/contracts/governance/proposals/getProposalCount.js +30 -0
- package/dist/contracts/governance/proposals/getProposalEta.js +32 -0
- package/dist/contracts/governance/proposals/getProposalInfo.js +42 -0
- package/dist/contracts/governance/proposals/getProposalThreshold.js +30 -0
- package/dist/contracts/governance/proposals/getQuorum.js +32 -0
- package/dist/contracts/governance/proposals/getQuorumNumerator.js +40 -0
- package/dist/contracts/governance/proposals/getRoles.js +34 -0
- package/dist/contracts/governance/proposals/getState.js +44 -0
- package/dist/contracts/governance/proposals/getVoteReceipt.js +53 -0
- package/dist/contracts/governance/proposals/getVotes.js +34 -0
- package/dist/contracts/governance/proposals/getVotingDelay.js +30 -0
- package/dist/contracts/governance/proposals/getVotingPeriod.js +30 -0
- package/dist/contracts/governance/proposals/hasRole.js +31 -0
- package/dist/contracts/governance/proposals/hasVoted.js +32 -0
- package/dist/contracts/governance/proposals/index.js +53 -0
- package/dist/contracts/governance/proposals/propose.js +41 -0
- package/dist/contracts/governance/proposals/setParameter.js +46 -0
- package/dist/contracts/governance/proposals/setTimelock.js +36 -0
- package/dist/contracts/governance/timelock/getConstants.js +40 -0
- package/dist/contracts/governance/timelock/getMinDelay.js +30 -0
- package/dist/contracts/governance/timelock/getRoles.js +37 -0
- package/dist/contracts/governance/timelock/getTimestamp.js +32 -0
- package/dist/contracts/governance/timelock/hasRole.js +31 -0
- package/dist/contracts/governance/timelock/hashOperationBatch.js +36 -0
- package/dist/contracts/governance/timelock/index.js +22 -0
- package/dist/contracts/governance/timelock/isOperationDone.js +30 -0
- package/dist/contracts/governance/timelock/isOperationPending.js +30 -0
- package/dist/contracts/governance/timelock/isOperationReady.js +32 -0
- 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 +20 -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 +17 -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/pmBlender/getReserveBalance.js +21 -0
- package/dist/contracts/pmBlender/getSupportedTokens.js +21 -0
- package/dist/contracts/pmBlender/previewDeposit.js +21 -0
- package/dist/contracts/pmBlender/previewSwap.js +21 -0
- package/dist/contracts/pmBlender/previewWithdraw.js +21 -0
- package/dist/contracts/pmMarket/getMarketConfig.js +31 -0
- package/dist/contracts/pmTreasury/getCollateralRatio.js +26 -0
- package/dist/contracts/pmTreasury/getCurrentNav.js +34 -0
- package/dist/contracts/pmTreasury/getLeverageRatio.js +26 -0
- package/dist/contracts/pmTreasury/getMaxMintablePMUSD.js +32 -0
- package/dist/contracts/pmTreasury/getMaxMintablePMUSDWithoutBaseToken.js +30 -0
- package/dist/contracts/pmTreasury/getMaxMintableXPM.js +32 -0
- package/dist/contracts/pmTreasury/getMaxRedeemablePMUSD.js +32 -0
- package/dist/contracts/pmTreasury/getMaxRedeemableXPM.js +32 -0
- package/dist/contracts/pmTreasury/getTotalBaseToken.js +26 -0
- package/dist/contracts/tokens/RAAC/getBalance.js +19 -0
- package/dist/contracts/{crvUSDToken → tokens/RAAC}/getTotalSupply.js +6 -13
- package/dist/contracts/tokens/crvUSD/getBalance.js +19 -0
- package/dist/contracts/tokens/crvUSD/getTotalSupply.js +24 -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/{rcrvUSDToken → tokens/pmUSD}/getBalance.js +7 -2
- package/dist/contracts/tokens/pmUSD/getTotalSupply.js +24 -0
- package/dist/contracts/tokens/rcrvUSD/getBalance.js +19 -0
- package/dist/contracts/tokens/rcrvUSD/getTotalSupply.js +23 -0
- package/dist/contracts/tokens/veRAAC/claimReward.js +34 -0
- package/dist/contracts/tokens/veRAAC/distributeRewards.js +36 -0
- package/dist/contracts/tokens/veRAAC/extend.js +35 -0
- package/dist/contracts/tokens/veRAAC/finalizeRagequit.js +34 -0
- package/dist/contracts/tokens/veRAAC/getBalance.js +22 -0
- package/dist/contracts/tokens/veRAAC/getBalanceAt.js +31 -0
- package/dist/contracts/tokens/veRAAC/getBalanceAtTime.js +31 -0
- package/dist/contracts/tokens/veRAAC/getCheckpoint.js +34 -0
- package/dist/contracts/tokens/veRAAC/getClaimable.js +32 -0
- package/dist/contracts/tokens/veRAAC/getClaimed.js +31 -0
- package/dist/contracts/tokens/veRAAC/getEarned.js +32 -0
- package/dist/contracts/tokens/veRAAC/getEffectiveLockEnd.js +30 -0
- package/dist/contracts/tokens/veRAAC/getGlobalLockInfo.js +33 -0
- package/dist/contracts/tokens/veRAAC/getLockedBalance.js +30 -0
- package/dist/contracts/tokens/veRAAC/getLocks.js +38 -0
- package/dist/contracts/tokens/veRAAC/getMaxLockEnd.js +30 -0
- package/dist/contracts/tokens/veRAAC/getMaxUnclaimedDistributions.js +32 -0
- package/dist/contracts/tokens/veRAAC/getMinLockEnd.js +30 -0
- package/dist/contracts/tokens/veRAAC/getRagequitEpochs.js +30 -0
- package/dist/contracts/tokens/veRAAC/getRagequitRequest.js +36 -0
- package/dist/contracts/tokens/veRAAC/getRawBalanceOf.js +30 -0
- package/dist/contracts/tokens/veRAAC/getRawTotalSupply.js +29 -0
- package/dist/contracts/{rcrvUSDToken → tokens/veRAAC}/getTotalSupply.js +4 -3
- package/dist/contracts/tokens/veRAAC/getTotalSupplyAt.js +30 -0
- package/dist/contracts/tokens/veRAAC/getTotalSupplyAtTime.js +30 -0
- package/dist/contracts/tokens/veRAAC/getUserPointHistory.js +38 -0
- package/dist/contracts/tokens/veRAAC/increase.js +35 -0
- package/dist/contracts/tokens/veRAAC/increaseWithApproval.js +37 -0
- package/dist/contracts/tokens/veRAAC/index.js +69 -0
- package/dist/contracts/tokens/veRAAC/lock.js +34 -0
- package/dist/contracts/tokens/veRAAC/lockWithApproval.js +40 -0
- package/dist/contracts/tokens/veRAAC/ragequitAll.js +33 -0
- package/dist/contracts/tokens/veRAAC/ragequitLock.js +34 -0
- package/dist/contracts/tokens/veRAAC/withdraw.js +33 -0
- package/dist/contracts/{crvUSDToken → tokens/xPM}/getBalance.js +5 -3
- package/dist/contracts/tokens/xPM/getTotalSupply.js +24 -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/pools/rwaVault/getRWAVaultInfo.js +5 -1
- package/dist/prices/getPrices.js +12 -0
- package/dist/types/RPCLibrary.d.ts +390 -1
- package/dist/types/configs/chains/index.d.ts +478 -2
- package/dist/types/configs/index.d.ts +239 -1
- package/dist/types/contracts/decodeCall.d.ts +33 -0
- package/dist/types/contracts/findContract.d.ts +24 -0
- package/dist/types/contracts/governance/_helpers.d.ts +28 -0
- package/dist/types/contracts/governance/distributor/claimAll.d.ts +11 -0
- package/dist/types/contracts/governance/distributor/claimForGauge.d.ts +12 -0
- package/dist/types/contracts/governance/distributor/deposit.d.ts +13 -0
- package/dist/types/contracts/governance/distributor/getClaimableForGauge.d.ts +11 -0
- package/dist/types/contracts/governance/distributor/getClaimedAtEpoch.d.ts +12 -0
- package/dist/types/contracts/governance/distributor/getDepositedAtEpoch.d.ts +12 -0
- package/dist/types/contracts/governance/distributor/getGaugeController.d.ts +10 -0
- package/dist/types/contracts/governance/distributor/getLastClaimedEpoch.d.ts +11 -0
- package/dist/types/contracts/governance/distributor/getPeriodDuration.d.ts +10 -0
- package/dist/types/contracts/governance/distributor/getRewardToken.d.ts +10 -0
- package/dist/types/contracts/governance/distributor/getRewardTokenInfo.d.ts +15 -0
- package/dist/types/contracts/governance/distributor/getRewardTokenStats.d.ts +15 -0
- package/dist/types/contracts/governance/distributor/getStartEpoch.d.ts +10 -0
- package/dist/types/contracts/governance/distributor/index.d.ts +16 -0
- package/dist/types/contracts/governance/distributor/setController.d.ts +12 -0
- package/dist/types/contracts/governance/distributor/withdrawRemovedGaugeRewards.d.ts +13 -0
- package/dist/types/contracts/governance/distributor/withdrawUnallocatedRewards.d.ts +12 -0
- package/dist/types/contracts/governance/gauge/addRewardToken.d.ts +10 -0
- package/dist/types/contracts/governance/gauge/claimExtraReward.d.ts +10 -0
- package/dist/types/contracts/governance/gauge/claimExtraRewards.d.ts +9 -0
- package/dist/types/contracts/governance/gauge/claimOnBehalfOf.d.ts +12 -0
- package/dist/types/contracts/governance/gauge/claimRewardToken.d.ts +11 -0
- package/dist/types/contracts/governance/gauge/claimRewardsFor.d.ts +10 -0
- package/dist/types/contracts/governance/gauge/depositRewardToken.d.ts +11 -0
- package/dist/types/contracts/governance/gauge/getAllPendingExtraRewards.d.ts +13 -0
- package/dist/types/contracts/governance/gauge/getBalanceOf.d.ts +12 -0
- package/dist/types/contracts/governance/gauge/getControllerAddress.d.ts +9 -0
- package/dist/types/contracts/governance/gauge/getDecimalAdjustment.d.ts +10 -0
- package/dist/types/contracts/governance/gauge/getDepositRAACOnClaim.d.ts +9 -0
- package/dist/types/contracts/governance/gauge/getDistributorData.d.ts +13 -0
- package/dist/types/contracts/governance/gauge/getDistributors.d.ts +9 -0
- package/dist/types/contracts/governance/gauge/getEarnedReward.d.ts +12 -0
- package/dist/types/contracts/governance/gauge/getExtraRewardTokens.d.ts +9 -0
- package/dist/types/contracts/governance/gauge/getGaugeRewardTokenData.d.ts +18 -0
- package/dist/types/contracts/governance/gauge/getPendingExtraRewards.d.ts +11 -0
- package/dist/types/contracts/governance/gauge/getPendingRewards.d.ts +12 -0
- package/dist/types/contracts/governance/gauge/getPeriodBoundaries.d.ts +15 -0
- package/dist/types/contracts/governance/gauge/getPeriodDuration.d.ts +11 -0
- package/dist/types/contracts/governance/gauge/getRaacAutolockMin.d.ts +9 -0
- package/dist/types/contracts/governance/gauge/getRawBalanceOf.d.ts +12 -0
- package/dist/types/contracts/governance/gauge/getRawTotalSupply.d.ts +11 -0
- package/dist/types/contracts/governance/gauge/getTotalSupply.d.ts +11 -0
- package/dist/types/contracts/governance/gauge/getUserClaimableRewards.d.ts +40 -0
- package/dist/types/contracts/governance/gauge/getUserRewardTokenData.d.ts +17 -0
- package/dist/types/contracts/governance/gauge/getUserWeight.d.ts +10 -0
- package/dist/types/contracts/governance/gauge/index.d.ts +39 -0
- package/dist/types/contracts/governance/gauge/isPaused.d.ts +9 -0
- package/dist/types/contracts/governance/gauge/manageDistributor.d.ts +11 -0
- package/dist/types/contracts/governance/gauge/setController.d.ts +10 -0
- package/dist/types/contracts/governance/gauge/setDepositRAACOnClaim.d.ts +10 -0
- package/dist/types/contracts/governance/gauge/setDistributorApproval.d.ts +11 -0
- package/dist/types/contracts/governance/gauge/setEmergencyPaused.d.ts +10 -0
- package/dist/types/contracts/governance/gauge/setGaugeRewardDistributor.d.ts +10 -0
- package/dist/types/contracts/governance/gauge/setRaacAutolockMin.d.ts +10 -0
- package/dist/types/contracts/governance/gauge/stake.d.ts +13 -0
- package/dist/types/contracts/governance/gauge/updateUserRewards.d.ts +13 -0
- package/dist/types/contracts/governance/gauge/withdraw.d.ts +13 -0
- package/dist/types/contracts/governance/gaugeController/addGauge.d.ts +10 -0
- package/dist/types/contracts/governance/gaugeController/batchVote.d.ts +11 -0
- package/dist/types/contracts/governance/gaugeController/calculateBoost.d.ts +16 -0
- package/dist/types/contracts/governance/gaugeController/forceCompleteCheckpoint.d.ts +10 -0
- package/dist/types/contracts/governance/gaugeController/getActiveGauges.d.ts +15 -0
- package/dist/types/contracts/governance/gaugeController/getConstants.d.ts +18 -0
- package/dist/types/contracts/governance/gaugeController/getCurrentEpoch.d.ts +9 -0
- package/dist/types/contracts/governance/gaugeController/getGauge.d.ts +15 -0
- package/dist/types/contracts/governance/gaugeController/getGaugeEmissions.d.ts +64 -0
- package/dist/types/contracts/governance/gaugeController/getGaugeRelativeWeight.d.ts +15 -0
- package/dist/types/contracts/governance/gaugeController/getGaugeRelativeWeightView.d.ts +14 -0
- package/dist/types/contracts/governance/gaugeController/getGaugeWeight.d.ts +11 -0
- package/dist/types/contracts/governance/gaugeController/getLastVoteTime.d.ts +11 -0
- package/dist/types/contracts/governance/gaugeController/getNextEpoch.d.ts +9 -0
- package/dist/types/contracts/governance/gaugeController/getTotalWeight.d.ts +10 -0
- package/dist/types/contracts/governance/gaugeController/getUserGaugeVotePower.d.ts +11 -0
- package/dist/types/contracts/governance/gaugeController/getUserVotePowerRemaining.d.ts +11 -0
- package/dist/types/contracts/governance/gaugeController/getVeToken.d.ts +9 -0
- package/dist/types/contracts/governance/gaugeController/getVoteUserPower.d.ts +10 -0
- package/dist/types/contracts/governance/gaugeController/getVoteUserSlope.d.ts +15 -0
- package/dist/types/contracts/governance/gaugeController/index.d.ts +29 -0
- package/dist/types/contracts/governance/gaugeController/isGaugeActive.d.ts +11 -0
- package/dist/types/contracts/governance/gaugeController/isPaused.d.ts +9 -0
- package/dist/types/contracts/governance/gaugeController/kick.d.ts +10 -0
- package/dist/types/contracts/governance/gaugeController/removeGauge.d.ts +10 -0
- package/dist/types/contracts/governance/gaugeController/removePowerFromGauge.d.ts +10 -0
- package/dist/types/contracts/governance/gaugeController/setBoostAmplificationEnabled.d.ts +11 -0
- package/dist/types/contracts/governance/gaugeController/setEmergencyGaugePause.d.ts +11 -0
- package/dist/types/contracts/governance/gaugeController/setEmergencyPause.d.ts +10 -0
- package/dist/types/contracts/governance/gaugeController/vote.d.ts +12 -0
- package/dist/types/contracts/governance/proposals/cancel.d.ts +16 -0
- package/dist/types/contracts/governance/proposals/castVote.d.ts +20 -0
- package/dist/types/contracts/governance/proposals/execute.d.ts +16 -0
- package/dist/types/contracts/governance/proposals/getGovernances.d.ts +11 -0
- package/dist/types/contracts/governance/proposals/getLabel.d.ts +11 -0
- package/dist/types/contracts/governance/proposals/getProposal.d.ts +30 -0
- package/dist/types/contracts/governance/proposals/getProposalCount.d.ts +11 -0
- package/dist/types/contracts/governance/proposals/getProposalEta.d.ts +13 -0
- package/dist/types/contracts/governance/proposals/getProposalInfo.d.ts +25 -0
- package/dist/types/contracts/governance/proposals/getProposalThreshold.d.ts +11 -0
- package/dist/types/contracts/governance/proposals/getQuorum.d.ts +13 -0
- package/dist/types/contracts/governance/proposals/getQuorumNumerator.d.ts +17 -0
- package/dist/types/contracts/governance/proposals/getRoles.d.ts +16 -0
- package/dist/types/contracts/governance/proposals/getState.d.ts +24 -0
- package/dist/types/contracts/governance/proposals/getVoteReceipt.d.ts +26 -0
- package/dist/types/contracts/governance/proposals/getVotes.d.ts +16 -0
- package/dist/types/contracts/governance/proposals/getVotingDelay.d.ts +11 -0
- package/dist/types/contracts/governance/proposals/getVotingPeriod.d.ts +11 -0
- package/dist/types/contracts/governance/proposals/hasRole.d.ts +13 -0
- package/dist/types/contracts/governance/proposals/hasVoted.d.ts +14 -0
- package/dist/types/contracts/governance/proposals/index.d.ts +23 -0
- package/dist/types/contracts/governance/proposals/propose.d.ts +19 -0
- package/dist/types/contracts/governance/proposals/setParameter.d.ts +23 -0
- package/dist/types/contracts/governance/proposals/setTimelock.d.ts +14 -0
- package/dist/types/contracts/governance/timelock/getConstants.d.ts +17 -0
- package/dist/types/contracts/governance/timelock/getMinDelay.d.ts +11 -0
- package/dist/types/contracts/governance/timelock/getRoles.d.ts +19 -0
- package/dist/types/contracts/governance/timelock/getTimestamp.d.ts +13 -0
- package/dist/types/contracts/governance/timelock/hasRole.d.ts +13 -0
- package/dist/types/contracts/governance/timelock/hashOperationBatch.d.ts +18 -0
- package/dist/types/contracts/governance/timelock/index.d.ts +9 -0
- package/dist/types/contracts/governance/timelock/isOperationDone.d.ts +12 -0
- package/dist/types/contracts/governance/timelock/isOperationPending.d.ts +12 -0
- package/dist/types/contracts/governance/timelock/isOperationReady.d.ts +14 -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 +10 -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/pmBlender/getReserveBalance.d.ts +3 -0
- package/dist/types/contracts/pmBlender/getSupportedTokens.d.ts +3 -0
- package/dist/types/contracts/pmBlender/previewDeposit.d.ts +3 -0
- package/dist/types/contracts/pmBlender/previewSwap.d.ts +3 -0
- package/dist/types/contracts/pmBlender/previewWithdraw.d.ts +3 -0
- package/dist/types/contracts/pmMarket/getMarketConfig.d.ts +13 -0
- package/dist/types/contracts/pmTreasury/getCollateralRatio.d.ts +3 -0
- package/dist/types/contracts/pmTreasury/getCurrentNav.d.ts +11 -0
- package/dist/types/contracts/pmTreasury/getLeverageRatio.d.ts +3 -0
- package/dist/types/contracts/pmTreasury/getMaxMintablePMUSD.d.ts +11 -0
- package/dist/types/contracts/pmTreasury/getMaxMintablePMUSDWithoutBaseToken.d.ts +7 -0
- package/dist/types/contracts/pmTreasury/getMaxMintableXPM.d.ts +9 -0
- package/dist/types/contracts/pmTreasury/getMaxRedeemablePMUSD.d.ts +9 -0
- package/dist/types/contracts/pmTreasury/getMaxRedeemableXPM.d.ts +9 -0
- package/dist/types/contracts/pmTreasury/getTotalBaseToken.d.ts +3 -0
- package/dist/types/contracts/tokens/RAAC/getBalance.d.ts +2 -0
- package/dist/types/contracts/tokens/RAAC/getTotalSupply.d.ts +7 -0
- package/dist/types/contracts/tokens/crvUSD/getBalance.d.ts +2 -0
- package/dist/types/contracts/tokens/crvUSD/getTotalSupply.d.ts +7 -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/tokens/pmUSD/getBalance.d.ts +2 -0
- package/dist/types/contracts/tokens/pmUSD/getTotalSupply.d.ts +7 -0
- package/dist/types/contracts/tokens/rcrvUSD/getBalance.d.ts +2 -0
- package/dist/types/contracts/tokens/rcrvUSD/getTotalSupply.d.ts +6 -0
- package/dist/types/contracts/tokens/veRAAC/claimReward.d.ts +12 -0
- package/dist/types/contracts/tokens/veRAAC/distributeRewards.d.ts +14 -0
- package/dist/types/contracts/tokens/veRAAC/extend.d.ts +13 -0
- package/dist/types/contracts/tokens/veRAAC/finalizeRagequit.d.ts +12 -0
- package/dist/types/contracts/tokens/veRAAC/getBalance.d.ts +3 -0
- package/dist/types/contracts/tokens/veRAAC/getBalanceAt.d.ts +12 -0
- package/dist/types/contracts/tokens/veRAAC/getBalanceAtTime.d.ts +12 -0
- package/dist/types/contracts/tokens/veRAAC/getCheckpoint.d.ts +16 -0
- package/dist/types/contracts/tokens/veRAAC/getClaimable.d.ts +13 -0
- package/dist/types/contracts/tokens/veRAAC/getClaimed.d.ts +12 -0
- package/dist/types/contracts/tokens/veRAAC/getEarned.d.ts +13 -0
- package/dist/types/contracts/tokens/veRAAC/getEffectiveLockEnd.d.ts +11 -0
- package/dist/types/contracts/tokens/veRAAC/getGlobalLockInfo.d.ts +15 -0
- package/dist/types/contracts/tokens/veRAAC/getLockedBalance.d.ts +11 -0
- package/dist/types/contracts/tokens/veRAAC/getLocks.d.ts +14 -0
- package/dist/types/contracts/tokens/veRAAC/getMaxLockEnd.d.ts +11 -0
- package/dist/types/contracts/tokens/veRAAC/getMaxUnclaimedDistributions.d.ts +13 -0
- package/dist/types/contracts/tokens/veRAAC/getMinLockEnd.d.ts +11 -0
- package/dist/types/contracts/tokens/veRAAC/getRagequitEpochs.d.ts +11 -0
- package/dist/types/contracts/tokens/veRAAC/getRagequitRequest.d.ts +18 -0
- package/dist/types/contracts/tokens/veRAAC/getRawBalanceOf.d.ts +11 -0
- package/dist/types/contracts/tokens/veRAAC/getRawTotalSupply.d.ts +10 -0
- package/dist/types/contracts/{rcrvUSDToken → tokens/veRAAC}/getTotalSupply.d.ts +1 -1
- package/dist/types/contracts/tokens/veRAAC/getTotalSupplyAt.d.ts +11 -0
- package/dist/types/contracts/tokens/veRAAC/getTotalSupplyAtTime.d.ts +11 -0
- package/dist/types/contracts/tokens/veRAAC/getUserPointHistory.d.ts +20 -0
- package/dist/types/contracts/tokens/veRAAC/increase.d.ts +13 -0
- package/dist/types/contracts/tokens/veRAAC/increaseWithApproval.d.ts +13 -0
- package/dist/types/contracts/tokens/veRAAC/index.d.ts +33 -0
- package/dist/types/contracts/tokens/veRAAC/lock.d.ts +12 -0
- package/dist/types/contracts/tokens/veRAAC/lockWithApproval.d.ts +14 -0
- package/dist/types/contracts/tokens/veRAAC/ragequitAll.d.ts +11 -0
- package/dist/types/contracts/tokens/veRAAC/ragequitLock.d.ts +12 -0
- package/dist/types/contracts/tokens/veRAAC/withdraw.d.ts +11 -0
- package/dist/types/contracts/tokens/xPM/getBalance.d.ts +2 -0
- package/dist/types/contracts/tokens/xPM/getTotalSupply.d.ts +7 -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/prices/getPrices.d.ts +5 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/index.d.ts +0 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/index.d.ts +0 -1
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.d.ts +159 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/ERC20Capped.d.ts +145 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +2 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.d.ts +173 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/access/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/contracts-upgradeable/token/index.d.ts +2 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/utils/index.d.ts +2 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.d.ts +45 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/utils/introspection/index.d.ts +1 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable-v3/access/OwnableUpgradeable.d.ts +54 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable-v3/access/index.d.ts +1 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable-v3/index.d.ts +4 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable-v3/token/ERC20/IERC20Upgradeable.d.ts +129 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable-v3/token/ERC20/index.d.ts +1 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable-v3/token/index.d.ts +2 -0
- package/dist/types/typechain-types/@openzeppelin/index.d.ts +2 -0
- 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 +400 -779
- package/dist/types/typechain-types/contracts/core/governance/gauges/GaugeController.d.ts +390 -582
- package/dist/types/typechain-types/contracts/core/governance/gauges/GaugeRewardsDistributor.d.ts +195 -273
- package/dist/types/typechain-types/contracts/core/governance/gauges/RAACGauge.d.ts +400 -783
- package/dist/types/typechain-types/contracts/core/governance/gauges/RWAGauge.d.ts +401 -784
- package/dist/types/typechain-types/contracts/core/governance/gauges/VeBoost.d.ts +518 -0
- package/dist/types/typechain-types/contracts/core/governance/gauges/VeBoostProxy.d.ts +97 -0
- package/dist/types/typechain-types/contracts/core/governance/gauges/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/core/governance/proposals/Governance.d.ts +206 -82
- package/dist/types/typechain-types/contracts/core/governance/proposals/TimelockController.d.ts +8 -8
- package/dist/types/typechain-types/contracts/core/lockers/RAACBotLocker.d.ts +497 -0
- package/dist/types/typechain-types/contracts/core/lockers/RAACLiquidLocker.d.ts +1313 -0
- package/dist/types/typechain-types/contracts/core/lockers/RAACMaturityVault.d.ts +541 -0
- package/dist/types/typechain-types/contracts/core/lockers/{LLamaTemple.d.ts → RAACNFTLocker.d.ts} +4 -4
- package/dist/types/typechain-types/contracts/core/lockers/index.d.ts +4 -1
- 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/{@openzeppelin/contracts/proxy/beacon/IBeacon.d.ts → contracts/core/oracles/KYCVerifyModule.sol/IKYCVerifyModule.d.ts} +10 -10
- package/dist/types/typechain-types/{@openzeppelin/contracts/proxy/transparent/ProxyAdmin.d.ts → contracts/core/oracles/KYCVerifyModule.sol/KYCVerifyModule.d.ts} +9 -25
- 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 +64 -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 +13 -23
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/LendingPoolStorage.d.ts +12 -4
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/LiquidationProxy.d.ts +12 -4
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/VaultProxy.d.ts +12 -4
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/LiquidationSwap.d.ts +83 -2
- package/dist/types/typechain-types/contracts/core/tokens/DEToken.d.ts +64 -12
- package/dist/types/typechain-types/contracts/core/tokens/LeRAAC.sol/LiquidEscrowedRAAC.d.ts +284 -0
- package/dist/types/typechain-types/contracts/core/tokens/LeRAAC.sol/index.d.ts +1 -0
- 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/RToken.d.ts +39 -2
- 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/VeRAACToken.d.ts +730 -499
- package/dist/types/typechain-types/contracts/core/tokens/VeRAACTokenStorage.d.ts +905 -0
- package/dist/types/typechain-types/contracts/core/tokens/index.d.ts +4 -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/{@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.d.ts → contracts/core/vaults/RAACNFTVaultAdapterOracle.sol/IPriceOracle.d.ts} +15 -6
- package/dist/types/typechain-types/contracts/core/vaults/RAACNFTVaultAdapterOracle.sol/RAACNFTVaultAdapterOracle.d.ts +41 -0
- package/dist/types/typechain-types/contracts/core/vaults/RAACNFTVaultAdapterOracle.sol/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/core/vaults/RAACNFTVaultAdapterV2.d.ts +42 -2
- package/dist/types/typechain-types/contracts/core/vaults/RWAVault.d.ts +28 -6
- package/dist/types/typechain-types/contracts/core/vaults/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/index.d.ts +4 -0
- package/dist/types/typechain-types/contracts/interfaces/IBalancerPool.d.ts +95 -0
- package/dist/types/typechain-types/contracts/interfaces/IBalancerV1Pool.d.ts +214 -0
- package/dist/types/typechain-types/contracts/interfaces/IBalancerVault.d.ts +255 -0
- package/dist/types/typechain-types/contracts/interfaces/IConvexCRVDepositor.d.ts +55 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveAPool.sol/ICurveA2Pool.d.ts +236 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveAPool.sol/ICurveA3Pool.d.ts +236 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveAPool.sol/ICurveA4Pool.d.ts +236 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveAPool.sol/ICurveAPool.d.ts +236 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveAPool.sol/index.d.ts +4 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveBasePool.sol/ICurveBase2Pool.d.ts +49 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveBasePool.sol/ICurveBase3Pool.d.ts +49 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveBasePool.sol/ICurveBase4Pool.d.ts +57 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveBasePool.sol/ICurveBasePool.d.ts +133 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveBasePool.sol/index.d.ts +4 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveCryptoPool.sol/ICurveCryptoPool.d.ts +236 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveCryptoPool.sol/ICurveTriCryptoPool.d.ts +139 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveCryptoPool.sol/IZapCurveMetaCryptoPool.d.ts +143 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveCryptoPool.sol/index.d.ts +3 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveETHPool.d.ts +121 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveFactoryMetaPool.sol/ICurveDepositZap.d.ts +55 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveFactoryMetaPool.sol/ICurveDepositZap3Pool.d.ts +95 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveFactoryMetaPool.sol/ICurveDepositZap4Pool.d.ts +115 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveFactoryMetaPool.sol/ICurveFactoryMetaPool.d.ts +151 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveFactoryMetaPool.sol/index.d.ts +4 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveFactoryPlainPool.sol/ICurveFactoryPlain2Pool.d.ts +137 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveFactoryPlainPool.sol/ICurveFactoryPlain3Pool.d.ts +137 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveFactoryPlainPool.sol/ICurveFactoryPlain4Pool.d.ts +145 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveFactoryPlainPool.sol/ICurveFactoryPlainPool.d.ts +109 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveFactoryPlainPool.sol/index.d.ts +4 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveMetaPool.sol/ICurveMetaPoolDeposit.d.ts +107 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveMetaPool.sol/ICurveMetaPoolSwap.d.ts +163 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveMetaPool.sol/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurvePoolRegistry.d.ts +33 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveYPool.sol/ICurveY2PoolDeposit.d.ts +139 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveYPool.sol/ICurveY2PoolSwap.d.ts +167 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveYPool.sol/ICurveY3PoolDeposit.d.ts +139 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveYPool.sol/ICurveY3PoolSwap.d.ts +167 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveYPool.sol/ICurveY4PoolDeposit.d.ts +139 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveYPool.sol/ICurveY4PoolSwap.d.ts +167 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveYPool.sol/ICurveYPoolDeposit.d.ts +139 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveYPool.sol/ICurveYPoolSwap.d.ts +167 -0
- package/dist/types/typechain-types/contracts/interfaces/ICurveYPool.sol/index.d.ts +8 -0
- package/dist/types/typechain-types/contracts/interfaces/ILidoStETH.d.ts +33 -0
- package/dist/types/typechain-types/contracts/interfaces/ILidoWstETH.d.ts +61 -0
- package/dist/types/typechain-types/contracts/interfaces/IUniswapV2Pair.d.ts +95 -0
- package/dist/types/typechain-types/contracts/interfaces/IUniswapV3Pool.d.ts +105 -0
- package/dist/types/typechain-types/contracts/interfaces/IUniswapV3Router.d.ts +64 -0
- package/dist/types/typechain-types/contracts/interfaces/IWETH.d.ts +29 -0
- package/dist/types/typechain-types/contracts/interfaces/IZap.d.ts +97 -0
- package/dist/types/typechain-types/contracts/interfaces/concentrator/IAladdinCRV.d.ts +355 -0
- package/dist/types/typechain-types/contracts/interfaces/concentrator/IAladdinCompounder.d.ts +244 -0
- package/dist/types/typechain-types/contracts/interfaces/concentrator/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/IBaseGauge.d.ts +338 -295
- package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/IGaugeController.d.ts +111 -323
- package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/IGaugeRewardsDistributor.d.ts +133 -183
- package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/IVeBoost.d.ts +311 -0
- package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/IVeBoostProxy.d.ts +50 -0
- package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/interfaces/core/governance/proposals/IGovernance.d.ts +40 -51
- package/dist/types/typechain-types/contracts/interfaces/core/governance/proposals/ITimelockController.d.ts +8 -8
- package/dist/types/typechain-types/contracts/interfaces/core/lockers/IRAACBotLocker.d.ts +233 -0
- package/dist/types/typechain-types/contracts/interfaces/core/lockers/IRAACMaturityVault.d.ts +196 -0
- package/dist/types/typechain-types/contracts/interfaces/core/lockers/IRaacLiquidLocker.d.ts +430 -0
- package/dist/types/typechain-types/contracts/interfaces/core/lockers/index.d.ts +3 -0
- 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 +31 -1
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/ILiquidEscrowedRAAC.d.ts +161 -0
- 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/IRToken.d.ts +16 -1
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/ISToken.d.ts +454 -0
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IveRAACToken.d.ts +405 -227
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IveRAACTokenV2.sol/IveRAACToken.d.ts +518 -0
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IveRAACTokenV2.sol/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/index.d.ts +4 -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/interfaces/index.d.ts +29 -0
- package/dist/types/typechain-types/contracts/libraries/governance/LockManager.d.ts +22 -77
- package/dist/types/typechain-types/contracts/libraries/governance/PowerCheckpoint.d.ts +3 -76
- package/dist/types/typechain-types/{@openzeppelin/contracts/proxy/Proxy.d.ts → contracts/libraries/governance/RagequitLib.d.ts} +4 -4
- package/dist/types/typechain-types/{@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.d.ts → contracts/libraries/governance/RewardLib.d.ts} +27 -14
- package/dist/types/typechain-types/contracts/libraries/governance/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/mocks/ERC20BurnableMock.d.ts +173 -0
- package/dist/types/typechain-types/contracts/mocks/core/curve/CurveCrvUSDVaultMock.d.ts +47 -1
- package/dist/types/typechain-types/contracts/mocks/core/governance/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/mocks/core/governance/libraries/LockManagerMock.d.ts +295 -0
- package/dist/types/typechain-types/contracts/mocks/core/governance/libraries/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/core/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/mocks/core/lockers/MockLamaLocker.d.ts +51 -0
- package/dist/types/typechain-types/contracts/mocks/core/lockers/index.d.ts +1 -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 +35 -17
- 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/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/MockTimeUtils.d.ts +51 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/governance/PowerCheckpointMock.d.ts +176 -69
- package/dist/types/typechain-types/contracts/mocks/libraries/governance/RagequitHarness.d.ts +90 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/governance/RewardIntegralCalculatorMock.sol/MockRewardIntegralCalculator.d.ts +188 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/governance/RewardIntegralCalculatorMock.sol/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/governance/index.d.ts +3 -1
- package/dist/types/typechain-types/contracts/mocks/libraries/index.d.ts +3 -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 +254 -0
- package/dist/types/typechain-types/contracts/zap/TokenZapLogic.d.ts +53 -0
- package/dist/types/typechain-types/contracts/zap/index.d.ts +2 -0
- 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 +0 -1
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable__factory.d.ts +265 -0
- 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 +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 -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/access/AccessControlUpgradeable__factory.d.ts +199 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable__factory.d.ts +259 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable__factory.d.ts +39 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/introspection/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable-v3/access/OwnableUpgradeable__factory.d.ts +48 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable-v3/access/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable-v3/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable-v3/token/ERC20/IERC20Upgradeable__factory.d.ts +147 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable-v3/token/ERC20/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable-v3/token/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@openzeppelin/index.d.ts +1 -0
- 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 +350 -912
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/GaugeController__factory.d.ts +383 -561
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/GaugeRewardsDistributor__factory.d.ts +146 -260
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/RAACGauge__factory.d.ts +341 -909
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/RWAGauge__factory.d.ts +348 -916
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/VeBoostProxy__factory.d.ts +152 -0
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/VeBoost__factory.d.ts +716 -0
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/core/governance/proposals/Governance__factory.d.ts +292 -75
- package/dist/types/typechain-types/factories/contracts/core/governance/proposals/TimelockController__factory.d.ts +11 -15
- package/dist/types/typechain-types/factories/contracts/core/lockers/RAACBotLocker__factory.d.ts +726 -0
- package/dist/types/typechain-types/factories/contracts/core/lockers/RAACLiquidLocker__factory.d.ts +1694 -0
- package/dist/types/typechain-types/factories/contracts/core/lockers/RAACMaturityVault__factory.d.ts +703 -0
- package/dist/types/typechain-types/factories/contracts/core/lockers/{LLamaTemple__factory.d.ts → RAACNFTLocker__factory.d.ts} +9 -9
- package/dist/types/typechain-types/factories/contracts/core/lockers/index.d.ts +4 -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/contracts/core/oracles/KYCVerifyModule.sol/KYCVerifyModule__factory.d.ts +82 -0
- 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 +111 -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 +13 -5
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/LendingPool__factory.d.ts +17 -31
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/LiquidationProxy__factory.d.ts +13 -5
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/VaultProxy__factory.d.ts +13 -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 +82 -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 +64 -6
- 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 +489 -0
- package/dist/types/typechain-types/factories/contracts/core/tokens/LeRAAC.sol/index.d.ts +1 -0
- 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 +44 -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/VeRAACTokenStorage__factory.d.ts +1130 -0
- package/dist/types/typechain-types/factories/contracts/core/tokens/VeRAACToken__factory.d.ts +759 -490
- package/dist/types/typechain-types/factories/contracts/core/tokens/index.d.ts +3 -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/IPriceOracle__factory.d.ts +25 -0
- package/dist/types/typechain-types/factories/contracts/core/vaults/RAACNFTVaultAdapterOracle.sol/RAACNFTVaultAdapterOracle__factory.d.ts +78 -0
- package/dist/types/typechain-types/factories/contracts/core/vaults/RAACNFTVaultAdapterOracle.sol/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/core/vaults/RAACNFTVaultAdapterV2__factory.d.ts +48 -4
- package/dist/types/typechain-types/factories/contracts/core/vaults/RWAVault__factory.d.ts +37 -17
- package/dist/types/typechain-types/factories/contracts/core/vaults/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/IBalancerPool__factory.d.ts +91 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/IBalancerV1Pool__factory.d.ts +273 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/IBalancerVault__factory.d.ts +261 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/IConvexCRVDepositor__factory.d.ts +49 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveAPool.sol/ICurveA2Pool__factory.d.ts +305 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveAPool.sol/ICurveA3Pool__factory.d.ts +305 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveAPool.sol/ICurveA4Pool__factory.d.ts +305 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveAPool.sol/ICurveAPool__factory.d.ts +305 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveAPool.sol/index.d.ts +4 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveBasePool.sol/ICurveBase2Pool__factory.d.ts +39 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveBasePool.sol/ICurveBase3Pool__factory.d.ts +39 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveBasePool.sol/ICurveBase4Pool__factory.d.ts +39 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveBasePool.sol/ICurveBasePool__factory.d.ts +175 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveBasePool.sol/index.d.ts +4 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveCryptoPool.sol/ICurveCryptoPool__factory.d.ts +301 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveCryptoPool.sol/ICurveTriCryptoPool__factory.d.ts +165 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveCryptoPool.sol/IZapCurveMetaCryptoPool__factory.d.ts +181 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveCryptoPool.sol/index.d.ts +3 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveETHPool__factory.d.ts +155 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveFactoryMetaPool.sol/ICurveDepositZap3Pool__factory.d.ts +99 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveFactoryMetaPool.sol/ICurveDepositZap4Pool__factory.d.ts +99 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveFactoryMetaPool.sol/ICurveDepositZap__factory.d.ts +55 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveFactoryMetaPool.sol/ICurveFactoryMetaPool__factory.d.ts +193 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveFactoryMetaPool.sol/index.d.ts +4 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveFactoryPlainPool.sol/ICurveFactoryPlain2Pool__factory.d.ts +183 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveFactoryPlainPool.sol/ICurveFactoryPlain3Pool__factory.d.ts +183 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveFactoryPlainPool.sol/ICurveFactoryPlain4Pool__factory.d.ts +183 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveFactoryPlainPool.sol/ICurveFactoryPlainPool__factory.d.ts +147 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveFactoryPlainPool.sol/index.d.ts +4 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveMetaPool.sol/ICurveMetaPoolDeposit__factory.d.ts +141 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveMetaPool.sol/ICurveMetaPoolSwap__factory.d.ts +227 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveMetaPool.sol/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurvePoolRegistry__factory.d.ts +35 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveYPool.sol/ICurveY2PoolDeposit__factory.d.ts +165 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveYPool.sol/ICurveY2PoolSwap__factory.d.ts +193 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveYPool.sol/ICurveY3PoolDeposit__factory.d.ts +165 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveYPool.sol/ICurveY3PoolSwap__factory.d.ts +193 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveYPool.sol/ICurveY4PoolDeposit__factory.d.ts +165 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveYPool.sol/ICurveY4PoolSwap__factory.d.ts +193 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveYPool.sol/ICurveYPoolDeposit__factory.d.ts +165 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveYPool.sol/ICurveYPoolSwap__factory.d.ts +193 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ICurveYPool.sol/index.d.ts +8 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ILidoStETH__factory.d.ts +35 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/ILidoWstETH__factory.d.ts +83 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/IUniswapV2Pair__factory.d.ts +95 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/IUniswapV3Pool__factory.d.ts +115 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/IUniswapV3Router__factory.d.ts +54 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/IWETH__factory.d.ts +23 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/IZap__factory.d.ts +107 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/concentrator/IAladdinCRV__factory.d.ts +401 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/concentrator/IAladdinCompounder__factory.d.ts +350 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/concentrator/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/IBaseGauge__factory.d.ts +338 -302
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/IGaugeController__factory.d.ts +93 -319
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/IGaugeRewardsDistributor__factory.d.ts +96 -152
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/IVeBoostProxy__factory.d.ts +46 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/IVeBoost__factory.d.ts +449 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/proposals/IGovernance__factory.d.ts +74 -34
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/proposals/ITimelockController__factory.d.ts +8 -4
- package/dist/types/typechain-types/factories/contracts/interfaces/core/lockers/IRAACBotLocker__factory.d.ts +319 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/lockers/IRAACMaturityVault__factory.d.ts +192 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/lockers/IRaacLiquidLocker__factory.d.ts +454 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/lockers/index.d.ts +3 -0
- 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 +4 -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 +30 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/ILiquidEscrowedRAAC__factory.d.ts +185 -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/IRToken__factory.d.ts +15 -0
- 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/IveRAACTokenV2.sol/IveRAACToken__factory.d.ts +628 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IveRAACTokenV2.sol/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IveRAACToken__factory.d.ts +352 -175
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/index.d.ts +3 -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/interfaces/index.d.ts +21 -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 +38 -68
- package/dist/types/typechain-types/factories/contracts/libraries/governance/PowerCheckpoint__factory.d.ts +6 -79
- package/dist/types/typechain-types/factories/contracts/libraries/governance/RagequitLib__factory.d.ts +58 -0
- package/dist/types/typechain-types/factories/contracts/libraries/governance/RewardLib__factory.d.ts +71 -0
- package/dist/types/typechain-types/factories/contracts/libraries/governance/index.d.ts +2 -0
- 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 +310 -0
- 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/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/libraries/LockManagerMock__factory.d.ts +354 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/libraries/index.d.ts +1 -0
- 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 +104 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/lockers/index.d.ts +1 -0
- 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 +34 -12
- 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/index.d.ts +1 -0
- 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 +68 -0
- 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 +146 -53
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/RagequitHarness__factory.d.ts +100 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/RewardIntegralCalculatorMock.sol/MockRewardIntegralCalculator__factory.d.ts +230 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/RewardIntegralCalculatorMock.sol/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/index.d.ts +2 -1
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/index.d.ts +2 -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 +2 -2
- 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 +320 -0
- package/dist/types/typechain-types/factories/contracts/zap/TokenZapLogic__factory.d.ts +71 -0
- package/dist/types/typechain-types/factories/contracts/zap/index.d.ts +2 -0
- 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 +178 -22
- package/dist/types/utils/artifacts.d.ts +1520 -163
- package/dist/types/utils/contracts.d.ts +478 -2
- package/dist/utils/artifacts.js +53 -0
- package/dist/utils/contracts.js +1 -1
- package/package.json +5 -4
- package/dist/tests/test.js +0 -32
- package/dist/types/contracts/crvUSDToken/getBalance.d.ts +0 -2
- package/dist/types/contracts/crvUSDToken/getTotalSupply.d.ts +0 -10
- package/dist/types/contracts/rcrvUSDToken/getBalance.d.ts +0 -2
- package/dist/types/tests/test.d.ts +0 -1
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/IERC1967.d.ts +0 -65
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/ERC1967/index.d.ts +0 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/beacon/index.d.ts +0 -1
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/index.d.ts +0 -7
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy.d.ts +0 -80
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.d.ts +0 -51
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/index.d.ts +0 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/transparent/index.d.ts +0 -3
- package/dist/types/typechain-types/contracts/mocks/libraries/governance/LockManagerMock.d.ts +0 -173
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC1967__factory.d.ts +0 -42
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.d.ts +0 -71
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils__factory.d.ts +0 -50
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/Proxy__factory.d.ts +0 -10
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.d.ts +0 -17
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/beacon/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/index.d.ts +0 -4
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/transparent/ProxyAdmin__factory.d.ts +0 -115
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy__factory.d.ts +0 -56
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy__factory.d.ts +0 -102
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/transparent/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/LockManagerMock__factory.d.ts +0 -206
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getRoles = void 0;
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const chains_1 = __importDefault(require("../../../configs/chains"));
|
|
9
|
+
const _helpers_1 = require("../_helpers");
|
|
10
|
+
const artifacts_1 = require("../../../utils/artifacts");
|
|
11
|
+
/**
|
|
12
|
+
* Gets the access-control role identifiers used by the TimelockController.
|
|
13
|
+
* Governance must hold PROPOSER_ROLE, EXECUTOR_ROLE and CANCELLER_ROLE to queue, execute and cancel proposals.
|
|
14
|
+
*
|
|
15
|
+
* @param chainId - The chain/network to use.
|
|
16
|
+
* @param timelock - Address of the TimelockController contract.
|
|
17
|
+
* @param provider - Optional ethers.js Provider instance.
|
|
18
|
+
* @returns The bytes32 role identifiers.
|
|
19
|
+
*/
|
|
20
|
+
const getRoles = async (chainId, timelock, provider) => {
|
|
21
|
+
if (!provider) {
|
|
22
|
+
const rpc = chains_1.default[chainId].rpcs[0];
|
|
23
|
+
provider = new ethers_1.ethers.JsonRpcProvider(rpc);
|
|
24
|
+
}
|
|
25
|
+
const contractAddress = (0, _helpers_1.requireAddress)(timelock, "TimelockController");
|
|
26
|
+
const abi = (0, artifacts_1.getABI)("timelockcontroller");
|
|
27
|
+
const contract = new ethers_1.ethers.Contract(contractAddress, abi, provider);
|
|
28
|
+
const [defaultAdminRole, proposerRole, executorRole, cancellerRole, emergencyRole] = await Promise.all([
|
|
29
|
+
contract.DEFAULT_ADMIN_ROLE(),
|
|
30
|
+
contract.PROPOSER_ROLE(),
|
|
31
|
+
contract.EXECUTOR_ROLE(),
|
|
32
|
+
contract.CANCELLER_ROLE(),
|
|
33
|
+
contract.EMERGENCY_ROLE(),
|
|
34
|
+
]);
|
|
35
|
+
return { defaultAdminRole, proposerRole, executorRole, cancellerRole, emergencyRole };
|
|
36
|
+
};
|
|
37
|
+
exports.getRoles = getRoles;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getTimestamp = void 0;
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const chains_1 = __importDefault(require("../../../configs/chains"));
|
|
9
|
+
const _helpers_1 = require("../_helpers");
|
|
10
|
+
const artifacts_1 = require("../../../utils/artifacts");
|
|
11
|
+
/**
|
|
12
|
+
* Returns the timestamp for an operation.
|
|
13
|
+
* This is when the operation will be ready for execution.
|
|
14
|
+
*
|
|
15
|
+
* @param chainId - The chain/network to use.
|
|
16
|
+
* @param timelock - Address of the TimelockController contract.
|
|
17
|
+
* @param operationId - Operation ID to check (bytes32 hash).
|
|
18
|
+
* @param provider - Optional ethers.js Provider instance.
|
|
19
|
+
* @returns Timestamp when operation will be ready (0 if not scheduled).
|
|
20
|
+
*/
|
|
21
|
+
const getTimestamp = async (chainId, timelock, operationId, provider) => {
|
|
22
|
+
if (!provider) {
|
|
23
|
+
const rpc = chains_1.default[chainId].rpcs[0];
|
|
24
|
+
provider = new ethers_1.ethers.JsonRpcProvider(rpc);
|
|
25
|
+
}
|
|
26
|
+
const contractAddress = (0, _helpers_1.requireAddress)(timelock, "TimelockController");
|
|
27
|
+
const abi = (0, artifacts_1.getABI)("timelockcontroller");
|
|
28
|
+
const contract = new ethers_1.ethers.Contract(contractAddress, abi, provider);
|
|
29
|
+
const timestamp = await contract.getTimestamp(operationId);
|
|
30
|
+
return Number(timestamp);
|
|
31
|
+
};
|
|
32
|
+
exports.getTimestamp = getTimestamp;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.hasRole = void 0;
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const chains_1 = __importDefault(require("../../../configs/chains"));
|
|
9
|
+
const _helpers_1 = require("../_helpers");
|
|
10
|
+
const artifacts_1 = require("../../../utils/artifacts");
|
|
11
|
+
/**
|
|
12
|
+
* Checks whether an account holds a TimelockController role.
|
|
13
|
+
*
|
|
14
|
+
* @param chainId - The chain/network to use.
|
|
15
|
+
* @param timelock - Address of the TimelockController contract.
|
|
16
|
+
* @param role - The bytes32 role identifier (see `getRoles`).
|
|
17
|
+
* @param account - The address to check.
|
|
18
|
+
* @param provider - Optional ethers.js Provider instance.
|
|
19
|
+
* @returns True if the account holds the role.
|
|
20
|
+
*/
|
|
21
|
+
const hasRole = async (chainId, timelock, role, account, provider) => {
|
|
22
|
+
if (!provider) {
|
|
23
|
+
const rpc = chains_1.default[chainId].rpcs[0];
|
|
24
|
+
provider = new ethers_1.ethers.JsonRpcProvider(rpc);
|
|
25
|
+
}
|
|
26
|
+
const contractAddress = (0, _helpers_1.requireAddress)(timelock, "TimelockController");
|
|
27
|
+
const abi = (0, artifacts_1.getABI)("timelockcontroller");
|
|
28
|
+
const contract = new ethers_1.ethers.Contract(contractAddress, abi, provider);
|
|
29
|
+
return await contract.hasRole(role, account);
|
|
30
|
+
};
|
|
31
|
+
exports.hasRole = hasRole;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.hashOperationBatch = void 0;
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const chains_1 = __importDefault(require("../../../configs/chains"));
|
|
9
|
+
const _helpers_1 = require("../_helpers");
|
|
10
|
+
const artifacts_1 = require("../../../utils/artifacts");
|
|
11
|
+
/**
|
|
12
|
+
* Hashes an operation for unique identification.
|
|
13
|
+
* Use this to compute the operation ID before scheduling or checking status.
|
|
14
|
+
*
|
|
15
|
+
* @param chainId - The chain/network to use.
|
|
16
|
+
* @param timelock - Address of the TimelockController contract.
|
|
17
|
+
* @param nonce - Caller-supplied discriminator. Governance passes the proposal ID.
|
|
18
|
+
* @param targets - Target addresses for calls.
|
|
19
|
+
* @param values - ETH values for calls.
|
|
20
|
+
* @param calldatas - Calldata for calls.
|
|
21
|
+
* @param predecessor - ID of operation that must be executed before (or zero bytes32).
|
|
22
|
+
* @param salt - Random value for operation ID.
|
|
23
|
+
* @param provider - Optional ethers.js Provider instance.
|
|
24
|
+
* @returns Operation hash (bytes32).
|
|
25
|
+
*/
|
|
26
|
+
const hashOperationBatch = async (chainId, timelock, nonce, targets, values, calldatas, predecessor, salt, provider) => {
|
|
27
|
+
if (!provider) {
|
|
28
|
+
const rpc = chains_1.default[chainId].rpcs[0];
|
|
29
|
+
provider = new ethers_1.ethers.JsonRpcProvider(rpc);
|
|
30
|
+
}
|
|
31
|
+
const contractAddress = (0, _helpers_1.requireAddress)(timelock, "TimelockController");
|
|
32
|
+
const abi = (0, artifacts_1.getABI)("timelockcontroller");
|
|
33
|
+
const contract = new ethers_1.ethers.Contract(contractAddress, abi, provider);
|
|
34
|
+
return await contract.hashOperationBatch(nonce, targets, values, calldatas, predecessor, salt);
|
|
35
|
+
};
|
|
36
|
+
exports.hashOperationBatch = hashOperationBatch;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hasRole = exports.getRoles = exports.getConstants = exports.hashOperationBatch = exports.getMinDelay = exports.getTimestamp = exports.isOperationDone = exports.isOperationReady = exports.isOperationPending = void 0;
|
|
4
|
+
// Read functions
|
|
5
|
+
var isOperationPending_1 = require("./isOperationPending");
|
|
6
|
+
Object.defineProperty(exports, "isOperationPending", { enumerable: true, get: function () { return isOperationPending_1.isOperationPending; } });
|
|
7
|
+
var isOperationReady_1 = require("./isOperationReady");
|
|
8
|
+
Object.defineProperty(exports, "isOperationReady", { enumerable: true, get: function () { return isOperationReady_1.isOperationReady; } });
|
|
9
|
+
var isOperationDone_1 = require("./isOperationDone");
|
|
10
|
+
Object.defineProperty(exports, "isOperationDone", { enumerable: true, get: function () { return isOperationDone_1.isOperationDone; } });
|
|
11
|
+
var getTimestamp_1 = require("./getTimestamp");
|
|
12
|
+
Object.defineProperty(exports, "getTimestamp", { enumerable: true, get: function () { return getTimestamp_1.getTimestamp; } });
|
|
13
|
+
var getMinDelay_1 = require("./getMinDelay");
|
|
14
|
+
Object.defineProperty(exports, "getMinDelay", { enumerable: true, get: function () { return getMinDelay_1.getMinDelay; } });
|
|
15
|
+
var hashOperationBatch_1 = require("./hashOperationBatch");
|
|
16
|
+
Object.defineProperty(exports, "hashOperationBatch", { enumerable: true, get: function () { return hashOperationBatch_1.hashOperationBatch; } });
|
|
17
|
+
var getConstants_1 = require("./getConstants");
|
|
18
|
+
Object.defineProperty(exports, "getConstants", { enumerable: true, get: function () { return getConstants_1.getConstants; } });
|
|
19
|
+
var getRoles_1 = require("./getRoles");
|
|
20
|
+
Object.defineProperty(exports, "getRoles", { enumerable: true, get: function () { return getRoles_1.getRoles; } });
|
|
21
|
+
var hasRole_1 = require("./hasRole");
|
|
22
|
+
Object.defineProperty(exports, "hasRole", { enumerable: true, get: function () { return hasRole_1.hasRole; } });
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.isOperationDone = void 0;
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const chains_1 = __importDefault(require("../../../configs/chains"));
|
|
9
|
+
const _helpers_1 = require("../_helpers");
|
|
10
|
+
const artifacts_1 = require("../../../utils/artifacts");
|
|
11
|
+
/**
|
|
12
|
+
* Returns whether an operation is done (executed).
|
|
13
|
+
*
|
|
14
|
+
* @param chainId - The chain/network to use.
|
|
15
|
+
* @param timelock - Address of the TimelockController contract.
|
|
16
|
+
* @param operationId - Operation ID to check (bytes32 hash).
|
|
17
|
+
* @param provider - Optional ethers.js Provider instance.
|
|
18
|
+
* @returns True if operation is done.
|
|
19
|
+
*/
|
|
20
|
+
const isOperationDone = async (chainId, timelock, operationId, provider) => {
|
|
21
|
+
if (!provider) {
|
|
22
|
+
const rpc = chains_1.default[chainId].rpcs[0];
|
|
23
|
+
provider = new ethers_1.ethers.JsonRpcProvider(rpc);
|
|
24
|
+
}
|
|
25
|
+
const contractAddress = (0, _helpers_1.requireAddress)(timelock, "TimelockController");
|
|
26
|
+
const abi = (0, artifacts_1.getABI)("timelockcontroller");
|
|
27
|
+
const contract = new ethers_1.ethers.Contract(contractAddress, abi, provider);
|
|
28
|
+
return await contract.isOperationDone(operationId);
|
|
29
|
+
};
|
|
30
|
+
exports.isOperationDone = isOperationDone;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.isOperationPending = void 0;
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const chains_1 = __importDefault(require("../../../configs/chains"));
|
|
9
|
+
const _helpers_1 = require("../_helpers");
|
|
10
|
+
const artifacts_1 = require("../../../utils/artifacts");
|
|
11
|
+
/**
|
|
12
|
+
* Returns whether an operation is pending (scheduled but not executed).
|
|
13
|
+
*
|
|
14
|
+
* @param chainId - The chain/network to use.
|
|
15
|
+
* @param timelock - Address of the TimelockController contract.
|
|
16
|
+
* @param operationId - Operation ID to check (bytes32 hash).
|
|
17
|
+
* @param provider - Optional ethers.js Provider instance.
|
|
18
|
+
* @returns True if operation is pending.
|
|
19
|
+
*/
|
|
20
|
+
const isOperationPending = async (chainId, timelock, operationId, provider) => {
|
|
21
|
+
if (!provider) {
|
|
22
|
+
const rpc = chains_1.default[chainId].rpcs[0];
|
|
23
|
+
provider = new ethers_1.ethers.JsonRpcProvider(rpc);
|
|
24
|
+
}
|
|
25
|
+
const contractAddress = (0, _helpers_1.requireAddress)(timelock, "TimelockController");
|
|
26
|
+
const abi = (0, artifacts_1.getABI)("timelockcontroller");
|
|
27
|
+
const contract = new ethers_1.ethers.Contract(contractAddress, abi, provider);
|
|
28
|
+
return await contract.isOperationPending(operationId);
|
|
29
|
+
};
|
|
30
|
+
exports.isOperationPending = isOperationPending;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.isOperationReady = void 0;
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const chains_1 = __importDefault(require("../../../configs/chains"));
|
|
9
|
+
const _helpers_1 = require("../_helpers");
|
|
10
|
+
const artifacts_1 = require("../../../utils/artifacts");
|
|
11
|
+
/**
|
|
12
|
+
* Returns whether an operation is ready for execution.
|
|
13
|
+
* An operation is ready when the timelock delay has passed and
|
|
14
|
+
* it's still within the grace period.
|
|
15
|
+
*
|
|
16
|
+
* @param chainId - The chain/network to use.
|
|
17
|
+
* @param timelock - Address of the TimelockController contract.
|
|
18
|
+
* @param operationId - Operation ID to check (bytes32 hash).
|
|
19
|
+
* @param provider - Optional ethers.js Provider instance.
|
|
20
|
+
* @returns True if operation can be executed.
|
|
21
|
+
*/
|
|
22
|
+
const isOperationReady = async (chainId, timelock, operationId, provider) => {
|
|
23
|
+
if (!provider) {
|
|
24
|
+
const rpc = chains_1.default[chainId].rpcs[0];
|
|
25
|
+
provider = new ethers_1.ethers.JsonRpcProvider(rpc);
|
|
26
|
+
}
|
|
27
|
+
const contractAddress = (0, _helpers_1.requireAddress)(timelock, "TimelockController");
|
|
28
|
+
const abi = (0, artifacts_1.getABI)("timelockcontroller");
|
|
29
|
+
const contract = new ethers_1.ethers.Contract(contractAddress, abi, provider);
|
|
30
|
+
return await contract.isOperationReady(operationId);
|
|
31
|
+
};
|
|
32
|
+
exports.isOperationReady = isOperationReady;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getBotLockerContract = getBotLockerContract;
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const chains_1 = __importDefault(require("../../../configs/chains"));
|
|
9
|
+
const getContractAddress_1 = require("../../getContractAddress");
|
|
10
|
+
const artifacts_1 = require("../../../utils/artifacts");
|
|
11
|
+
async function getBotLockerContract(chainId, runner) {
|
|
12
|
+
if (!runner) {
|
|
13
|
+
const rpc = chains_1.default[chainId].rpcs[0];
|
|
14
|
+
runner = new ethers_1.ethers.JsonRpcProvider(rpc);
|
|
15
|
+
}
|
|
16
|
+
const address = (0, getContractAddress_1.getContractAddress)(chainId, "raacbotlocker");
|
|
17
|
+
const abi = (0, artifacts_1.getABI)("raacbotlocker");
|
|
18
|
+
return new ethers_1.ethers.Contract(address, abi, runner);
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.claim = void 0;
|
|
4
|
+
const _helpers_1 = require("./_helpers");
|
|
5
|
+
/**
|
|
6
|
+
* Claim all accrued reward tokens to `recipient`.
|
|
7
|
+
*/
|
|
8
|
+
const claim = async (chainId, recipient, signer) => {
|
|
9
|
+
if (!signer)
|
|
10
|
+
throw new Error("Signer is required");
|
|
11
|
+
const contract = await (0, _helpers_1.getBotLockerContract)(chainId, signer);
|
|
12
|
+
const tx = await contract.claim(recipient);
|
|
13
|
+
await tx.wait();
|
|
14
|
+
return tx;
|
|
15
|
+
};
|
|
16
|
+
exports.claim = claim;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getClaimable = void 0;
|
|
4
|
+
const _helpers_1 = require("./_helpers");
|
|
5
|
+
/**
|
|
6
|
+
* Claimable amount of a single reward token for `account`.
|
|
7
|
+
*/
|
|
8
|
+
const getClaimable = async (chainId, account, token, provider) => {
|
|
9
|
+
const contract = await (0, _helpers_1.getBotLockerContract)(chainId, provider);
|
|
10
|
+
return contract.claimable(account, token);
|
|
11
|
+
};
|
|
12
|
+
exports.getClaimable = getClaimable;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getClaimables = void 0;
|
|
4
|
+
const _helpers_1 = require("./_helpers");
|
|
5
|
+
/**
|
|
6
|
+
* Claimable amounts across all registered reward tokens for `account`.
|
|
7
|
+
*/
|
|
8
|
+
const getClaimables = async (chainId, account, provider) => {
|
|
9
|
+
const contract = await (0, _helpers_1.getBotLockerContract)(chainId, provider);
|
|
10
|
+
const results = await contract.claimables(account);
|
|
11
|
+
return results.map((r) => ({
|
|
12
|
+
token: r.token ?? r[0],
|
|
13
|
+
amount: r.amount ?? r[1],
|
|
14
|
+
}));
|
|
15
|
+
};
|
|
16
|
+
exports.getClaimables = getClaimables;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getClaimedRewards = void 0;
|
|
4
|
+
const _helpers_1 = require("./_helpers");
|
|
5
|
+
const getClaimedRewards = async (chainId, account, provider) => {
|
|
6
|
+
const contract = await (0, _helpers_1.getBotLockerContract)(chainId, provider);
|
|
7
|
+
const results = await contract.getClaimedRewards(account);
|
|
8
|
+
return results.map((r) => ({
|
|
9
|
+
token: r.token ?? r[0],
|
|
10
|
+
amount: r.amount ?? r[1],
|
|
11
|
+
}));
|
|
12
|
+
};
|
|
13
|
+
exports.getClaimedRewards = getClaimedRewards;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getLockedTokenIds = void 0;
|
|
4
|
+
const _helpers_1 = require("./_helpers");
|
|
5
|
+
const getLockedTokenIds = async (chainId, user, provider) => {
|
|
6
|
+
const contract = await (0, _helpers_1.getBotLockerContract)(chainId, provider);
|
|
7
|
+
const ids = await contract.getLockedTokenIds(user);
|
|
8
|
+
return Array.from(ids);
|
|
9
|
+
};
|
|
10
|
+
exports.getLockedTokenIds = getLockedTokenIds;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getLocksByOwner = exports.getLocks = void 0;
|
|
4
|
+
const _helpers_1 = require("./_helpers");
|
|
5
|
+
const normalize = (l) => ({
|
|
6
|
+
owner: l.owner ?? l[0],
|
|
7
|
+
lockedAt: Number(l.lockedAt ?? l[1]),
|
|
8
|
+
tokenId: l.tokenId ?? l[2],
|
|
9
|
+
});
|
|
10
|
+
/**
|
|
11
|
+
* Returns every active NFT lock across all owners.
|
|
12
|
+
*/
|
|
13
|
+
const getLocks = async (chainId, provider) => {
|
|
14
|
+
const contract = await (0, _helpers_1.getBotLockerContract)(chainId, provider);
|
|
15
|
+
const results = await contract.getLocks();
|
|
16
|
+
return results.map(normalize);
|
|
17
|
+
};
|
|
18
|
+
exports.getLocks = getLocks;
|
|
19
|
+
/**
|
|
20
|
+
* Returns every active NFT lock owned by `owner`.
|
|
21
|
+
*/
|
|
22
|
+
const getLocksByOwner = async (chainId, owner, provider) => {
|
|
23
|
+
const contract = await (0, _helpers_1.getBotLockerContract)(chainId, provider);
|
|
24
|
+
const results = await contract.getLocksByOwner(owner);
|
|
25
|
+
return results.map(normalize);
|
|
26
|
+
};
|
|
27
|
+
exports.getLocksByOwner = getLocksByOwner;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRewardTokenCount = void 0;
|
|
4
|
+
const _helpers_1 = require("./_helpers");
|
|
5
|
+
const getRewardTokenCount = async (chainId, provider) => {
|
|
6
|
+
const contract = await (0, _helpers_1.getBotLockerContract)(chainId, provider);
|
|
7
|
+
const count = await contract.getRewardTokenCount();
|
|
8
|
+
return Number(count);
|
|
9
|
+
};
|
|
10
|
+
exports.getRewardTokenCount = getRewardTokenCount;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRewardTokens = void 0;
|
|
4
|
+
const _helpers_1 = require("./_helpers");
|
|
5
|
+
const getRewardTokens = async (chainId, provider) => {
|
|
6
|
+
const contract = await (0, _helpers_1.getBotLockerContract)(chainId, provider);
|
|
7
|
+
return Array.from(await contract.getRewardTokens());
|
|
8
|
+
};
|
|
9
|
+
exports.getRewardTokens = getRewardTokens;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.lock = void 0;
|
|
4
|
+
const _helpers_1 = require("./_helpers");
|
|
5
|
+
/**
|
|
6
|
+
* Lock RAAC Bot NFTs into the bot-locker. Each tokenId mints a share entitling the user to reward streams.
|
|
7
|
+
* Caller must have approved the locker on the NFT contract first (`setApprovalForAll`).
|
|
8
|
+
*/
|
|
9
|
+
const lock = async (chainId, tokenIds, signer) => {
|
|
10
|
+
if (!signer)
|
|
11
|
+
throw new Error("Signer is required");
|
|
12
|
+
const contract = await (0, _helpers_1.getBotLockerContract)(chainId, signer);
|
|
13
|
+
const tx = await contract.lock(tokenIds);
|
|
14
|
+
await tx.wait();
|
|
15
|
+
return tx;
|
|
16
|
+
};
|
|
17
|
+
exports.lock = lock;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.unlock = void 0;
|
|
4
|
+
const _helpers_1 = require("./_helpers");
|
|
5
|
+
/**
|
|
6
|
+
* Unlock NFTs from the bot-locker. Each tokenId must satisfy the unlock-window check
|
|
7
|
+
* (locked duration is a non-zero multiple of LOCK_DURATION_IN_EPOCH * EPOCH_DURATION).
|
|
8
|
+
*
|
|
9
|
+
* The contract no longer has a standalone unlock — it was merged into
|
|
10
|
+
* unlockAndClaim, which unlocks and claims accrued rewards atomically.
|
|
11
|
+
*/
|
|
12
|
+
const unlock = async (chainId, tokenIds, signer) => {
|
|
13
|
+
if (!signer)
|
|
14
|
+
throw new Error("Signer is required");
|
|
15
|
+
const contract = await (0, _helpers_1.getBotLockerContract)(chainId, signer);
|
|
16
|
+
const tx = await contract.unlockAndClaim(tokenIds);
|
|
17
|
+
await tx.wait();
|
|
18
|
+
return tx;
|
|
19
|
+
};
|
|
20
|
+
exports.unlock = unlock;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.unlockAndClaim = void 0;
|
|
4
|
+
const _helpers_1 = require("./_helpers");
|
|
5
|
+
/**
|
|
6
|
+
* Unlock NFTs and claim accrued rewards in one transaction.
|
|
7
|
+
*/
|
|
8
|
+
const unlockAndClaim = async (chainId, tokenIds, signer) => {
|
|
9
|
+
if (!signer)
|
|
10
|
+
throw new Error("Signer is required");
|
|
11
|
+
const contract = await (0, _helpers_1.getBotLockerContract)(chainId, signer);
|
|
12
|
+
const tx = await contract.unlockAndClaim(tokenIds);
|
|
13
|
+
await tx.wait();
|
|
14
|
+
return tx;
|
|
15
|
+
};
|
|
16
|
+
exports.unlockAndClaim = unlockAndClaim;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getLiquidLockerContract = getLiquidLockerContract;
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const chains_1 = __importDefault(require("../../../configs/chains"));
|
|
9
|
+
const getContractAddress_1 = require("../../getContractAddress");
|
|
10
|
+
const artifacts_1 = require("../../../utils/artifacts");
|
|
11
|
+
async function getLiquidLockerContract(chainId, runner) {
|
|
12
|
+
if (!runner) {
|
|
13
|
+
const rpc = chains_1.default[chainId].rpcs[0];
|
|
14
|
+
runner = new ethers_1.ethers.JsonRpcProvider(rpc);
|
|
15
|
+
}
|
|
16
|
+
const address = (0, getContractAddress_1.getContractAddress)(chainId, "raacliquidlocker");
|
|
17
|
+
const abi = (0, artifacts_1.getABI)("raacliquidlocker");
|
|
18
|
+
return new ethers_1.ethers.Contract(address, abi, runner);
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.borrow = void 0;
|
|
4
|
+
const _helpers_1 = require("./_helpers");
|
|
5
|
+
/**
|
|
6
|
+
* Borrow leRAAC against the caller's locked RAAC collateral.
|
|
7
|
+
* If `depositToMaturityVault` is true, borrowed leRAAC is forwarded to the maturity vault for the caller.
|
|
8
|
+
*/
|
|
9
|
+
const borrow = async (chainId, amount, depositToMaturityVault, signer) => {
|
|
10
|
+
if (!signer)
|
|
11
|
+
throw new Error("Signer is required");
|
|
12
|
+
const contract = await (0, _helpers_1.getLiquidLockerContract)(chainId, signer);
|
|
13
|
+
const tx = await contract.borrow(amount, depositToMaturityVault);
|
|
14
|
+
await tx.wait();
|
|
15
|
+
return tx;
|
|
16
|
+
};
|
|
17
|
+
exports.borrow = borrow;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deposit = void 0;
|
|
4
|
+
const _helpers_1 = require("./_helpers");
|
|
5
|
+
/**
|
|
6
|
+
* Deposit RAAC into the liquid locker; locks underlying RAAC into veRAAC for the locker.
|
|
7
|
+
* Caller must have approved the locker to spend RAAC beforehand.
|
|
8
|
+
*/
|
|
9
|
+
const deposit = async (chainId, amount, signer) => {
|
|
10
|
+
if (!signer)
|
|
11
|
+
throw new Error("Signer is required");
|
|
12
|
+
const contract = await (0, _helpers_1.getLiquidLockerContract)(chainId, signer);
|
|
13
|
+
const tx = await contract.deposit(amount);
|
|
14
|
+
await tx.wait();
|
|
15
|
+
return tx;
|
|
16
|
+
};
|
|
17
|
+
exports.deposit = deposit;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.donate = void 0;
|
|
4
|
+
const _helpers_1 = require("./_helpers");
|
|
5
|
+
/**
|
|
6
|
+
* Donate RAAC to be distributed pro-rata to all lockers.
|
|
7
|
+
*/
|
|
8
|
+
const donate = async (chainId, amount, signer) => {
|
|
9
|
+
if (!signer)
|
|
10
|
+
throw new Error("Signer is required");
|
|
11
|
+
const contract = await (0, _helpers_1.getLiquidLockerContract)(chainId, signer);
|
|
12
|
+
const tx = await contract.donate(amount);
|
|
13
|
+
await tx.wait();
|
|
14
|
+
return tx;
|
|
15
|
+
};
|
|
16
|
+
exports.donate = donate;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getConfig = void 0;
|
|
4
|
+
const _helpers_1 = require("./_helpers");
|
|
5
|
+
/**
|
|
6
|
+
* Read the locker's configuration parameters in a single call batch.
|
|
7
|
+
* Frontend setup screens / dashboards should call this to render fee % and linked addresses.
|
|
8
|
+
*/
|
|
9
|
+
const getConfig = async (chainId, provider) => {
|
|
10
|
+
const contract = await (0, _helpers_1.getLiquidLockerContract)(chainId, provider);
|
|
11
|
+
const [raac, leRAAC, veRAAC, maturityVault, zap, intermediateRewardToken, treasury, cleverFeeRecipient, raacBotLocker, lockDurationEpochs, reserveRate, repayFeePercentage, harvestBountyPercentage, treasuryFeePercentage, feeSharesBots, feeSharesClever, feeSharesTreasury, paused,] = await Promise.all([
|
|
12
|
+
contract.raac(),
|
|
13
|
+
contract.leRAAC(),
|
|
14
|
+
contract.veRAAC(),
|
|
15
|
+
contract.maturityVault(),
|
|
16
|
+
contract.zap(),
|
|
17
|
+
contract.intermediateRewardToken(),
|
|
18
|
+
contract.treasury(),
|
|
19
|
+
contract.cleverFeeRecipient(),
|
|
20
|
+
contract.raacBotLocker(),
|
|
21
|
+
contract.lockDurationEpochs(),
|
|
22
|
+
contract.reserveRate(),
|
|
23
|
+
contract.repayFeePercentage(),
|
|
24
|
+
contract.harvestBountyPercentage(),
|
|
25
|
+
contract.treasuryFeePercentage(),
|
|
26
|
+
contract.feeSharesBots(),
|
|
27
|
+
contract.feeSharesClever(),
|
|
28
|
+
contract.feeSharesTreasury(),
|
|
29
|
+
contract.paused(),
|
|
30
|
+
]);
|
|
31
|
+
return {
|
|
32
|
+
raac,
|
|
33
|
+
leRAAC,
|
|
34
|
+
veRAAC,
|
|
35
|
+
maturityVault,
|
|
36
|
+
zap,
|
|
37
|
+
intermediateRewardToken,
|
|
38
|
+
treasury,
|
|
39
|
+
cleverFeeRecipient,
|
|
40
|
+
raacBotLocker,
|
|
41
|
+
lockDurationEpochs: Number(lockDurationEpochs),
|
|
42
|
+
reserveRate,
|
|
43
|
+
repayFeePercentage,
|
|
44
|
+
harvestBountyPercentage,
|
|
45
|
+
treasuryFeePercentage,
|
|
46
|
+
feeSharesBots,
|
|
47
|
+
feeSharesClever,
|
|
48
|
+
feeSharesTreasury,
|
|
49
|
+
paused,
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
exports.getConfig = getConfig;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getGlobalInfo = void 0;
|
|
4
|
+
const ethers_1 = require("ethers");
|
|
5
|
+
const _helpers_1 = require("./_helpers");
|
|
6
|
+
/**
|
|
7
|
+
* One-shot snapshot of locker global accounting.
|
|
8
|
+
*/
|
|
9
|
+
const getGlobalInfo = async (chainId, provider) => {
|
|
10
|
+
const contract = await (0, _helpers_1.getLiquidLockerContract)(chainId, provider);
|
|
11
|
+
const [totalLockedGlobal, totalUnlockedGlobal, totalDebtGlobal, pendingCumulatedAmount, accRewardPerShare, totalRaacInPool, poolLockedUnderlying,] = await Promise.all([
|
|
12
|
+
contract.totalLockedGlobal(),
|
|
13
|
+
contract.totalUnlockedGlobal(),
|
|
14
|
+
contract.totalDebtGlobal(),
|
|
15
|
+
contract.pendingCumulatedAmount(),
|
|
16
|
+
contract.accRewardPerShare(),
|
|
17
|
+
contract.totalRaacInPool(),
|
|
18
|
+
contract.poolLockedUnderlying(),
|
|
19
|
+
]);
|
|
20
|
+
return {
|
|
21
|
+
totalLockedGlobal: ethers_1.ethers.formatEther(totalLockedGlobal),
|
|
22
|
+
totalUnlockedGlobal: ethers_1.ethers.formatEther(totalUnlockedGlobal),
|
|
23
|
+
totalDebtGlobal: ethers_1.ethers.formatEther(totalDebtGlobal),
|
|
24
|
+
pendingCumulatedAmount: ethers_1.ethers.formatEther(pendingCumulatedAmount),
|
|
25
|
+
accRewardPerShare: accRewardPerShare.toString(),
|
|
26
|
+
totalRaacInPool: ethers_1.ethers.formatEther(totalRaacInPool),
|
|
27
|
+
poolLockedUnderlying: ethers_1.ethers.formatEther(poolLockedUnderlying),
|
|
28
|
+
raw: {
|
|
29
|
+
totalLockedGlobal,
|
|
30
|
+
totalUnlockedGlobal,
|
|
31
|
+
totalDebtGlobal,
|
|
32
|
+
pendingCumulatedAmount,
|
|
33
|
+
accRewardPerShare,
|
|
34
|
+
totalRaacInPool,
|
|
35
|
+
poolLockedUnderlying,
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
exports.getGlobalInfo = getGlobalInfo;
|