@berachain/berajs 0.2.12 → 0.3.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/abi/bend/bundler.d.ts +100 -0
- package/dist/abi/bend/bundler.d.ts.map +1 -0
- package/dist/abi/bend/generalAdapter.d.ts +651 -0
- package/dist/abi/bend/generalAdapter.d.ts.map +1 -0
- package/dist/abi/bend/morphoVault.d.ts +1991 -0
- package/dist/abi/bend/morphoVault.d.ts.map +1 -0
- package/dist/abi/bend/publicAllocator.d.ts +448 -0
- package/dist/abi/bend/publicAllocator.d.ts.map +1 -0
- package/dist/abi/enso/ensoRouterAbi.d.ts +215 -0
- package/dist/abi/enso/ensoRouterAbi.d.ts.map +1 -0
- package/dist/abi/enso/ensoWalletV2Factory.d.ts +16 -0
- package/dist/abi/enso/ensoWalletV2Factory.d.ts.map +1 -0
- package/dist/abi/exports.d.ts +13 -6574
- package/dist/abi/exports.d.ts.map +1 -0
- package/dist/abi/exports.mjs +4 -3
- package/dist/abi/exports.mjs.map +1 -0
- package/dist/abi/pyth/pyth.d.ts +434 -0
- package/dist/abi/pyth/pyth.d.ts.map +1 -0
- package/dist/abi/pyth/pythErrors.d.ts +58 -0
- package/dist/abi/pyth/pythErrors.d.ts.map +1 -0
- package/dist/abi/utils/EIP7702StatelessDelegator.d.ts +799 -0
- package/dist/abi/utils/EIP7702StatelessDelegator.d.ts.map +1 -0
- package/dist/abi/utils/bundler3errors.d.ts +18 -0
- package/dist/abi/utils/bundler3errors.d.ts.map +1 -0
- package/dist/abi/utils/commonAbiErrors.d.ts +302 -0
- package/dist/abi/utils/commonAbiErrors.d.ts.map +1 -0
- package/dist/abi/utils/erc20errors.d.ts +167 -0
- package/dist/abi/utils/erc20errors.d.ts.map +1 -0
- package/dist/abi/utils/merkleDistributor.d.ts +655 -0
- package/dist/abi/utils/merkleDistributor.d.ts.map +1 -0
- package/dist/abi/utils/multicall3.d.ts +337 -0
- package/dist/abi/utils/multicall3.d.ts.map +1 -0
- package/dist/abi/utils/openChainErrors.d.ts +126 -0
- package/dist/abi/utils/openChainErrors.d.ts.map +1 -0
- package/dist/abi/utils/thirdwebMinimalAccount.d.ts +869 -0
- package/dist/abi/utils/thirdwebMinimalAccount.d.ts.map +1 -0
- package/dist/abi/utils/upgradableBeacon.d.ts +97 -0
- package/dist/abi/utils/upgradableBeacon.d.ts.map +1 -0
- package/dist/actions/__test/transports.d.ts +18 -0
- package/dist/actions/__test/transports.d.ts.map +1 -0
- package/dist/actions/bend/getConvertToAssets.d.ts +11 -0
- package/dist/actions/bend/getConvertToAssets.d.ts.map +1 -0
- package/dist/actions/bend/getMaxDeposit.d.ts +26 -0
- package/dist/actions/bend/getMaxDeposit.d.ts.map +1 -0
- package/dist/{getApolloClient-MWm_iq4u.d.ts → actions/clients/BeraApolloClient.d.ts} +3 -14
- package/dist/actions/clients/BeraApolloClient.d.ts.map +1 -0
- package/dist/actions/clients/clientName.d.ts +10 -0
- package/dist/actions/clients/clientName.d.ts.map +1 -0
- package/dist/actions/clients/exports.d.ts +6 -62
- package/dist/actions/clients/exports.d.ts.map +1 -0
- package/dist/actions/clients/exports.mjs +30 -10
- package/dist/actions/clients/exports.mjs.map +1 -0
- package/dist/actions/clients/fetchBeep.d.ts +12 -0
- package/dist/actions/clients/fetchBeep.d.ts.map +1 -0
- package/dist/actions/clients/fetchEnso.d.ts +17 -0
- package/dist/actions/clients/fetchEnso.d.ts.map +1 -0
- package/dist/actions/clients/fetchLayerzero.d.ts +12 -0
- package/dist/actions/clients/fetchLayerzero.d.ts.map +1 -0
- package/dist/actions/clients/fetchOpenApi.d.ts +51 -0
- package/dist/actions/clients/fetchOpenApi.d.ts.map +1 -0
- package/dist/actions/clients/getApolloClient.d.ts +11 -0
- package/dist/actions/clients/getApolloClient.d.ts.map +1 -0
- package/dist/actions/clients/getEnsoClient.d.ts +11 -0
- package/dist/actions/clients/getEnsoClient.d.ts.map +1 -0
- package/dist/actions/dex/aggregators/base.d.ts +114 -0
- package/dist/actions/dex/aggregators/base.d.ts.map +1 -0
- package/dist/actions/dex/aggregators/bex.d.ts +36 -0
- package/dist/actions/dex/aggregators/bex.d.ts.map +1 -0
- package/dist/actions/dex/aggregators/bgt.d.ts +17 -0
- package/dist/actions/dex/aggregators/bgt.d.ts.map +1 -0
- package/dist/actions/dex/aggregators/enso/enso.d.ts +15 -0
- package/dist/actions/dex/aggregators/enso/enso.d.ts.map +1 -0
- package/dist/actions/dex/aggregators/enso/ensoErc4626.d.ts +15 -0
- package/dist/actions/dex/aggregators/enso/ensoErc4626.d.ts.map +1 -0
- package/dist/actions/dex/aggregators/erc4626.d.ts +32 -0
- package/dist/actions/dex/aggregators/erc4626.d.ts.map +1 -0
- package/dist/actions/dex/aggregators/fly.d.ts +14 -0
- package/dist/actions/dex/aggregators/fly.d.ts.map +1 -0
- package/dist/actions/dex/aggregators/haiku.d.ts +20 -0
- package/dist/actions/dex/aggregators/haiku.d.ts.map +1 -0
- package/dist/actions/dex/aggregators/honey.d.ts +32 -0
- package/dist/actions/dex/aggregators/honey.d.ts.map +1 -0
- package/dist/actions/dex/aggregators/kyberswap.d.ts +14 -0
- package/dist/actions/dex/aggregators/kyberswap.d.ts.map +1 -0
- package/dist/actions/dex/aggregators/oogabooga.d.ts +13 -0
- package/dist/actions/dex/aggregators/oogabooga.d.ts.map +1 -0
- package/dist/actions/dex/aggregators/openOcean.d.ts +15 -0
- package/dist/actions/dex/aggregators/openOcean.d.ts.map +1 -0
- package/dist/actions/dex/aggregators/wbera.d.ts +18 -0
- package/dist/actions/dex/aggregators/wbera.d.ts.map +1 -0
- package/dist/actions/dex/bSdk.d.ts +3 -0
- package/dist/actions/dex/bSdk.d.ts.map +1 -0
- package/dist/actions/dex/getAllPools.d.ts +58 -0
- package/dist/actions/dex/getAllPools.d.ts.map +1 -0
- package/dist/actions/dex/getApiPool.d.ts +390 -0
- package/dist/actions/dex/getApiPool.d.ts.map +1 -0
- package/dist/actions/dex/getGlobalLiquidityAndSwapVolume.d.ts +3 -0
- package/dist/actions/dex/getGlobalLiquidityAndSwapVolume.d.ts.map +1 -0
- package/dist/actions/dex/getOnChainPool.d.ts +42 -0
- package/dist/actions/dex/getOnChainPool.d.ts.map +1 -0
- package/dist/actions/dex/getPoolEvents.d.ts +7 -0
- package/dist/actions/dex/getPoolEvents.d.ts.map +1 -0
- package/dist/actions/dex/getPoolHistoricalData.d.ts +15 -0
- package/dist/actions/dex/getPoolHistoricalData.d.ts.map +1 -0
- package/dist/actions/dex/getPoolPausedState.d.ts +10 -0
- package/dist/actions/dex/getPoolPausedState.d.ts.map +1 -0
- package/dist/actions/dex/getPoolWithState.d.ts +4 -0
- package/dist/actions/dex/getPoolWithState.d.ts.map +1 -0
- package/dist/actions/dex/getVaultPausedState.d.ts +5 -0
- package/dist/actions/dex/getVaultPausedState.d.ts.map +1 -0
- package/dist/actions/enso/__tests__/helpers.d.ts +24 -0
- package/dist/actions/enso/__tests__/helpers.d.ts.map +1 -0
- package/dist/actions/enso/flashloan.d.ts +41 -0
- package/dist/actions/enso/flashloan.d.ts.map +1 -0
- package/dist/actions/enso/getBendDemultiplyBundle.d.ts +55 -0
- package/dist/actions/enso/getBendDemultiplyBundle.d.ts.map +1 -0
- package/dist/actions/enso/getBendMultiplyBundle.d.ts +70 -0
- package/dist/actions/enso/getBendMultiplyBundle.d.ts.map +1 -0
- package/dist/actions/enso/getEnsoUserTokensWithBalances.d.ts +16 -0
- package/dist/actions/enso/getEnsoUserTokensWithBalances.d.ts.map +1 -0
- package/dist/actions/enso/util.d.ts +35 -0
- package/dist/actions/enso/util.d.ts.map +1 -0
- package/dist/actions/exports.d.ts +98 -1682
- package/dist/actions/exports.d.ts.map +1 -0
- package/dist/actions/exports.mjs +40 -40
- package/dist/actions/exports.mjs.map +1 -0
- package/dist/actions/governance/checkProposalField.d.ts +27 -0
- package/dist/actions/governance/checkProposalField.d.ts.map +1 -0
- package/dist/actions/governance/computeActualStatus.d.ts +14 -0
- package/dist/actions/governance/computeActualStatus.d.ts.map +1 -0
- package/dist/actions/governance/constants.d.ts +7 -0
- package/dist/actions/governance/constants.d.ts.map +1 -0
- package/dist/actions/governance/exports.d.ts +10 -132
- package/dist/actions/governance/exports.d.ts.map +1 -0
- package/dist/actions/governance/exports.mjs +5 -4
- package/dist/actions/governance/exports.mjs.map +1 -0
- package/dist/actions/governance/getAllProposals.d.ts +16 -0
- package/dist/actions/governance/getAllProposals.d.ts.map +1 -0
- package/dist/actions/governance/getBodyErrors.d.ts +10 -0
- package/dist/actions/governance/getBodyErrors.d.ts.map +1 -0
- package/dist/actions/governance/getDecodedFunctionData.d.ts +30 -0
- package/dist/actions/governance/getDecodedFunctionData.d.ts.map +1 -0
- package/dist/actions/governance/getProposalDetails.d.ts +10 -0
- package/dist/actions/governance/getProposalDetails.d.ts.map +1 -0
- package/dist/actions/governance/getProposalFromTx.d.ts +18 -0
- package/dist/actions/governance/getProposalFromTx.d.ts.map +1 -0
- package/dist/actions/governance/getProposalParams.d.ts +15 -0
- package/dist/actions/governance/getProposalParams.d.ts.map +1 -0
- package/dist/actions/governance/getProposalVotes.d.ts +10 -0
- package/dist/actions/governance/getProposalVotes.d.ts.map +1 -0
- package/dist/actions/governance/getQuorum.d.ts +13 -0
- package/dist/actions/governance/getQuorum.d.ts.map +1 -0
- package/dist/actions/governance/parseProposalBody.d.ts +13 -0
- package/dist/actions/governance/parseProposalBody.d.ts.map +1 -0
- package/dist/actions/honey/getChartData.d.ts +13 -0
- package/dist/actions/honey/getChartData.d.ts.map +1 -0
- package/dist/actions/honey/getCollateralWeights.d.ts +19 -0
- package/dist/actions/honey/getCollateralWeights.d.ts.map +1 -0
- package/dist/actions/honey/getGlobalCapLimit.d.ts +24 -0
- package/dist/actions/honey/getGlobalCapLimit.d.ts.map +1 -0
- package/dist/actions/honey/getHoney24hVolume.d.ts +9 -0
- package/dist/actions/honey/getHoney24hVolume.d.ts.map +1 -0
- package/dist/actions/honey/getHoneyCollaterals.d.ts +33 -0
- package/dist/actions/honey/getHoneyCollaterals.d.ts.map +1 -0
- package/dist/actions/honey/getHoneyFees.d.ts +24 -0
- package/dist/actions/honey/getHoneyFees.d.ts.map +1 -0
- package/dist/actions/honey/getHoneyPausedState.d.ts +9 -0
- package/dist/actions/honey/getHoneyPausedState.d.ts.map +1 -0
- package/dist/actions/honey/getHoneyPreview.d.ts +52 -0
- package/dist/actions/honey/getHoneyPreview.d.ts.map +1 -0
- package/dist/actions/honey/getHoneyPythPriceOracle.d.ts +10 -0
- package/dist/actions/honey/getHoneyPythPriceOracle.d.ts.map +1 -0
- package/dist/actions/honey/getHoneyRootPriceOracle.d.ts +9 -0
- package/dist/actions/honey/getHoneyRootPriceOracle.d.ts.map +1 -0
- package/dist/actions/honey/getHoneyTxns.d.ts +21 -0
- package/dist/actions/honey/getHoneyTxns.d.ts.map +1 -0
- package/dist/actions/honey/getHoneyVaultsBalance.d.ts +13 -0
- package/dist/actions/honey/getHoneyVaultsBalance.d.ts.map +1 -0
- package/dist/actions/honey/getPythLatestPrices.d.ts +26 -0
- package/dist/actions/honey/getPythLatestPrices.d.ts.map +1 -0
- package/dist/actions/honey/getRelativeCapLimit.d.ts +23 -0
- package/dist/actions/honey/getRelativeCapLimit.d.ts.map +1 -0
- package/dist/actions/honey/getSharesWithoutFees.d.ts +25 -0
- package/dist/actions/honey/getSharesWithoutFees.d.ts.map +1 -0
- package/dist/actions/honey/getSwapPayload.d.ts +24 -0
- package/dist/actions/honey/getSwapPayload.d.ts.map +1 -0
- package/dist/actions/honey/isBadCollateralAsset.d.ts +24 -0
- package/dist/actions/honey/isBadCollateralAsset.d.ts.map +1 -0
- package/dist/actions/honey/isBasketModeEnabled.d.ts +11 -0
- package/dist/actions/honey/isBasketModeEnabled.d.ts.map +1 -0
- package/dist/actions/misc/getBlockTimestamp.d.ts +14 -0
- package/dist/actions/misc/getBlockTimestamp.d.ts.map +1 -0
- package/dist/actions/pol/getAutoclaimedIncentives.d.ts +14 -0
- package/dist/actions/pol/getAutoclaimedIncentives.d.ts.map +1 -0
- package/dist/actions/pol/getAutoclaimedIncentivesTxHash.d.ts +14 -0
- package/dist/actions/pol/getAutoclaimedIncentivesTxHash.d.ts.map +1 -0
- package/dist/actions/pol/getBGTGlobalInfo.d.ts +10 -0
- package/dist/actions/pol/getBGTGlobalInfo.d.ts.map +1 -0
- package/dist/actions/pol/getBeraTokenTotalSupply.d.ts +7 -0
- package/dist/actions/pol/getBeraTokenTotalSupply.d.ts.map +1 -0
- package/dist/actions/pol/getBgtAprSimulation.d.ts +88 -0
- package/dist/actions/pol/getBgtAprSimulation.d.ts.map +1 -0
- package/dist/actions/pol/getBgtTokenTotalBoosts.d.ts +6 -0
- package/dist/actions/pol/getBgtTokenTotalBoosts.d.ts.map +1 -0
- package/dist/actions/pol/getBgtTokenTotalSupply.d.ts +6 -0
- package/dist/actions/pol/getBgtTokenTotalSupply.d.ts.map +1 -0
- package/dist/actions/pol/getBlockTime.d.ts +7 -0
- package/dist/actions/pol/getBlockTime.d.ts.map +1 -0
- package/dist/actions/pol/getEarnedStakedBeraVault.d.ts +19 -0
- package/dist/actions/pol/getEarnedStakedBeraVault.d.ts.map +1 -0
- package/dist/actions/pol/getGlobalData.d.ts +8 -0
- package/dist/actions/pol/getGlobalData.d.ts.map +1 -0
- package/dist/actions/pol/getHeroEarnVaults.d.ts +35 -0
- package/dist/actions/pol/getHeroEarnVaults.d.ts.map +1 -0
- package/dist/actions/pol/getLSTStakeConfig.d.ts +13 -0
- package/dist/actions/pol/getLSTStakeConfig.d.ts.map +1 -0
- package/dist/actions/pol/getMarkets.d.ts +9 -0
- package/dist/actions/pol/getMarkets.d.ts.map +1 -0
- package/dist/actions/pol/getRewardTokenToBeraRate.d.ts +12 -0
- package/dist/actions/pol/getRewardTokenToBeraRate.d.ts.map +1 -0
- package/dist/actions/pol/getRewardVault.d.ts +13 -0
- package/dist/actions/pol/getRewardVault.d.ts.map +1 -0
- package/dist/actions/pol/getRewardVaultBeaconImplementation.d.ts +8 -0
- package/dist/actions/pol/getRewardVaultBeaconImplementation.d.ts.map +1 -0
- package/dist/actions/pol/getRewardVaultDurationConstants.d.ts +12 -0
- package/dist/actions/pol/getRewardVaultDurationConstants.d.ts.map +1 -0
- package/dist/actions/pol/getRewardVaultEarnedRewards.d.ts +14 -0
- package/dist/actions/pol/getRewardVaultEarnedRewards.d.ts.map +1 -0
- package/dist/actions/pol/getRewardVaultFromToken.d.ts +7 -0
- package/dist/actions/pol/getRewardVaultFromToken.d.ts.map +1 -0
- package/dist/actions/pol/getRewardVaultIncentives.d.ts +23 -0
- package/dist/actions/pol/getRewardVaultIncentives.d.ts.map +1 -0
- package/dist/actions/pol/getRewardVaultRewards.d.ts +38 -0
- package/dist/actions/pol/getRewardVaultRewards.d.ts.map +1 -0
- package/dist/actions/pol/getRewardVaultStakingToken.d.ts +6 -0
- package/dist/actions/pol/getRewardVaultStakingToken.d.ts.map +1 -0
- package/dist/actions/pol/getRewardVaults.d.ts +14 -0
- package/dist/actions/pol/getRewardVaults.d.ts.map +1 -0
- package/dist/actions/pol/getSWBeraVaultMetadata.d.ts +19 -0
- package/dist/actions/pol/getSWBeraVaultMetadata.d.ts.map +1 -0
- package/dist/actions/pol/getSWBeraWithdrawal.d.ts +30 -0
- package/dist/actions/pol/getSWBeraWithdrawal.d.ts.map +1 -0
- package/dist/actions/pol/getStakeWithdrawalCooldown.d.ts +6 -0
- package/dist/actions/pol/getStakeWithdrawalCooldown.d.ts.map +1 -0
- package/dist/actions/pol/getStakedBeraAPY.d.ts +14 -0
- package/dist/actions/pol/getStakedBeraAPY.d.ts.map +1 -0
- package/dist/actions/pol/getStakedBeraSnapshots.d.ts +22 -0
- package/dist/actions/pol/getStakedBeraSnapshots.d.ts.map +1 -0
- package/dist/actions/pol/getStakingDailyAssets.d.ts +10 -0
- package/dist/actions/pol/getStakingDailyAssets.d.ts.map +1 -0
- package/dist/actions/pol/getStakingTokenInformation.d.ts +9 -0
- package/dist/actions/pol/getStakingTokenInformation.d.ts.map +1 -0
- package/dist/actions/pol/getTotalStakedAmount.d.ts +13 -0
- package/dist/actions/pol/getTotalStakedAmount.d.ts.map +1 -0
- package/dist/actions/pol/getUserVaultInfo.d.ts +9 -0
- package/dist/actions/pol/getUserVaultInfo.d.ts.map +1 -0
- package/dist/actions/pol/getUserVaults.d.ts +18 -0
- package/dist/actions/pol/getUserVaults.d.ts.map +1 -0
- package/dist/actions/pol/getUserVaultsBalance.d.ts +11 -0
- package/dist/actions/pol/getUserVaultsBalance.d.ts.map +1 -0
- package/dist/actions/pol/getVaultHistory.d.ts +8 -0
- package/dist/actions/pol/getVaultHistory.d.ts.map +1 -0
- package/dist/actions/pol/getVaultValidators.d.ts +7 -0
- package/dist/actions/pol/getVaultValidators.d.ts.map +1 -0
- package/dist/actions/pol/getVaultsSupply.d.ts +7 -0
- package/dist/actions/pol/getVaultsSupply.d.ts.map +1 -0
- package/dist/actions/prices/getTokenCurrentPrices.d.ts +5 -0
- package/dist/actions/prices/getTokenCurrentPrices.d.ts.map +1 -0
- package/dist/actions/pyth/getHoneyPythFeeds.d.ts +12 -0
- package/dist/actions/pyth/getHoneyPythFeeds.d.ts.map +1 -0
- package/dist/actions/pyth/getUpdateFee.d.ts +6 -0
- package/dist/actions/pyth/getUpdateFee.d.ts.map +1 -0
- package/dist/actions/server/exports.d.ts +2 -13
- package/dist/actions/server/exports.d.ts.map +1 -0
- package/dist/actions/server/exports.mjs +28 -17
- package/dist/actions/server/exports.mjs.map +1 -0
- package/dist/actions/server/getDailyValidatorBlockStats.d.ts +14 -0
- package/dist/actions/server/getDailyValidatorBlockStats.d.ts.map +1 -0
- package/dist/actions/tokens/getAllowances.d.ts +10 -0
- package/dist/actions/tokens/getAllowances.d.ts.map +1 -0
- package/dist/actions/tokens/getTokenInformation.d.ts +11 -0
- package/dist/actions/tokens/getTokenInformation.d.ts.map +1 -0
- package/dist/actions/tokens/getTokens.d.ts +5 -0
- package/dist/actions/tokens/getTokens.d.ts.map +1 -0
- package/dist/actions/tokens/getUnderlyingToken.d.ts +12 -0
- package/dist/actions/tokens/getUnderlyingToken.d.ts.map +1 -0
- package/dist/actions/tokens/getWalletBalances.d.ts +499 -0
- package/dist/actions/tokens/getWalletBalances.d.ts.map +1 -0
- package/dist/actions/transactions/beraWriteContract.d.ts +19 -0
- package/dist/actions/transactions/beraWriteContract.d.ts.map +1 -0
- package/dist/actions/validators/getActiveBoostAndCommissionChangeDelay.d.ts +30 -0
- package/dist/actions/validators/getActiveBoostAndCommissionChangeDelay.d.ts.map +1 -0
- package/dist/actions/validators/getAllValidators.d.ts +5 -0
- package/dist/actions/validators/getAllValidators.d.ts.map +1 -0
- package/dist/actions/validators/getApiEnrichedAllocation.d.ts +6 -0
- package/dist/actions/validators/getApiEnrichedAllocation.d.ts.map +1 -0
- package/dist/actions/validators/getApiValidator.d.ts +9 -0
- package/dist/actions/validators/getApiValidator.d.ts.map +1 -0
- package/dist/actions/validators/getBaselineRewardAllocation.d.ts +5 -0
- package/dist/actions/validators/getBaselineRewardAllocation.d.ts.map +1 -0
- package/dist/actions/validators/getDefaultRewardAllocation.d.ts +7 -0
- package/dist/actions/validators/getDefaultRewardAllocation.d.ts.map +1 -0
- package/dist/actions/validators/getStakingPoolBatch.d.ts +13 -0
- package/dist/actions/validators/getStakingPoolBatch.d.ts.map +1 -0
- package/dist/actions/validators/getUserActiveValidators.d.ts +48 -0
- package/dist/actions/validators/getUserActiveValidators.d.ts.map +1 -0
- package/dist/actions/validators/getUserBoosts.d.ts +7 -0
- package/dist/actions/validators/getUserBoosts.d.ts.map +1 -0
- package/dist/actions/validators/getUserBoostsOnValidator.d.ts +25 -0
- package/dist/actions/validators/getUserBoostsOnValidator.d.ts.map +1 -0
- package/dist/actions/validators/getUserStakingPositions.d.ts +20 -0
- package/dist/actions/validators/getUserStakingPositions.d.ts.map +1 -0
- package/dist/actions/validators/getValidatorCommission.d.ts +6 -0
- package/dist/actions/validators/getValidatorCommission.d.ts.map +1 -0
- package/dist/actions/validators/getValidatorEstimatedBgtPerYear.d.ts +3 -0
- package/dist/actions/validators/getValidatorEstimatedBgtPerYear.d.ts.map +1 -0
- package/dist/actions/validators/getValidatorIncentiveDistribution.d.ts +8 -0
- package/dist/actions/validators/getValidatorIncentiveDistribution.d.ts.map +1 -0
- package/dist/actions/validators/getValidatorOperatorAddress.d.ts +6 -0
- package/dist/actions/validators/getValidatorOperatorAddress.d.ts.map +1 -0
- package/dist/actions/validators/getValidatorQueuedCommission.d.ts +10 -0
- package/dist/actions/validators/getValidatorQueuedCommission.d.ts.map +1 -0
- package/dist/actions/validators/getValidatorQueuedOperatorAddress.d.ts +7 -0
- package/dist/actions/validators/getValidatorQueuedOperatorAddress.d.ts.map +1 -0
- package/dist/actions/validators/getValidatorQueuedRewardAllocation.d.ts +7 -0
- package/dist/actions/validators/getValidatorQueuedRewardAllocation.d.ts.map +1 -0
- package/dist/actions/validators/getValidatorRewardAllocation.d.ts +56 -0
- package/dist/actions/validators/getValidatorRewardAllocation.d.ts.map +1 -0
- package/dist/actions/validators/getValidatorRewardAllocatorAddress.d.ts +12 -0
- package/dist/actions/validators/getValidatorRewardAllocatorAddress.d.ts.map +1 -0
- package/dist/actions/validators/utils/aggregateValidatorIncentives.d.ts +6 -0
- package/dist/actions/validators/utils/aggregateValidatorIncentives.d.ts.map +1 -0
- package/dist/actions/validators/utils/getValidatorBoostApy.d.ts +7 -0
- package/dist/actions/validators/utils/getValidatorBoostApy.d.ts.map +1 -0
- package/dist/{chunk-E7YFXBBQ.mjs → chunk-35RACQD4.mjs} +7 -6
- package/dist/chunk-35RACQD4.mjs.map +1 -0
- package/dist/{chunk-T43JPYQS.mjs → chunk-4576RF2K.mjs} +30 -4
- package/dist/chunk-4576RF2K.mjs.map +1 -0
- package/dist/{chunk-W2VODV76.mjs → chunk-5PBYMJRG.mjs} +97 -25
- package/dist/chunk-5PBYMJRG.mjs.map +1 -0
- package/dist/{chunk-QVHEM4BG.mjs → chunk-7KN7TDUC.mjs} +10 -4
- package/dist/chunk-7KN7TDUC.mjs.map +1 -0
- package/dist/chunk-7OESHTBN.mjs +29 -0
- package/dist/chunk-7OESHTBN.mjs.map +1 -0
- package/dist/{chunk-SZ5C44L5.mjs → chunk-BMNEN4OK.mjs} +1 -0
- package/dist/chunk-BMNEN4OK.mjs.map +1 -0
- package/dist/{chunk-O2NQFKJK.mjs → chunk-BSLXKPX4.mjs} +4 -47
- package/dist/chunk-BSLXKPX4.mjs.map +1 -0
- package/dist/{chunk-MKSFQIKC.mjs → chunk-BZKA6DBM.mjs} +15 -16
- package/dist/chunk-BZKA6DBM.mjs.map +1 -0
- package/dist/{chunk-FGION6F6.mjs → chunk-FWRYUIJK.mjs} +3 -2
- package/dist/chunk-FWRYUIJK.mjs.map +1 -0
- package/dist/{chunk-SGIJVHZO.mjs → chunk-GLWPRM33.mjs} +1 -0
- package/dist/chunk-GLWPRM33.mjs.map +1 -0
- package/dist/{chunk-CDK4YV3D.mjs → chunk-GWSTVITN.mjs} +1 -0
- package/dist/chunk-GWSTVITN.mjs.map +1 -0
- package/dist/{chunk-IXIBY5FP.mjs → chunk-HPRLNT6R.mjs} +3 -2
- package/dist/chunk-HPRLNT6R.mjs.map +1 -0
- package/dist/chunk-J6GM7HWX.mjs +19 -0
- package/dist/chunk-J6GM7HWX.mjs.map +1 -0
- package/dist/{chunk-NBYLMO2L.mjs → chunk-JA4DHMTG.mjs} +1 -0
- package/dist/chunk-JA4DHMTG.mjs.map +1 -0
- package/dist/{chunk-DKMAIU74.mjs → chunk-KL6YZ5VR.mjs} +1 -0
- package/dist/chunk-KL6YZ5VR.mjs.map +1 -0
- package/dist/{chunk-RFJGL4MF.mjs → chunk-LL7XR2H5.mjs} +41 -3
- package/dist/chunk-LL7XR2H5.mjs.map +1 -0
- package/dist/{chunk-AUOPN6NK.mjs → chunk-M3MIGSH3.mjs} +2 -1
- package/dist/chunk-M3MIGSH3.mjs.map +1 -0
- package/dist/{chunk-KHXJDYA4.mjs → chunk-MVNQY2D4.mjs} +34 -3
- package/dist/chunk-MVNQY2D4.mjs.map +1 -0
- package/dist/{chunk-4ML4Y6UN.mjs → chunk-RM227WHI.mjs} +1 -0
- package/dist/chunk-RM227WHI.mjs.map +1 -0
- package/dist/{chunk-DQRH5VE3.mjs → chunk-SC3BSCTN.mjs} +2 -1
- package/dist/chunk-SC3BSCTN.mjs.map +1 -0
- package/dist/{chunk-XDG26EG6.mjs → chunk-SMBAW7AG.mjs} +436 -434
- package/dist/chunk-SMBAW7AG.mjs.map +1 -0
- package/dist/{chunk-GY6B3PD5.mjs → chunk-TXWDUJOY.mjs} +12 -1
- package/dist/chunk-TXWDUJOY.mjs.map +1 -0
- package/dist/{chunk-GUURQAME.mjs → chunk-UWJQ6UKG.mjs} +2 -1
- package/dist/chunk-UWJQ6UKG.mjs.map +1 -0
- package/dist/chunk-XO2BFPTB.mjs +50 -0
- package/dist/chunk-XO2BFPTB.mjs.map +1 -0
- package/dist/{chunk-BGMRHTBQ.mjs → chunk-XXKPXNQD.mjs} +1 -1
- package/dist/chunk-XXKPXNQD.mjs.map +1 -0
- package/dist/{chunk-HQCOU6GY.mjs → chunk-ZCEFC2TK.mjs} +1 -0
- package/dist/chunk-ZCEFC2TK.mjs.map +1 -0
- package/dist/{chunk-HYDP32P6.mjs → chunk-ZHV3MQ4F.mjs} +6 -6
- package/dist/chunk-ZHV3MQ4F.mjs.map +1 -0
- package/dist/contexts/BeraFlags/BeraFlags.d.ts +19 -0
- package/dist/contexts/BeraFlags/BeraFlags.d.ts.map +1 -0
- package/dist/contexts/BeraFlags/defaultFlags.d.ts +9 -0
- package/dist/contexts/BeraFlags/defaultFlags.d.ts.map +1 -0
- package/dist/{BexStatusProvider-DRymVlQf.d.ts → contexts/BexStatusProvider.d.ts} +9 -12
- package/dist/contexts/BexStatusProvider.d.ts.map +1 -0
- package/dist/contexts/BlockTimeProvider.d.ts +10 -0
- package/dist/contexts/BlockTimeProvider.d.ts.map +1 -0
- package/dist/contexts/HoneyConfigProvider.d.ts +50 -0
- package/dist/contexts/HoneyConfigProvider.d.ts.map +1 -0
- package/dist/contexts/SwrFallback.d.ts +6 -0
- package/dist/contexts/SwrFallback.d.ts.map +1 -0
- package/dist/contexts/TokensProvider.d.ts +24 -0
- package/dist/contexts/TokensProvider.d.ts.map +1 -0
- package/dist/contexts/exports.d.ts +7 -66
- package/dist/contexts/exports.d.ts.map +1 -0
- package/dist/contexts/exports.mjs +13 -12
- package/dist/contexts/exports.mjs.map +1 -0
- package/dist/data/contracts.d.ts +345 -0
- package/dist/data/contracts.d.ts.map +1 -0
- package/dist/enum/contracts.d.ts +18 -0
- package/dist/enum/contracts.d.ts.map +1 -0
- package/dist/{dex-C_BB0b0O.d.ts → enum/dex.d.ts} +6 -7
- package/dist/enum/dex.d.ts.map +1 -0
- package/dist/enum/exports.d.ts +7 -29
- package/dist/enum/exports.d.ts.map +1 -0
- package/dist/enum/exports.mjs +8 -5
- package/dist/enum/exports.mjs.map +1 -0
- package/dist/enum/governance/exports.d.ts +2 -60
- package/dist/enum/governance/exports.d.ts.map +1 -0
- package/dist/enum/governance/exports.mjs +2 -1
- package/dist/enum/governance/exports.mjs.map +1 -0
- package/dist/enum/governance.d.ts +59 -0
- package/dist/enum/governance.d.ts.map +1 -0
- package/dist/{honey-CYm0RWf4.d.ts → enum/honey.d.ts} +2 -3
- package/dist/enum/honey.d.ts.map +1 -0
- package/dist/enum/polling.d.ts +8 -0
- package/dist/enum/polling.d.ts.map +1 -0
- package/dist/enum/slippage.d.ts +17 -0
- package/dist/enum/slippage.d.ts.map +1 -0
- package/dist/{txnEnum-ByI5dtDi.d.ts → enum/txnEnum.d.ts} +2 -18
- package/dist/enum/txnEnum.d.ts.map +1 -0
- package/dist/{BeraError-7-A5JYy_.d.ts → errors/BeraError.d.ts} +7 -31
- package/dist/errors/BeraError.d.ts.map +1 -0
- package/dist/errors/BeraMonitoring.d.ts +46 -0
- package/dist/errors/BeraMonitoring.d.ts.map +1 -0
- package/dist/errors/BeraTracing.d.ts +58 -0
- package/dist/errors/BeraTracing.d.ts.map +1 -0
- package/dist/errors/InvalidArgumentError.d.ts +59 -0
- package/dist/errors/InvalidArgumentError.d.ts.map +1 -0
- package/dist/errors/NotFoundError.d.ts +25 -0
- package/dist/errors/NotFoundError.d.ts.map +1 -0
- package/dist/errors/RequestError.d.ts +75 -0
- package/dist/errors/RequestError.d.ts.map +1 -0
- package/dist/errors/TransactionFailedError.d.ts +49 -0
- package/dist/errors/TransactionFailedError.d.ts.map +1 -0
- package/dist/errors/assert.d.ts +82 -0
- package/dist/errors/assert.d.ts.map +1 -0
- package/dist/errors/errorMap.d.ts +1084 -0
- package/dist/errors/errorMap.d.ts.map +1 -0
- package/dist/errors/exports.d.ts +13 -328
- package/dist/errors/exports.d.ts.map +1 -0
- package/dist/errors/exports.mjs +9 -6
- package/dist/errors/exports.mjs.map +1 -0
- package/dist/errors/getErrorMessage.d.ts +46 -0
- package/dist/errors/getErrorMessage.d.ts.map +1 -0
- package/dist/errors/getRevertReason.d.ts +53 -0
- package/dist/errors/getRevertReason.d.ts.map +1 -0
- package/dist/errors/initBeraError.d.ts +44 -0
- package/dist/errors/initBeraError.d.ts.map +1 -0
- package/dist/errors/parseViemError.d.ts +88 -0
- package/dist/errors/parseViemError.d.ts.map +1 -0
- package/dist/errors/severity.d.ts +7 -0
- package/dist/errors/severity.d.ts.map +1 -0
- package/dist/errors/spanStatus.d.ts +18 -0
- package/dist/errors/spanStatus.d.ts.map +1 -0
- package/dist/hooks/bend/useGetConvertToAssets.d.ts +9 -0
- package/dist/hooks/bend/useGetConvertToAssets.d.ts.map +1 -0
- package/dist/hooks/dex/useAggregatorsQuotes.d.ts +29 -0
- package/dist/hooks/dex/useAggregatorsQuotes.d.ts.map +1 -0
- package/dist/hooks/dex/useAggregatorsRouterFeeBps.d.ts +2 -0
- package/dist/hooks/dex/useAggregatorsRouterFeeBps.d.ts.map +1 -0
- package/dist/hooks/dex/useAllUserPools.d.ts +68 -0
- package/dist/hooks/dex/useAllUserPools.d.ts.map +1 -0
- package/dist/hooks/dex/useApiPool.d.ts +11 -0
- package/dist/hooks/dex/useApiPool.d.ts.map +1 -0
- package/dist/hooks/dex/useBexStatus.d.ts +2 -0
- package/dist/hooks/dex/useBexStatus.d.ts.map +1 -0
- package/dist/hooks/dex/useCreatePool.d.ts +32 -0
- package/dist/hooks/dex/useCreatePool.d.ts.map +1 -0
- package/dist/hooks/dex/useCrossChainNativeFee.d.ts +32 -0
- package/dist/hooks/dex/useCrossChainNativeFee.d.ts.map +1 -0
- package/dist/hooks/dex/useGlobalLiquidityAndSwapVolume.d.ts +11 -0
- package/dist/hooks/dex/useGlobalLiquidityAndSwapVolume.d.ts.map +1 -0
- package/dist/hooks/dex/useLiquidityMismatch.d.ts +36 -0
- package/dist/hooks/dex/useLiquidityMismatch.d.ts.map +1 -0
- package/dist/hooks/dex/useLpPosition.d.ts +14 -0
- package/dist/hooks/dex/useLpPosition.d.ts.map +1 -0
- package/dist/hooks/dex/useMultipleTokenApprovalsWithSlippage.d.ts +13 -0
- package/dist/hooks/dex/useMultipleTokenApprovalsWithSlippage.d.ts.map +1 -0
- package/dist/hooks/dex/useOnChainPoolData.d.ts +49 -0
- package/dist/hooks/dex/useOnChainPoolData.d.ts.map +1 -0
- package/dist/hooks/dex/usePollPoolCreationRelayerApproval.d.ts +8 -0
- package/dist/hooks/dex/usePollPoolCreationRelayerApproval.d.ts.map +1 -0
- package/dist/hooks/dex/usePool.d.ts +10 -0
- package/dist/hooks/dex/usePool.d.ts.map +1 -0
- package/dist/hooks/dex/usePoolEvents.d.ts +6 -0
- package/dist/hooks/dex/usePoolEvents.d.ts.map +1 -0
- package/dist/hooks/dex/usePoolHistoricalData.d.ts +8 -0
- package/dist/hooks/dex/usePoolHistoricalData.d.ts.map +1 -0
- package/dist/hooks/dex/usePools.d.ts +129 -0
- package/dist/hooks/dex/usePools.d.ts.map +1 -0
- package/dist/hooks/dex/usePriceImpact.d.ts +11 -0
- package/dist/hooks/dex/usePriceImpact.d.ts.map +1 -0
- package/dist/hooks/dex/useSingleAggregatorQuote.d.ts +53 -0
- package/dist/hooks/dex/useSingleAggregatorQuote.d.ts.map +1 -0
- package/dist/hooks/enso/useBendDemultiply.d.ts +18 -0
- package/dist/hooks/enso/useBendDemultiply.d.ts.map +1 -0
- package/dist/hooks/enso/useBendMultiply.d.ts +19 -0
- package/dist/hooks/enso/useBendMultiply.d.ts.map +1 -0
- package/dist/hooks/enso/useBendZapSupply.d.ts +40 -0
- package/dist/hooks/enso/useBendZapSupply.d.ts.map +1 -0
- package/dist/hooks/enso/useEnsoUserTokensWithBalances.d.ts +6 -0
- package/dist/hooks/enso/useEnsoUserTokensWithBalances.d.ts.map +1 -0
- package/dist/hooks/enso/useEnsoWalletV2Address.d.ts +4 -0
- package/dist/hooks/enso/useEnsoWalletV2Address.d.ts.map +1 -0
- package/dist/hooks/enso/useIsBendAuthorized.d.ts +7 -0
- package/dist/hooks/enso/useIsBendAuthorized.d.ts.map +1 -0
- package/dist/hooks/enso/useZapStakeBera.d.ts +23 -0
- package/dist/hooks/enso/useZapStakeBera.d.ts.map +1 -0
- package/dist/hooks/exports.d.ts +106 -1332
- package/dist/hooks/exports.d.ts.map +1 -0
- package/dist/hooks/exports.mjs +868 -1247
- package/dist/hooks/exports.mjs.map +1 -0
- package/dist/hooks/governance/exports.d.ts +15 -186
- package/dist/hooks/governance/exports.d.ts.map +1 -0
- package/dist/hooks/governance/exports.mjs +63 -61
- package/dist/hooks/governance/exports.mjs.map +1 -0
- package/dist/hooks/governance/useCreateProposal.d.ts +13 -0
- package/dist/hooks/governance/useCreateProposal.d.ts.map +1 -0
- package/dist/hooks/governance/useGetPastVotes.d.ts +15 -0
- package/dist/hooks/governance/useGetPastVotes.d.ts.map +1 -0
- package/dist/hooks/governance/useHasVoted.d.ts +6 -0
- package/dist/hooks/governance/useHasVoted.d.ts.map +1 -0
- package/dist/hooks/governance/useIsCanceller.d.ts +5 -0
- package/dist/hooks/governance/useIsCanceller.d.ts.map +1 -0
- package/dist/hooks/governance/usePollAllProposals.d.ts +37 -0
- package/dist/hooks/governance/usePollAllProposals.d.ts.map +1 -0
- package/dist/hooks/governance/usePollProposal.d.ts +23 -0
- package/dist/hooks/governance/usePollProposal.d.ts.map +1 -0
- package/dist/hooks/governance/usePollProposalThreshold.d.ts +6 -0
- package/dist/hooks/governance/usePollProposalThreshold.d.ts.map +1 -0
- package/dist/hooks/governance/usePollProposalVotes.d.ts +23 -0
- package/dist/hooks/governance/usePollProposalVotes.d.ts.map +1 -0
- package/dist/hooks/governance/usePollUserDelegates.d.ts +7 -0
- package/dist/hooks/governance/usePollUserDelegates.d.ts.map +1 -0
- package/dist/hooks/governance/useProposalFromTx.d.ts +5 -0
- package/dist/hooks/governance/useProposalFromTx.d.ts.map +1 -0
- package/dist/hooks/governance/useProposalSnapshot.d.ts +12 -0
- package/dist/hooks/governance/useProposalSnapshot.d.ts.map +1 -0
- package/dist/hooks/governance/useProposalState.d.ts +7 -0
- package/dist/hooks/governance/useProposalState.d.ts.map +1 -0
- package/dist/hooks/governance/useProposalTimelockState.d.ts +18 -0
- package/dist/hooks/governance/useProposalTimelockState.d.ts.map +1 -0
- package/dist/hooks/governance/useQuorum.d.ts +17 -0
- package/dist/hooks/governance/useQuorum.d.ts.map +1 -0
- package/dist/hooks/honey/useCappedGlobally.d.ts +11 -0
- package/dist/hooks/honey/useCappedGlobally.d.ts.map +1 -0
- package/dist/hooks/honey/useCappedRelatively.d.ts +11 -0
- package/dist/hooks/honey/useCappedRelatively.d.ts.map +1 -0
- package/dist/hooks/honey/useCollateralWeights.d.ts +9 -0
- package/dist/hooks/honey/useCollateralWeights.d.ts.map +1 -0
- package/dist/hooks/honey/useHoney24hVolume.d.ts +2 -0
- package/dist/hooks/honey/useHoney24hVolume.d.ts.map +1 -0
- package/dist/hooks/honey/useHoneyAlerts.d.ts +47 -0
- package/dist/hooks/honey/useHoneyAlerts.d.ts.map +1 -0
- package/dist/hooks/honey/useHoneyBalances.d.ts +26 -0
- package/dist/hooks/honey/useHoneyBalances.d.ts.map +1 -0
- package/dist/hooks/honey/useHoneyChartData.d.ts +10 -0
- package/dist/hooks/honey/useHoneyChartData.d.ts.map +1 -0
- package/dist/{useHoneySwapState-twi7NTaO.d.ts → hooks/honey/useHoneySwapState.d.ts} +7 -9
- package/dist/hooks/honey/useHoneySwapState.d.ts.map +1 -0
- package/dist/hooks/honey/useHoneyVaultsBalance.d.ts +4 -0
- package/dist/hooks/honey/useHoneyVaultsBalance.d.ts.map +1 -0
- package/dist/hooks/honey/useIsBadCollateralAsset.d.ts +9 -0
- package/dist/hooks/honey/useIsBadCollateralAsset.d.ts.map +1 -0
- package/dist/hooks/honey/useIsBasketModeEnabled.d.ts +6 -0
- package/dist/hooks/honey/useIsBasketModeEnabled.d.ts.map +1 -0
- package/dist/hooks/honey/usePythLatestPrices.d.ts +20 -0
- package/dist/hooks/honey/usePythLatestPrices.d.ts.map +1 -0
- package/dist/hooks/perps/usePythUpdateFee.d.ts +11 -0
- package/dist/hooks/perps/usePythUpdateFee.d.ts.map +1 -0
- package/dist/hooks/pol/useAutoclaimedIncentives.d.ts +8 -0
- package/dist/hooks/pol/useAutoclaimedIncentives.d.ts.map +1 -0
- package/dist/hooks/pol/useAutoclaimedIncentivesTxHash.d.ts +8 -0
- package/dist/hooks/pol/useAutoclaimedIncentivesTxHash.d.ts.map +1 -0
- package/dist/hooks/pol/useBgtAprSimulation.d.ts +7 -0
- package/dist/hooks/pol/useBgtAprSimulation.d.ts.map +1 -0
- package/dist/hooks/pol/useBgtUnstakedBalance.d.ts +3 -0
- package/dist/hooks/pol/useBgtUnstakedBalance.d.ts.map +1 -0
- package/dist/hooks/pol/useClaimableFees.d.ts +2 -0
- package/dist/hooks/pol/useClaimableFees.d.ts.map +1 -0
- package/dist/hooks/pol/useHighestVaultsAPR.d.ts +23 -0
- package/dist/hooks/pol/useHighestVaultsAPR.d.ts.map +1 -0
- package/dist/hooks/pol/useOnChainRewardVault.d.ts +7 -0
- package/dist/hooks/pol/useOnChainRewardVault.d.ts.map +1 -0
- package/dist/hooks/pol/usePollGlobalData.d.ts +4 -0
- package/dist/hooks/pol/usePollGlobalData.d.ts.map +1 -0
- package/dist/hooks/pol/usePollMarkets.d.ts +7 -0
- package/dist/hooks/pol/usePollMarkets.d.ts.map +1 -0
- package/dist/hooks/pol/useQueuedBeraUnlock.d.ts +9 -0
- package/dist/hooks/pol/useQueuedBeraUnlock.d.ts.map +1 -0
- package/dist/hooks/pol/useRewardTokenToBeraRate.d.ts +6 -0
- package/dist/hooks/pol/useRewardTokenToBeraRate.d.ts.map +1 -0
- package/dist/hooks/pol/useRewardVault.d.ts +8 -0
- package/dist/hooks/pol/useRewardVault.d.ts.map +1 -0
- package/dist/hooks/pol/useRewardVaultBalanceFromStakingToken.d.ts +16 -0
- package/dist/hooks/pol/useRewardVaultBalanceFromStakingToken.d.ts.map +1 -0
- package/dist/hooks/pol/useRewardVaultFromToken.d.ts +7 -0
- package/dist/hooks/pol/useRewardVaultFromToken.d.ts.map +1 -0
- package/dist/hooks/pol/useRewardVaultIncentives.d.ts +6 -0
- package/dist/hooks/pol/useRewardVaultIncentives.d.ts.map +1 -0
- package/dist/hooks/pol/useRewardVaultRewards.d.ts +4 -0
- package/dist/hooks/pol/useRewardVaultRewards.d.ts.map +1 -0
- package/dist/hooks/pol/useRewardVaults.d.ts +15 -0
- package/dist/hooks/pol/useRewardVaults.d.ts.map +1 -0
- package/dist/hooks/pol/useStakedAPY.d.ts +11 -0
- package/dist/hooks/pol/useStakedAPY.d.ts.map +1 -0
- package/dist/hooks/pol/useStakedData.d.ts +41 -0
- package/dist/hooks/pol/useStakedData.d.ts.map +1 -0
- package/dist/hooks/pol/useStakedSnapshots.d.ts +10 -0
- package/dist/hooks/pol/useStakedSnapshots.d.ts.map +1 -0
- package/dist/hooks/pol/useStakingVaultsMetadata.d.ts +6 -0
- package/dist/hooks/pol/useStakingVaultsMetadata.d.ts.map +1 -0
- package/dist/hooks/pol/useTotalStakedAmount.d.ts +6 -0
- package/dist/hooks/pol/useTotalStakedAmount.d.ts.map +1 -0
- package/dist/hooks/pol/useUserVaultInfo.d.ts +7 -0
- package/dist/hooks/pol/useUserVaultInfo.d.ts.map +1 -0
- package/dist/hooks/pol/useUserVaults.d.ts +4 -0
- package/dist/hooks/pol/useUserVaults.d.ts.map +1 -0
- package/dist/hooks/pol/useVaultAddress.d.ts +10 -0
- package/dist/hooks/pol/useVaultAddress.d.ts.map +1 -0
- package/dist/hooks/pol/useVaultHistory.d.ts +5 -0
- package/dist/hooks/pol/useVaultHistory.d.ts.map +1 -0
- package/dist/hooks/pol/useVaultValidators.d.ts +7 -0
- package/dist/hooks/pol/useVaultValidators.d.ts.map +1 -0
- package/dist/hooks/tokens/useBeraCurrentPrice.d.ts +11 -0
- package/dist/hooks/tokens/useBeraCurrentPrice.d.ts.map +1 -0
- package/dist/hooks/tokens/useMultipleTokenInformation.d.ts +39 -0
- package/dist/hooks/tokens/useMultipleTokenInformation.d.ts.map +1 -0
- package/dist/hooks/tokens/usePollAllowances.d.ts +17 -0
- package/dist/hooks/tokens/usePollAllowances.d.ts.map +1 -0
- package/dist/hooks/tokens/usePollBalance.d.ts +12 -0
- package/dist/hooks/tokens/usePollBalance.d.ts.map +1 -0
- package/dist/hooks/tokens/usePollWalletBalances.d.ts +14 -0
- package/dist/hooks/tokens/usePollWalletBalances.d.ts.map +1 -0
- package/dist/hooks/tokens/useStakingTokenInformation.d.ts +8 -0
- package/dist/hooks/tokens/useStakingTokenInformation.d.ts.map +1 -0
- package/dist/hooks/tokens/useTokenCurrentPrices.d.ts +16 -0
- package/dist/hooks/tokens/useTokenCurrentPrices.d.ts.map +1 -0
- package/dist/hooks/tokens/useTokenInformation.d.ts +9 -0
- package/dist/hooks/tokens/useTokenInformation.d.ts.map +1 -0
- package/dist/hooks/tokens/useTokenPrice.d.ts +10 -0
- package/dist/hooks/tokens/useTokenPrice.d.ts.map +1 -0
- package/dist/hooks/tokens/useTokenPrices.d.ts +18 -0
- package/dist/hooks/tokens/useTokenPrices.d.ts.map +1 -0
- package/dist/hooks/tokens/useTokens.d.ts +18 -0
- package/dist/hooks/tokens/useTokens.d.ts.map +1 -0
- package/dist/hooks/tokens/useTotalSupply.d.ts +5 -0
- package/dist/hooks/tokens/useTotalSupply.d.ts.map +1 -0
- package/dist/hooks/tokens/useUnderlyingAsset.d.ts +10 -0
- package/dist/hooks/tokens/useUnderlyingAsset.d.ts.map +1 -0
- package/dist/hooks/useBlockToTimestamp.d.ts +6 -0
- package/dist/hooks/useBlockToTimestamp.d.ts.map +1 -0
- package/dist/hooks/useContractWrite/index.d.ts +3 -0
- package/dist/hooks/useContractWrite/index.d.ts.map +1 -0
- package/dist/hooks/useContractWrite/stateReducer.d.ts +28 -0
- package/dist/hooks/useContractWrite/stateReducer.d.ts.map +1 -0
- package/dist/hooks/useContractWrite/types.d.ts +54 -0
- package/dist/hooks/useContractWrite/types.d.ts.map +1 -0
- package/dist/hooks/useContractWrite/useBeraContractWrite.d.ts +10 -0
- package/dist/hooks/useContractWrite/useBeraContractWrite.d.ts.map +1 -0
- package/dist/hooks/useGetVerifiedAbi.d.ts +2 -0
- package/dist/hooks/useGetVerifiedAbi.d.ts.map +1 -0
- package/dist/hooks/useHistoryState.d.ts +17 -0
- package/dist/hooks/useHistoryState.d.ts.map +1 -0
- package/dist/hooks/usePrevious.d.ts +6 -0
- package/dist/hooks/usePrevious.d.ts.map +1 -0
- package/dist/hooks/validators/useAllValidators.d.ts +7 -0
- package/dist/hooks/validators/useAllValidators.d.ts.map +1 -0
- package/dist/hooks/validators/useApiEnrichedAllocation.d.ts +5 -0
- package/dist/hooks/validators/useApiEnrichedAllocation.d.ts.map +1 -0
- package/dist/hooks/validators/useApiValidator.d.ts +8 -0
- package/dist/hooks/validators/useApiValidator.d.ts.map +1 -0
- package/dist/hooks/validators/useBaselineRewardAllocation.d.ts +2 -0
- package/dist/hooks/validators/useBaselineRewardAllocation.d.ts.map +1 -0
- package/dist/hooks/validators/useManagedValidatorRole.d.ts +13 -0
- package/dist/hooks/validators/useManagedValidatorRole.d.ts.map +1 -0
- package/dist/hooks/validators/useOnChainValidator.d.ts +7 -0
- package/dist/hooks/validators/useOnChainValidator.d.ts.map +1 -0
- package/dist/hooks/validators/useStakingPoolBatch.d.ts +7 -0
- package/dist/hooks/validators/useStakingPoolBatch.d.ts.map +1 -0
- package/dist/hooks/validators/useUserActiveValidators.d.ts +12 -0
- package/dist/hooks/validators/useUserActiveValidators.d.ts.map +1 -0
- package/dist/hooks/validators/useUserBoostsOnValidator.d.ts +8 -0
- package/dist/hooks/validators/useUserBoostsOnValidator.d.ts.map +1 -0
- package/dist/hooks/validators/useUserStakingPositions.d.ts +31 -0
- package/dist/hooks/validators/useUserStakingPositions.d.ts.map +1 -0
- package/dist/hooks/validators/useValidator.d.ts +112 -0
- package/dist/hooks/validators/useValidator.d.ts.map +1 -0
- package/dist/hooks/validators/useValidatorCommission.d.ts +4 -0
- package/dist/hooks/validators/useValidatorCommission.d.ts.map +1 -0
- package/dist/hooks/validators/useValidatorEstimatedBgtPerYear.d.ts +6 -0
- package/dist/hooks/validators/useValidatorEstimatedBgtPerYear.d.ts.map +1 -0
- package/dist/hooks/validators/useValidatorIncentiveDistribution.d.ts +13 -0
- package/dist/hooks/validators/useValidatorIncentiveDistribution.d.ts.map +1 -0
- package/dist/hooks/validators/useValidatorQueuedCommission.d.ts +5 -0
- package/dist/hooks/validators/useValidatorQueuedCommission.d.ts.map +1 -0
- package/dist/hooks/validators/useValidatorQueuedOperatorAddress.d.ts +5 -0
- package/dist/hooks/validators/useValidatorQueuedOperatorAddress.d.ts.map +1 -0
- package/dist/hooks/validators/useValidatorQueuedRewardAllocation.d.ts +5 -0
- package/dist/hooks/validators/useValidatorQueuedRewardAllocation.d.ts.map +1 -0
- package/dist/hooks/validators/useValidatorRewardAllocation.d.ts +10 -0
- package/dist/hooks/validators/useValidatorRewardAllocation.d.ts.map +1 -0
- package/dist/types/exports.d.ts +8 -90
- package/dist/types/exports.d.ts.map +1 -0
- package/dist/types/exports.mjs +1 -0
- package/dist/types/exports.mjs.map +1 -0
- package/dist/types/governance/exports.d.ts +2 -109
- package/dist/types/governance/exports.d.ts.map +1 -0
- package/dist/types/governance/exports.mjs +1 -0
- package/dist/types/governance/exports.mjs.map +1 -0
- package/dist/utils/beraFetch.d.ts +15 -0
- package/dist/utils/beraFetch.d.ts.map +1 -0
- package/dist/utils/constants.d.ts +27 -0
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/createEmitter.d.ts +88 -0
- package/dist/utils/createEmitter.d.ts.map +1 -0
- package/dist/utils/crossChainBridge.d.ts +74 -0
- package/dist/utils/crossChainBridge.d.ts.map +1 -0
- package/dist/utils/exports.d.ts +25 -429
- package/dist/utils/exports.d.ts.map +1 -0
- package/dist/utils/exports.mjs +165 -84
- package/dist/utils/exports.mjs.map +1 -0
- package/dist/utils/filter.d.ts +10 -0
- package/dist/utils/filter.d.ts.map +1 -0
- package/dist/utils/formatInputTokenValue.d.ts +2 -0
- package/dist/utils/formatInputTokenValue.d.ts.map +1 -0
- package/dist/utils/formatNumber.d.ts +32 -0
- package/dist/utils/formatNumber.d.ts.map +1 -0
- package/dist/utils/formatTimestamps.d.ts +20 -0
- package/dist/utils/formatTimestamps.d.ts.map +1 -0
- package/dist/utils/formatTokenList.d.ts +21 -0
- package/dist/utils/formatTokenList.d.ts.map +1 -0
- package/dist/utils/formatUsd.d.ts +5 -0
- package/dist/utils/formatUsd.d.ts.map +1 -0
- package/dist/utils/getContractName.d.ts +10 -0
- package/dist/utils/getContractName.d.ts.map +1 -0
- package/dist/utils/getErrorResponse.d.ts +5 -0
- package/dist/utils/getErrorResponse.d.ts.map +1 -0
- package/dist/utils/getHoneySwapMessage.d.ts +7 -0
- package/dist/utils/getHoneySwapMessage.d.ts.map +1 -0
- package/dist/utils/getServerSideClient.d.ts +6 -0
- package/dist/utils/getServerSideClient.d.ts.map +1 -0
- package/dist/utils/getTestClient.d.ts +75 -0
- package/dist/utils/getTestClient.d.ts.map +1 -0
- package/dist/utils/hasAnyTruthyValues.d.ts +2 -0
- package/dist/utils/hasAnyTruthyValues.d.ts.map +1 -0
- package/dist/utils/isDifferenceExceedingThreshold.d.ts +6 -0
- package/dist/utils/isDifferenceExceedingThreshold.d.ts.map +1 -0
- package/dist/utils/isSubgraphStale.d.ts +5 -0
- package/dist/utils/isSubgraphStale.d.ts.map +1 -0
- package/dist/utils/math.d.ts +15 -0
- package/dist/utils/math.d.ts.map +1 -0
- package/dist/utils/parseBaseArgs.d.ts +6 -0
- package/dist/utils/parseBaseArgs.d.ts.map +1 -0
- package/dist/utils/parseWhiskToken.d.ts +21 -0
- package/dist/utils/parseWhiskToken.d.ts.map +1 -0
- package/dist/utils/polyfillAbortSignalAny.d.ts +14 -0
- package/dist/utils/polyfillAbortSignalAny.d.ts.map +1 -0
- package/dist/utils/poolNamings.d.ts +9 -0
- package/dist/utils/poolNamings.d.ts.map +1 -0
- package/dist/utils/pythHoneyUtils.d.ts +2 -0
- package/dist/utils/pythHoneyUtils.d.ts.map +1 -0
- package/dist/utils/sanitizeRpcUrl.d.ts +10 -0
- package/dist/utils/sanitizeRpcUrl.d.ts.map +1 -0
- package/dist/utils/test-utils.d.ts +2 -0
- package/dist/utils/test-utils.d.ts.map +1 -0
- package/dist/utils/time.d.ts +65 -0
- package/dist/utils/time.d.ts.map +1 -0
- package/dist/utils/tokenWrapping.d.ts +7 -0
- package/dist/utils/tokenWrapping.d.ts.map +1 -0
- package/dist/utils/tokens.d.ts +37 -0
- package/dist/utils/tokens.d.ts.map +1 -0
- package/dist/utils/tracedTransport.d.ts +10 -0
- package/dist/utils/tracedTransport.d.ts.map +1 -0
- package/dist/utils/truncateHash.d.ts +5 -0
- package/dist/utils/truncateHash.d.ts.map +1 -0
- package/dist/utils/validatorUptimeStatus.d.ts +19 -0
- package/dist/utils/validatorUptimeStatus.d.ts.map +1 -0
- package/package.json +11 -7
- package/src/actions/clients/BeraApolloClient.ts +8 -4
- package/src/actions/clients/clientName.ts +17 -0
- package/src/actions/clients/clientName.unit.test.ts +39 -0
- package/src/actions/clients/exports.ts +2 -0
- package/src/actions/clients/fetchBeep.ts +4 -1
- package/src/actions/clients/fetchEnso.ts +48 -0
- package/src/actions/clients/fetchLayerzero.ts +34 -0
- package/src/actions/clients/fetchOpenApi.ts +9 -2
- package/src/actions/clients/fetchOpenApi.unit.test.ts +35 -19
- package/src/actions/clients/getApolloClient.ts +3 -11
- package/src/actions/dex/__tests__/aggregators.unit.test.ts +231 -2
- package/src/actions/dex/aggregators/base.ts +78 -18
- package/src/actions/dex/aggregators/bex.ts +44 -11
- package/src/actions/dex/aggregators/bgt.ts +11 -6
- package/src/actions/dex/aggregators/enso/enso.ts +1 -0
- package/src/actions/dex/aggregators/enso/ensoErc4626.ts +27 -9
- package/src/actions/dex/aggregators/erc4626.ts +19 -5
- package/src/actions/dex/aggregators/fly.ts +1 -0
- package/src/actions/dex/aggregators/haiku.ts +33 -2
- package/src/actions/dex/aggregators/honey.ts +17 -6
- package/src/actions/dex/aggregators/kyberswap.ts +1 -0
- package/src/actions/dex/aggregators/oogabooga.ts +1 -0
- package/src/actions/dex/aggregators/openOcean.ts +1 -0
- package/src/actions/dex/aggregators/wbera.ts +17 -11
- package/src/actions/dex/getPoolWithState.ts +2 -2
- package/src/actions/enso/__tests__/helpers.ts +15 -10
- package/src/actions/enso/getBendMultiplyBundle.ts +1 -1
- package/src/actions/enso/getEnsoUserTokensWithBalances.ts +4 -8
- package/src/actions/enso/util.ts +0 -59
- package/src/actions/exports.ts +5 -8
- package/src/actions/governance/getDecodedFunctionData.ts +5 -1
- package/src/actions/honey/getHoney24hVolume.ts +3 -12
- package/src/actions/honey/getHoneyCollaterals.ts +1 -1
- package/src/actions/honey/getSwapPayload.ts +4 -4
- package/src/actions/pol/getAutoclaimedIncentives.ts +1 -1
- package/src/actions/pol/getAutoclaimedIncentivesTxHash.ts +1 -1
- package/src/actions/pol/getBeraTokenTotalSupply.ts +3 -33
- package/src/actions/pol/getLSTStakeConfig.ts +0 -6
- package/src/actions/pol/{getUserVaultsReward.ts → getRewardVaultEarnedRewards.ts} +6 -4
- package/src/actions/pol/getSWBeraVaultMetadata.ts +2 -106
- package/src/actions/pol/getStakedBeraAPY.ts +45 -0
- package/src/actions/pol/getStakedBeraSnapshots.ts +18 -34
- package/src/actions/pol/getUserVaultInfo.ts +2 -2
- package/src/actions/pol/getVaultsSupply.ts +5 -2
- package/src/actions/server/getDailyValidatorBlockStats.ts +28 -17
- package/src/actions/tokens/getWalletBalances.ts +1 -3
- package/src/actions/transactions/beraWriteContract.integration.test.ts +16 -3
- package/src/actions/transactions/beraWriteContract.ts +2 -2
- package/src/actions/validators/getActiveBoostAndCommissionChangeDelay.ts +1 -1
- package/src/actions/validators/getUserActiveValidators.ts +116 -54
- package/src/actions/validators/getUserBoostsOnValidator.ts +6 -9
- package/src/actions/validators/getValidatorEstimatedBgtPerYear.ts +3 -3
- package/src/actions/validators/getValidatorRewardAllocation.ts +12 -1
- package/src/contexts/BeraFlags/BeraFlags.tsx +1 -4
- package/src/contexts/BeraFlags/defaultFlags.ts +1 -3
- package/src/contexts/BexStatusProvider.tsx +1 -1
- package/src/contexts/TokensProvider.tsx +1 -4
- package/src/contexts/exports.ts +1 -1
- package/src/enum/contracts.ts +3 -0
- package/src/errors/BeraError.ts +51 -1
- package/src/errors/BeraError.unit.test.ts +94 -0
- package/src/errors/BeraTracing.unit.test.ts +17 -18
- package/src/errors/RequestError.ts +61 -10
- package/src/errors/RequestError.unit.test.ts +101 -0
- package/src/errors/assert.ts +29 -0
- package/src/errors/errorMap.ts +8 -3
- package/src/errors/getErrorMessage.unit.test.ts +32 -0
- package/src/hooks/bend/useGetConvertToAssets.ts +3 -3
- package/src/hooks/dex/useAggregatorsQuotes.ts +7 -1
- package/src/hooks/dex/useAggregatorsRouterFeeBps.ts +2 -2
- package/src/hooks/dex/useAllUserPools.ts +6 -6
- package/src/hooks/dex/useApiPool.ts +3 -3
- package/src/hooks/dex/useCreatePool.ts +13 -13
- package/src/hooks/dex/useCrossChainNativeFee.ts +83 -0
- package/src/hooks/dex/useCrossChainNativeFee.unit.test.ts +63 -0
- package/src/hooks/dex/useGlobalLiquidityAndSwapVolume.ts +2 -2
- package/src/hooks/dex/useLiquidityMismatch.ts +3 -3
- package/src/hooks/dex/useLpPosition.ts +3 -3
- package/src/hooks/dex/useOnChainPoolData.ts +30 -13
- package/src/hooks/dex/usePollPoolCreationRelayerApproval.ts +3 -3
- package/src/hooks/dex/usePoolEvents.ts +3 -3
- package/src/hooks/dex/usePoolHistoricalData.ts +3 -3
- package/src/hooks/dex/usePools.ts +6 -6
- package/src/hooks/dex/usePriceImpact.ts +6 -6
- package/src/hooks/dex/useSingleAggregatorQuote.ts +4 -2
- package/src/hooks/enso/useBendZapSupply.ts +9 -38
- package/src/hooks/enso/useEnsoUserTokensWithBalances.ts +10 -2
- package/src/hooks/enso/useZapStakeBera.ts +1 -1
- package/src/hooks/exports.ts +2 -9
- package/src/hooks/governance/useCreateProposal.ts +4 -4
- package/src/hooks/governance/useGetPastVotes.ts +11 -7
- package/src/hooks/governance/useHasVoted.ts +3 -3
- package/src/hooks/governance/useIsCanceller.ts +3 -3
- package/src/hooks/governance/usePollAllProposals.ts +3 -3
- package/src/hooks/governance/usePollProposal.ts +3 -3
- package/src/hooks/governance/usePollProposalThreshold.ts +3 -3
- package/src/hooks/governance/usePollProposalVotes.ts +12 -12
- package/src/hooks/governance/usePollUserDelegates.ts +18 -14
- package/src/hooks/governance/useProposalFromTx.ts +3 -3
- package/src/hooks/governance/useProposalSnapshot.ts +3 -3
- package/src/hooks/governance/useProposalState.ts +3 -3
- package/src/hooks/honey/useCappedGlobally.ts +3 -3
- package/src/hooks/honey/useCappedRelatively.ts +3 -3
- package/src/hooks/honey/useCollateralWeights.ts +3 -3
- package/src/hooks/honey/useHoneyAlerts.ts +9 -9
- package/src/hooks/honey/useHoneyBalances.ts +3 -3
- package/src/hooks/honey/useHoneySwapState.ts +2 -2
- package/src/hooks/honey/useHoneyVaultsBalance.ts +3 -3
- package/src/hooks/honey/useIsBadCollateralAsset.ts +3 -3
- package/src/hooks/perps/usePythUpdateFee.ts +3 -3
- package/src/hooks/pol/useAutoclaimedIncentives.ts +7 -4
- package/src/hooks/pol/useAutoclaimedIncentivesTxHash.ts +6 -3
- package/src/hooks/pol/useBgtUnstakedBalance.ts +3 -3
- package/src/hooks/pol/useClaimableFees.ts +4 -4
- package/src/hooks/pol/useHighestVaultsAPR.ts +3 -3
- package/src/hooks/pol/useOnChainRewardVault.ts +6 -5
- package/src/hooks/pol/usePollGlobalData.ts +3 -3
- package/src/hooks/pol/usePollMarkets.ts +5 -5
- package/src/hooks/pol/useRewardTokenToBeraRate.ts +11 -18
- package/src/hooks/pol/useRewardVault.ts +6 -5
- package/src/hooks/pol/useRewardVaultBalanceFromStakingToken.ts +3 -4
- package/src/hooks/pol/useRewardVaultFromToken.ts +3 -3
- package/src/hooks/pol/useRewardVaultRewards.ts +3 -3
- package/src/hooks/pol/useRewardVaults.ts +6 -6
- package/src/hooks/pol/{useStakedAPR.ts → useStakedAPY.ts} +11 -9
- package/src/hooks/pol/useStakedData.ts +15 -16
- package/src/hooks/pol/useStakingVaultsMetadata.ts +5 -10
- package/src/hooks/pol/useUserVaultInfo.ts +3 -3
- package/src/hooks/pol/useUserVaults.ts +3 -3
- package/src/hooks/pol/useVaultAddress.ts +2 -2
- package/src/hooks/pol/useVaultHistory.ts +3 -3
- package/src/hooks/pol/useVaultValidators.ts +3 -3
- package/src/hooks/tokens/useBeraCurrentPrice.ts +8 -4
- package/src/hooks/tokens/useMultipleTokenInformation.ts +64 -21
- package/src/hooks/tokens/useMultipleTokenInformation.unit.test.ts +91 -0
- package/src/hooks/tokens/usePollBalance.ts +4 -2
- package/src/hooks/tokens/useStakingTokenInformation.ts +3 -3
- package/src/hooks/useBlockToTimestamp.ts +1 -1
- package/src/hooks/useContractWrite/index.ts +1 -1
- package/src/hooks/useContractWrite/stateReducer.ts +2 -2
- package/src/hooks/useContractWrite/useBeraContractWrite.ts +1 -3
- package/src/hooks/useGetVerifiedAbi.ts +2 -2
- package/src/hooks/validators/useAllValidators.ts +6 -6
- package/src/hooks/validators/useApiValidator.ts +6 -5
- package/src/hooks/validators/useOnChainValidator.ts +3 -3
- package/src/hooks/validators/useStakingPoolBatch.ts +3 -3
- package/src/hooks/validators/useUserActiveValidators.ts +57 -12
- package/src/hooks/validators/useUserBoostsOnValidator.ts +3 -3
- package/src/hooks/validators/useUserStakingPositions.ts +3 -3
- package/src/hooks/validators/useValidatorCommission.ts +3 -3
- package/src/hooks/validators/useValidatorEstimatedBgtPerYear.ts +4 -4
- package/src/hooks/validators/useValidatorIncentiveDistribution.ts +3 -4
- package/src/hooks/validators/useValidatorQueuedOperatorAddress.ts +3 -3
- package/src/hooks/validators/useValidatorQueuedRewardAllocation.ts +3 -3
- package/src/types/bribeBoost.d.ts +20 -0
- package/src/types/dex.d.ts +17 -0
- package/src/types/enso.d.ts +1 -27
- package/src/types/exports.ts +1 -1
- package/src/types/global.d.ts +7 -0
- package/src/types/pol.d.ts +3 -48
- package/src/utils/crossChainBridge.ts +290 -0
- package/src/utils/crossChainBridge.unit.test.ts +177 -0
- package/src/utils/exports.ts +1 -1
- package/src/utils/filter.ts +3 -5
- package/src/utils/formatInputTokenValue.ts +2 -2
- package/src/utils/formatNumber.ts +5 -5
- package/src/utils/formatTimestamps.unit.test.ts +6 -3
- package/src/utils/formatUsd.ts +6 -4
- package/src/utils/getServerSideClient.ts +3 -3
- package/src/utils/isDifferenceExceedingThreshold.ts +10 -6
- package/src/utils/math.ts +12 -7
- package/src/utils/math.unit.test.ts +114 -15
- package/src/utils/polyfillAbortSignalAny.ts +4 -4
- package/src/utils/polyfillAbortSignalAny.unit.test.ts +3 -1
- package/src/utils/poolNamings.ts +14 -10
- package/src/utils/pythHoneyUtils.ts +2 -2
- package/src/utils/truncateHash.ts +3 -3
- package/dist/HoneyConfigProvider-COOuDNra.d.ts +0 -390
- package/dist/RequestError-DBOIV65x.d.ts +0 -144
- package/dist/chunk-YLTWPFCJ.mjs +0 -39
- package/dist/defaultFlags-D6KfkTZx.d.ts +0 -10
- package/dist/getProposalVotes-DAUrdX2n.d.ts +0 -12
- package/dist/getValidatorQueuedOperatorAddress-Cc05dlO3.d.ts +0 -511
- package/dist/global.d-CR3zicga.d.ts +0 -231
- package/dist/pol.d-CeRgXBL8.d.ts +0 -167
- package/src/actions/enso/getEnsoSwapBundle.ts +0 -77
- package/src/actions/pol/getBgtIncentiveDistributorPaused.ts +0 -28
- package/src/actions/pol/getRewardProofsByValidator.ts +0 -49
- package/src/actions/pol/getStakedBeraAPR.ts +0 -56
- package/src/actions/pol/getUserClaimableIncentives.ts +0 -40
- package/src/actions/validators/getDailyValidatorBlockStats.ts +0 -38
- package/src/actions/validators/getValidatorAnalytics.ts +0 -33
- package/src/hooks/enso/useEnsoSwapBundle.ts +0 -121
- package/src/hooks/pol/useBgtIncentiveDistributorPaused.ts +0 -34
- package/src/hooks/tokens/useTokenCurrentPrice.ts +0 -21
- package/src/hooks/validators/useDailyValidatorBlockStats.ts +0 -33
- package/src/hooks/validators/useDefaultRewardAllocation.ts +0 -26
- package/src/hooks/validators/useUserClaimableIncentives.ts +0 -149
- package/src/hooks/validators/useValidatorAnalytics.ts +0 -34
- package/src/types/bribe-boost.d.ts +0 -69
- package/src/utils/formatIncentivesTokenMap.ts +0 -19
- package/src/utils/layerZeroScan.ts +0 -122
- /package/src/actions/dex/{b-sdk.ts → bSdk.ts} +0 -0
- /package/src/contexts/{block-time-provider.tsx → BlockTimeProvider.tsx} +0 -0
|
@@ -8,6 +8,7 @@ import type { HoneyConfigContextReturn } from "../../../contexts/HoneyConfigProv
|
|
|
8
8
|
import type { Aggregators } from "../../../enum/dex";
|
|
9
9
|
import { BeraError } from "../../../errors/BeraError";
|
|
10
10
|
import { initBeraError } from "../../../errors/initBeraError";
|
|
11
|
+
import { RequestError } from "../../../errors/RequestError";
|
|
11
12
|
import type {
|
|
12
13
|
IAggregatorArgs,
|
|
13
14
|
IRawAggregatorQuote,
|
|
@@ -24,11 +25,33 @@ export abstract class BaseAggregator {
|
|
|
24
25
|
* If null, the aggregator is supported on all chains.
|
|
25
26
|
*/
|
|
26
27
|
abstract supportedChains: number[] | null;
|
|
27
|
-
static PATH_NOT_FOUND_REASON =
|
|
28
|
+
static PATH_NOT_FOUND_REASON = RequestError.REASON_MAP.NO_SWAP_PATHS;
|
|
28
29
|
|
|
29
30
|
needsAccountForQuote: boolean = false;
|
|
30
31
|
notFoundMessages: string[] = [];
|
|
31
32
|
|
|
33
|
+
/**
|
|
34
|
+
* Whether this aggregator can handle a BERA↔WBERA pair.
|
|
35
|
+
*
|
|
36
|
+
* Most aggregators normalize native BERA → WBERA before routing (see
|
|
37
|
+
* `parseAddresses`), so a BERA↔WBERA pair collapses to WBERA↔WBERA and the
|
|
38
|
+
* external router rejects it as "same token" (e.g. Enso 400, HUB-9FQ). For
|
|
39
|
+
* those, `getUnsupportedReason` rejects the pair up-front so no request fires.
|
|
40
|
+
* Only the dedicated wrap/unwrap aggregator sets this `true`.
|
|
41
|
+
*/
|
|
42
|
+
supportsBeraWrap: boolean = false;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Whether this aggregator can bridge — route a pair whose tokens live on
|
|
46
|
+
* different chains (`tokenIn.chainId !== tokenOut.chainId`).
|
|
47
|
+
*
|
|
48
|
+
* Most aggregators only route within a single chain; handed a cross-chain
|
|
49
|
+
* pair they would 400 or, worse, quote garbage against the wrong chain.
|
|
50
|
+
* `getUnsupportedReason` rejects such pairs up-front unless this is `true`.
|
|
51
|
+
* Only bridging aggregators (Enso via LayerZero) set it.
|
|
52
|
+
*/
|
|
53
|
+
supportsBridging: boolean = false;
|
|
54
|
+
|
|
32
55
|
config: BeraConfig;
|
|
33
56
|
|
|
34
57
|
chainId: ChainId;
|
|
@@ -47,9 +70,7 @@ export abstract class BaseAggregator {
|
|
|
47
70
|
|
|
48
71
|
abstract getQuote(
|
|
49
72
|
args: IAggregatorArgs,
|
|
50
|
-
):
|
|
51
|
-
| Promise<IRawAggregatorQuote | undefined>
|
|
52
|
-
| Promise<IRawAggregatorQuote | undefined>;
|
|
73
|
+
): Promise<IRawAggregatorQuote | undefined>;
|
|
53
74
|
|
|
54
75
|
/**
|
|
55
76
|
* return wbera for native tokens to accomodate the aggregator's router logic
|
|
@@ -171,9 +192,12 @@ export abstract class BaseAggregator {
|
|
|
171
192
|
}
|
|
172
193
|
|
|
173
194
|
/**
|
|
174
|
-
*
|
|
195
|
+
* Returns a human-readable reason this aggregator can't route the pair, or
|
|
196
|
+
* `null` if it can. Callers gate on `=== null`; `assertChainSupport` throws
|
|
197
|
+
* the reason so users get an accurate message (not a misleading "does not
|
|
198
|
+
* support chain ID" for what is actually a same-token pair).
|
|
175
199
|
*/
|
|
176
|
-
|
|
200
|
+
getUnsupportedReason({
|
|
177
201
|
tokenIn,
|
|
178
202
|
tokenOut,
|
|
179
203
|
}: {
|
|
@@ -183,31 +207,66 @@ export abstract class BaseAggregator {
|
|
|
183
207
|
honeyNativeState?: Pick<HoneyConfigContextReturn, "collateralList">;
|
|
184
208
|
// needed in ERC4626 aggregator
|
|
185
209
|
underlyingToken?: Token | null;
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
210
|
+
// needed in haiku aggregator (reward-vault staking opt-out)
|
|
211
|
+
rewardVault?: Address;
|
|
212
|
+
}): string | null {
|
|
213
|
+
if (isToken(tokenIn, tokenOut)) {
|
|
214
|
+
// same token route don't make sense (we're not arbitraging here), so we don't support it
|
|
215
|
+
return `${this.name} cannot route between the same token (${tokenIn.symbol}).`;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
// Reject pairs that collapse to the same token once native BERA is
|
|
219
|
+
// normalized to WBERA (e.g. BERA↔WBERA), unless this aggregator explicitly
|
|
220
|
+
// handles wrapping. Otherwise the router 400s on identical tokens (HUB-9FQ).
|
|
221
|
+
if (!this.supportsBeraWrap) {
|
|
222
|
+
const wbera = this.config.tokens.wbera;
|
|
223
|
+
function normalize(token: Token) {
|
|
224
|
+
return (isToken(token, "BERA") ? wbera : token.address).toLowerCase();
|
|
225
|
+
}
|
|
226
|
+
if (normalize(tokenIn) === normalize(tokenOut)) {
|
|
227
|
+
return `${this.name} cannot route between BERA and WBERA — use wrap/unwrap instead.`;
|
|
228
|
+
}
|
|
189
229
|
}
|
|
190
230
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
)
|
|
231
|
+
// Reject cross-chain pairs unless this aggregator can bridge. Making the
|
|
232
|
+
// rejection explicit (rather than relying on `supportedChains`) lets the
|
|
233
|
+
// swap-page fan-out be handed multichain pairs safely.
|
|
234
|
+
if (tokenIn.chainId !== tokenOut.chainId && !this.supportsBridging) {
|
|
235
|
+
return `${this.name} cannot route across chains (${tokenIn.chainId} → ${tokenOut.chainId}).`;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
if (
|
|
239
|
+
this.supportedChains !== null &&
|
|
240
|
+
(!this.supportedChains.includes(tokenIn.chainId) ||
|
|
241
|
+
!this.supportedChains.includes(tokenOut.chainId))
|
|
242
|
+
) {
|
|
243
|
+
return `${this.name} does not support tokens chain ID: ${tokenIn.chainId} and ${tokenOut.chainId}`;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
return null;
|
|
195
247
|
}
|
|
196
248
|
|
|
197
249
|
assertChainSupport({
|
|
198
250
|
tokenIn,
|
|
199
251
|
tokenOut,
|
|
200
252
|
underlyingToken,
|
|
253
|
+
honeyNativeState,
|
|
201
254
|
}: {
|
|
202
255
|
tokenIn: Token;
|
|
203
256
|
tokenOut: Token;
|
|
257
|
+
// needed in ERC4626 aggregator
|
|
204
258
|
underlyingToken?: Token | null;
|
|
259
|
+
// needed in honey native aggregator
|
|
260
|
+
honeyNativeState?: Pick<HoneyConfigContextReturn, "collateralList">;
|
|
205
261
|
}): void {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
262
|
+
const reason = this.getUnsupportedReason({
|
|
263
|
+
tokenIn,
|
|
264
|
+
tokenOut,
|
|
265
|
+
underlyingToken,
|
|
266
|
+
honeyNativeState,
|
|
267
|
+
});
|
|
268
|
+
if (reason !== null) {
|
|
269
|
+
throw new BeraError({ message: reason, level: "error" });
|
|
211
270
|
}
|
|
212
271
|
}
|
|
213
272
|
|
|
@@ -229,6 +288,7 @@ export abstract class BaseAggregator {
|
|
|
229
288
|
this.notFoundMessages.some((message) => error.message.includes(message))
|
|
230
289
|
) {
|
|
231
290
|
error.reason = BaseAggregator.PATH_NOT_FOUND_REASON;
|
|
291
|
+
error.level = "warning";
|
|
232
292
|
}
|
|
233
293
|
throw error;
|
|
234
294
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
type Address,
|
|
3
|
+
DECIMAL_SCALES,
|
|
3
4
|
Slippage,
|
|
4
5
|
type SorSwapResult,
|
|
5
6
|
Swap,
|
|
@@ -7,7 +8,7 @@ import {
|
|
|
7
8
|
Token,
|
|
8
9
|
TokenAmount,
|
|
9
10
|
} from "@berachain-foundation/berancer-sdk";
|
|
10
|
-
import { decodeFunctionData, formatEther
|
|
11
|
+
import { decodeFunctionData, formatEther } from "viem";
|
|
11
12
|
|
|
12
13
|
import { getUriFromLink } from "@berachain/config";
|
|
13
14
|
import { ChainId } from "@berachain/config/internal";
|
|
@@ -19,9 +20,13 @@ import { assertPublicClient } from "../../../errors/assert";
|
|
|
19
20
|
import { BeraError } from "../../../errors/BeraError";
|
|
20
21
|
import { BeraMonitoring } from "../../../errors/BeraMonitoring";
|
|
21
22
|
import { RequestError } from "../../../errors/RequestError";
|
|
22
|
-
import type {
|
|
23
|
+
import type {
|
|
24
|
+
Token as BeraToken,
|
|
25
|
+
IAggregatorArgs,
|
|
26
|
+
IRawAggregatorQuote,
|
|
27
|
+
} from "../../../types/dex";
|
|
23
28
|
import { isToken } from "../../../utils/tokens";
|
|
24
|
-
import { BalancerApi } from "../
|
|
29
|
+
import { BalancerApi } from "../bSdk";
|
|
25
30
|
import { BaseAggregator } from "./base";
|
|
26
31
|
|
|
27
32
|
// Constants
|
|
@@ -35,6 +40,40 @@ class BexAggregator extends BaseAggregator {
|
|
|
35
40
|
readonly url = getUriFromLink(this.config.api);
|
|
36
41
|
readonly type = "graphql";
|
|
37
42
|
|
|
43
|
+
/**
|
|
44
|
+
* Opt bex out of tokens it structurally can't route (BGT, or decimals
|
|
45
|
+
* outside b-sdk's supported range) so the quote is never requested and other
|
|
46
|
+
* aggregators still handle it — see `supportsToken` for the specifics.
|
|
47
|
+
*/
|
|
48
|
+
getUnsupportedReason(args: {
|
|
49
|
+
tokenIn: BeraToken;
|
|
50
|
+
tokenOut: BeraToken;
|
|
51
|
+
}): string | null {
|
|
52
|
+
const base = super.getUnsupportedReason(args);
|
|
53
|
+
if (base !== null) {
|
|
54
|
+
return base;
|
|
55
|
+
}
|
|
56
|
+
for (const token of [args.tokenIn, args.tokenOut]) {
|
|
57
|
+
if (!this.supportsToken(token)) {
|
|
58
|
+
return `${this.name} can't route ${token.symbol} (BGT or unsupported decimals).`;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
private supportsToken(token: BeraToken) {
|
|
65
|
+
// BGT has no Balancer pool (it's redeemed via the BGT aggregator, not
|
|
66
|
+
// swapped), so a bex quote for it always throws NO_SWAP_PATHS (HUB-A5R).
|
|
67
|
+
if (isToken(token.address, "BGT", { config: this.config })) {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
// b-sdk's `TokenAmount` scales via `DECIMAL_SCALES[18 - decimals]`; a token
|
|
71
|
+
// outside that 0–18 table (e.g. 27-decimal ctBeraUSDe) throws "Cannot mix
|
|
72
|
+
// BigInt and other types" (HUB-A6D). Mirror the exact lookup so this tracks
|
|
73
|
+
// b-sdk if the supported range ever changes.
|
|
74
|
+
const scaleKey = 18 - token.decimals;
|
|
75
|
+
return scaleKey in DECIMAL_SCALES;
|
|
76
|
+
}
|
|
38
77
|
/**
|
|
39
78
|
* Helper function to convert zero address to wrapped token address
|
|
40
79
|
*/
|
|
@@ -108,14 +147,7 @@ class BexAggregator extends BaseAggregator {
|
|
|
108
147
|
// @ts-expect-error b-sdk has more chains than berajs
|
|
109
148
|
this.chainId,
|
|
110
149
|
);
|
|
111
|
-
const {
|
|
112
|
-
tokenIn,
|
|
113
|
-
tokenOut,
|
|
114
|
-
amount,
|
|
115
|
-
slippage,
|
|
116
|
-
account = zeroAddress,
|
|
117
|
-
publicClient,
|
|
118
|
-
} = args;
|
|
150
|
+
const { tokenIn, tokenOut, amount, slippage, publicClient } = args;
|
|
119
151
|
this.assertChainSupport({ tokenIn, tokenOut });
|
|
120
152
|
|
|
121
153
|
assertPublicClient(publicClient);
|
|
@@ -227,6 +259,7 @@ class BexAggregator extends BaseAggregator {
|
|
|
227
259
|
abi: balancerVaultAbi,
|
|
228
260
|
address: callData.to,
|
|
229
261
|
value: callData.value || BigInt(0),
|
|
262
|
+
extraTags: { aggregator: this.name },
|
|
230
263
|
};
|
|
231
264
|
},
|
|
232
265
|
};
|
|
@@ -15,23 +15,28 @@ class RedeemBgtAggregator extends BaseAggregator {
|
|
|
15
15
|
supportedChains = [ChainId.MAINNET, ChainId.BEPOLIA];
|
|
16
16
|
readonly type = "rpc";
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
getUnsupportedReason({
|
|
19
19
|
tokenIn,
|
|
20
20
|
tokenOut,
|
|
21
21
|
}: {
|
|
22
22
|
tokenIn: MinimalERC20;
|
|
23
23
|
tokenOut: MinimalERC20;
|
|
24
|
-
}):
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
}): string | null {
|
|
25
|
+
const base = super.getUnsupportedReason({ tokenIn, tokenOut });
|
|
26
|
+
if (base !== null) {
|
|
27
|
+
return base;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
if (
|
|
30
31
|
// only supported on same chain
|
|
31
32
|
tokenIn.chainId === tokenOut.chainId &&
|
|
32
33
|
isToken(tokenIn, "BGT", { chainId: tokenIn.chainId }) &&
|
|
33
34
|
isToken(tokenOut, "BERA")
|
|
34
|
-
)
|
|
35
|
+
) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return `${this.name} only redeems BGT → BERA on the same chain.`;
|
|
35
40
|
}
|
|
36
41
|
// handles native swaps: wrap and unwrap
|
|
37
42
|
async getQuote({
|
|
@@ -121,6 +121,7 @@ class EnsoAggregator extends BaseAggregator {
|
|
|
121
121
|
},
|
|
122
122
|
],
|
|
123
123
|
functionName: "swap",
|
|
124
|
+
extraTags: { aggregator: this.name },
|
|
124
125
|
abi: aggregatorsRouterAbi,
|
|
125
126
|
// send full amount to router first, which will deduct the swap fee before executing trade
|
|
126
127
|
value: isTokenInNative ? BigInt(amount) : BigInt("0"),
|
|
@@ -13,6 +13,7 @@ import { BaseAggregator } from "../base";
|
|
|
13
13
|
class EnsoErc4626Aggregator extends BaseAggregator {
|
|
14
14
|
name = Aggregators.EnsoErc4626;
|
|
15
15
|
supportedChains = null;
|
|
16
|
+
supportsBridging = true;
|
|
16
17
|
readonly type = "rest";
|
|
17
18
|
needsAccountForQuote = true;
|
|
18
19
|
|
|
@@ -53,6 +54,11 @@ class EnsoErc4626Aggregator extends BaseAggregator {
|
|
|
53
54
|
*/
|
|
54
55
|
const zapTokenOut = underlyingToken ?? tokenOut;
|
|
55
56
|
|
|
57
|
+
// Single source of truth for whether this route bridges: the route action
|
|
58
|
+
// gets a `destinationChainId` (LayerZero) exactly when this is true, and it
|
|
59
|
+
// is stamped onto the returned quote so consumers stop re-deriving it.
|
|
60
|
+
const isCrossChain = tokenIn.chainId !== zapTokenOut.chainId;
|
|
61
|
+
|
|
56
62
|
const bundleActions: BundleAction[] = [
|
|
57
63
|
// this is the base route action, which will swap the token in to the zap token out
|
|
58
64
|
// it handles cross-chain swaps and refunds the user if the swap fails
|
|
@@ -63,14 +69,15 @@ class EnsoErc4626Aggregator extends BaseAggregator {
|
|
|
63
69
|
args: {
|
|
64
70
|
tokenIn: tokenIn.address,
|
|
65
71
|
tokenOut: zapTokenOut.address,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
tokenIn.chainId === zapTokenOut.chainId
|
|
69
|
-
? undefined
|
|
70
|
-
: zapTokenOut.chainId,
|
|
72
|
+
// must be undefined if the token is the same chain
|
|
73
|
+
destinationChainId: isCrossChain ? zapTokenOut.chainId : undefined,
|
|
71
74
|
refundReceiver: account,
|
|
75
|
+
receiver: account,
|
|
72
76
|
amountIn: amount,
|
|
73
77
|
slippage: slippage * 100, // Enso expects slippage in basis points
|
|
78
|
+
// We can't track CCIP delivery status (no poller in crossChainBridge),
|
|
79
|
+
// so keep Enso from routing cross-chain zaps through it.
|
|
80
|
+
ignoreBridges: isCrossChain ? ["ccip"] : undefined,
|
|
74
81
|
},
|
|
75
82
|
},
|
|
76
83
|
];
|
|
@@ -143,14 +150,21 @@ class EnsoErc4626Aggregator extends BaseAggregator {
|
|
|
143
150
|
bundleActions,
|
|
144
151
|
);
|
|
145
152
|
|
|
153
|
+
// Enso picks the bridge per-route (relay/stargate/ccip); it reports the
|
|
154
|
+
// choice on the route hop whose action is "bridge". The tracker needs this
|
|
155
|
+
// to know which explorer + status API to hit.
|
|
156
|
+
const bridgeProtocol = bundle.route?.find(
|
|
157
|
+
(hop) => hop.action === "bridge",
|
|
158
|
+
)?.protocol;
|
|
159
|
+
|
|
146
160
|
const tokenOutAddress = (rewardVault?.toLowerCase() ??
|
|
147
161
|
tokenOut.address.toLowerCase()) as Address;
|
|
148
162
|
|
|
149
|
-
const amountOut =
|
|
150
|
-
// @ts-expect-error enso has not typed this but is returned sometimes from API.
|
|
163
|
+
const amountOut = String(
|
|
151
164
|
bundle.minAmountsOut?.[tokenOutAddress] ??
|
|
152
|
-
|
|
153
|
-
|
|
165
|
+
bundle.amountsOut?.[tokenOutAddress] ??
|
|
166
|
+
"0",
|
|
167
|
+
);
|
|
154
168
|
|
|
155
169
|
return {
|
|
156
170
|
amountOut,
|
|
@@ -162,6 +176,9 @@ class EnsoErc4626Aggregator extends BaseAggregator {
|
|
|
162
176
|
}),
|
|
163
177
|
name: this.name,
|
|
164
178
|
swapFeeBps: 0,
|
|
179
|
+
isCrossChain,
|
|
180
|
+
srcChainId: tokenIn.chainId,
|
|
181
|
+
bridgeProtocol,
|
|
165
182
|
priceImpactPercentage: bundle.priceImpact
|
|
166
183
|
? bundle.priceImpact / 100
|
|
167
184
|
: null,
|
|
@@ -169,6 +186,7 @@ class EnsoErc4626Aggregator extends BaseAggregator {
|
|
|
169
186
|
address: bundle.tx.to,
|
|
170
187
|
data: bundle.tx.data as Hex,
|
|
171
188
|
value: BigInt(bundle.tx.value ?? 0),
|
|
189
|
+
extraTags: { aggregator: this.name },
|
|
172
190
|
// not returning gas limit because it's usually underestimated by enso.
|
|
173
191
|
// gasLimit: BigInt(bundle.gas),
|
|
174
192
|
}),
|
|
@@ -30,7 +30,7 @@ class ERC4626Aggregator extends BaseAggregator {
|
|
|
30
30
|
* Returns true when tokenOut is an ERC4626 vault whose underlying asset matches tokenIn,
|
|
31
31
|
* or when depositing native BERA into swBERA.
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
getUnsupportedReason({
|
|
34
34
|
tokenIn,
|
|
35
35
|
tokenOut,
|
|
36
36
|
underlyingToken,
|
|
@@ -38,16 +38,28 @@ class ERC4626Aggregator extends BaseAggregator {
|
|
|
38
38
|
tokenIn: Token;
|
|
39
39
|
tokenOut: Token;
|
|
40
40
|
underlyingToken?: Token;
|
|
41
|
-
}):
|
|
42
|
-
const
|
|
43
|
-
|
|
41
|
+
}): string | null {
|
|
42
|
+
const base = super.getUnsupportedReason({
|
|
43
|
+
tokenIn,
|
|
44
|
+
tokenOut,
|
|
45
|
+
underlyingToken,
|
|
46
|
+
});
|
|
47
|
+
if (base !== null) {
|
|
48
|
+
return base;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const isVaultDeposit =
|
|
44
52
|
!!underlyingToken &&
|
|
45
53
|
underlyingToken?.chainId === tokenOut.chainId &&
|
|
46
54
|
(isToken(underlyingToken, tokenIn) ||
|
|
47
55
|
// this is a special case for the swbera vault
|
|
48
56
|
(isToken(tokenIn, "BERA") && isToken(tokenOut, "SWBERA")));
|
|
49
57
|
|
|
50
|
-
|
|
58
|
+
if (isVaultDeposit) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return `${this.name} only deposits a token into its matching ERC4626 vault.`;
|
|
51
63
|
}
|
|
52
64
|
|
|
53
65
|
/**
|
|
@@ -105,6 +117,7 @@ class ERC4626Aggregator extends BaseAggregator {
|
|
|
105
117
|
functionName: "depositNative",
|
|
106
118
|
params: [BigInt(amount), account],
|
|
107
119
|
value: BigInt(amount),
|
|
120
|
+
extraTags: { aggregator: this.name },
|
|
108
121
|
} satisfies Omit<
|
|
109
122
|
IContractWrite<typeof stakeBeraVaultAbi, "depositNative">,
|
|
110
123
|
"message" | "actionType"
|
|
@@ -116,6 +129,7 @@ class ERC4626Aggregator extends BaseAggregator {
|
|
|
116
129
|
contractName: ContractName.ERC4626,
|
|
117
130
|
params: [BigInt(amount), account],
|
|
118
131
|
value: 0n,
|
|
132
|
+
extraTags: { aggregator: this.name },
|
|
119
133
|
} satisfies Omit<
|
|
120
134
|
IContractWrite<typeof erc4626Abi, "deposit">,
|
|
121
135
|
"message" | "actionType"
|
|
@@ -131,6 +131,7 @@ class FlyAggregator extends BaseAggregator {
|
|
|
131
131
|
},
|
|
132
132
|
],
|
|
133
133
|
functionName: "swap",
|
|
134
|
+
extraTags: { aggregator: this.name },
|
|
134
135
|
abi: aggregatorsRouterAbi,
|
|
135
136
|
// send full amount to router first, which will deduct the swap fee before executing trade
|
|
136
137
|
value: isToken(tokenIn, "BERA") ? BigInt(amount) : BigInt("0"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { formatUnits, parseUnits, zeroAddress } from "viem";
|
|
1
|
+
import { type Address, formatUnits, parseUnits, zeroAddress } from "viem";
|
|
2
2
|
|
|
3
3
|
import { ChainId } from "@berachain/config/internal";
|
|
4
4
|
|
|
@@ -6,7 +6,11 @@ import aggregatorsRouterAbi from "@berachain/abis/meta-aggregator/metaAggregator
|
|
|
6
6
|
|
|
7
7
|
import { Aggregators, SwapReferrer } from "../../../enum/dex";
|
|
8
8
|
import { BeraError } from "../../../errors/BeraError";
|
|
9
|
-
import type {
|
|
9
|
+
import type {
|
|
10
|
+
IAggregatorArgs,
|
|
11
|
+
IRawAggregatorQuote,
|
|
12
|
+
Token,
|
|
13
|
+
} from "../../../types/dex";
|
|
10
14
|
import type { IContractWrite } from "../../../types/global";
|
|
11
15
|
import { BaseAggregator } from "./base";
|
|
12
16
|
|
|
@@ -21,6 +25,32 @@ class HaikuAggregator extends BaseAggregator {
|
|
|
21
25
|
"No route found for the given input or the liquidity is not enough",
|
|
22
26
|
"Invalid input amount. Please ensure the total amount of input is greater than 0.001 USD",
|
|
23
27
|
];
|
|
28
|
+
|
|
29
|
+
getUnsupportedReason({
|
|
30
|
+
tokenIn,
|
|
31
|
+
tokenOut,
|
|
32
|
+
rewardVault,
|
|
33
|
+
}: {
|
|
34
|
+
tokenIn: Token;
|
|
35
|
+
tokenOut: Token;
|
|
36
|
+
rewardVault?: Address;
|
|
37
|
+
}): string | null {
|
|
38
|
+
const base = super.getUnsupportedReason({ tokenIn, tokenOut });
|
|
39
|
+
if (base !== null) {
|
|
40
|
+
return base;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Reward-vault staking zaps go through the restricted `zap-haiku` proxy key,
|
|
44
|
+
// which rejects quotes with a 400 (HUB-9FN/HUB-9FR). That's expected — Haiku
|
|
45
|
+
// isn't provisioned for zaps — so opt out up-front here so the quote hook is
|
|
46
|
+
// never called and no doomed request fires (and no Sentry error).
|
|
47
|
+
if (rewardVault) {
|
|
48
|
+
return `${this.name} does not support reward-vault staking.`;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
|
|
24
54
|
async getQuote({
|
|
25
55
|
tokenIn,
|
|
26
56
|
tokenOut,
|
|
@@ -158,6 +188,7 @@ class HaikuAggregator extends BaseAggregator {
|
|
|
158
188
|
},
|
|
159
189
|
],
|
|
160
190
|
functionName: "swap",
|
|
191
|
+
extraTags: { aggregator: this.name },
|
|
161
192
|
abi: aggregatorsRouterAbi,
|
|
162
193
|
// send full amount to router first, which will deduct the swap fee before executing trade
|
|
163
194
|
value: isTokenInNative ? BigInt(amount) : BigInt("0"),
|
|
@@ -69,7 +69,7 @@ export class HoneyNativeAggregator extends BaseAggregator {
|
|
|
69
69
|
);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
getUnsupportedReason({
|
|
73
73
|
tokenIn,
|
|
74
74
|
tokenOut,
|
|
75
75
|
honeyNativeState,
|
|
@@ -77,16 +77,24 @@ export class HoneyNativeAggregator extends BaseAggregator {
|
|
|
77
77
|
tokenIn: Token;
|
|
78
78
|
tokenOut: Token;
|
|
79
79
|
honeyNativeState?: Pick<HoneyConfigContextReturn, "collateralList">;
|
|
80
|
-
}):
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
}): string | null {
|
|
81
|
+
const base = super.getUnsupportedReason({ tokenIn, tokenOut });
|
|
82
|
+
if (base !== null) {
|
|
83
|
+
return base;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (
|
|
83
87
|
tokenIn.chainId === tokenOut.chainId &&
|
|
84
88
|
this.isHoneyNativeSwap({
|
|
85
89
|
tokenIn: tokenIn.address,
|
|
86
90
|
tokenOut: tokenOut.address,
|
|
87
91
|
honeyNativeState,
|
|
88
92
|
})
|
|
89
|
-
)
|
|
93
|
+
) {
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return `${this.name} only mints/redeems HONEY against a listed collateral.`;
|
|
90
98
|
}
|
|
91
99
|
|
|
92
100
|
async getQuote({
|
|
@@ -108,7 +116,10 @@ export class HoneyNativeAggregator extends BaseAggregator {
|
|
|
108
116
|
}
|
|
109
117
|
assertPublicClient(publicClient);
|
|
110
118
|
|
|
111
|
-
|
|
119
|
+
// Pass `honeyNativeState` through — Honey's `getUnsupportedReason` override
|
|
120
|
+
// needs it to confirm this is a valid mint/redeem. Without it the assert
|
|
121
|
+
// always fails with a misleading "chain ID: X and X" error (HUB-9FM).
|
|
122
|
+
this.assertChainSupport({ tokenIn, tokenOut, honeyNativeState });
|
|
112
123
|
|
|
113
124
|
const isMint = isToken(tokenOut, this.honeyToken);
|
|
114
125
|
|
|
@@ -127,6 +127,7 @@ class KyberSwapAggregator extends BaseAggregator {
|
|
|
127
127
|
},
|
|
128
128
|
],
|
|
129
129
|
functionName: "swap",
|
|
130
|
+
extraTags: { aggregator: this.name },
|
|
130
131
|
abi: aggregatorsRouterAbi,
|
|
131
132
|
// send full amount to router first, which will deduct the swap fee before executing trade
|
|
132
133
|
value: isTokenInNative ? BigInt(amount) : BigInt("0"),
|
|
@@ -100,6 +100,7 @@ class OogaboogaAggregator extends BaseAggregator {
|
|
|
100
100
|
},
|
|
101
101
|
],
|
|
102
102
|
functionName: "swap",
|
|
103
|
+
extraTags: { aggregator: this.name },
|
|
103
104
|
abi: aggregatorsRouterAbi,
|
|
104
105
|
// send full amount to router first, which will deduct the swap fee before executing trade
|
|
105
106
|
value: isTokenInNative ? BigInt(amount) : BigInt("0"),
|
|
@@ -136,6 +136,7 @@ class OpenOceanAggregator extends BaseAggregator {
|
|
|
136
136
|
},
|
|
137
137
|
],
|
|
138
138
|
functionName: "swap",
|
|
139
|
+
extraTags: { aggregator: this.name },
|
|
139
140
|
abi: aggregatorsRouterAbi,
|
|
140
141
|
// send full amount to router first, which will deduct the swap fee before executing trade
|
|
141
142
|
value: isTokenInNative ? BigInt(amount) : BigInt("0"),
|
|
@@ -16,27 +16,31 @@ class WBeraAggregator extends BaseAggregator {
|
|
|
16
16
|
name = Aggregators.Wrap;
|
|
17
17
|
supportedChains = [ChainId.MAINNET, ChainId.BEPOLIA];
|
|
18
18
|
readonly type = "rpc";
|
|
19
|
+
// This aggregator's entire job is BERA↔WBERA, so keep the base same-token
|
|
20
|
+
// (native-normalized) guard from rejecting it.
|
|
21
|
+
supportsBeraWrap = true;
|
|
19
22
|
|
|
20
|
-
|
|
23
|
+
getUnsupportedReason({
|
|
21
24
|
tokenIn,
|
|
22
25
|
tokenOut,
|
|
23
26
|
}: {
|
|
24
27
|
tokenIn: Token;
|
|
25
28
|
tokenOut: Token;
|
|
26
|
-
}):
|
|
29
|
+
}): string | null {
|
|
30
|
+
const base = super.getUnsupportedReason({ tokenIn, tokenOut });
|
|
31
|
+
if (base !== null) {
|
|
32
|
+
return base;
|
|
33
|
+
}
|
|
34
|
+
|
|
27
35
|
if (
|
|
28
|
-
|
|
29
|
-
tokenIn
|
|
30
|
-
|
|
31
|
-
!super.checkChainSupport({ tokenIn, tokenOut })
|
|
36
|
+
tokenIn.chainId === tokenOut.chainId &&
|
|
37
|
+
((isToken(tokenIn, "BERA") && isToken(tokenOut, "WBERA")) ||
|
|
38
|
+
(isToken(tokenIn, "WBERA") && isToken(tokenOut, "BERA")))
|
|
32
39
|
) {
|
|
33
|
-
return
|
|
40
|
+
return null;
|
|
34
41
|
}
|
|
35
42
|
|
|
36
|
-
return
|
|
37
|
-
(isToken(tokenIn, "BERA") && isToken(tokenOut, "WBERA")) ||
|
|
38
|
-
(isToken(tokenIn, "WBERA") && isToken(tokenOut, "BERA"))
|
|
39
|
-
);
|
|
43
|
+
return `${this.name} only wraps/unwraps between BERA and WBERA on the same chain.`;
|
|
40
44
|
}
|
|
41
45
|
|
|
42
46
|
// handles native swaps: wrap and unwrap
|
|
@@ -67,6 +71,7 @@ class WBeraAggregator extends BaseAggregator {
|
|
|
67
71
|
functionName: "deposit",
|
|
68
72
|
params: [],
|
|
69
73
|
value: BigInt(amount),
|
|
74
|
+
extraTags: { aggregator: this.name },
|
|
70
75
|
} satisfies Omit<
|
|
71
76
|
IContractWrite<typeof wberaAbi, "deposit">,
|
|
72
77
|
"message" | "actionType"
|
|
@@ -77,6 +82,7 @@ class WBeraAggregator extends BaseAggregator {
|
|
|
77
82
|
functionName: "withdraw",
|
|
78
83
|
params: [BigInt(amount)],
|
|
79
84
|
value: BigInt(0),
|
|
85
|
+
extraTags: { aggregator: this.name },
|
|
80
86
|
} satisfies Omit<
|
|
81
87
|
IContractWrite<typeof wberaAbi, "withdraw">,
|
|
82
88
|
"message" | "actionType"
|
|
@@ -7,7 +7,7 @@ import type { Address } from "viem";
|
|
|
7
7
|
|
|
8
8
|
import type { MinimalPoolFragment } from "@berachain/graphql/dex/api";
|
|
9
9
|
|
|
10
|
-
export
|
|
10
|
+
export function getPoolState(apiPool: MinimalPoolFragment): PoolState {
|
|
11
11
|
return {
|
|
12
12
|
type: mapPoolType(apiPool.type),
|
|
13
13
|
protocolVersion: apiPool.protocolVersion as 1 | 2 | 3,
|
|
@@ -21,4 +21,4 @@ export const getPoolState = (apiPool: MinimalPoolFragment): PoolState => {
|
|
|
21
21
|
id: apiPool.id as Address,
|
|
22
22
|
address: apiPool.address as Address,
|
|
23
23
|
} satisfies PoolState;
|
|
24
|
-
}
|
|
24
|
+
}
|