@berachain/berajs 0.2.11 → 0.2.13
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/{RequestError-DBOIV65x.d.ts → RequestError-DkUbo3ro.d.ts} +1 -0
- 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/actions/clients/BeraApolloClient.d.ts +28 -0
- package/dist/actions/clients/BeraApolloClient.d.ts.map +1 -0
- package/dist/actions/clients/exports.d.ts +4 -78
- package/dist/actions/clients/exports.d.ts.map +1 -0
- package/dist/actions/clients/exports.mjs +11 -12
- 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/fetchOpenApi.d.ts +48 -0
- package/dist/actions/clients/fetchOpenApi.d.ts.map +1 -0
- package/dist/actions/clients/fetchOpenApi.unit.test.d.ts +2 -0
- package/dist/actions/clients/fetchOpenApi.unit.test.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/__tests__/aggregators.unit.test.d.ts +2 -0
- package/dist/actions/dex/__tests__/aggregators.unit.test.d.ts.map +1 -0
- package/dist/actions/dex/__tests__/allPools.integration.test.d.ts +2 -0
- package/dist/actions/dex/__tests__/allPools.integration.test.d.ts.map +1 -0
- package/dist/actions/dex/__tests__/getOnChainPool.unit.test.d.ts +2 -0
- package/dist/actions/dex/__tests__/getOnChainPool.unit.test.d.ts.map +1 -0
- package/dist/actions/dex/aggregators/base.d.ts +89 -0
- package/dist/actions/dex/aggregators/base.d.ts.map +1 -0
- package/dist/actions/dex/aggregators/bex.d.ts +26 -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 +14 -0
- package/dist/actions/dex/aggregators/enso/ensoErc4626.d.ts.map +1 -0
- package/dist/actions/dex/aggregators/enso/ensoErc4626.debug.test.d.ts +2 -0
- package/dist/actions/dex/aggregators/enso/ensoErc4626.debug.test.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 +14 -0
- package/dist/actions/dex/aggregators/haiku.d.ts.map +1 -0
- package/dist/actions/dex/aggregators/haiku.integration.test.d.ts +2 -0
- package/dist/actions/dex/aggregators/haiku.integration.test.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 +17 -0
- package/dist/actions/dex/aggregators/wbera.d.ts.map +1 -0
- package/dist/actions/dex/b-sdk.d.ts +3 -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__/getBendDemultiplyBundle.action.unit.test.d.ts +2 -0
- package/dist/actions/enso/__tests__/getBendDemultiplyBundle.action.unit.test.d.ts.map +1 -0
- package/dist/actions/enso/__tests__/getBendDemultiplyBundle.unit.test.d.ts +2 -0
- package/dist/actions/enso/__tests__/getBendDemultiplyBundle.unit.test.d.ts.map +1 -0
- package/dist/actions/enso/__tests__/getBendMultiplyBundle.action.unit.test.d.ts +2 -0
- package/dist/actions/enso/__tests__/getBendMultiplyBundle.action.unit.test.d.ts.map +1 -0
- package/dist/actions/enso/__tests__/getBendMultiplyBundle.unit.test.d.ts +2 -0
- package/dist/actions/enso/__tests__/getBendMultiplyBundle.unit.test.d.ts.map +1 -0
- package/dist/actions/enso/__tests__/getEnsoUserTokensWithBalances.debug.test.d.ts +2 -0
- package/dist/actions/enso/__tests__/getEnsoUserTokensWithBalances.debug.test.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/__tests__/util.unit.test.d.ts +2 -0
- package/dist/actions/enso/__tests__/util.unit.test.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/getEnsoSwapBundle.d.ts +3 -0
- package/dist/actions/enso/getEnsoSwapBundle.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 +40 -0
- package/dist/actions/enso/util.d.ts.map +1 -0
- package/dist/actions/exports.d.ts +100 -1646
- package/dist/actions/exports.d.ts.map +1 -0
- package/dist/actions/exports.mjs +45 -56
- package/dist/actions/exports.mjs.map +1 -0
- package/dist/actions/governance/__tests__/checkProposalField.unit.test.d.ts +2 -0
- package/dist/actions/governance/__tests__/checkProposalField.unit.test.d.ts.map +1 -0
- package/dist/actions/governance/__tests__/getDecodedFunctionData.integration.test.d.ts +2 -0
- package/dist/actions/governance/__tests__/getDecodedFunctionData.integration.test.d.ts.map +1 -0
- package/dist/actions/governance/__tests__/getQuorum.integration.test.d.ts +2 -0
- package/dist/actions/governance/__tests__/getQuorum.integration.test.d.ts.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/honey/tests/pyth.integration.test.d.ts +2 -0
- package/dist/actions/honey/tests/pyth.integration.test.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/__tests__/getAllValidators.integration.test.d.ts +2 -0
- package/dist/actions/pol/__tests__/getAllValidators.integration.test.d.ts.map +1 -0
- package/dist/actions/pol/__tests__/getValidator.integration.test.d.ts +2 -0
- package/dist/actions/pol/__tests__/getValidator.integration.test.d.ts.map +1 -0
- package/dist/actions/pol/__tests__/rewardVaults.integration.test.d.ts +2 -0
- package/dist/actions/pol/__tests__/rewardVaults.integration.test.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/getBgtAprSimultaion.unit.test.d.ts +2 -0
- package/dist/actions/pol/getBgtAprSimultaion.unit.test.d.ts.map +1 -0
- package/dist/actions/pol/getBgtIncentiveDistributorPaused.d.ts +10 -0
- package/dist/actions/pol/getBgtIncentiveDistributorPaused.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/getBlockTime.debug.test.d.ts +2 -0
- package/dist/actions/pol/getBlockTime.debug.test.d.ts.map +1 -0
- package/dist/actions/pol/getEarnedStakedBeraVault.d.ts +42 -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/getRewardProofsByValidator.d.ts +9 -0
- package/dist/actions/pol/getRewardProofsByValidator.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/getRewardVaultBeaconImplementation.integration.test.d.ts +2 -0
- package/dist/actions/pol/getRewardVaultBeaconImplementation.integration.test.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/getRewardVaultDurationConstants.integration.test.d.ts +2 -0
- package/dist/actions/pol/getRewardVaultDurationConstants.integration.test.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 +32 -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/getStakedBeraAPR.d.ts +12 -0
- package/dist/actions/pol/getStakedBeraAPR.d.ts.map +1 -0
- package/dist/actions/pol/getStakedBeraSnapshots.d.ts +12 -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/getUserClaimableIncentives.d.ts +9 -0
- package/dist/actions/pol/getUserClaimableIncentives.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/__tests__/prices.integration.test.d.ts +2 -0
- package/dist/actions/prices/__tests__/prices.integration.test.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/tokens/getWalletBalances.integration.test.d.ts +2 -0
- package/dist/actions/tokens/getWalletBalances.integration.test.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/transactions/beraWriteContract.integration.test.d.ts +2 -0
- package/dist/actions/transactions/beraWriteContract.integration.test.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/getActiveBoostAndCommissionChangeDelay.integration.test.d.ts +2 -0
- package/dist/actions/validators/getActiveBoostAndCommissionChangeDelay.integration.test.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 +12 -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/getValidatorAnalytics.d.ts +12 -0
- package/dist/actions/validators/getValidatorAnalytics.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 +52 -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/__tests__/validatorUtils.integration.test.d.ts +2 -0
- package/dist/actions/validators/utils/__tests__/validatorUtils.integration.test.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/aggregateValidatorIncentives.unit.test.d.ts +2 -0
- package/dist/actions/validators/utils/aggregateValidatorIncentives.unit.test.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-BGMRHTBQ.mjs → chunk-7TFV6UKF.mjs} +1 -0
- package/dist/chunk-7TFV6UKF.mjs.map +1 -0
- package/dist/{chunk-QVHEM4BG.mjs → chunk-AEN6IJFU.mjs} +10 -4
- package/dist/chunk-AEN6IJFU.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-MRQGHXAN.mjs → chunk-BSOWLS3W.mjs} +4 -18
- package/dist/chunk-BSOWLS3W.mjs.map +1 -0
- package/dist/{chunk-VAA2FVPP.mjs → chunk-DOZJB6IJ.mjs} +140 -281
- package/dist/chunk-DOZJB6IJ.mjs.map +1 -0
- package/dist/{chunk-GUURQAME.mjs → chunk-EGAB6NFQ.mjs} +2 -1
- package/dist/chunk-EGAB6NFQ.mjs.map +1 -0
- package/dist/{chunk-AUOPN6NK.mjs → chunk-EJIGERYM.mjs} +2 -1
- package/dist/chunk-EJIGERYM.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-O2NQFKJK.mjs → chunk-IFNIPVTZ.mjs} +1 -0
- package/dist/chunk-IFNIPVTZ.mjs.map +1 -0
- package/dist/{chunk-HYDP32P6.mjs → chunk-J3LTASDE.mjs} +6 -6
- package/dist/chunk-J3LTASDE.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-7YVNSDXG.mjs → chunk-LE4CYW7S.mjs} +3 -2
- package/dist/chunk-LE4CYW7S.mjs.map +1 -0
- package/dist/{chunk-KHXJDYA4.mjs → chunk-NZAH3SGT.mjs} +26 -0
- package/dist/chunk-NZAH3SGT.mjs.map +1 -0
- package/dist/{chunk-ZLTMIFCZ.mjs → chunk-P3YZ7F22.mjs} +12 -5
- package/dist/chunk-P3YZ7F22.mjs.map +1 -0
- package/dist/{chunk-3JJLQ2JX.mjs → chunk-PHYZRH4I.mjs} +10 -10
- package/dist/chunk-PHYZRH4I.mjs.map +1 -0
- package/dist/{chunk-IXIBY5FP.mjs → chunk-PJRLHTGC.mjs} +3 -2
- package/dist/chunk-PJRLHTGC.mjs.map +1 -0
- package/dist/{chunk-GY6B3PD5.mjs → chunk-QQASX4LJ.mjs} +12 -1
- package/dist/chunk-QQASX4LJ.mjs.map +1 -0
- package/dist/{chunk-UD5IUNCW.mjs → chunk-RM227WHI.mjs} +15 -2
- package/dist/chunk-RM227WHI.mjs.map +1 -0
- package/dist/{chunk-DQRH5VE3.mjs → chunk-TGN55GKE.mjs} +2 -1
- package/dist/chunk-TGN55GKE.mjs.map +1 -0
- package/dist/{chunk-SXUNCX5E.mjs → chunk-UA3Z47LT.mjs} +10 -13
- package/dist/chunk-UA3Z47LT.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-Y6THHG77.mjs → chunk-ZWTGVIPJ.mjs} +3 -2
- package/dist/chunk-ZWTGVIPJ.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/contexts/BexStatusProvider.d.ts +67 -0
- 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/block-time-provider.d.ts +10 -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 +15 -0
- package/dist/enum/contracts.d.ts.map +1 -0
- package/dist/enum/dex.d.ts +36 -0
- 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 +3 -2
- 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/enum/honey.d.ts +13 -0
- 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/enum/txnEnum.d.ts +90 -0
- package/dist/enum/txnEnum.d.ts.map +1 -0
- package/dist/errors/BeraError.d.ts +99 -0
- package/dist/errors/BeraError.d.ts.map +1 -0
- package/dist/errors/BeraError.unit.test.d.ts +2 -0
- package/dist/errors/BeraError.unit.test.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/BeraTracing.unit.test.d.ts +2 -0
- package/dist/errors/BeraTracing.unit.test.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 +56 -0
- package/dist/errors/RequestError.d.ts.map +1 -0
- package/dist/errors/RequestError.unit.test.d.ts +2 -0
- package/dist/errors/RequestError.unit.test.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/assert.unit.test.d.ts +2 -0
- package/dist/errors/assert.unit.test.d.ts.map +1 -0
- package/dist/errors/errorMap.d.ts +1083 -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/getRevertReason.integration.test.d.ts +2 -0
- package/dist/errors/getRevertReason.integration.test.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/errors/spanStatus.unit.test.d.ts +2 -0
- package/dist/errors/spanStatus.unit.test.d.ts.map +1 -0
- package/dist/{getApolloClient-BcUTGFUb.d.ts → getApolloClient-MWm_iq4u.d.ts} +4 -5
- package/dist/{getValidatorQueuedOperatorAddress-Cxt-DlL_.d.ts → getValidatorQueuedOperatorAddress-N2I7wHd6.d.ts} +7 -58
- package/dist/{global.d-q_LQWQqs.d.ts → global.d-CR3zicga.d.ts} +2 -7
- package/dist/global.d-CiZJ2eHz.d.ts +231 -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/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/useEnsoSwapBundle.d.ts +26 -0
- package/dist/hooks/enso/useEnsoSwapBundle.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 +109 -1541
- package/dist/hooks/exports.d.ts.map +1 -0
- package/dist/hooks/exports.mjs +447 -754
- 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 +70 -80
- 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/hooks/honey/useHoneySwapState.d.ts +30 -0
- 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/useBgtIncentiveDistributorPaused.d.ts +8 -0
- package/dist/hooks/pol/useBgtIncentiveDistributorPaused.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/useStakedAPR.d.ts +11 -0
- package/dist/hooks/pol/useStakedAPR.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 +7 -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 +9 -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 +7 -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/useUserClaimableIncentives.d.ts +8 -0
- package/dist/hooks/validators/useUserClaimableIncentives.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/useValidatorAnalytics.d.ts +11 -0
- package/dist/hooks/validators/useValidatorAnalytics.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 +14 -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 +9 -0
- package/dist/hooks/validators/useValidatorRewardAllocation.d.ts.map +1 -0
- package/dist/types/bribeBoost.d.ts +69 -0
- package/dist/types/dex.d.ts +225 -0
- package/dist/types/enso.d.ts +76 -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/global.d.ts +198 -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/types/governance.d.ts +112 -0
- package/dist/types/honeySwap.d.ts +23 -0
- package/dist/types/pol.d.ts +78 -0
- package/dist/types/staking.d.ts +22 -0
- package/dist/useHoneySwapState-CXVWAThr.d.ts +32 -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/createEmitter.unit.test.d.ts +2 -0
- package/dist/utils/createEmitter.unit.test.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 +33 -22
- 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/formatIncentivesTokenMap.d.ts +3 -0
- package/dist/utils/formatIncentivesTokenMap.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/formatNumber.unit.test.d.ts +2 -0
- package/dist/utils/formatNumber.unit.test.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/formatTimestamps.unit.test.d.ts +2 -0
- package/dist/utils/formatTimestamps.unit.test.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/getContractName.unit.test.d.ts +2 -0
- package/dist/utils/getContractName.unit.test.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/getHoneySwapMessage.test.d.ts +2 -0
- package/dist/utils/getHoneySwapMessage.test.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 +73 -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/layerZeroScan.d.ts +39 -0
- package/dist/utils/layerZeroScan.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/math.unit.test.d.ts +2 -0
- package/dist/utils/math.unit.test.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/parseBaseArgs.unit.test.d.ts +2 -0
- package/dist/utils/parseBaseArgs.unit.test.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/polyfillAbortSignalAny.unit.test.d.ts +2 -0
- package/dist/utils/polyfillAbortSignalAny.unit.test.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/time.unit.test.d.ts +2 -0
- package/dist/utils/time.unit.test.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/tokens.unit.test.d.ts +2 -0
- package/dist/utils/tokens.unit.test.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/truncateHash.unit.test.d.ts +2 -0
- package/dist/utils/truncateHash.unit.test.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 +6 -4
- package/src/actions/clients/BeraApolloClient.ts +4 -2
- package/src/actions/clients/exports.ts +0 -1
- package/src/actions/clients/fetchBeep.ts +0 -7
- package/src/actions/clients/fetchOpenApi.ts +4 -4
- package/src/actions/clients/fetchOpenApi.unit.test.ts +12 -28
- package/src/actions/clients/getApolloClient.ts +4 -9
- package/src/actions/dex/aggregators/base.ts +3 -1
- package/src/actions/dex/aggregators/bex.ts +3 -10
- package/src/actions/dex/getPoolWithState.ts +2 -2
- package/src/actions/enso/__tests__/helpers.ts +15 -10
- package/src/actions/enso/getEnsoSwapBundle.ts +3 -8
- package/src/actions/exports.ts +2 -4
- package/src/actions/governance/getDecodedFunctionData.ts +5 -1
- package/src/actions/honey/getChartData.ts +3 -44
- package/src/actions/honey/getHoney24hVolume.ts +2 -21
- package/src/actions/honey/getHoneyTxns.ts +1 -49
- package/src/actions/honey/getSwapPayload.ts +4 -4
- package/src/actions/pol/__tests__/rewardVaults.integration.test.ts +3 -3
- package/src/actions/pol/getAutoclaimedIncentives.ts +1 -1
- package/src/actions/pol/getAutoclaimedIncentivesTxHash.ts +1 -1
- package/src/actions/pol/getEarnedStakedBeraVault.ts +0 -15
- package/src/actions/pol/getGlobalData.ts +10 -29
- package/src/actions/pol/getRewardProofsByValidator.ts +1 -1
- package/src/actions/pol/{getUserVaultsReward.ts → getRewardVaultEarnedRewards.ts} +6 -4
- package/src/actions/pol/getRewardVaults.ts +4 -4
- package/src/actions/pol/getSWBeraVaultMetadata.ts +0 -7
- package/src/actions/pol/getStakingDailyAssets.ts +0 -14
- package/src/actions/pol/getUserClaimableIncentives.ts +1 -1
- 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/getApiEnrichedAllocation.ts +1 -1
- package/src/actions/validators/getUserBoostsOnValidator.ts +6 -9
- package/src/actions/validators/getValidatorAnalytics.ts +5 -1
- package/src/actions/validators/getValidatorEstimatedBgtPerYear.ts +3 -3
- package/src/actions/validators/getValidatorIncentiveDistribution.ts +2 -24
- package/src/contexts/exports.ts +1 -1
- package/src/errors/BeraError.ts +51 -1
- package/src/errors/BeraError.unit.test.ts +71 -0
- package/src/errors/BeraTracing.unit.test.ts +17 -18
- package/src/errors/RequestError.ts +18 -4
- package/src/errors/RequestError.unit.test.ts +47 -0
- package/src/errors/assert.ts +29 -0
- package/src/hooks/bend/useGetConvertToAssets.ts +4 -11
- package/src/hooks/dex/useAggregatorsQuotes.ts +3 -1
- package/src/hooks/dex/useAggregatorsRouterFeeBps.ts +3 -8
- package/src/hooks/dex/useAllUserPools.ts +7 -14
- package/src/hooks/dex/useApiPool.ts +4 -11
- package/src/hooks/dex/useCreatePool.ts +13 -13
- package/src/hooks/dex/useGlobalLiquidityAndSwapVolume.ts +2 -3
- package/src/hooks/dex/useLiquidityMismatch.ts +3 -3
- package/src/hooks/dex/useLpPosition.ts +3 -3
- package/src/hooks/dex/useOnChainPoolData.ts +2 -3
- package/src/hooks/dex/usePollPoolCreationRelayerApproval.ts +4 -10
- package/src/hooks/dex/usePoolEvents.ts +3 -3
- package/src/hooks/dex/usePoolHistoricalData.ts +4 -9
- package/src/hooks/dex/usePools.ts +8 -8
- package/src/hooks/dex/usePriceImpact.ts +6 -6
- package/src/hooks/enso/useBendZapSupply.ts +1 -1
- package/src/hooks/enso/useEnsoSwapBundle.ts +1 -1
- package/src/hooks/enso/useEnsoUserTokensWithBalances.ts +1 -5
- package/src/hooks/enso/useZapStakeBera.ts +0 -3
- package/src/hooks/exports.ts +0 -4
- 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 +7 -10
- package/src/hooks/governance/usePollProposalThreshold.ts +4 -9
- package/src/hooks/governance/usePollProposalVotes.ts +12 -12
- package/src/hooks/governance/usePollUserDelegates.ts +19 -20
- package/src/hooks/governance/useProposalFromTx.ts +5 -7
- package/src/hooks/governance/useProposalSnapshot.ts +4 -4
- package/src/hooks/governance/useProposalState.ts +4 -4
- package/src/hooks/governance/useProposalTimelockState.ts +2 -2
- package/src/hooks/honey/useCappedGlobally.ts +4 -9
- package/src/hooks/honey/useCappedRelatively.ts +4 -9
- package/src/hooks/honey/useCollateralWeights.ts +4 -9
- package/src/hooks/honey/useHoney24hVolume.ts +1 -5
- package/src/hooks/honey/useHoneyAlerts.ts +9 -9
- package/src/hooks/honey/useHoneyBalances.ts +4 -9
- package/src/hooks/honey/useHoneyChartData.ts +3 -11
- package/src/hooks/honey/useHoneySwapState.ts +2 -2
- package/src/hooks/honey/useHoneyVaultsBalance.ts +4 -9
- package/src/hooks/honey/useIsBadCollateralAsset.ts +4 -9
- package/src/hooks/honey/useIsBasketModeEnabled.ts +1 -6
- package/src/hooks/honey/usePythLatestPrices.ts +4 -6
- package/src/hooks/perps/usePythUpdateFee.ts +3 -3
- package/src/hooks/pol/useAutoclaimedIncentives.ts +2 -7
- package/src/hooks/pol/useAutoclaimedIncentivesTxHash.ts +2 -7
- package/src/hooks/pol/useBgtIncentiveDistributorPaused.ts +1 -6
- package/src/hooks/pol/useBgtUnstakedBalance.ts +4 -9
- package/src/hooks/pol/useClaimableFees.ts +5 -9
- package/src/hooks/pol/useHighestVaultsAPR.ts +5 -8
- package/src/hooks/pol/useOnChainRewardVault.ts +6 -5
- package/src/hooks/pol/usePollGlobalData.ts +4 -9
- package/src/hooks/pol/usePollMarkets.ts +6 -11
- package/src/hooks/pol/useQueuedBeraUnlock.ts +1 -10
- package/src/hooks/pol/useRewardTokenToBeraRate.ts +6 -14
- package/src/hooks/pol/useRewardVault.ts +8 -7
- package/src/hooks/pol/useRewardVaultBalanceFromStakingToken.ts +5 -5
- package/src/hooks/pol/useRewardVaultFromToken.ts +26 -32
- package/src/hooks/pol/useRewardVaultIncentives.ts +1 -6
- package/src/hooks/pol/useRewardVaultRewards.ts +4 -9
- package/src/hooks/pol/useRewardVaults.ts +7 -12
- package/src/hooks/pol/useStakedAPR.ts +1 -6
- package/src/hooks/pol/useStakedData.ts +2 -2
- package/src/hooks/pol/useStakedSnapshots.ts +3 -8
- package/src/hooks/pol/useStakingVaultsMetadata.ts +3 -3
- package/src/hooks/pol/useTotalStakedAmount.ts +1 -6
- package/src/hooks/pol/useUserVaultInfo.ts +4 -9
- package/src/hooks/pol/useUserVaults.ts +4 -8
- package/src/hooks/pol/useVaultAddress.ts +2 -2
- package/src/hooks/pol/useVaultHistory.ts +4 -9
- package/src/hooks/pol/useVaultValidators.ts +4 -9
- package/src/hooks/tokens/useBeraCurrentPrice.ts +8 -4
- package/src/hooks/tokens/useMultipleTokenInformation.ts +1 -6
- package/src/hooks/tokens/usePollAllowances.ts +1 -7
- package/src/hooks/tokens/usePollBalance.ts +0 -3
- package/src/hooks/tokens/usePollWalletBalances.ts +1 -1
- package/src/hooks/tokens/useStakingTokenInformation.ts +4 -13
- package/src/hooks/tokens/useTokenInformation.ts +1 -6
- 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 +7 -12
- package/src/hooks/validators/useApiValidator.ts +7 -11
- package/src/hooks/validators/useManagedValidatorRole.ts +0 -1
- package/src/hooks/validators/useOnChainValidator.ts +4 -11
- package/src/hooks/validators/useStakingPoolBatch.ts +4 -9
- package/src/hooks/validators/useUserActiveValidators.ts +4 -9
- package/src/hooks/validators/useUserBoostsOnValidator.ts +4 -6
- package/src/hooks/validators/useUserClaimableIncentives.ts +116 -117
- package/src/hooks/validators/useUserStakingPositions.ts +4 -11
- package/src/hooks/validators/useValidatorAnalytics.ts +4 -3
- package/src/hooks/validators/useValidatorCommission.ts +4 -9
- package/src/hooks/validators/useValidatorEstimatedBgtPerYear.ts +4 -4
- package/src/hooks/validators/useValidatorIncentiveDistribution.ts +1 -3
- package/src/hooks/validators/useValidatorQueuedCommission.ts +1 -6
- package/src/hooks/validators/useValidatorQueuedOperatorAddress.ts +4 -9
- package/src/hooks/validators/useValidatorQueuedRewardAllocation.ts +4 -9
- package/src/hooks/validators/useValidatorRewardAllocation.ts +1 -6
- package/src/types/bribeBoost.d.ts +69 -0
- package/src/types/exports.ts +1 -1
- package/src/types/global.d.ts +5 -7
- package/src/utils/filter.ts +3 -5
- package/src/utils/formatIncentivesTokenMap.ts +8 -8
- 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/layerZeroScan.ts +3 -1
- 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/src/actions/clients/fetchRailwayBackend.ts +0 -34
- package/src/actions/pol/getGlobalCuttingBoard.ts +0 -25
- package/src/actions/pol/getIncentiveFeeClaimStats.ts +0 -24
- package/src/actions/validators/getDailyValidatorBlockStats.ts +0 -38
- package/src/hooks/tokens/useTokenCurrentPrice.ts +0 -21
- package/src/hooks/validators/useDailyValidatorBlockStats.ts +0 -35
- package/src/hooks/validators/useDefaultRewardAllocation.ts +0 -31
- /package/{src → dist}/types/bribe-boost.d.ts +0 -0
- /package/src/actions/dex/{b-sdk.ts → bSdk.ts} +0 -0
- /package/src/contexts/{block-time-provider.tsx → BlockTimeProvider.tsx} +0 -0
|
@@ -2,6 +2,8 @@ import type { Address, PublicClient } from "viem";
|
|
|
2
2
|
|
|
3
3
|
import { rewardVaultAbi } from "@berachain/abis/pol/rewards/rewardVault";
|
|
4
4
|
|
|
5
|
+
import { assertAddress, assertPublicClient } from "../../errors/assert";
|
|
6
|
+
|
|
5
7
|
export interface GetVaultsSupply {
|
|
6
8
|
vaultAddress: Address;
|
|
7
9
|
publicClient: PublicClient | undefined;
|
|
@@ -11,8 +13,9 @@ export async function getVaultsSupply({
|
|
|
11
13
|
vaultAddress,
|
|
12
14
|
publicClient,
|
|
13
15
|
}: GetVaultsSupply): Promise<bigint> {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
assertPublicClient(publicClient);
|
|
17
|
+
assertAddress(vaultAddress, "vaultAddress");
|
|
18
|
+
|
|
16
19
|
try {
|
|
17
20
|
const result = await publicClient.readContract({
|
|
18
21
|
address: vaultAddress,
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { Address } from "viem";
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "@berachain/graphql/pol/subgraph";
|
|
3
|
+
import type {
|
|
4
|
+
BlocksBlockStatsResponse,
|
|
5
|
+
ValidatorBlockStatsResponse,
|
|
6
|
+
} from "@berachain/graphql/beep";
|
|
8
7
|
|
|
9
|
-
import {
|
|
8
|
+
import { fetchBeep } from "../clients/fetchBeep";
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* Server-only RSC variant. Goes directly to the pol subgraph upstream
|
|
@@ -15,19 +14,31 @@ import { getApolloClient } from "../clients/getApolloClient";
|
|
|
15
14
|
export async function getDailyValidatorBlockStats({
|
|
16
15
|
pubKey,
|
|
17
16
|
first = 1,
|
|
18
|
-
...args
|
|
19
17
|
}: BeraJS.BaseFunctionArgs & {
|
|
20
18
|
pubKey: Address;
|
|
21
19
|
first?: number;
|
|
22
|
-
}): Promise<
|
|
23
|
-
|
|
20
|
+
}): Promise<{
|
|
21
|
+
validatorBlockStats: ValidatorBlockStatsResponse;
|
|
22
|
+
blockStats: BlocksBlockStatsResponse;
|
|
23
|
+
}> {
|
|
24
|
+
const [validatorBlockStats, blockStats] = await Promise.all([
|
|
25
|
+
fetchBeep("/v0/validators/{pubkey}/block-stats", {
|
|
26
|
+
path: { pubkey: pubKey },
|
|
27
|
+
query: {
|
|
28
|
+
interval: "day",
|
|
29
|
+
perPage: first.toString(),
|
|
30
|
+
},
|
|
31
|
+
}),
|
|
32
|
+
fetchBeep("/v0/blocks/block-stats", {
|
|
33
|
+
query: {
|
|
34
|
+
interval: "day",
|
|
35
|
+
perPage: first.toString(),
|
|
36
|
+
},
|
|
37
|
+
}),
|
|
38
|
+
]);
|
|
24
39
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
query: GetValidatorBlockStats,
|
|
30
|
-
variables: { pubKey, first },
|
|
31
|
-
});
|
|
32
|
-
return result.data;
|
|
40
|
+
return {
|
|
41
|
+
validatorBlockStats: validatorBlockStats,
|
|
42
|
+
blockStats: blockStats,
|
|
43
|
+
};
|
|
33
44
|
}
|
|
@@ -70,10 +70,8 @@ export async function getWalletBalances({
|
|
|
70
70
|
wagmiConfig: config,
|
|
71
71
|
}: GetWalletBalances): Promise<BalanceToken[] | undefined> {
|
|
72
72
|
assertDefined(config, "config");
|
|
73
|
-
if (!account || !tokenList)
|
|
74
|
-
throw new Error("account or tokenList is not defined");
|
|
75
|
-
|
|
76
73
|
assertAddress(account, "account");
|
|
74
|
+
assertDefined(tokenList, "tokenList");
|
|
77
75
|
|
|
78
76
|
const filteredTokenList = tokenList.filter((token) =>
|
|
79
77
|
isAddress(token.address),
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
+
type Abi,
|
|
2
3
|
type Address,
|
|
4
|
+
type ContractFunctionArgs,
|
|
5
|
+
type ContractFunctionName,
|
|
3
6
|
createWalletClient,
|
|
4
7
|
encodeFunctionData,
|
|
5
8
|
erc20Abi,
|
|
@@ -19,7 +22,7 @@ import { rewardVaultAbi } from "@berachain/abis/pol/rewards/rewardVault";
|
|
|
19
22
|
import { getConfig } from "@berachain/wagmi/config";
|
|
20
23
|
|
|
21
24
|
import { TransactionActionType } from "../../enum/txnEnum";
|
|
22
|
-
import type {
|
|
25
|
+
import type { IContractWrite } from "../../types/global";
|
|
23
26
|
import { getServerSidePublicClient } from "../../utils/getServerSideClient";
|
|
24
27
|
import { getTestClient } from "../../utils/getTestClient";
|
|
25
28
|
import { parseBaseArgs } from "../../utils/parseBaseArgs";
|
|
@@ -28,9 +31,19 @@ import { testTransports } from "../__test/transports";
|
|
|
28
31
|
import { getUserVaults } from "../pol/getUserVaults";
|
|
29
32
|
import { beraWriteContract } from "./beraWriteContract";
|
|
30
33
|
|
|
31
|
-
|
|
34
|
+
async function testFn<
|
|
35
|
+
abi extends Abi | undefined = undefined,
|
|
36
|
+
functionName extends abi extends Abi
|
|
37
|
+
? ContractFunctionName<abi>
|
|
38
|
+
: never = abi extends Abi ? ContractFunctionName<abi> : never,
|
|
39
|
+
params extends abi extends Abi
|
|
40
|
+
? ContractFunctionArgs<abi, "payable" | "nonpayable", functionName>
|
|
41
|
+
: never = abi extends Abi
|
|
42
|
+
? ContractFunctionArgs<abi, "payable" | "nonpayable", functionName>
|
|
43
|
+
: never,
|
|
44
|
+
>(_args: IContractWrite<abi, functionName, params>) {
|
|
32
45
|
return undefined;
|
|
33
|
-
}
|
|
46
|
+
}
|
|
34
47
|
|
|
35
48
|
describe("beraWriteContract", () => {
|
|
36
49
|
const { config } = parseBaseArgs({ chainId: defaultChain.id });
|
|
@@ -44,9 +44,9 @@ import { seconds } from "../../utils/time";
|
|
|
44
44
|
*/
|
|
45
45
|
const defaultPollingInterval = seconds(1);
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
function increaseByPercentage(value: bigint, percentage: number) {
|
|
48
48
|
return (value * (100n + BigInt(percentage))) / 100n;
|
|
49
|
-
}
|
|
49
|
+
}
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* This helps prevent IntegerOutOfRangeError by not providing a nonce if it's too large.
|
|
@@ -24,7 +24,7 @@ export async function getApiEnrichedAllocation({
|
|
|
24
24
|
percentage: allocation.percentage,
|
|
25
25
|
receiver: allocation.receiver,
|
|
26
26
|
startBlock,
|
|
27
|
-
receivingVault: vaults?.
|
|
27
|
+
receivingVault: vaults?.rewardVaultList.find((vault) =>
|
|
28
28
|
isAddressEqual(vault.address, allocation.receiver),
|
|
29
29
|
),
|
|
30
30
|
};
|
|
@@ -2,6 +2,7 @@ import { type Address, formatEther, type PublicClient } from "viem";
|
|
|
2
2
|
|
|
3
3
|
import { bgtAbi } from "@berachain/abis/pol/bgt";
|
|
4
4
|
|
|
5
|
+
import { assertAddress, assertPublicClient } from "../../errors/assert";
|
|
5
6
|
import { parseBaseArgs } from "../../utils/parseBaseArgs";
|
|
6
7
|
|
|
7
8
|
export type UserBoostsOnValidator = {
|
|
@@ -35,12 +36,8 @@ export async function getUserBoostsOnValidator({
|
|
|
35
36
|
} & BeraJS.BaseFunctionArgs): Promise<UserBoostsOnValidator> {
|
|
36
37
|
const { config } = parseBaseArgs(args);
|
|
37
38
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
if (!publicClient) {
|
|
42
|
-
throw new Error("publicClient is required");
|
|
43
|
-
}
|
|
39
|
+
assertAddress(account, "address");
|
|
40
|
+
assertPublicClient(publicClient);
|
|
44
41
|
|
|
45
42
|
const [activeBoostAmount, queuedBoostAmount, queuedDropBoostAmount] =
|
|
46
43
|
await Promise.all([
|
|
@@ -48,19 +45,19 @@ export async function getUserBoostsOnValidator({
|
|
|
48
45
|
address: config.tokens.bgt,
|
|
49
46
|
abi: bgtAbi,
|
|
50
47
|
functionName: "boosted",
|
|
51
|
-
args: [account
|
|
48
|
+
args: [account, pubkey],
|
|
52
49
|
}),
|
|
53
50
|
publicClient.readContract({
|
|
54
51
|
address: config.tokens.bgt,
|
|
55
52
|
abi: bgtAbi,
|
|
56
53
|
functionName: "boostedQueue",
|
|
57
|
-
args: [account
|
|
54
|
+
args: [account, pubkey],
|
|
58
55
|
}),
|
|
59
56
|
publicClient.readContract({
|
|
60
57
|
address: config.tokens.bgt,
|
|
61
58
|
abi: bgtAbi,
|
|
62
59
|
functionName: "dropBoostQueue",
|
|
63
|
-
args: [account
|
|
60
|
+
args: [account, pubkey],
|
|
64
61
|
}),
|
|
65
62
|
]);
|
|
66
63
|
|
|
@@ -5,7 +5,11 @@ import type { GetValidatorAnalyticsQuery } from "@berachain/graphql/pol/subgraph
|
|
|
5
5
|
import { BeraError } from "../../errors/BeraError";
|
|
6
6
|
import { beraFetchJson } from "../../utils/beraFetch";
|
|
7
7
|
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Browser-only. Hits `/api/pol/validator-analytics`.
|
|
10
|
+
*
|
|
11
|
+
* @deprecated will be removed in pol vNext
|
|
12
|
+
*/
|
|
9
13
|
export async function getValidatorAnalytics({
|
|
10
14
|
pubkey,
|
|
11
15
|
dayRange,
|
|
@@ -2,11 +2,11 @@ import type { ApiValidatorMinimalFragment } from "@berachain/graphql/pol/api";
|
|
|
2
2
|
|
|
3
3
|
import { yearsInSeconds } from "../../utils/time";
|
|
4
4
|
|
|
5
|
-
export
|
|
5
|
+
export function getValidatorEstimatedBgtPerYear(
|
|
6
6
|
validator: ApiValidatorMinimalFragment,
|
|
7
7
|
totalStakedBeraAmount: number,
|
|
8
8
|
blockTime: number,
|
|
9
|
-
): number
|
|
9
|
+
): number {
|
|
10
10
|
if (!totalStakedBeraAmount || !validator) return 0;
|
|
11
11
|
|
|
12
12
|
const estimatedBlocksPerYear = yearsInSeconds(1) / blockTime;
|
|
@@ -22,4 +22,4 @@ export const getValidatorEstimatedBgtPerYear = (
|
|
|
22
22
|
estimatedValidatorBlocksPerYear *
|
|
23
23
|
Number.parseFloat(validator.dynamicData?.rewardRate ?? "0")
|
|
24
24
|
);
|
|
25
|
-
}
|
|
25
|
+
}
|
|
@@ -3,12 +3,10 @@ import type { Address } from "viem";
|
|
|
3
3
|
import type { ValidatorIncentivesResponse } from "@berachain/graphql/beep";
|
|
4
4
|
|
|
5
5
|
import { BeraError } from "../../errors/BeraError";
|
|
6
|
-
import { beraFetchJson } from "../../utils/beraFetch";
|
|
7
6
|
import { calculateTimestampFromDays } from "../../utils/formatTimestamps";
|
|
8
|
-
import { parseBaseArgs } from "../../utils/parseBaseArgs";
|
|
9
7
|
import { fetchBeep } from "../clients/fetchBeep";
|
|
10
8
|
|
|
11
|
-
/** Browser-only. Reads
|
|
9
|
+
/** Browser-only. Reads validator incentive distribution from beep. */
|
|
12
10
|
export async function getValidatorIncentiveDistribution({
|
|
13
11
|
pubkey,
|
|
14
12
|
dayRange,
|
|
@@ -24,28 +22,8 @@ export async function getValidatorIncentiveDistribution({
|
|
|
24
22
|
});
|
|
25
23
|
}
|
|
26
24
|
|
|
27
|
-
const { config } = parseBaseArgs({});
|
|
28
|
-
|
|
29
|
-
// TODO(beep): remove this entire block (and the subgraph proxy route at
|
|
30
|
-
// `/api/pol/validator-incentive-distribution`) once `beep` is deployed on
|
|
31
|
-
// every chain. beep then becomes the sole implementation. The route already
|
|
32
|
-
// maps the subgraph response into beep's `ValidatorIncentivesResponse` shape,
|
|
33
|
-
// so the client consumes a single (beep) type regardless of source.
|
|
34
|
-
if (!config.beep) {
|
|
35
|
-
const params = new URLSearchParams({
|
|
36
|
-
pubkey,
|
|
37
|
-
dayRange: String(dayRange),
|
|
38
|
-
});
|
|
39
|
-
return beraFetchJson<ValidatorIncentivesResponse>({
|
|
40
|
-
url: `/api/pol/validator-incentive-distribution?${params}`,
|
|
41
|
-
name: "pol-validator-incentive-distribution",
|
|
42
|
-
type: "rest",
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
|
|
46
25
|
// beep backend (next-gen). It is a public (`NEXT_PUBLIC_*`) URL, so it can be
|
|
47
|
-
// called directly from the browser
|
|
48
|
-
// because it needs server-side auth headers.
|
|
26
|
+
// called directly from the browser — no Vercel proxy.
|
|
49
27
|
//
|
|
50
28
|
// beep's `after` cursor is in seconds; `calculateTimestampFromDays` returns
|
|
51
29
|
// microseconds, matching the subgraph's `timestamp_gte`. Pin it to the start
|
package/src/contexts/exports.ts
CHANGED
|
@@ -7,7 +7,7 @@ export {
|
|
|
7
7
|
useBeraFlags,
|
|
8
8
|
} from "./BeraFlags/BeraFlags";
|
|
9
9
|
export * from "./BexStatusProvider";
|
|
10
|
-
export * from "./
|
|
10
|
+
export * from "./BlockTimeProvider";
|
|
11
11
|
export * from "./HoneyConfigProvider";
|
|
12
12
|
export * from "./SwrFallback";
|
|
13
13
|
export * from "./TokensProvider";
|
package/src/errors/BeraError.ts
CHANGED
|
@@ -37,6 +37,31 @@ export interface IBeraErrorArgs {
|
|
|
37
37
|
|
|
38
38
|
type Primitive = number | string | boolean | bigint | symbol | null | undefined;
|
|
39
39
|
|
|
40
|
+
/**
|
|
41
|
+
* JSON-RPC error codes that are transient / not actionable by us — provider-side
|
|
42
|
+
* or network failures rather than a bug in our request. Downleveled to "warning"
|
|
43
|
+
* so they don't pollute the Sentry error stream.
|
|
44
|
+
*
|
|
45
|
+
* We use an explicit allowlist rather than the whole -32000..-32099 server-error
|
|
46
|
+
* range, because that range is implementation-defined and includes *actionable*
|
|
47
|
+
* failures too (e.g. providers return -32000 for "invalid input" / "insufficient
|
|
48
|
+
* funds", -32004 for "method not supported"). Downleveling the whole range would
|
|
49
|
+
* hide malformed calls we should fix.
|
|
50
|
+
*
|
|
51
|
+
* @see https://www.jsonrpc.org/specification#error_object
|
|
52
|
+
* @see https://eips.ethereum.org/EIPS/eip-1474#error-codes
|
|
53
|
+
*/
|
|
54
|
+
const TRANSIENT_RPC_CODES = new Set<number>([
|
|
55
|
+
-32603, // internal JSON-RPC error (provider blew up handling a valid request)
|
|
56
|
+
-32002, // resource unavailable / request already pending
|
|
57
|
+
-32005, // limit exceeded (rate limited)
|
|
58
|
+
-32016, // request timed out
|
|
59
|
+
]);
|
|
60
|
+
|
|
61
|
+
function isTransientRpcCode(code: number): boolean {
|
|
62
|
+
return TRANSIENT_RPC_CODES.has(code);
|
|
63
|
+
}
|
|
64
|
+
|
|
40
65
|
/**
|
|
41
66
|
* An helper type to make sure we only use the allowed tags. Sync this with docs/errors.md
|
|
42
67
|
*/
|
|
@@ -187,6 +212,10 @@ export class BeraError extends Error {
|
|
|
187
212
|
// ContractFunctionRevertedError → RpcRequestError) and decodes revert data using ABI.
|
|
188
213
|
// The extracted reason (e.g. "NotEnoughBalance", "BAL#508") is the key that drives
|
|
189
214
|
// displayMessage resolution and Sentry fingerprinting.
|
|
215
|
+
// JSON-RPC error code carried by a plain-object cause (set below), used for
|
|
216
|
+
// level inference. Only populated when `cause` isn't a viem/Error.
|
|
217
|
+
let rpcCode: number | undefined;
|
|
218
|
+
|
|
190
219
|
if (reason) {
|
|
191
220
|
this.reason = reason;
|
|
192
221
|
} else if (cause instanceof Error) {
|
|
@@ -202,14 +231,35 @@ export class BeraError extends Error {
|
|
|
202
231
|
// parseViemError throws when it can't identify the error type and revertIfUnknown=true.
|
|
203
232
|
// In that case, reason stays null and displayMessage falls back to GENERAL_ERROR.
|
|
204
233
|
}
|
|
234
|
+
} else if (
|
|
235
|
+
// Plain object carrying a JSON-RPC error code (e.g. a wallet/RPC provider
|
|
236
|
+
// rejecting with `{ code: -32603, message: "Internal JSON-RPC error." }`).
|
|
237
|
+
// These aren't viem errors, so parseViemError never sees them — derive the
|
|
238
|
+
// reason straight from the code instead of dropping it.
|
|
239
|
+
typeof cause === "object" &&
|
|
240
|
+
cause !== null &&
|
|
241
|
+
"code" in cause &&
|
|
242
|
+
typeof cause.code === "number"
|
|
243
|
+
) {
|
|
244
|
+
rpcCode = cause.code;
|
|
245
|
+
this.reason = rpcErrorToReason(cause.code);
|
|
205
246
|
}
|
|
206
247
|
|
|
207
248
|
// ── Level inference ─────────────────────────────────────────────────
|
|
208
|
-
//
|
|
249
|
+
// Priority:
|
|
250
|
+
// 1. Explicit `level` from caller
|
|
251
|
+
// 2. User rejections → "info" (not actionable by devs)
|
|
252
|
+
// 3. Transient/provider JSON-RPC errors → "warning" (see isTransientRpcCode).
|
|
253
|
+
// We deliberately do NOT downlevel the actionable codes (-32600 invalid
|
|
254
|
+
// request, -32601 method not found, -32602 invalid params, -32700 parse
|
|
255
|
+
// error) — those usually mean a bug in our request construction.
|
|
256
|
+
// 4. Everything else → "error"
|
|
209
257
|
if (level) {
|
|
210
258
|
this.level = level;
|
|
211
259
|
} else if (this.reason === rpcErrorToReason("UserRejectedRequestError")) {
|
|
212
260
|
this.level = "info";
|
|
261
|
+
} else if (rpcCode !== undefined && isTransientRpcCode(rpcCode)) {
|
|
262
|
+
this.level = "warning";
|
|
213
263
|
} else {
|
|
214
264
|
this.level = "error";
|
|
215
265
|
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest";
|
|
2
|
+
|
|
3
|
+
import { BeraError } from "./BeraError.js";
|
|
4
|
+
|
|
5
|
+
describe("BeraError JSON-RPC code classification", () => {
|
|
6
|
+
it("derives a reason from a plain-object cause carrying a numeric JSON-RPC code", () => {
|
|
7
|
+
// A wallet/RPC provider rejecting with `{ code, message }` (not a viem
|
|
8
|
+
// error) — parseViemError never sees it, so the code is the only signal.
|
|
9
|
+
const err = new BeraError({
|
|
10
|
+
cause: { code: -32000, message: "execution reverted" },
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
// -32000 has no errorMap keyword match, so the reason stays the raw RPC key.
|
|
14
|
+
expect(err.reason).toBe("RPC_ERROR_-32000");
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
it("classifies transient JSON-RPC provider errors (-32603) as warning", () => {
|
|
18
|
+
const err = new BeraError({
|
|
19
|
+
cause: { code: -32603, message: "Internal JSON-RPC error." },
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
// Not an actionable bug in our code — should not be a hard error.
|
|
23
|
+
expect(err.level).toBe("warning");
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
it("classifies known transient provider codes as warning", () => {
|
|
27
|
+
// Allowlisted transient/network failures, not a bug in our request.
|
|
28
|
+
for (const code of [-32603, -32002, -32005, -32016]) {
|
|
29
|
+
const err = new BeraError({ cause: { code, message: "server error" } });
|
|
30
|
+
expect(err.level).toBe("warning");
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
it("keeps actionable JSON-RPC codes as error (our request is likely wrong)", () => {
|
|
35
|
+
// Standard actionable codes (-32700 parse · -32600 invalid request ·
|
|
36
|
+
// -32601 method not found · -32602 invalid params) plus other
|
|
37
|
+
// implementation-defined codes in the -32000..-32099 range that providers
|
|
38
|
+
// use for actionable failures (e.g. -32000 invalid input, -32004 method
|
|
39
|
+
// not supported) — none of these should be hidden from Sentry error level.
|
|
40
|
+
for (const code of [-32700, -32600, -32601, -32602, -32000, -32004]) {
|
|
41
|
+
const err = new BeraError({ cause: { code, message: "bad request" } });
|
|
42
|
+
expect(err.level).toBe("error");
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
it("classifies code 4001 as a user rejection (info)", () => {
|
|
47
|
+
const err = new BeraError({
|
|
48
|
+
cause: { code: 4001, message: "User rejected the request." },
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
expect(err.reason).toBe("UserRejectedRequestError");
|
|
52
|
+
expect(err.level).toBe("info");
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
it("still extracts the message from the plain-object cause", () => {
|
|
56
|
+
const err = new BeraError({
|
|
57
|
+
cause: { code: -32603, message: "Internal JSON-RPC error." },
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
expect(err.message).toBe("Internal JSON-RPC error.");
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
it("respects an explicit level over the inferred one", () => {
|
|
64
|
+
const err = new BeraError({
|
|
65
|
+
cause: { code: -32603, message: "Internal JSON-RPC error." },
|
|
66
|
+
level: "fatal",
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
expect(err.level).toBe("fatal");
|
|
70
|
+
});
|
|
71
|
+
});
|
|
@@ -19,7 +19,7 @@ describe("BeraTracing", () => {
|
|
|
19
19
|
it("wraps the callback in the handler", async () => {
|
|
20
20
|
const order: string[] = [];
|
|
21
21
|
|
|
22
|
-
const handler = vi.fn(async (
|
|
22
|
+
const handler = vi.fn(async (_context: any, callback: any) => {
|
|
23
23
|
order.push("handler-start");
|
|
24
24
|
const result = await callback();
|
|
25
25
|
order.push("handler-end");
|
|
@@ -53,24 +53,24 @@ describe("BeraTracing", () => {
|
|
|
53
53
|
it("chains handlers so first registered is outermost", async () => {
|
|
54
54
|
const order: string[] = [];
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
async function handler1(_ctx: any, cb: () => Promise<any>) {
|
|
57
57
|
order.push("h1-start");
|
|
58
58
|
const r = await cb();
|
|
59
59
|
order.push("h1-end");
|
|
60
60
|
return r;
|
|
61
|
-
}
|
|
62
|
-
|
|
61
|
+
}
|
|
62
|
+
async function handler2(_ctx: any, cb: () => Promise<any>) {
|
|
63
63
|
order.push("h2-start");
|
|
64
64
|
const r = await cb();
|
|
65
65
|
order.push("h2-end");
|
|
66
66
|
return r;
|
|
67
|
-
}
|
|
68
|
-
|
|
67
|
+
}
|
|
68
|
+
async function handler3(_ctx: any, cb: () => Promise<any>) {
|
|
69
69
|
order.push("h3-start");
|
|
70
70
|
const r = await cb();
|
|
71
71
|
order.push("h3-end");
|
|
72
72
|
return r;
|
|
73
|
-
}
|
|
73
|
+
}
|
|
74
74
|
|
|
75
75
|
const unsub1 = BeraTracing.addSpanHandler(handler1);
|
|
76
76
|
const unsub2 = BeraTracing.addSpanHandler(handler2);
|
|
@@ -133,7 +133,9 @@ describe("BeraTracing", () => {
|
|
|
133
133
|
|
|
134
134
|
describe("error propagation", () => {
|
|
135
135
|
it("propagates errors from the callback through handlers", async () => {
|
|
136
|
-
|
|
136
|
+
async function handler(_ctx: any, cb: () => Promise<any>) {
|
|
137
|
+
return cb();
|
|
138
|
+
}
|
|
137
139
|
const unsub = BeraTracing.addSpanHandler(handler);
|
|
138
140
|
|
|
139
141
|
await expect(
|
|
@@ -149,9 +151,9 @@ describe("BeraTracing", () => {
|
|
|
149
151
|
});
|
|
150
152
|
|
|
151
153
|
it("propagates errors from a handler", async () => {
|
|
152
|
-
|
|
154
|
+
async function handler<T>(): Promise<T> {
|
|
153
155
|
throw new Error("handler error");
|
|
154
|
-
}
|
|
156
|
+
}
|
|
155
157
|
const unsub = BeraTracing.addSpanHandler(handler);
|
|
156
158
|
|
|
157
159
|
await expect(
|
|
@@ -171,10 +173,7 @@ describe("BeraTracing", () => {
|
|
|
171
173
|
const statuses: string[] = [];
|
|
172
174
|
|
|
173
175
|
// Simulates the Sentry adapter wrapper pattern
|
|
174
|
-
|
|
175
|
-
_ctx: any,
|
|
176
|
-
callback: () => Promise<any>,
|
|
177
|
-
) => {
|
|
176
|
+
async function adapterHandler(_ctx: any, callback: () => Promise<any>) {
|
|
178
177
|
try {
|
|
179
178
|
const result = await callback();
|
|
180
179
|
statuses.push("ok");
|
|
@@ -187,7 +186,7 @@ describe("BeraTracing", () => {
|
|
|
187
186
|
statuses.push(status);
|
|
188
187
|
throw error;
|
|
189
188
|
}
|
|
190
|
-
}
|
|
189
|
+
}
|
|
191
190
|
|
|
192
191
|
const unsub = BeraTracing.addSpanHandler(adapterHandler);
|
|
193
192
|
|
|
@@ -234,13 +233,13 @@ describe("BeraTracing", () => {
|
|
|
234
233
|
it("works with a handler that accepts (options, callback) like Sentry.startSpan", async () => {
|
|
235
234
|
// Sentry.startSpan signature: <T>(options, callback: (span) => T) => T
|
|
236
235
|
// When callback returns Promise<T>, the return is Promise<T>
|
|
237
|
-
|
|
236
|
+
function mockSentryStartSpan<T>(
|
|
238
237
|
_options: { name: string },
|
|
239
238
|
callback: (span: unknown) => T,
|
|
240
|
-
): T
|
|
239
|
+
): T {
|
|
241
240
|
// Sentry passes a span object to the callback; our callbacks ignore it
|
|
242
241
|
return callback({ spanId: "mock-span" });
|
|
243
|
-
}
|
|
242
|
+
}
|
|
244
243
|
|
|
245
244
|
const unsub = BeraTracing.addSpanHandler(
|
|
246
245
|
mockSentryStartSpan as typeof BeraTracing.startSpan,
|
|
@@ -40,9 +40,9 @@ export class RequestError extends BeraError {
|
|
|
40
40
|
"https://open-api.openocean.finance/v4/bera/swap",
|
|
41
41
|
// vercel internal proxy
|
|
42
42
|
"/api/aggregators?aggregator",
|
|
43
|
-
// bonder endpoints have date-based query params
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
// beep (next-gen backend) bonder endpoints have date-based query params
|
|
44
|
+
// (e.g. ?start=2025-11-28) on both networks
|
|
45
|
+
mainnet.beep,
|
|
46
46
|
bepolia.beep,
|
|
47
47
|
];
|
|
48
48
|
|
|
@@ -54,6 +54,9 @@ export class RequestError extends BeraError {
|
|
|
54
54
|
429: "RATE_LIMITED_429",
|
|
55
55
|
NETWORK_ERROR: "NETWORK_ERROR",
|
|
56
56
|
CORS_ERROR: "CORS",
|
|
57
|
+
// Aggregator/SOR found no route for the requested pair/amount. Expected, not
|
|
58
|
+
// a failure — reported as a warning and grouped into a single Sentry issue.
|
|
59
|
+
NO_SWAP_PATHS: "NO_SWAP_PATHS",
|
|
57
60
|
} as const;
|
|
58
61
|
|
|
59
62
|
constructor(
|
|
@@ -110,6 +113,14 @@ export class RequestError extends BeraError {
|
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
115
|
|
|
116
|
+
// "No swap paths" means the aggregator/SOR found no route for this token
|
|
117
|
+
// pair/amount — an expected condition, not a failure. Downlevel to "warning"
|
|
118
|
+
// so it stays out of the Sentry error stream. (The SWR error handler also
|
|
119
|
+
// collapses all sources into a single group; see SWRConfig.tsx.)
|
|
120
|
+
if (this.reason === RequestError.REASON_MAP.NO_SWAP_PATHS) {
|
|
121
|
+
this.level = args.level ?? "warning";
|
|
122
|
+
}
|
|
123
|
+
|
|
113
124
|
// ── Span status inference ─────────────────────────────────────────
|
|
114
125
|
// Re-infer from reason since it may have been set after super() ran
|
|
115
126
|
// (e.g. NETWORK_ERROR → unavailable, RATE_LIMITED_429 → resource_exhausted).
|
|
@@ -174,7 +185,10 @@ export class RequestError extends BeraError {
|
|
|
174
185
|
const url = new URL(this.endpoint.url);
|
|
175
186
|
url.search = "";
|
|
176
187
|
this.endpoint.url = url.toString();
|
|
177
|
-
} catch {
|
|
188
|
+
} catch {
|
|
189
|
+
// FIXME(coding-standards): error intentionally swallowed; a malformed
|
|
190
|
+
// URL just keeps the original endpoint url. Preserved to avoid behavior change.
|
|
191
|
+
}
|
|
178
192
|
}
|
|
179
193
|
this.tags = {
|
|
180
194
|
...this.tags,
|
|
@@ -53,3 +53,50 @@ describe("RequestError network-error normalization (grouping)", () => {
|
|
|
53
53
|
expect(err.reason).not.toBe(RequestError.REASON_MAP.NETWORK_ERROR);
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
|
+
|
|
57
|
+
describe("RequestError NO_SWAP_PATHS leveling", () => {
|
|
58
|
+
it("downlevels NO_SWAP_PATHS to warning (expected, not a failure)", () => {
|
|
59
|
+
const err = new RequestError({
|
|
60
|
+
response: undefined,
|
|
61
|
+
reason: RequestError.REASON_MAP.NO_SWAP_PATHS,
|
|
62
|
+
endpoint: { url: "https://api.berachain.com", type: "graphql" },
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
expect(err.reason).toBe(RequestError.REASON_MAP.NO_SWAP_PATHS);
|
|
66
|
+
expect(err.level).toBe("warning");
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
it("keeps the level the same regardless of which source reported it", () => {
|
|
70
|
+
const fromOpenOcean = new RequestError({
|
|
71
|
+
response: undefined,
|
|
72
|
+
reason: RequestError.REASON_MAP.NO_SWAP_PATHS,
|
|
73
|
+
endpoint: {
|
|
74
|
+
url: "https://open-api.openocean.finance/v4/bera/swap",
|
|
75
|
+
type: "rest",
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
expect(fromOpenOcean.level).toBe("warning");
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
it("lets an explicit level override the downlevel", () => {
|
|
83
|
+
const err = new RequestError({
|
|
84
|
+
response: undefined,
|
|
85
|
+
reason: RequestError.REASON_MAP.NO_SWAP_PATHS,
|
|
86
|
+
level: "error",
|
|
87
|
+
endpoint: { url: "https://api.berachain.com", type: "graphql" },
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
expect(err.level).toBe("error");
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
it("does not downlevel other reasons to warning", () => {
|
|
94
|
+
const err = new RequestError({
|
|
95
|
+
response: undefined,
|
|
96
|
+
reason: "SOME_OTHER_REASON",
|
|
97
|
+
endpoint: { url: "https://api.berachain.com", type: "graphql" },
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
expect(err.level).toBe("error");
|
|
101
|
+
});
|
|
102
|
+
});
|