@raac/rpc 1.2.0-beta.9 → 2.0.0-beta.0
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 +59 -10
- package/dist/artifacts/core/governance/gauges/BaseGauge.sol/BaseGauge.json +113 -20
- package/dist/artifacts/core/governance/gauges/GaugeController.sol/GaugeController.json +259 -31
- package/dist/artifacts/core/governance/gauges/GaugeRewardsDistributor.sol/GaugeRewardsDistributor.json +159 -31
- package/dist/artifacts/core/governance/gauges/RAACGauge.sol/RAACGauge.json +115 -22
- package/dist/artifacts/core/governance/gauges/RWAGauge.sol/RWAGauge.json +115 -22
- package/dist/artifacts/core/governance/proposals/Governance.sol/Governance.json +367 -98
- package/dist/artifacts/core/governance/proposals/TimelockController.sol/TimelockController.json +11 -16
- package/dist/artifacts/core/lockers/RAACLiquidLocker.sol/RAACLiquidLocker.json +113 -19
- package/dist/assets/_helpers.js +31 -0
- package/dist/assets/getAsset.js +13 -3
- package/dist/assets/getAssets.js +15 -15
- package/dist/assets/getSupply.js +16 -5
- package/dist/configs/chains/1.json +31 -35
- package/dist/configs/chains/11155111.json +101 -120
- package/dist/configs/chains/17000.json +31 -35
- package/dist/configs/chains/18453.json +31 -35
- package/dist/configs/chains/8453.json +88 -41
- package/dist/contracts/decodeCall.js +61 -0
- package/dist/contracts/findContract.js +68 -0
- package/dist/contracts/getContractAddress.js +5 -1
- package/dist/contracts/governance/_helpers.js +39 -0
- package/dist/contracts/governance/distributor/claimAll.js +18 -11
- package/dist/contracts/governance/distributor/claimForGauge.js +18 -12
- package/dist/contracts/governance/distributor/deposit.js +17 -12
- package/dist/contracts/governance/distributor/getClaimableForGauge.js +12 -9
- package/dist/contracts/governance/distributor/getClaimedAtEpoch.js +13 -10
- package/dist/contracts/governance/distributor/getDepositedAtEpoch.js +10 -9
- package/dist/contracts/governance/distributor/getDustLastProcessedEpoch.js +28 -0
- package/dist/contracts/governance/distributor/getGaugeController.js +7 -7
- package/dist/contracts/governance/distributor/getLastClaimedEpoch.js +10 -9
- package/dist/contracts/governance/distributor/getMaxClaimBound.js +29 -0
- package/dist/contracts/governance/distributor/getPeriodDuration.js +7 -7
- package/dist/contracts/governance/distributor/getRewardToken.js +7 -7
- package/dist/contracts/governance/distributor/getRewardTokenInfo.js +18 -9
- package/dist/contracts/governance/distributor/getRewardTokenStats.js +13 -8
- package/dist/contracts/governance/distributor/index.js +5 -2
- package/dist/contracts/governance/distributor/setController.js +17 -12
- package/dist/contracts/governance/distributor/setLastClaimedEpoch.js +32 -0
- package/dist/contracts/governance/distributor/setMaxClaimBound.js +31 -0
- package/dist/contracts/governance/distributor/withdrawDust.js +31 -0
- package/dist/contracts/governance/distributor/withdrawRemovedGaugeRewards.js +19 -13
- package/dist/contracts/governance/gauge/_apy.js +126 -0
- package/dist/contracts/governance/gauge/_tokens.js +54 -0
- package/dist/contracts/governance/gauge/addRewardToken.js +2 -12
- package/dist/contracts/governance/gauge/approveGaugeToken.js +31 -0
- package/dist/contracts/governance/gauge/claimExtraReward.js +2 -12
- package/dist/contracts/governance/gauge/claimExtraRewards.js +2 -12
- package/dist/contracts/governance/gauge/claimOnBehalfOf.js +3 -13
- package/dist/contracts/governance/gauge/claimRewardToken.js +3 -13
- package/dist/contracts/governance/gauge/claimRewardsFor.js +2 -12
- package/dist/contracts/governance/gauge/depositRewardToken.js +3 -13
- package/dist/contracts/governance/gauge/getAllPendingExtraRewards.js +8 -10
- package/dist/contracts/governance/gauge/getApy.js +45 -0
- package/dist/contracts/governance/gauge/getBalanceOf.js +10 -18
- package/dist/contracts/governance/gauge/getControllerAddress.js +2 -9
- package/dist/contracts/governance/gauge/getDecimalAdjustment.js +5 -10
- package/dist/contracts/governance/gauge/getDepositRAACOnClaim.js +2 -9
- package/dist/contracts/governance/gauge/getDistributorData.js +2 -9
- package/dist/contracts/governance/gauge/getDistributors.js +2 -9
- package/dist/contracts/governance/gauge/getEarnedExtraReward.js +31 -0
- package/dist/contracts/governance/gauge/getEarnedReward.js +10 -15
- package/dist/contracts/governance/gauge/getExtraRewardTokens.js +2 -9
- package/dist/contracts/governance/gauge/getGaugeData.js +40 -0
- package/dist/contracts/governance/gauge/getGaugeRewardTokenData.js +14 -14
- package/dist/contracts/governance/gauge/getPauseStatus.js +31 -0
- package/dist/contracts/governance/gauge/getPendingExtraRewards.js +5 -10
- package/dist/contracts/governance/gauge/getPendingRewards.js +10 -15
- package/dist/contracts/governance/gauge/getPeriodBoundaries.js +2 -15
- package/dist/contracts/governance/gauge/getPeriodDuration.js +2 -15
- package/dist/contracts/governance/gauge/getRaacAutolockMin.js +5 -10
- package/dist/contracts/governance/gauge/getRawBalanceOf.js +10 -18
- package/dist/contracts/governance/gauge/getRawTotalSupply.js +10 -18
- package/dist/contracts/governance/gauge/getRewardTokens.js +28 -0
- package/dist/contracts/governance/gauge/getTotalSupply.js +10 -18
- package/dist/contracts/governance/gauge/getUserApy.js +73 -0
- package/dist/contracts/governance/gauge/getUserClaimableRewards.js +26 -86
- package/dist/contracts/governance/gauge/getUserGaugeState.js +52 -0
- package/dist/contracts/governance/gauge/getUserRewardTokenData.js +12 -11
- package/dist/contracts/governance/gauge/getUserWeight.js +11 -11
- package/dist/contracts/governance/gauge/index.js +11 -1
- package/dist/contracts/governance/gauge/isPaused.js +4 -11
- package/dist/contracts/governance/gauge/manageDistributor.js +2 -12
- package/dist/contracts/governance/gauge/pullRewardsFromDistributor.js +30 -0
- package/dist/contracts/governance/gauge/setController.js +2 -12
- package/dist/contracts/governance/gauge/setDepositRAACOnClaim.js +2 -12
- package/dist/contracts/governance/gauge/setEmergencyPaused.js +2 -12
- package/dist/contracts/governance/gauge/setGaugeRewardDistributor.js +2 -12
- package/dist/contracts/governance/gauge/setRaacAutolockMin.js +3 -13
- package/dist/contracts/governance/gauge/stake.js +3 -19
- package/dist/contracts/governance/gauge/unwrapStakingToken.js +28 -0
- package/dist/contracts/governance/gauge/updateUserRewards.js +2 -18
- package/dist/contracts/governance/gauge/withdraw.js +3 -19
- package/dist/contracts/governance/gauge/wrapStakingToken.js +28 -0
- package/dist/contracts/governance/gaugeController/addGauge.js +19 -11
- package/dist/contracts/governance/gaugeController/batchVote.js +20 -12
- package/dist/contracts/governance/gaugeController/calculateBoost.js +25 -23
- package/dist/contracts/governance/gaugeController/forceCompleteCheckpoint.js +19 -11
- package/dist/contracts/governance/gaugeController/getActiveGaugeCount.js +28 -0
- package/dist/contracts/governance/gaugeController/getActiveGauges.js +13 -15
- package/dist/contracts/governance/gaugeController/getConstants.js +10 -18
- package/dist/contracts/governance/gaugeController/getCurrentEpoch.js +8 -7
- package/dist/contracts/governance/gaugeController/getExpiredGaugeVotePower.js +30 -0
- package/dist/contracts/governance/gaugeController/getGauge.js +13 -10
- package/dist/contracts/governance/gaugeController/getGaugeDistributor.js +28 -0
- package/dist/contracts/governance/gaugeController/getGaugeEmissions.js +52 -64
- package/dist/contracts/governance/gaugeController/getGaugeRelativeWeight.js +19 -15
- package/dist/contracts/governance/gaugeController/getGaugeRelativeWeightView.js +14 -11
- package/dist/contracts/governance/gaugeController/getGaugeWeight.js +12 -9
- package/dist/contracts/governance/gaugeController/getLastVoteTime.js +11 -9
- package/dist/contracts/governance/gaugeController/getMaxVoteBuckets.js +28 -0
- package/dist/contracts/governance/gaugeController/getNextEpoch.js +8 -7
- package/dist/contracts/governance/gaugeController/getRegisteredGaugeList.js +28 -0
- package/dist/contracts/governance/gaugeController/getTotalWeight.js +10 -8
- package/dist/contracts/governance/gaugeController/getUserGaugeVotePower.js +11 -9
- package/dist/contracts/governance/gaugeController/getUserVotePowerRemaining.js +10 -10
- package/dist/contracts/governance/gaugeController/getVeToken.js +8 -7
- package/dist/contracts/governance/gaugeController/getVoteUserLocks.js +33 -0
- package/dist/contracts/governance/gaugeController/getVoteUserPower.js +8 -7
- package/dist/contracts/governance/gaugeController/getVoteUserSlope.js +13 -10
- package/dist/contracts/governance/gaugeController/index.js +10 -1
- package/dist/contracts/governance/gaugeController/isGaugeActive.js +11 -9
- package/dist/contracts/governance/gaugeController/isPaused.js +9 -8
- package/dist/contracts/governance/gaugeController/kick.js +17 -10
- package/dist/contracts/governance/gaugeController/removeGauge.js +20 -11
- package/dist/contracts/governance/gaugeController/removePowerFromGauge.js +19 -11
- package/dist/contracts/governance/gaugeController/setBoostAmplificationEnabled.js +20 -12
- package/dist/contracts/governance/gaugeController/setDistributor.js +31 -0
- package/dist/contracts/governance/gaugeController/setEmergencyGaugePause.js +20 -12
- package/dist/contracts/governance/gaugeController/setEmergencyGaugePauseBatch.js +33 -0
- package/dist/contracts/governance/gaugeController/setEmergencyPause.js +18 -11
- package/dist/contracts/governance/gaugeController/setMaxVoteBuckets.js +31 -0
- package/dist/contracts/governance/gaugeController/vote.js +15 -16
- package/dist/contracts/governance/gaugeSystems/_helpers.js +123 -0
- package/dist/contracts/governance/gaugeSystems/findGauge.js +14 -0
- package/dist/contracts/governance/gaugeSystems/getGaugeSystem.js +14 -0
- package/dist/contracts/governance/gaugeSystems/getGaugeSystems.js +13 -0
- package/dist/contracts/governance/gaugeSystems/getGauges.js +15 -0
- package/dist/contracts/governance/gaugeSystems/index.js +21 -0
- package/dist/contracts/governance/proposals/cancel.js +8 -7
- package/dist/contracts/governance/proposals/castVote.js +8 -6
- package/dist/contracts/governance/proposals/execute.js +6 -5
- package/dist/contracts/governance/proposals/getGovernances.js +22 -0
- package/dist/contracts/{tokens/veRAAC/getEffectiveLockEnd.js → governance/proposals/getLabel.js} +10 -11
- package/dist/contracts/governance/proposals/getProposal.js +14 -18
- package/dist/contracts/governance/proposals/getProposalCount.js +4 -3
- package/dist/contracts/governance/proposals/{getProposalData.js → getProposalEta.js} +12 -16
- package/dist/contracts/governance/proposals/getProposalInfo.js +10 -8
- package/dist/contracts/governance/proposals/getProposalThreshold.js +7 -5
- package/dist/contracts/governance/proposals/getQuorum.js +11 -8
- package/dist/contracts/governance/proposals/getQuorumNumerator.js +7 -8
- package/dist/contracts/governance/proposals/getRoles.js +34 -0
- package/dist/contracts/governance/proposals/getState.js +4 -3
- package/dist/contracts/governance/proposals/getVoteReceipt.js +54 -0
- package/dist/contracts/governance/proposals/getVotes.js +8 -6
- package/dist/contracts/governance/proposals/getVotingDelay.js +4 -3
- package/dist/contracts/governance/proposals/getVotingPeriod.js +4 -3
- 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 +22 -4
- package/dist/contracts/governance/proposals/propose.js +9 -20
- 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 +4 -3
- package/dist/contracts/governance/timelock/getMinDelay.js +4 -3
- package/dist/contracts/governance/timelock/getRoles.js +37 -0
- package/dist/contracts/governance/timelock/getTimestamp.js +4 -3
- package/dist/contracts/governance/timelock/hasRole.js +31 -0
- package/dist/contracts/governance/timelock/hashOperationBatch.js +7 -6
- package/dist/contracts/governance/timelock/index.js +5 -1
- package/dist/contracts/governance/timelock/isOperationDone.js +4 -3
- package/dist/contracts/governance/timelock/isOperationPending.js +4 -3
- package/dist/contracts/governance/timelock/isOperationReady.js +4 -3
- package/dist/contracts/housePrices/getLatestPrice.js +12 -4
- package/dist/contracts/lockers/botLocker/getClaimable.js +8 -1
- package/dist/contracts/lockers/botLocker/getClaimables.js +10 -4
- package/dist/contracts/lockers/botLocker/getClaimedRewards.js +13 -4
- package/dist/contracts/lockers/liquidLocker/borrow.js +5 -0
- package/dist/contracts/lockers/liquidLocker/checkAccountHealth.js +15 -0
- package/dist/contracts/lockers/liquidLocker/deposit.js +4 -0
- package/dist/contracts/lockers/liquidLocker/donate.js +4 -0
- package/dist/contracts/lockers/liquidLocker/getConfig.js +14 -7
- package/dist/contracts/lockers/liquidLocker/getGlobalInfo.js +12 -17
- package/dist/contracts/lockers/liquidLocker/getUserInfo.js +12 -15
- package/dist/contracts/lockers/liquidLocker/getUserLocks.js +20 -8
- package/dist/contracts/lockers/liquidLocker/harvest.js +5 -0
- package/dist/contracts/lockers/liquidLocker/previewWithdraw.js +26 -0
- package/dist/contracts/lockers/liquidLocker/repay.js +5 -1
- package/dist/contracts/lockers/liquidLocker/requestUnlock.js +16 -4
- package/dist/contracts/lockers/liquidLocker/voteGauge.js +7 -1
- package/dist/contracts/lockers/maturityVault/deposit.js +4 -0
- package/dist/contracts/lockers/maturityVault/depositFor.js +5 -0
- package/dist/contracts/lockers/maturityVault/distribute.js +5 -0
- package/dist/contracts/lockers/maturityVault/getConfig.js +12 -2
- package/dist/contracts/lockers/maturityVault/getGlobalInfo.js +9 -11
- package/dist/contracts/lockers/maturityVault/getUserInfo.js +8 -4
- package/dist/contracts/lockers/maturityVault/withdraw.js +5 -0
- package/dist/contracts/pmBlender/_helpers.js +19 -0
- package/dist/contracts/pmBlender/getReserveBalance.js +13 -12
- package/dist/contracts/pmBlender/previewDeposit.js +15 -12
- package/dist/contracts/pmBlender/previewSwap.js +16 -12
- package/dist/contracts/pmBlender/previewWithdraw.js +15 -12
- package/dist/contracts/pmMarket/getMarketConfig.js +15 -13
- package/dist/contracts/pmTreasury/_helpers.js +51 -0
- package/dist/contracts/pmTreasury/getCollateralRatio.js +13 -16
- package/dist/contracts/pmTreasury/getCurrentNav.js +15 -22
- package/dist/contracts/pmTreasury/getLeverageRatio.js +13 -16
- package/dist/contracts/pmTreasury/getMaxMintablePMUSD.js +17 -21
- package/dist/contracts/pmTreasury/getMaxMintablePMUSDWithoutBaseToken.js +16 -19
- package/dist/contracts/pmTreasury/getMaxMintableXPM.js +18 -22
- package/dist/contracts/pmTreasury/getMaxRedeemablePMUSD.js +17 -21
- package/dist/contracts/pmTreasury/getMaxRedeemableXPM.js +17 -21
- package/dist/contracts/pmTreasury/getTotalBaseToken.js +13 -16
- package/dist/contracts/tokens/RAAC/getBalance.js +16 -5
- package/dist/contracts/tokens/RAAC/getTotalSupply.js +12 -7
- package/dist/contracts/tokens/crvUSD/getBalance.js +16 -5
- package/dist/contracts/tokens/crvUSD/getTotalSupply.js +12 -7
- package/dist/contracts/tokens/leRAAC/approve.js +9 -0
- package/dist/contracts/tokens/leRAAC/burn.js +5 -0
- package/dist/contracts/tokens/leRAAC/burnFrom.js +6 -0
- package/dist/contracts/tokens/leRAAC/getAllowance.js +11 -2
- package/dist/contracts/tokens/leRAAC/getBalance.js +10 -2
- package/dist/contracts/tokens/leRAAC/getMinterInfo.js +10 -1
- package/dist/contracts/tokens/leRAAC/getTotalSupply.js +9 -2
- package/dist/contracts/tokens/leRAAC/transfer.js +9 -0
- package/dist/contracts/tokens/leRAAC/transferFrom.js +10 -0
- package/dist/contracts/tokens/pmUSD/getBalance.js +16 -5
- package/dist/contracts/tokens/pmUSD/getTotalSupply.js +11 -6
- package/dist/contracts/tokens/rcrvUSD/getBalance.js +17 -6
- package/dist/contracts/tokens/rcrvUSD/getTotalSupply.js +13 -7
- package/dist/contracts/tokens/veRAAC/_helpers.js +38 -0
- package/dist/contracts/tokens/veRAAC/distributeRewards.js +1 -1
- package/dist/contracts/tokens/veRAAC/getBalance.js +10 -1
- package/dist/contracts/tokens/veRAAC/getBalanceAt.js +3 -2
- package/dist/contracts/tokens/veRAAC/getBalanceAtTime.js +3 -2
- package/dist/contracts/tokens/veRAAC/getCheckpoint.js +3 -2
- package/dist/contracts/tokens/veRAAC/getClaimable.js +3 -2
- package/dist/contracts/tokens/veRAAC/getClaimed.js +3 -2
- package/dist/contracts/tokens/veRAAC/getEarned.js +3 -2
- package/dist/contracts/tokens/veRAAC/getGlobalLockInfo.js +3 -2
- package/dist/contracts/tokens/veRAAC/getLockedBalance.js +3 -2
- package/dist/contracts/tokens/veRAAC/getLocks.js +5 -7
- package/dist/contracts/tokens/veRAAC/getMinLockAmount.js +36 -0
- package/dist/contracts/tokens/veRAAC/getRagequitRequest.js +6 -5
- package/dist/contracts/tokens/veRAAC/getRawBalanceOf.js +3 -2
- package/dist/contracts/tokens/veRAAC/getRawTotalSupply.js +3 -2
- package/dist/contracts/tokens/veRAAC/getTotalSupply.js +7 -5
- package/dist/contracts/tokens/veRAAC/getTotalSupplyAt.js +3 -2
- package/dist/contracts/tokens/veRAAC/getTotalSupplyAtTime.js +3 -2
- package/dist/contracts/tokens/veRAAC/getUserPointHistory.js +5 -4
- package/dist/contracts/tokens/veRAAC/increase.js +1 -1
- package/dist/contracts/tokens/veRAAC/increaseWithApproval.js +4 -17
- package/dist/contracts/tokens/veRAAC/index.js +3 -3
- package/dist/contracts/tokens/veRAAC/lock.js +1 -1
- package/dist/contracts/tokens/veRAAC/lockWithApproval.js +4 -19
- package/dist/contracts/tokens/xPM/getBalance.js +16 -5
- package/dist/contracts/tokens/xPM/getTotalSupply.js +11 -6
- package/dist/contracts/zap/aladdin/zap.js +9 -1
- package/dist/contracts/zap/aladdin/zapFrom.js +9 -1
- package/dist/contracts/zap/aladdin/zapWithRoutes.js +11 -2
- package/dist/contracts/zeno/createAuction.js +13 -0
- package/dist/contracts/zeno/getAuctions.js +25 -2
- package/dist/generated/errorMap.json +3945 -0
- package/dist/index.js +15 -0
- package/dist/methods/approveToken.js +10 -2
- package/dist/methods/commons/checkAllowance.js +11 -1
- package/dist/methods/getAssetBalance.js +16 -6
- package/dist/minter/_helpers.js +11 -0
- package/dist/minter/calculateScheduledMintableAmount.js +3 -1
- package/dist/minter/get.js +5 -10
- package/dist/minter/getApy.js +12 -9
- package/dist/minter/getDistributionPools.js +4 -3
- package/dist/minter/getEmissionPerSecond.js +4 -2
- package/dist/minter/getPoolInfo.js +5 -3
- package/dist/nfts/_helpers.js +17 -0
- package/dist/nfts/getHousePrice.js +10 -1
- package/dist/nfts/getMintFeePercentage.js +7 -3
- package/dist/nfts/getMintPrice.js +10 -7
- package/dist/nfts/mint.js +12 -4
- package/dist/pools/lendingPool/_helpers.js +37 -2
- package/dist/pools/lendingPool/adapters/erc20/getERC20AdapterBalance.js +15 -3
- package/dist/pools/lendingPool/borrowFromLendingPool.js +13 -3
- package/dist/pools/lendingPool/borrowFromLendingPoolWithInsurance.js +19 -9
- package/dist/pools/lendingPool/calculateInsuranceFee.js +12 -5
- package/dist/pools/lendingPool/depositToLendingPool.js +9 -6
- package/dist/pools/lendingPool/getEligibleUserDeposits.js +5 -7
- package/dist/pools/lendingPool/getHealthFactor.js +8 -7
- package/dist/pools/lendingPool/getHousePrice.js +10 -6
- package/dist/pools/lendingPool/getLendingPoolInfo.js +92 -82
- package/dist/pools/lendingPool/getLendingPoolTotalLiquidity.js +8 -4
- package/dist/pools/lendingPool/getParameters.js +22 -14
- package/dist/pools/lendingPool/getPositionDebt.js +7 -5
- package/dist/pools/lendingPool/getPositionScaledDebt.js +7 -7
- package/dist/pools/lendingPool/getPositionView.js +24 -19
- package/dist/pools/lendingPool/getPositionsScaledDebt.js +6 -8
- package/dist/pools/lendingPool/getRawUserDepositsInLendingPool.js +8 -4
- package/dist/pools/lendingPool/getUserCollateralValue.js +7 -8
- package/dist/pools/lendingPool/openVaultPosition.js +3 -4
- package/dist/pools/lendingPool/repayToLendingPool.js +9 -0
- package/dist/pools/lendingPool/withdrawFromLendingPool.js +15 -16
- package/dist/pools/liquidityPool/getLiquidityPoolInfo.js +23 -30
- package/dist/pools/rwaVault/_helpers.js +26 -2
- package/dist/pools/rwaVault/adapters/erc20/getERC20VaultAdapterAssetValue.js +9 -1
- package/dist/pools/rwaVault/adapters/erc20/getERC20VaultAdapterTotalValue.js +8 -1
- package/dist/pools/rwaVault/adapters/erc721/getERC721VaultAdapterAssetValue.js +9 -1
- package/dist/pools/rwaVault/adapters/erc721/getERC721VaultAdapterTotalValue.js +8 -1
- package/dist/pools/rwaVault/depositToRWAVault.js +15 -3
- package/dist/pools/rwaVault/getRWAVaultInfo.js +10 -3
- package/dist/pools/rwaVault/previewDeposit.js +11 -5
- package/dist/pools/rwaVault/previewWithdraw.js +11 -5
- package/dist/pools/rwaVault/redeemNFTFromRWAVault.js +11 -3
- package/dist/pools/stabilityPool/depositToStabilityPool.js +11 -9
- package/dist/pools/stabilityPool/getRawUserDepositsInStabilityPool.js +11 -9
- package/dist/pools/stabilityPool/getStabilityPoolInfo.js +16 -30
- package/dist/pools/stabilityPool/getStabilityPoolTotalDeposits.js +10 -7
- package/dist/pools/stabilityPool/getWithdrawRequestInfo.js +17 -7
- package/dist/pools/stabilityPool/requestWithdraw.js +9 -4
- package/dist/pools/stabilityPool/withdrawFromStabilityPool.js +11 -9
- package/dist/prices/getPrices.js +10 -4
- package/dist/scripts/index.js +2 -1
- package/dist/scripts/liquidation.js +11 -10
- package/dist/types/RPCLibrary.d.ts +46 -4
- package/dist/types/assets/_helpers.d.ts +16 -0
- package/dist/types/assets/getAsset.d.ts +12 -1
- package/dist/types/assets/getAssets.d.ts +10 -1
- package/dist/types/assets/getSupply.d.ts +10 -1
- package/dist/types/configs/chains/index.d.ts +54 -66
- package/dist/types/configs/index.d.ts +27 -33
- 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 +7 -5
- package/dist/types/contracts/governance/distributor/claimForGauge.d.ts +7 -6
- package/dist/types/contracts/governance/distributor/deposit.d.ts +7 -6
- package/dist/types/contracts/governance/distributor/getClaimableForGauge.d.ts +7 -4
- package/dist/types/contracts/governance/distributor/getClaimedAtEpoch.d.ts +8 -5
- package/dist/types/contracts/governance/distributor/getDepositedAtEpoch.d.ts +7 -4
- package/dist/types/contracts/governance/distributor/getDustLastProcessedEpoch.d.ts +12 -0
- package/dist/types/contracts/governance/distributor/getGaugeController.d.ts +5 -3
- package/dist/types/contracts/governance/distributor/getLastClaimedEpoch.d.ts +6 -4
- package/dist/types/contracts/governance/distributor/getMaxClaimBound.d.ts +15 -0
- package/dist/types/contracts/governance/distributor/getPeriodDuration.d.ts +5 -3
- package/dist/types/contracts/governance/distributor/getRewardToken.d.ts +5 -3
- package/dist/types/contracts/governance/distributor/getRewardTokenInfo.d.ts +10 -7
- package/dist/types/contracts/governance/distributor/getRewardTokenStats.d.ts +9 -6
- package/dist/types/contracts/governance/distributor/index.d.ts +5 -2
- package/dist/types/contracts/governance/distributor/setController.d.ts +7 -6
- package/dist/types/contracts/governance/distributor/setLastClaimedEpoch.d.ts +13 -0
- package/dist/types/contracts/governance/distributor/setMaxClaimBound.d.ts +13 -0
- package/dist/types/contracts/governance/distributor/withdrawDust.d.ts +13 -0
- package/dist/types/contracts/governance/distributor/withdrawRemovedGaugeRewards.d.ts +8 -7
- package/dist/types/contracts/governance/gauge/_apy.d.ts +72 -0
- package/dist/types/contracts/governance/gauge/_tokens.d.ts +25 -0
- package/dist/types/contracts/governance/gauge/approveGaugeToken.d.ts +14 -0
- package/dist/types/contracts/governance/gauge/claimOnBehalfOf.d.ts +2 -2
- package/dist/types/contracts/governance/gauge/claimRewardToken.d.ts +1 -1
- package/dist/types/contracts/governance/gauge/depositRewardToken.d.ts +2 -2
- package/dist/types/contracts/governance/gauge/getAllPendingExtraRewards.d.ts +3 -1
- package/dist/types/contracts/governance/gauge/getApy.d.ts +48 -0
- package/dist/types/contracts/governance/gauge/getBalanceOf.d.ts +3 -2
- package/dist/types/contracts/governance/gauge/getDecimalAdjustment.d.ts +3 -1
- package/dist/types/contracts/governance/gauge/getEarnedExtraReward.d.ts +14 -0
- package/dist/types/contracts/governance/gauge/getEarnedReward.d.ts +5 -3
- package/dist/types/contracts/governance/gauge/getGaugeData.d.ts +24 -0
- package/dist/types/contracts/governance/gauge/getGaugeRewardTokenData.d.ts +18 -10
- package/dist/types/contracts/governance/gauge/getPauseStatus.d.ts +19 -0
- package/dist/types/contracts/governance/gauge/getPendingExtraRewards.d.ts +3 -1
- package/dist/types/contracts/governance/gauge/getPendingRewards.d.ts +5 -3
- package/dist/types/contracts/governance/gauge/getRaacAutolockMin.d.ts +3 -1
- package/dist/types/contracts/governance/gauge/getRawBalanceOf.d.ts +3 -2
- package/dist/types/contracts/governance/gauge/getRawTotalSupply.d.ts +3 -2
- package/dist/types/contracts/governance/gauge/getRewardTokens.d.ts +11 -0
- package/dist/types/contracts/governance/gauge/getTotalSupply.d.ts +3 -2
- package/dist/types/contracts/governance/gauge/getUserApy.d.ts +46 -0
- package/dist/types/contracts/governance/gauge/getUserClaimableRewards.d.ts +22 -20
- package/dist/types/contracts/governance/gauge/getUserGaugeState.d.ts +35 -0
- package/dist/types/contracts/governance/gauge/getUserRewardTokenData.d.ts +15 -8
- package/dist/types/contracts/governance/gauge/getUserWeight.d.ts +4 -2
- package/dist/types/contracts/governance/gauge/index.d.ts +11 -1
- package/dist/types/contracts/governance/gauge/isPaused.d.ts +1 -1
- package/dist/types/contracts/governance/gauge/pullRewardsFromDistributor.d.ts +11 -0
- package/dist/types/contracts/governance/gauge/setRaacAutolockMin.d.ts +2 -2
- package/dist/types/contracts/governance/gauge/stake.d.ts +2 -2
- package/dist/types/contracts/governance/gauge/unwrapStakingToken.d.ts +12 -0
- package/dist/types/contracts/governance/gauge/withdraw.d.ts +2 -2
- package/dist/types/contracts/governance/gauge/wrapStakingToken.d.ts +13 -0
- package/dist/types/contracts/governance/gaugeController/addGauge.d.ts +8 -5
- package/dist/types/contracts/governance/gaugeController/batchVote.d.ts +9 -6
- package/dist/types/contracts/governance/gaugeController/calculateBoost.d.ts +12 -9
- package/dist/types/contracts/governance/gaugeController/forceCompleteCheckpoint.d.ts +8 -5
- package/dist/types/contracts/governance/gaugeController/getActiveGaugeCount.d.ts +12 -0
- package/dist/types/contracts/governance/gaugeController/getActiveGauges.d.ts +10 -5
- package/dist/types/contracts/governance/gaugeController/getConstants.d.ts +6 -4
- package/dist/types/contracts/governance/gaugeController/getCurrentEpoch.d.ts +6 -3
- package/dist/types/contracts/governance/gaugeController/getExpiredGaugeVotePower.d.ts +16 -0
- package/dist/types/contracts/governance/gaugeController/getGauge.d.ts +9 -5
- package/dist/types/contracts/governance/gaugeController/getGaugeDistributor.d.ts +12 -0
- package/dist/types/contracts/governance/gaugeController/getGaugeEmissions.d.ts +23 -20
- package/dist/types/contracts/governance/gaugeController/getGaugeRelativeWeight.d.ts +8 -9
- package/dist/types/contracts/governance/gaugeController/getGaugeRelativeWeightView.d.ts +11 -7
- package/dist/types/contracts/governance/gaugeController/getGaugeWeight.d.ts +7 -4
- package/dist/types/contracts/governance/gaugeController/getLastVoteTime.d.ts +7 -4
- package/dist/types/contracts/governance/gaugeController/getMaxVoteBuckets.d.ts +12 -0
- package/dist/types/contracts/governance/gaugeController/getNextEpoch.d.ts +6 -3
- package/dist/types/contracts/governance/gaugeController/getRegisteredGaugeList.d.ts +12 -0
- package/dist/types/contracts/governance/gaugeController/getTotalWeight.d.ts +6 -3
- package/dist/types/contracts/governance/gaugeController/getUserGaugeVotePower.d.ts +7 -4
- package/dist/types/contracts/governance/gaugeController/getUserVotePowerRemaining.d.ts +6 -4
- package/dist/types/contracts/governance/gaugeController/getVeToken.d.ts +6 -3
- package/dist/types/contracts/governance/gaugeController/getVoteUserLocks.d.ts +18 -0
- package/dist/types/contracts/governance/gaugeController/getVoteUserPower.d.ts +6 -3
- package/dist/types/contracts/governance/gaugeController/getVoteUserSlope.d.ts +10 -6
- package/dist/types/contracts/governance/gaugeController/index.d.ts +10 -1
- package/dist/types/contracts/governance/gaugeController/isGaugeActive.d.ts +6 -4
- package/dist/types/contracts/governance/gaugeController/isPaused.d.ts +6 -3
- package/dist/types/contracts/governance/gaugeController/kick.d.ts +7 -4
- package/dist/types/contracts/governance/gaugeController/removeGauge.d.ts +9 -5
- package/dist/types/contracts/governance/gaugeController/removePowerFromGauge.d.ts +8 -5
- package/dist/types/contracts/governance/gaugeController/setBoostAmplificationEnabled.d.ts +9 -6
- package/dist/types/contracts/governance/gaugeController/setDistributor.d.ts +13 -0
- package/dist/types/contracts/governance/gaugeController/setEmergencyGaugePause.d.ts +9 -6
- package/dist/types/contracts/governance/gaugeController/setEmergencyGaugePauseBatch.d.ts +14 -0
- package/dist/types/contracts/governance/gaugeController/setEmergencyPause.d.ts +8 -5
- package/dist/types/contracts/governance/gaugeController/setMaxVoteBuckets.d.ts +13 -0
- package/dist/types/contracts/governance/gaugeController/vote.d.ts +9 -7
- package/dist/types/contracts/governance/gaugeSystems/_helpers.d.ts +71 -0
- package/dist/types/contracts/governance/gaugeSystems/findGauge.d.ts +11 -0
- package/dist/types/contracts/governance/gaugeSystems/getGaugeSystem.d.ts +11 -0
- package/dist/types/contracts/governance/gaugeSystems/getGaugeSystems.d.ts +10 -0
- package/dist/types/contracts/governance/gaugeSystems/getGauges.d.ts +13 -0
- package/dist/types/contracts/governance/gaugeSystems/index.d.ts +5 -0
- package/dist/types/contracts/governance/proposals/cancel.d.ts +5 -4
- package/dist/types/contracts/governance/proposals/castVote.d.ts +5 -3
- package/dist/types/contracts/governance/proposals/execute.d.ts +3 -2
- 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 +13 -13
- package/dist/types/contracts/governance/proposals/getProposalCount.d.ts +2 -1
- package/dist/types/contracts/governance/proposals/getProposalEta.d.ts +13 -0
- package/dist/types/contracts/governance/proposals/getProposalInfo.d.ts +12 -6
- package/dist/types/contracts/governance/proposals/getProposalThreshold.d.ts +4 -2
- package/dist/types/contracts/governance/proposals/getQuorum.d.ts +7 -4
- package/dist/types/contracts/governance/proposals/getQuorumNumerator.d.ts +7 -3
- package/dist/types/contracts/governance/proposals/getRoles.d.ts +16 -0
- package/dist/types/contracts/governance/proposals/getState.d.ts +2 -1
- package/dist/types/contracts/governance/proposals/getVoteReceipt.d.ts +27 -0
- package/dist/types/contracts/governance/proposals/getVotes.d.ts +8 -4
- package/dist/types/contracts/governance/proposals/getVotingDelay.d.ts +2 -1
- package/dist/types/contracts/governance/proposals/getVotingPeriod.d.ts +2 -1
- 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 +11 -2
- package/dist/types/contracts/governance/proposals/propose.d.ts +4 -14
- 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 +2 -1
- package/dist/types/contracts/governance/timelock/getMinDelay.d.ts +2 -1
- package/dist/types/contracts/governance/timelock/getRoles.d.ts +19 -0
- package/dist/types/contracts/governance/timelock/getTimestamp.d.ts +2 -1
- package/dist/types/contracts/governance/timelock/hasRole.d.ts +13 -0
- package/dist/types/contracts/governance/timelock/hashOperationBatch.d.ts +4 -3
- package/dist/types/contracts/governance/timelock/index.d.ts +2 -0
- package/dist/types/contracts/governance/timelock/isOperationDone.d.ts +2 -1
- package/dist/types/contracts/governance/timelock/isOperationPending.d.ts +2 -1
- package/dist/types/contracts/governance/timelock/isOperationReady.d.ts +2 -1
- package/dist/types/contracts/housePrices/getLatestPrice.d.ts +16 -6
- package/dist/types/contracts/lockers/botLocker/getClaimable.d.ts +8 -1
- package/dist/types/contracts/lockers/botLocker/getClaimables.d.ts +8 -1
- package/dist/types/contracts/lockers/botLocker/getClaimedRewards.d.ts +11 -1
- package/dist/types/contracts/lockers/liquidLocker/borrow.d.ts +6 -1
- package/dist/types/contracts/lockers/liquidLocker/checkAccountHealth.d.ts +9 -0
- package/dist/types/contracts/lockers/liquidLocker/deposit.d.ts +5 -1
- package/dist/types/contracts/lockers/liquidLocker/donate.d.ts +5 -1
- package/dist/types/contracts/lockers/liquidLocker/getConfig.d.ts +19 -7
- package/dist/types/contracts/lockers/liquidLocker/getGlobalInfo.d.ts +19 -16
- package/dist/types/contracts/lockers/liquidLocker/getUserInfo.d.ts +17 -14
- package/dist/types/contracts/lockers/liquidLocker/getUserLocks.d.ts +20 -7
- package/dist/types/contracts/lockers/liquidLocker/harvest.d.ts +6 -1
- package/dist/types/contracts/lockers/liquidLocker/previewWithdraw.d.ts +22 -0
- package/dist/types/contracts/lockers/liquidLocker/repay.d.ts +6 -2
- package/dist/types/contracts/lockers/liquidLocker/requestUnlock.d.ts +15 -3
- package/dist/types/contracts/lockers/liquidLocker/voteGauge.d.ts +8 -2
- package/dist/types/contracts/lockers/maturityVault/deposit.d.ts +5 -1
- package/dist/types/contracts/lockers/maturityVault/depositFor.d.ts +6 -1
- package/dist/types/contracts/lockers/maturityVault/distribute.d.ts +6 -1
- package/dist/types/contracts/lockers/maturityVault/getConfig.d.ts +12 -2
- package/dist/types/contracts/lockers/maturityVault/getGlobalInfo.d.ts +15 -15
- package/dist/types/contracts/lockers/maturityVault/getUserInfo.d.ts +10 -6
- package/dist/types/contracts/lockers/maturityVault/withdraw.d.ts +6 -1
- package/dist/types/contracts/pmBlender/_helpers.d.ts +12 -0
- package/dist/types/contracts/pmBlender/getReserveBalance.d.ts +9 -1
- package/dist/types/contracts/pmBlender/previewDeposit.d.ts +11 -1
- package/dist/types/contracts/pmBlender/previewSwap.d.ts +12 -1
- package/dist/types/contracts/pmBlender/previewWithdraw.d.ts +11 -1
- package/dist/types/contracts/pmMarket/getMarketConfig.d.ts +20 -11
- package/dist/types/contracts/pmTreasury/_helpers.d.ts +27 -0
- package/dist/types/contracts/pmTreasury/getCollateralRatio.d.ts +9 -1
- package/dist/types/contracts/pmTreasury/getCurrentNav.d.ts +18 -9
- package/dist/types/contracts/pmTreasury/getLeverageRatio.d.ts +9 -1
- package/dist/types/contracts/pmTreasury/getMaxMintablePMUSD.d.ts +17 -9
- package/dist/types/contracts/pmTreasury/getMaxMintablePMUSDWithoutBaseToken.d.ts +15 -5
- package/dist/types/contracts/pmTreasury/getMaxMintableXPM.d.ts +18 -8
- package/dist/types/contracts/pmTreasury/getMaxRedeemablePMUSD.d.ts +17 -7
- package/dist/types/contracts/pmTreasury/getMaxRedeemableXPM.d.ts +17 -7
- package/dist/types/contracts/pmTreasury/getTotalBaseToken.d.ts +9 -1
- package/dist/types/contracts/tokens/RAAC/getBalance.d.ts +11 -1
- package/dist/types/contracts/tokens/RAAC/getTotalSupply.d.ts +7 -3
- package/dist/types/contracts/tokens/crvUSD/getBalance.d.ts +11 -1
- package/dist/types/contracts/tokens/crvUSD/getTotalSupply.d.ts +7 -3
- package/dist/types/contracts/tokens/leRAAC/approve.d.ts +10 -1
- package/dist/types/contracts/tokens/leRAAC/burn.d.ts +6 -1
- package/dist/types/contracts/tokens/leRAAC/burnFrom.d.ts +7 -1
- package/dist/types/contracts/tokens/leRAAC/getAllowance.d.ts +11 -1
- package/dist/types/contracts/tokens/leRAAC/getBalance.d.ts +10 -1
- package/dist/types/contracts/tokens/leRAAC/getMinterInfo.d.ts +14 -2
- package/dist/types/contracts/tokens/leRAAC/getTotalSupply.d.ts +9 -1
- package/dist/types/contracts/tokens/leRAAC/transfer.d.ts +10 -1
- package/dist/types/contracts/tokens/leRAAC/transferFrom.d.ts +11 -1
- package/dist/types/contracts/tokens/pmUSD/getBalance.d.ts +11 -1
- package/dist/types/contracts/tokens/pmUSD/getTotalSupply.d.ts +7 -3
- package/dist/types/contracts/tokens/rcrvUSD/getBalance.d.ts +11 -1
- package/dist/types/contracts/tokens/rcrvUSD/getTotalSupply.d.ts +8 -3
- package/dist/types/contracts/tokens/veRAAC/_helpers.d.ts +15 -0
- package/dist/types/contracts/tokens/veRAAC/distributeRewards.d.ts +2 -2
- package/dist/types/contracts/tokens/veRAAC/getBalance.d.ts +10 -1
- package/dist/types/contracts/tokens/veRAAC/getBalanceAt.d.ts +3 -2
- package/dist/types/contracts/tokens/veRAAC/getBalanceAtTime.d.ts +3 -2
- package/dist/types/contracts/tokens/veRAAC/getCheckpoint.d.ts +4 -2
- package/dist/types/contracts/tokens/veRAAC/getClaimable.d.ts +3 -2
- package/dist/types/contracts/tokens/veRAAC/getClaimed.d.ts +3 -2
- package/dist/types/contracts/tokens/veRAAC/getEarned.d.ts +3 -2
- package/dist/types/contracts/tokens/veRAAC/getGlobalLockInfo.d.ts +4 -2
- package/dist/types/contracts/tokens/veRAAC/getLockedBalance.d.ts +3 -2
- package/dist/types/contracts/tokens/veRAAC/getLocks.d.ts +5 -2
- package/dist/types/contracts/tokens/veRAAC/getMinLockAmount.d.ts +15 -0
- package/dist/types/contracts/tokens/veRAAC/getRagequitRequest.d.ts +10 -5
- package/dist/types/contracts/tokens/veRAAC/getRawBalanceOf.d.ts +3 -2
- package/dist/types/contracts/tokens/veRAAC/getRawTotalSupply.d.ts +3 -2
- package/dist/types/contracts/tokens/veRAAC/getTotalSupply.d.ts +7 -5
- package/dist/types/contracts/tokens/veRAAC/getTotalSupplyAt.d.ts +3 -2
- package/dist/types/contracts/tokens/veRAAC/getTotalSupplyAtTime.d.ts +3 -2
- package/dist/types/contracts/tokens/veRAAC/getUserPointHistory.d.ts +8 -4
- package/dist/types/contracts/tokens/veRAAC/increase.d.ts +2 -2
- package/dist/types/contracts/tokens/veRAAC/increaseWithApproval.d.ts +3 -3
- package/dist/types/contracts/tokens/veRAAC/index.d.ts +1 -1
- package/dist/types/contracts/tokens/veRAAC/lock.d.ts +2 -2
- package/dist/types/contracts/tokens/veRAAC/lockWithApproval.d.ts +3 -3
- package/dist/types/contracts/tokens/xPM/getBalance.d.ts +11 -1
- package/dist/types/contracts/tokens/xPM/getTotalSupply.d.ts +7 -3
- package/dist/types/contracts/zap/aladdin/zap.d.ts +9 -1
- package/dist/types/contracts/zap/aladdin/zapFrom.d.ts +9 -1
- package/dist/types/contracts/zap/aladdin/zapWithRoutes.d.ts +11 -2
- package/dist/types/contracts/zeno/createAuction.d.ts +13 -0
- package/dist/types/contracts/zeno/getAuctions.d.ts +38 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/methods/approveToken.d.ts +10 -1
- package/dist/types/methods/commons/checkAllowance.d.ts +11 -1
- package/dist/types/methods/getAssetBalance.d.ts +10 -1
- package/dist/types/minter/_helpers.d.ts +8 -0
- package/dist/types/minter/calculateScheduledMintableAmount.d.ts +3 -1
- package/dist/types/minter/get.d.ts +15 -9
- package/dist/types/minter/getApy.d.ts +12 -3
- package/dist/types/minter/getDistributionPools.d.ts +10 -2
- package/dist/types/minter/getEmissionPerSecond.d.ts +3 -1
- package/dist/types/minter/getPoolInfo.d.ts +10 -2
- package/dist/types/nfts/_helpers.d.ts +10 -0
- package/dist/types/nfts/getHousePrice.d.ts +9 -1
- package/dist/types/nfts/getMintFeePercentage.d.ts +6 -0
- package/dist/types/nfts/getMintPrice.d.ts +9 -4
- package/dist/types/nfts/mint.d.ts +10 -1
- package/dist/types/pools/lendingPool/_helpers.d.ts +28 -1
- package/dist/types/pools/lendingPool/adapters/erc20/getERC20AdapterBalance.d.ts +11 -1
- package/dist/types/pools/lendingPool/borrowFromLendingPool.d.ts +10 -1
- package/dist/types/pools/lendingPool/borrowFromLendingPoolWithInsurance.d.ts +10 -1
- package/dist/types/pools/lendingPool/calculateInsuranceFee.d.ts +12 -1
- package/dist/types/pools/lendingPool/depositToLendingPool.d.ts +9 -2
- package/dist/types/pools/lendingPool/getEligibleUserDeposits.d.ts +6 -5
- package/dist/types/pools/lendingPool/getHealthFactor.d.ts +8 -7
- package/dist/types/pools/lendingPool/getHousePrice.d.ts +9 -1
- package/dist/types/pools/lendingPool/getLendingPoolInfo.d.ts +48 -21
- package/dist/types/pools/lendingPool/getLendingPoolTotalLiquidity.d.ts +9 -1
- package/dist/types/pools/lendingPool/getParameters.d.ts +24 -5
- package/dist/types/pools/lendingPool/getPositionDebt.d.ts +8 -5
- package/dist/types/pools/lendingPool/getPositionScaledDebt.d.ts +8 -7
- package/dist/types/pools/lendingPool/getPositionView.d.ts +33 -18
- package/dist/types/pools/lendingPool/getPositionsScaledDebt.d.ts +6 -5
- package/dist/types/pools/lendingPool/getRawUserDepositsInLendingPool.d.ts +9 -1
- package/dist/types/pools/lendingPool/getUserCollateralValue.d.ts +6 -5
- package/dist/types/pools/lendingPool/openVaultPosition.d.ts +2 -2
- package/dist/types/pools/lendingPool/repayToLendingPool.d.ts +9 -0
- package/dist/types/pools/lendingPool/withdrawFromLendingPool.d.ts +9 -1
- package/dist/types/pools/liquidityPool/getLiquidityPoolInfo.d.ts +27 -2
- package/dist/types/pools/rwaVault/_helpers.d.ts +21 -1
- package/dist/types/pools/rwaVault/adapters/erc20/getERC20VaultAdapterAssetValue.d.ts +9 -1
- package/dist/types/pools/rwaVault/adapters/erc20/getERC20VaultAdapterTotalValue.d.ts +8 -1
- package/dist/types/pools/rwaVault/adapters/erc721/getERC721VaultAdapterAssetValue.d.ts +9 -1
- package/dist/types/pools/rwaVault/adapters/erc721/getERC721VaultAdapterTotalValue.d.ts +8 -1
- package/dist/types/pools/rwaVault/depositToRWAVault.d.ts +12 -2
- package/dist/types/pools/rwaVault/getRWAVaultInfo.d.ts +16 -4
- package/dist/types/pools/rwaVault/previewDeposit.d.ts +9 -1
- package/dist/types/pools/rwaVault/previewWithdraw.d.ts +9 -1
- package/dist/types/pools/rwaVault/redeemNFTFromRWAVault.d.ts +11 -2
- package/dist/types/pools/stabilityPool/depositToStabilityPool.d.ts +9 -2
- package/dist/types/pools/stabilityPool/getRawUserDepositsInStabilityPool.d.ts +9 -1
- package/dist/types/pools/stabilityPool/getStabilityPoolInfo.d.ts +15 -4
- package/dist/types/pools/stabilityPool/getStabilityPoolTotalDeposits.d.ts +8 -1
- package/dist/types/pools/stabilityPool/getWithdrawRequestInfo.d.ts +19 -6
- package/dist/types/pools/stabilityPool/requestWithdraw.d.ts +9 -2
- package/dist/types/pools/stabilityPool/withdrawFromStabilityPool.d.ts +9 -2
- package/dist/types/prices/getPrices.d.ts +12 -5
- package/dist/types/typechain-types/contracts/core/governance/gauges/BaseGauge.d.ts +176 -105
- package/dist/types/typechain-types/contracts/core/governance/gauges/GaugeController.d.ts +260 -213
- package/dist/types/typechain-types/contracts/core/governance/gauges/GaugeRewardsDistributor.d.ts +173 -212
- package/dist/types/typechain-types/contracts/core/governance/gauges/RAACGauge.d.ts +176 -105
- package/dist/types/typechain-types/contracts/core/governance/gauges/RWAGauge.d.ts +176 -105
- package/dist/types/typechain-types/contracts/core/governance/proposals/Governance.d.ts +202 -82
- package/dist/types/typechain-types/contracts/core/governance/proposals/TimelockController.d.ts +8 -8
- package/dist/types/typechain-types/contracts/core/lockers/RAACLiquidLocker.d.ts +89 -37
- package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/IBaseGauge.d.ts +111 -108
- package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/IGaugeController.d.ts +210 -34
- package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/IGaugeRewardsDistributor.d.ts +112 -151
- package/dist/types/typechain-types/contracts/interfaces/core/governance/proposals/IGovernance.d.ts +36 -51
- package/dist/types/typechain-types/contracts/interfaces/core/governance/proposals/ITimelockController.d.ts +8 -8
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/BaseGauge__factory.d.ts +174 -95
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/GaugeController__factory.d.ts +243 -227
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/GaugeRewardsDistributor__factory.d.ts +164 -232
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/RAACGauge__factory.d.ts +185 -98
- package/dist/types/typechain-types/factories/contracts/core/governance/gauges/RWAGauge__factory.d.ts +185 -98
- package/dist/types/typechain-types/factories/contracts/core/governance/proposals/Governance__factory.d.ts +288 -81
- 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/RAACLiquidLocker__factory.d.ts +101 -30
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/IBaseGauge__factory.d.ts +104 -95
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/IGaugeController__factory.d.ts +241 -22
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/IGaugeRewardsDistributor__factory.d.ts +72 -158
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/proposals/IGovernance__factory.d.ts +70 -40
- package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/proposals/ITimelockController__factory.d.ts +8 -4
- package/dist/types/utils/amount.d.ts +101 -0
- package/dist/types/utils/artifacts.d.ts +40 -0
- package/dist/types/utils/contracts.d.ts +52 -64
- package/dist/types/wallet/assets/approveAsset.d.ts +10 -1
- package/dist/types/wallet/assets/burnAsset.d.ts +8 -0
- package/dist/types/wallet/assets/getAllowance.d.ts +12 -1
- package/dist/types/wallet/assets/getAsset.d.ts +13 -1
- package/dist/types/wallet/assets/getAssets.d.ts +11 -1
- package/dist/types/wallet/assets/getBalance.d.ts +11 -5
- package/dist/types/wallet/assets/mintAsset.d.ts +9 -0
- package/dist/types/wallet/assets/transferAsset.d.ts +10 -0
- package/dist/utils/amount.js +131 -0
- package/dist/utils/contracts.js +6 -1
- package/dist/wallet/assets/approveAsset.js +10 -4
- package/dist/wallet/assets/burnAsset.js +9 -2
- package/dist/wallet/assets/getAllowance.js +14 -5
- package/dist/wallet/assets/getAsset.js +16 -9
- package/dist/wallet/assets/getAssets.js +17 -16
- package/dist/wallet/assets/getBalance.js +16 -20
- package/dist/wallet/assets/mintAsset.js +10 -1
- package/dist/wallet/assets/transferAsset.js +12 -3
- package/package.json +2 -2
- package/dist/contracts/governance/distributor/getStartEpoch.js +0 -28
- package/dist/contracts/governance/distributor/withdrawUnallocatedRewards.js +0 -26
- package/dist/contracts/governance/gauge/setDistributorApproval.js +0 -35
- package/dist/types/contracts/governance/distributor/getStartEpoch.d.ts +0 -10
- package/dist/types/contracts/governance/distributor/withdrawUnallocatedRewards.d.ts +0 -12
- package/dist/types/contracts/governance/gauge/setDistributorApproval.d.ts +0 -11
- package/dist/types/contracts/governance/proposals/getProposalData.d.ts +0 -18
- package/dist/types/contracts/tokens/veRAAC/getEffectiveLockEnd.d.ts +0 -11
package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/IGaugeController.d.ts
CHANGED
|
@@ -1,34 +1,56 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../../../common";
|
|
3
3
|
export interface IGaugeControllerInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "MAX_BOOST" | "MIN_BOOST" | "batchVote" | "calculateBoost" | "getActiveGauges" | "getCurrentEpoch" | "getGaugeRelativeWeight" | "getGaugeRelativeWeightView" | "getGaugeWeight" | "getTotalWeight" | "
|
|
5
|
-
getEvent(nameOrSignatureOrTopic: "BoostAmplificationToggled" | "
|
|
4
|
+
getFunction(nameOrSignature: "MAX_BOOST" | "MIN_BOOST" | "activeGaugeCount" | "batchVote" | "calculateBoost" | "getActiveGauges" | "getCurrentEpoch" | "getExpiredGaugeVotePower" | "getGaugeRelativeWeight" | "getGaugeRelativeWeightView" | "getGaugeWeight" | "getNextEpoch" | "getRegisteredGaugeList" | "getTotalWeight" | "getUserGaugeVotePower" | "isGaugeActive" | "isPaused" | "kick" | "removeGauge" | "removePowerFromGauge" | "setEmergencyGaugePause" | "setEmergencyGaugePauseBatch" | "setEmergencyPause" | "veToken" | "vote"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "BoostAmplificationToggled" | "EmergencyGaugePauseUpdated" | "EmergencyPauseUpdated" | "GaugeAdded" | "GaugeKicked" | "GaugeRemoved" | "GaugeRewardsDistributorUpdated" | "MaxVoteBucketsUpdated" | "VeBoostProxyUpdated" | "VoteWeightUpdated" | "VotesKicked" | "VotingPowerRemovedInactiveGauge"): EventFragment;
|
|
6
6
|
encodeFunctionData(functionFragment: "MAX_BOOST", values?: undefined): string;
|
|
7
7
|
encodeFunctionData(functionFragment: "MIN_BOOST", values?: undefined): string;
|
|
8
|
+
encodeFunctionData(functionFragment: "activeGaugeCount", values?: undefined): string;
|
|
8
9
|
encodeFunctionData(functionFragment: "batchVote", values: [AddressLike[], BigNumberish[]]): string;
|
|
9
10
|
encodeFunctionData(functionFragment: "calculateBoost", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
10
11
|
encodeFunctionData(functionFragment: "getActiveGauges", values?: undefined): string;
|
|
11
12
|
encodeFunctionData(functionFragment: "getCurrentEpoch", values?: undefined): string;
|
|
13
|
+
encodeFunctionData(functionFragment: "getExpiredGaugeVotePower", values: [AddressLike]): string;
|
|
12
14
|
encodeFunctionData(functionFragment: "getGaugeRelativeWeight", values: [AddressLike, BigNumberish]): string;
|
|
13
15
|
encodeFunctionData(functionFragment: "getGaugeRelativeWeightView", values: [AddressLike, BigNumberish]): string;
|
|
14
16
|
encodeFunctionData(functionFragment: "getGaugeWeight", values: [AddressLike]): string;
|
|
17
|
+
encodeFunctionData(functionFragment: "getNextEpoch", values?: undefined): string;
|
|
18
|
+
encodeFunctionData(functionFragment: "getRegisteredGaugeList", values?: undefined): string;
|
|
15
19
|
encodeFunctionData(functionFragment: "getTotalWeight", values?: undefined): string;
|
|
16
|
-
encodeFunctionData(functionFragment: "
|
|
20
|
+
encodeFunctionData(functionFragment: "getUserGaugeVotePower", values: [AddressLike, AddressLike]): string;
|
|
21
|
+
encodeFunctionData(functionFragment: "isGaugeActive", values: [AddressLike]): string;
|
|
22
|
+
encodeFunctionData(functionFragment: "isPaused", values?: undefined): string;
|
|
17
23
|
encodeFunctionData(functionFragment: "kick", values: [AddressLike]): string;
|
|
24
|
+
encodeFunctionData(functionFragment: "removeGauge", values: [AddressLike, AddressLike]): string;
|
|
25
|
+
encodeFunctionData(functionFragment: "removePowerFromGauge", values: [AddressLike]): string;
|
|
26
|
+
encodeFunctionData(functionFragment: "setEmergencyGaugePause", values: [AddressLike, boolean]): string;
|
|
27
|
+
encodeFunctionData(functionFragment: "setEmergencyGaugePauseBatch", values: [AddressLike[], boolean[]]): string;
|
|
28
|
+
encodeFunctionData(functionFragment: "setEmergencyPause", values: [boolean]): string;
|
|
18
29
|
encodeFunctionData(functionFragment: "veToken", values?: undefined): string;
|
|
19
30
|
encodeFunctionData(functionFragment: "vote", values: [AddressLike, BigNumberish]): string;
|
|
20
31
|
decodeFunctionResult(functionFragment: "MAX_BOOST", data: BytesLike): Result;
|
|
21
32
|
decodeFunctionResult(functionFragment: "MIN_BOOST", data: BytesLike): Result;
|
|
33
|
+
decodeFunctionResult(functionFragment: "activeGaugeCount", data: BytesLike): Result;
|
|
22
34
|
decodeFunctionResult(functionFragment: "batchVote", data: BytesLike): Result;
|
|
23
35
|
decodeFunctionResult(functionFragment: "calculateBoost", data: BytesLike): Result;
|
|
24
36
|
decodeFunctionResult(functionFragment: "getActiveGauges", data: BytesLike): Result;
|
|
25
37
|
decodeFunctionResult(functionFragment: "getCurrentEpoch", data: BytesLike): Result;
|
|
38
|
+
decodeFunctionResult(functionFragment: "getExpiredGaugeVotePower", data: BytesLike): Result;
|
|
26
39
|
decodeFunctionResult(functionFragment: "getGaugeRelativeWeight", data: BytesLike): Result;
|
|
27
40
|
decodeFunctionResult(functionFragment: "getGaugeRelativeWeightView", data: BytesLike): Result;
|
|
28
41
|
decodeFunctionResult(functionFragment: "getGaugeWeight", data: BytesLike): Result;
|
|
42
|
+
decodeFunctionResult(functionFragment: "getNextEpoch", data: BytesLike): Result;
|
|
43
|
+
decodeFunctionResult(functionFragment: "getRegisteredGaugeList", data: BytesLike): Result;
|
|
29
44
|
decodeFunctionResult(functionFragment: "getTotalWeight", data: BytesLike): Result;
|
|
30
|
-
decodeFunctionResult(functionFragment: "
|
|
45
|
+
decodeFunctionResult(functionFragment: "getUserGaugeVotePower", data: BytesLike): Result;
|
|
46
|
+
decodeFunctionResult(functionFragment: "isGaugeActive", data: BytesLike): Result;
|
|
47
|
+
decodeFunctionResult(functionFragment: "isPaused", data: BytesLike): Result;
|
|
31
48
|
decodeFunctionResult(functionFragment: "kick", data: BytesLike): Result;
|
|
49
|
+
decodeFunctionResult(functionFragment: "removeGauge", data: BytesLike): Result;
|
|
50
|
+
decodeFunctionResult(functionFragment: "removePowerFromGauge", data: BytesLike): Result;
|
|
51
|
+
decodeFunctionResult(functionFragment: "setEmergencyGaugePause", data: BytesLike): Result;
|
|
52
|
+
decodeFunctionResult(functionFragment: "setEmergencyGaugePauseBatch", data: BytesLike): Result;
|
|
53
|
+
decodeFunctionResult(functionFragment: "setEmergencyPause", data: BytesLike): Result;
|
|
32
54
|
decodeFunctionResult(functionFragment: "veToken", data: BytesLike): Result;
|
|
33
55
|
decodeFunctionResult(functionFragment: "vote", data: BytesLike): Result;
|
|
34
56
|
}
|
|
@@ -50,6 +72,27 @@ export declare namespace BoostAmplificationToggledEvent {
|
|
|
50
72
|
type Log = TypedEventLog<Event>;
|
|
51
73
|
type LogDescription = TypedLogDescription<Event>;
|
|
52
74
|
}
|
|
75
|
+
export declare namespace EmergencyGaugePauseUpdatedEvent {
|
|
76
|
+
type InputTuple = [
|
|
77
|
+
gauge: AddressLike,
|
|
78
|
+
paused: boolean,
|
|
79
|
+
triggeredBy: AddressLike
|
|
80
|
+
];
|
|
81
|
+
type OutputTuple = [
|
|
82
|
+
gauge: string,
|
|
83
|
+
paused: boolean,
|
|
84
|
+
triggeredBy: string
|
|
85
|
+
];
|
|
86
|
+
interface OutputObject {
|
|
87
|
+
gauge: string;
|
|
88
|
+
paused: boolean;
|
|
89
|
+
triggeredBy: string;
|
|
90
|
+
}
|
|
91
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
92
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
93
|
+
type Log = TypedEventLog<Event>;
|
|
94
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
95
|
+
}
|
|
53
96
|
export declare namespace EmergencyPauseUpdatedEvent {
|
|
54
97
|
type InputTuple = [paused: boolean];
|
|
55
98
|
type OutputTuple = [paused: boolean];
|
|
@@ -61,23 +104,28 @@ export declare namespace EmergencyPauseUpdatedEvent {
|
|
|
61
104
|
type Log = TypedEventLog<Event>;
|
|
62
105
|
type LogDescription = TypedLogDescription<Event>;
|
|
63
106
|
}
|
|
64
|
-
export declare namespace
|
|
65
|
-
type InputTuple = [gauge: AddressLike
|
|
66
|
-
type OutputTuple = [gauge: string
|
|
107
|
+
export declare namespace GaugeAddedEvent {
|
|
108
|
+
type InputTuple = [gauge: AddressLike];
|
|
109
|
+
type OutputTuple = [gauge: string];
|
|
67
110
|
interface OutputObject {
|
|
68
111
|
gauge: string;
|
|
69
|
-
triggeredBy: string;
|
|
70
112
|
}
|
|
71
113
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
72
114
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
73
115
|
type Log = TypedEventLog<Event>;
|
|
74
116
|
type LogDescription = TypedLogDescription<Event>;
|
|
75
117
|
}
|
|
76
|
-
export declare namespace
|
|
77
|
-
type InputTuple = [
|
|
78
|
-
|
|
118
|
+
export declare namespace GaugeKickedEvent {
|
|
119
|
+
type InputTuple = [
|
|
120
|
+
gauge: AddressLike,
|
|
121
|
+
bias: BigNumberish,
|
|
122
|
+
slope: BigNumberish
|
|
123
|
+
];
|
|
124
|
+
type OutputTuple = [gauge: string, bias: bigint, slope: bigint];
|
|
79
125
|
interface OutputObject {
|
|
80
126
|
gauge: string;
|
|
127
|
+
bias: bigint;
|
|
128
|
+
slope: bigint;
|
|
81
129
|
}
|
|
82
130
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
83
131
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -85,22 +133,38 @@ export declare namespace GaugeAddedEvent {
|
|
|
85
133
|
type LogDescription = TypedLogDescription<Event>;
|
|
86
134
|
}
|
|
87
135
|
export declare namespace GaugeRemovedEvent {
|
|
88
|
-
type InputTuple = [gauge: AddressLike];
|
|
89
|
-
type OutputTuple = [gauge: string];
|
|
136
|
+
type InputTuple = [gauge: AddressLike, totalWithdrawn: BigNumberish];
|
|
137
|
+
type OutputTuple = [gauge: string, totalWithdrawn: bigint];
|
|
90
138
|
interface OutputObject {
|
|
91
139
|
gauge: string;
|
|
140
|
+
totalWithdrawn: bigint;
|
|
92
141
|
}
|
|
93
142
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
94
143
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
95
144
|
type Log = TypedEventLog<Event>;
|
|
96
145
|
type LogDescription = TypedLogDescription<Event>;
|
|
97
146
|
}
|
|
98
|
-
export declare namespace
|
|
99
|
-
type InputTuple = [
|
|
100
|
-
|
|
147
|
+
export declare namespace GaugeRewardsDistributorUpdatedEvent {
|
|
148
|
+
type InputTuple = [
|
|
149
|
+
oldDistributor: AddressLike,
|
|
150
|
+
newDistributor: AddressLike
|
|
151
|
+
];
|
|
152
|
+
type OutputTuple = [oldDistributor: string, newDistributor: string];
|
|
101
153
|
interface OutputObject {
|
|
102
|
-
|
|
103
|
-
|
|
154
|
+
oldDistributor: string;
|
|
155
|
+
newDistributor: string;
|
|
156
|
+
}
|
|
157
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
158
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
159
|
+
type Log = TypedEventLog<Event>;
|
|
160
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
161
|
+
}
|
|
162
|
+
export declare namespace MaxVoteBucketsUpdatedEvent {
|
|
163
|
+
type InputTuple = [oldValue: BigNumberish, newValue: BigNumberish];
|
|
164
|
+
type OutputTuple = [oldValue: bigint, newValue: bigint];
|
|
165
|
+
interface OutputObject {
|
|
166
|
+
oldValue: bigint;
|
|
167
|
+
newValue: bigint;
|
|
104
168
|
}
|
|
105
169
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
106
170
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -124,21 +188,21 @@ export declare namespace VoteWeightUpdatedEvent {
|
|
|
124
188
|
gauge: AddressLike,
|
|
125
189
|
weight: BigNumberish,
|
|
126
190
|
bias: BigNumberish,
|
|
127
|
-
|
|
191
|
+
locked: BigNumberish
|
|
128
192
|
];
|
|
129
193
|
type OutputTuple = [
|
|
130
194
|
user: string,
|
|
131
195
|
gauge: string,
|
|
132
196
|
weight: bigint,
|
|
133
197
|
bias: bigint,
|
|
134
|
-
|
|
198
|
+
locked: bigint
|
|
135
199
|
];
|
|
136
200
|
interface OutputObject {
|
|
137
201
|
user: string;
|
|
138
202
|
gauge: string;
|
|
139
203
|
weight: bigint;
|
|
140
204
|
bias: bigint;
|
|
141
|
-
|
|
205
|
+
locked: bigint;
|
|
142
206
|
}
|
|
143
207
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
144
208
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -157,6 +221,27 @@ export declare namespace VotesKickedEvent {
|
|
|
157
221
|
type Log = TypedEventLog<Event>;
|
|
158
222
|
type LogDescription = TypedLogDescription<Event>;
|
|
159
223
|
}
|
|
224
|
+
export declare namespace VotingPowerRemovedInactiveGaugeEvent {
|
|
225
|
+
type InputTuple = [
|
|
226
|
+
gauge: AddressLike,
|
|
227
|
+
oldVP: BigNumberish,
|
|
228
|
+
newVotingPower: BigNumberish
|
|
229
|
+
];
|
|
230
|
+
type OutputTuple = [
|
|
231
|
+
gauge: string,
|
|
232
|
+
oldVP: bigint,
|
|
233
|
+
newVotingPower: bigint
|
|
234
|
+
];
|
|
235
|
+
interface OutputObject {
|
|
236
|
+
gauge: string;
|
|
237
|
+
oldVP: bigint;
|
|
238
|
+
newVotingPower: bigint;
|
|
239
|
+
}
|
|
240
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
241
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
242
|
+
type Log = TypedEventLog<Event>;
|
|
243
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
244
|
+
}
|
|
160
245
|
export interface IGaugeController extends BaseContract {
|
|
161
246
|
connect(runner?: ContractRunner | null): IGaugeController;
|
|
162
247
|
waitForDeployment(): Promise<this>;
|
|
@@ -172,6 +257,7 @@ export interface IGaugeController extends BaseContract {
|
|
|
172
257
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
173
258
|
MAX_BOOST: TypedContractMethod<[], [bigint], "view">;
|
|
174
259
|
MIN_BOOST: TypedContractMethod<[], [bigint], "view">;
|
|
260
|
+
activeGaugeCount: TypedContractMethod<[], [bigint], "view">;
|
|
175
261
|
batchVote: TypedContractMethod<[
|
|
176
262
|
gauges: AddressLike[],
|
|
177
263
|
weights: BigNumberish[]
|
|
@@ -201,22 +287,66 @@ export interface IGaugeController extends BaseContract {
|
|
|
201
287
|
}
|
|
202
288
|
], "view">;
|
|
203
289
|
getCurrentEpoch: TypedContractMethod<[], [bigint], "view">;
|
|
290
|
+
getExpiredGaugeVotePower: TypedContractMethod<[
|
|
291
|
+
user: AddressLike
|
|
292
|
+
], [
|
|
293
|
+
[bigint, string[]] & {
|
|
294
|
+
expiredGaugePower: bigint;
|
|
295
|
+
}
|
|
296
|
+
], "view">;
|
|
204
297
|
getGaugeRelativeWeight: TypedContractMethod<[
|
|
205
298
|
gauge: AddressLike,
|
|
206
299
|
epoch: BigNumberish
|
|
207
300
|
], [
|
|
208
|
-
bigint
|
|
301
|
+
[bigint, bigint]
|
|
209
302
|
], "nonpayable">;
|
|
210
303
|
getGaugeRelativeWeightView: TypedContractMethod<[
|
|
211
304
|
gauge: AddressLike,
|
|
212
305
|
epoch: BigNumberish
|
|
213
306
|
], [
|
|
214
|
-
bigint
|
|
307
|
+
[bigint, bigint]
|
|
215
308
|
], "view">;
|
|
216
309
|
getGaugeWeight: TypedContractMethod<[gauge: AddressLike], [bigint], "view">;
|
|
310
|
+
getNextEpoch: TypedContractMethod<[], [bigint], "view">;
|
|
311
|
+
getRegisteredGaugeList: TypedContractMethod<[], [string[]], "view">;
|
|
217
312
|
getTotalWeight: TypedContractMethod<[], [bigint], "view">;
|
|
218
|
-
|
|
313
|
+
getUserGaugeVotePower: TypedContractMethod<[
|
|
314
|
+
user: AddressLike,
|
|
315
|
+
gauge: AddressLike
|
|
316
|
+
], [
|
|
317
|
+
bigint
|
|
318
|
+
], "view">;
|
|
319
|
+
isGaugeActive: TypedContractMethod<[gauge: AddressLike], [boolean], "view">;
|
|
320
|
+
isPaused: TypedContractMethod<[], [boolean], "view">;
|
|
219
321
|
kick: TypedContractMethod<[user: AddressLike], [void], "nonpayable">;
|
|
322
|
+
removeGauge: TypedContractMethod<[
|
|
323
|
+
gaugeAddress: AddressLike,
|
|
324
|
+
recipient: AddressLike
|
|
325
|
+
], [
|
|
326
|
+
void
|
|
327
|
+
], "nonpayable">;
|
|
328
|
+
removePowerFromGauge: TypedContractMethod<[
|
|
329
|
+
gauge: AddressLike
|
|
330
|
+
], [
|
|
331
|
+
void
|
|
332
|
+
], "nonpayable">;
|
|
333
|
+
setEmergencyGaugePause: TypedContractMethod<[
|
|
334
|
+
gauge: AddressLike,
|
|
335
|
+
paused: boolean
|
|
336
|
+
], [
|
|
337
|
+
void
|
|
338
|
+
], "nonpayable">;
|
|
339
|
+
setEmergencyGaugePauseBatch: TypedContractMethod<[
|
|
340
|
+
gaugeList: AddressLike[],
|
|
341
|
+
status: boolean[]
|
|
342
|
+
], [
|
|
343
|
+
void
|
|
344
|
+
], "nonpayable">;
|
|
345
|
+
setEmergencyPause: TypedContractMethod<[
|
|
346
|
+
paused: boolean
|
|
347
|
+
], [
|
|
348
|
+
void
|
|
349
|
+
], "nonpayable">;
|
|
220
350
|
veToken: TypedContractMethod<[], [string], "view">;
|
|
221
351
|
vote: TypedContractMethod<[
|
|
222
352
|
gauge: AddressLike,
|
|
@@ -227,6 +357,7 @@ export interface IGaugeController extends BaseContract {
|
|
|
227
357
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
228
358
|
getFunction(nameOrSignature: "MAX_BOOST"): TypedContractMethod<[], [bigint], "view">;
|
|
229
359
|
getFunction(nameOrSignature: "MIN_BOOST"): TypedContractMethod<[], [bigint], "view">;
|
|
360
|
+
getFunction(nameOrSignature: "activeGaugeCount"): TypedContractMethod<[], [bigint], "view">;
|
|
230
361
|
getFunction(nameOrSignature: "batchVote"): TypedContractMethod<[
|
|
231
362
|
gauges: AddressLike[],
|
|
232
363
|
weights: BigNumberish[]
|
|
@@ -256,22 +387,58 @@ export interface IGaugeController extends BaseContract {
|
|
|
256
387
|
}
|
|
257
388
|
], "view">;
|
|
258
389
|
getFunction(nameOrSignature: "getCurrentEpoch"): TypedContractMethod<[], [bigint], "view">;
|
|
390
|
+
getFunction(nameOrSignature: "getExpiredGaugeVotePower"): TypedContractMethod<[
|
|
391
|
+
user: AddressLike
|
|
392
|
+
], [
|
|
393
|
+
[bigint, string[]] & {
|
|
394
|
+
expiredGaugePower: bigint;
|
|
395
|
+
}
|
|
396
|
+
], "view">;
|
|
259
397
|
getFunction(nameOrSignature: "getGaugeRelativeWeight"): TypedContractMethod<[
|
|
260
398
|
gauge: AddressLike,
|
|
261
399
|
epoch: BigNumberish
|
|
262
400
|
], [
|
|
263
|
-
bigint
|
|
401
|
+
[bigint, bigint]
|
|
264
402
|
], "nonpayable">;
|
|
265
403
|
getFunction(nameOrSignature: "getGaugeRelativeWeightView"): TypedContractMethod<[
|
|
266
404
|
gauge: AddressLike,
|
|
267
405
|
epoch: BigNumberish
|
|
268
406
|
], [
|
|
269
|
-
bigint
|
|
407
|
+
[bigint, bigint]
|
|
270
408
|
], "view">;
|
|
271
409
|
getFunction(nameOrSignature: "getGaugeWeight"): TypedContractMethod<[gauge: AddressLike], [bigint], "view">;
|
|
410
|
+
getFunction(nameOrSignature: "getNextEpoch"): TypedContractMethod<[], [bigint], "view">;
|
|
411
|
+
getFunction(nameOrSignature: "getRegisteredGaugeList"): TypedContractMethod<[], [string[]], "view">;
|
|
272
412
|
getFunction(nameOrSignature: "getTotalWeight"): TypedContractMethod<[], [bigint], "view">;
|
|
273
|
-
getFunction(nameOrSignature: "
|
|
413
|
+
getFunction(nameOrSignature: "getUserGaugeVotePower"): TypedContractMethod<[
|
|
414
|
+
user: AddressLike,
|
|
415
|
+
gauge: AddressLike
|
|
416
|
+
], [
|
|
417
|
+
bigint
|
|
418
|
+
], "view">;
|
|
419
|
+
getFunction(nameOrSignature: "isGaugeActive"): TypedContractMethod<[gauge: AddressLike], [boolean], "view">;
|
|
420
|
+
getFunction(nameOrSignature: "isPaused"): TypedContractMethod<[], [boolean], "view">;
|
|
274
421
|
getFunction(nameOrSignature: "kick"): TypedContractMethod<[user: AddressLike], [void], "nonpayable">;
|
|
422
|
+
getFunction(nameOrSignature: "removeGauge"): TypedContractMethod<[
|
|
423
|
+
gaugeAddress: AddressLike,
|
|
424
|
+
recipient: AddressLike
|
|
425
|
+
], [
|
|
426
|
+
void
|
|
427
|
+
], "nonpayable">;
|
|
428
|
+
getFunction(nameOrSignature: "removePowerFromGauge"): TypedContractMethod<[gauge: AddressLike], [void], "nonpayable">;
|
|
429
|
+
getFunction(nameOrSignature: "setEmergencyGaugePause"): TypedContractMethod<[
|
|
430
|
+
gauge: AddressLike,
|
|
431
|
+
paused: boolean
|
|
432
|
+
], [
|
|
433
|
+
void
|
|
434
|
+
], "nonpayable">;
|
|
435
|
+
getFunction(nameOrSignature: "setEmergencyGaugePauseBatch"): TypedContractMethod<[
|
|
436
|
+
gaugeList: AddressLike[],
|
|
437
|
+
status: boolean[]
|
|
438
|
+
], [
|
|
439
|
+
void
|
|
440
|
+
], "nonpayable">;
|
|
441
|
+
getFunction(nameOrSignature: "setEmergencyPause"): TypedContractMethod<[paused: boolean], [void], "nonpayable">;
|
|
275
442
|
getFunction(nameOrSignature: "veToken"): TypedContractMethod<[], [string], "view">;
|
|
276
443
|
getFunction(nameOrSignature: "vote"): TypedContractMethod<[
|
|
277
444
|
gauge: AddressLike,
|
|
@@ -280,32 +447,41 @@ export interface IGaugeController extends BaseContract {
|
|
|
280
447
|
void
|
|
281
448
|
], "nonpayable">;
|
|
282
449
|
getEvent(key: "BoostAmplificationToggled"): TypedContractEvent<BoostAmplificationToggledEvent.InputTuple, BoostAmplificationToggledEvent.OutputTuple, BoostAmplificationToggledEvent.OutputObject>;
|
|
450
|
+
getEvent(key: "EmergencyGaugePauseUpdated"): TypedContractEvent<EmergencyGaugePauseUpdatedEvent.InputTuple, EmergencyGaugePauseUpdatedEvent.OutputTuple, EmergencyGaugePauseUpdatedEvent.OutputObject>;
|
|
283
451
|
getEvent(key: "EmergencyPauseUpdated"): TypedContractEvent<EmergencyPauseUpdatedEvent.InputTuple, EmergencyPauseUpdatedEvent.OutputTuple, EmergencyPauseUpdatedEvent.OutputObject>;
|
|
284
|
-
getEvent(key: "EmergencyShutdown"): TypedContractEvent<EmergencyShutdownEvent.InputTuple, EmergencyShutdownEvent.OutputTuple, EmergencyShutdownEvent.OutputObject>;
|
|
285
452
|
getEvent(key: "GaugeAdded"): TypedContractEvent<GaugeAddedEvent.InputTuple, GaugeAddedEvent.OutputTuple, GaugeAddedEvent.OutputObject>;
|
|
453
|
+
getEvent(key: "GaugeKicked"): TypedContractEvent<GaugeKickedEvent.InputTuple, GaugeKickedEvent.OutputTuple, GaugeKickedEvent.OutputObject>;
|
|
286
454
|
getEvent(key: "GaugeRemoved"): TypedContractEvent<GaugeRemovedEvent.InputTuple, GaugeRemovedEvent.OutputTuple, GaugeRemovedEvent.OutputObject>;
|
|
287
|
-
getEvent(key: "
|
|
455
|
+
getEvent(key: "GaugeRewardsDistributorUpdated"): TypedContractEvent<GaugeRewardsDistributorUpdatedEvent.InputTuple, GaugeRewardsDistributorUpdatedEvent.OutputTuple, GaugeRewardsDistributorUpdatedEvent.OutputObject>;
|
|
456
|
+
getEvent(key: "MaxVoteBucketsUpdated"): TypedContractEvent<MaxVoteBucketsUpdatedEvent.InputTuple, MaxVoteBucketsUpdatedEvent.OutputTuple, MaxVoteBucketsUpdatedEvent.OutputObject>;
|
|
288
457
|
getEvent(key: "VeBoostProxyUpdated"): TypedContractEvent<VeBoostProxyUpdatedEvent.InputTuple, VeBoostProxyUpdatedEvent.OutputTuple, VeBoostProxyUpdatedEvent.OutputObject>;
|
|
289
458
|
getEvent(key: "VoteWeightUpdated"): TypedContractEvent<VoteWeightUpdatedEvent.InputTuple, VoteWeightUpdatedEvent.OutputTuple, VoteWeightUpdatedEvent.OutputObject>;
|
|
290
459
|
getEvent(key: "VotesKicked"): TypedContractEvent<VotesKickedEvent.InputTuple, VotesKickedEvent.OutputTuple, VotesKickedEvent.OutputObject>;
|
|
460
|
+
getEvent(key: "VotingPowerRemovedInactiveGauge"): TypedContractEvent<VotingPowerRemovedInactiveGaugeEvent.InputTuple, VotingPowerRemovedInactiveGaugeEvent.OutputTuple, VotingPowerRemovedInactiveGaugeEvent.OutputObject>;
|
|
291
461
|
filters: {
|
|
292
462
|
"BoostAmplificationToggled(address,bool)": TypedContractEvent<BoostAmplificationToggledEvent.InputTuple, BoostAmplificationToggledEvent.OutputTuple, BoostAmplificationToggledEvent.OutputObject>;
|
|
293
463
|
BoostAmplificationToggled: TypedContractEvent<BoostAmplificationToggledEvent.InputTuple, BoostAmplificationToggledEvent.OutputTuple, BoostAmplificationToggledEvent.OutputObject>;
|
|
464
|
+
"EmergencyGaugePauseUpdated(address,bool,address)": TypedContractEvent<EmergencyGaugePauseUpdatedEvent.InputTuple, EmergencyGaugePauseUpdatedEvent.OutputTuple, EmergencyGaugePauseUpdatedEvent.OutputObject>;
|
|
465
|
+
EmergencyGaugePauseUpdated: TypedContractEvent<EmergencyGaugePauseUpdatedEvent.InputTuple, EmergencyGaugePauseUpdatedEvent.OutputTuple, EmergencyGaugePauseUpdatedEvent.OutputObject>;
|
|
294
466
|
"EmergencyPauseUpdated(bool)": TypedContractEvent<EmergencyPauseUpdatedEvent.InputTuple, EmergencyPauseUpdatedEvent.OutputTuple, EmergencyPauseUpdatedEvent.OutputObject>;
|
|
295
467
|
EmergencyPauseUpdated: TypedContractEvent<EmergencyPauseUpdatedEvent.InputTuple, EmergencyPauseUpdatedEvent.OutputTuple, EmergencyPauseUpdatedEvent.OutputObject>;
|
|
296
|
-
"EmergencyShutdown(address,address)": TypedContractEvent<EmergencyShutdownEvent.InputTuple, EmergencyShutdownEvent.OutputTuple, EmergencyShutdownEvent.OutputObject>;
|
|
297
|
-
EmergencyShutdown: TypedContractEvent<EmergencyShutdownEvent.InputTuple, EmergencyShutdownEvent.OutputTuple, EmergencyShutdownEvent.OutputObject>;
|
|
298
468
|
"GaugeAdded(address)": TypedContractEvent<GaugeAddedEvent.InputTuple, GaugeAddedEvent.OutputTuple, GaugeAddedEvent.OutputObject>;
|
|
299
469
|
GaugeAdded: TypedContractEvent<GaugeAddedEvent.InputTuple, GaugeAddedEvent.OutputTuple, GaugeAddedEvent.OutputObject>;
|
|
300
|
-
"
|
|
470
|
+
"GaugeKicked(address,uint256,uint256)": TypedContractEvent<GaugeKickedEvent.InputTuple, GaugeKickedEvent.OutputTuple, GaugeKickedEvent.OutputObject>;
|
|
471
|
+
GaugeKicked: TypedContractEvent<GaugeKickedEvent.InputTuple, GaugeKickedEvent.OutputTuple, GaugeKickedEvent.OutputObject>;
|
|
472
|
+
"GaugeRemoved(address,uint256)": TypedContractEvent<GaugeRemovedEvent.InputTuple, GaugeRemovedEvent.OutputTuple, GaugeRemovedEvent.OutputObject>;
|
|
301
473
|
GaugeRemoved: TypedContractEvent<GaugeRemovedEvent.InputTuple, GaugeRemovedEvent.OutputTuple, GaugeRemovedEvent.OutputObject>;
|
|
302
|
-
"
|
|
303
|
-
|
|
474
|
+
"GaugeRewardsDistributorUpdated(address,address)": TypedContractEvent<GaugeRewardsDistributorUpdatedEvent.InputTuple, GaugeRewardsDistributorUpdatedEvent.OutputTuple, GaugeRewardsDistributorUpdatedEvent.OutputObject>;
|
|
475
|
+
GaugeRewardsDistributorUpdated: TypedContractEvent<GaugeRewardsDistributorUpdatedEvent.InputTuple, GaugeRewardsDistributorUpdatedEvent.OutputTuple, GaugeRewardsDistributorUpdatedEvent.OutputObject>;
|
|
476
|
+
"MaxVoteBucketsUpdated(uint256,uint256)": TypedContractEvent<MaxVoteBucketsUpdatedEvent.InputTuple, MaxVoteBucketsUpdatedEvent.OutputTuple, MaxVoteBucketsUpdatedEvent.OutputObject>;
|
|
477
|
+
MaxVoteBucketsUpdated: TypedContractEvent<MaxVoteBucketsUpdatedEvent.InputTuple, MaxVoteBucketsUpdatedEvent.OutputTuple, MaxVoteBucketsUpdatedEvent.OutputObject>;
|
|
304
478
|
"VeBoostProxyUpdated(address)": TypedContractEvent<VeBoostProxyUpdatedEvent.InputTuple, VeBoostProxyUpdatedEvent.OutputTuple, VeBoostProxyUpdatedEvent.OutputObject>;
|
|
305
479
|
VeBoostProxyUpdated: TypedContractEvent<VeBoostProxyUpdatedEvent.InputTuple, VeBoostProxyUpdatedEvent.OutputTuple, VeBoostProxyUpdatedEvent.OutputObject>;
|
|
306
480
|
"VoteWeightUpdated(address,address,uint256,uint256,uint256)": TypedContractEvent<VoteWeightUpdatedEvent.InputTuple, VoteWeightUpdatedEvent.OutputTuple, VoteWeightUpdatedEvent.OutputObject>;
|
|
307
481
|
VoteWeightUpdated: TypedContractEvent<VoteWeightUpdatedEvent.InputTuple, VoteWeightUpdatedEvent.OutputTuple, VoteWeightUpdatedEvent.OutputObject>;
|
|
308
482
|
"VotesKicked(address,uint256)": TypedContractEvent<VotesKickedEvent.InputTuple, VotesKickedEvent.OutputTuple, VotesKickedEvent.OutputObject>;
|
|
309
483
|
VotesKicked: TypedContractEvent<VotesKickedEvent.InputTuple, VotesKickedEvent.OutputTuple, VotesKickedEvent.OutputObject>;
|
|
484
|
+
"VotingPowerRemovedInactiveGauge(address,uint256,uint256)": TypedContractEvent<VotingPowerRemovedInactiveGaugeEvent.InputTuple, VotingPowerRemovedInactiveGaugeEvent.OutputTuple, VotingPowerRemovedInactiveGaugeEvent.OutputObject>;
|
|
485
|
+
VotingPowerRemovedInactiveGauge: TypedContractEvent<VotingPowerRemovedInactiveGaugeEvent.InputTuple, VotingPowerRemovedInactiveGaugeEvent.OutputTuple, VotingPowerRemovedInactiveGaugeEvent.OutputObject>;
|
|
310
486
|
};
|
|
311
487
|
}
|