@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
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import { Config, GetWalletClientReturnType } from '@wagmi/core';
|
|
2
|
-
import { Abi, ContractFunctionName, ContractFunctionArgs, TransactionReceipt, WalletCallReceipt, Hex, Account, Address } from 'viem';
|
|
3
|
-
import { ChainId, BeraConfig } from '@berachain/config';
|
|
4
|
-
import { BeraSwrResponse, SWRConfiguration } from '@berachain/utils/pkg/swr';
|
|
5
|
-
import { T as TransactionActionType, C as ContractName } from './txnEnum-ByI5dtDi.js';
|
|
6
|
-
import { B as BeraError } from './BeraError-7-A5JYy_.js';
|
|
7
|
-
|
|
8
|
-
interface UseContractWriteApi {
|
|
9
|
-
isLoading: boolean;
|
|
10
|
-
isSubmitting: boolean;
|
|
11
|
-
isSuccess: boolean;
|
|
12
|
-
isError: boolean;
|
|
13
|
-
write: IContractWriteFn;
|
|
14
|
-
reset: () => void;
|
|
15
|
-
}
|
|
16
|
-
type PropagatedArgs<args> = Omit<args, TxnEventKeys | "contractName"> & {
|
|
17
|
-
contractName?: string;
|
|
18
|
-
};
|
|
19
|
-
type TxnEventKeys = "onSuccess" | "onError" | "onLoading" | "onSubmission" | "onWarning";
|
|
20
|
-
interface IUseContractWriteArgs<abi extends Abi | undefined = undefined, functionName extends abi extends Abi ? ContractFunctionName<abi> : never = abi extends Abi ? ContractFunctionName<abi> : never, params extends abi extends Abi ? ContractFunctionArgs<abi, "payable" | "nonpayable", functionName> : never = abi extends Abi ? ContractFunctionArgs<abi, "payable" | "nonpayable", functionName> : never> {
|
|
21
|
-
onSuccess?: (receipts: TransactionReceipt | WalletCallReceipt<bigint, "success" | "reverted">,
|
|
22
|
-
/**
|
|
23
|
-
* Arguments that were used to call the write function.
|
|
24
|
-
*/
|
|
25
|
-
writeArgs: PropagatedArgs<IContractWrite<abi, functionName, params>>) => void;
|
|
26
|
-
onError?: (e: BeraError,
|
|
27
|
-
/**
|
|
28
|
-
* Arguments that were used to call the write function.
|
|
29
|
-
*/
|
|
30
|
-
writeArgs: PropagatedArgs<IContractWrite<abi, functionName, params>>) => void;
|
|
31
|
-
onLoading?: (
|
|
32
|
-
/**
|
|
33
|
-
* Arguments that were used to call the write function.
|
|
34
|
-
*/
|
|
35
|
-
writeArgs: PropagatedArgs<IContractWrite<abi, functionName, params>>) => void;
|
|
36
|
-
onSubmission?: (
|
|
37
|
-
/**
|
|
38
|
-
* @param args.id If request is a batch call, this will be the id of the request to the wallet provider
|
|
39
|
-
* @param args.txHash If request is a single transaction, this will be the hash of the transaction to wait for
|
|
40
|
-
*/
|
|
41
|
-
args: {
|
|
42
|
-
txHash: Hex;
|
|
43
|
-
id?: never;
|
|
44
|
-
} | {
|
|
45
|
-
id: string;
|
|
46
|
-
txHash?: never;
|
|
47
|
-
},
|
|
48
|
-
/**
|
|
49
|
-
* Arguments that were used to call the write function.
|
|
50
|
-
*/
|
|
51
|
-
writeArgs: PropagatedArgs<IContractWrite<abi, functionName, params>>) => void;
|
|
52
|
-
/**
|
|
53
|
-
* Callback function executed when a transaction encounters a warning. Transaction will still be submitted.
|
|
54
|
-
*/
|
|
55
|
-
onWarning?: (e: BeraError, writeArgs: Omit<IContractWrite<abi, functionName, params>, TxnEventKeys>) => void;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
type DefaultHookOptions = SWRConfiguration & { isEnabled?: boolean };
|
|
59
|
-
|
|
60
|
-
type DefaultHookReturnType<T = any> = BeraSwrResponse<T, any>;
|
|
61
|
-
|
|
62
|
-
type IContractWriteFn = <
|
|
63
|
-
abi extends Abi | undefined = undefined,
|
|
64
|
-
functionName extends abi extends Abi
|
|
65
|
-
? ContractFunctionName<abi>
|
|
66
|
-
: never = abi extends Abi ? ContractFunctionName<abi> : never,
|
|
67
|
-
params extends abi extends Abi
|
|
68
|
-
? ContractFunctionArgs<abi, "payable" | "nonpayable", functionName>
|
|
69
|
-
: never = abi extends Abi
|
|
70
|
-
? ContractFunctionArgs<abi, "payable" | "nonpayable", functionName>
|
|
71
|
-
: never,
|
|
72
|
-
>(
|
|
73
|
-
props: IContractWrite<abi, functionName, params>,
|
|
74
|
-
) => Promise<
|
|
75
|
-
| TransactionReceipt
|
|
76
|
-
| WalletCallReceipt<bigint, "success" | "reverted">
|
|
77
|
-
| undefined
|
|
78
|
-
>;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Posthog must be able to serialize this. BigInts are not supported.
|
|
82
|
-
*/
|
|
83
|
-
type AllowedEventData = number | string | boolean | null | undefined;
|
|
84
|
-
|
|
85
|
-
type EventData = Record<
|
|
86
|
-
string,
|
|
87
|
-
| AllowedEventData
|
|
88
|
-
| AllowedEventData[]
|
|
89
|
-
| Record<
|
|
90
|
-
string,
|
|
91
|
-
| AllowedEventData
|
|
92
|
-
| AllowedEventData[]
|
|
93
|
-
| Record<string, AllowedEventData | AllowedEventData[]>
|
|
94
|
-
>
|
|
95
|
-
>;
|
|
96
|
-
|
|
97
|
-
type IContractWrite<
|
|
98
|
-
abi extends Abi | undefined = undefined,
|
|
99
|
-
functionName extends abi extends Abi
|
|
100
|
-
? ContractFunctionName<abi>
|
|
101
|
-
: never = abi extends Abi ? ContractFunctionName<abi> : never,
|
|
102
|
-
params extends abi extends Abi
|
|
103
|
-
? ContractFunctionArgs<abi, "payable" | "nonpayable", functionName>
|
|
104
|
-
: never = abi extends Abi
|
|
105
|
-
? ContractFunctionArgs<abi, "payable" | "nonpayable", functionName>
|
|
106
|
-
: never,
|
|
107
|
-
> = {
|
|
108
|
-
/**
|
|
109
|
-
* A message that will be shown to user while the transaction is pending.
|
|
110
|
-
*
|
|
111
|
-
* @example "Sending approvals"
|
|
112
|
-
*/
|
|
113
|
-
message: string;
|
|
114
|
-
/**
|
|
115
|
-
* The chain ID of the transaction.
|
|
116
|
-
*
|
|
117
|
-
* @default berachainChainId
|
|
118
|
-
*/
|
|
119
|
-
chainId?: ChainId;
|
|
120
|
-
/**
|
|
121
|
-
* The type of transaction to be performed. It will be stored in the transaction history.
|
|
122
|
-
*
|
|
123
|
-
* Generally uses infinite tense.
|
|
124
|
-
* @example TransactionActionType.APPROVAL => "Approve tokens"
|
|
125
|
-
*/
|
|
126
|
-
actionType: TransactionActionType;
|
|
127
|
-
txnName?: string;
|
|
128
|
-
gasLimit?: bigint;
|
|
129
|
-
account?: Account | Address;
|
|
130
|
-
/**
|
|
131
|
-
* Wheter the transaction can be sent by any account. Before setting this to true, make sure smart contract doesn't rely on `msg.sender`.
|
|
132
|
-
*
|
|
133
|
-
* Only transaction with permissionless flag set to true can be sent with overriden account.
|
|
134
|
-
* Everything else will throw an error.
|
|
135
|
-
*/
|
|
136
|
-
permissionless?: boolean;
|
|
137
|
-
/**
|
|
138
|
-
* The event to be tracked more specifically.
|
|
139
|
-
* If not provided, the event will be tracked with the message and actionType.
|
|
140
|
-
*/
|
|
141
|
-
track?: {
|
|
142
|
-
eventName: string;
|
|
143
|
-
eventData?: EventData;
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* A wagmi config used to get wallet clients, switch chains, etc.
|
|
148
|
-
*
|
|
149
|
-
* This is preferred over providing clients as state updates are kept synched in this config object w/o re-rendering.
|
|
150
|
-
*/
|
|
151
|
-
wagmiConfig?: Config;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* walletClient should only be provided for tests or scripts.
|
|
155
|
-
*
|
|
156
|
-
* Wagmi Config is preferred.
|
|
157
|
-
*/
|
|
158
|
-
walletClient?: GetWalletClientReturnType | undefined;
|
|
159
|
-
/**
|
|
160
|
-
* The name of the contract to be used for the transaction. By default, it will be devrel's contract mapping.
|
|
161
|
-
* Custom values will be ignored if the address is already mapped in the devrel's contract mapping.
|
|
162
|
-
*
|
|
163
|
-
* @example "pol.rewardVault"
|
|
164
|
-
*/
|
|
165
|
-
contractName?: ContractName;
|
|
166
|
-
/**
|
|
167
|
-
* This is a canonical list of ABIs that will be used to parse the error.
|
|
168
|
-
*
|
|
169
|
-
* This is an useful way to parse errors when providing raw data with no ABI.
|
|
170
|
-
*/
|
|
171
|
-
errorsAbi?: Abi;
|
|
172
|
-
} & IUseContractWriteArgs<abi, functionName, params> &
|
|
173
|
-
(abi extends Abi
|
|
174
|
-
? {
|
|
175
|
-
abi: abi;
|
|
176
|
-
functionName: functionName;
|
|
177
|
-
params: params;
|
|
178
|
-
address: Address;
|
|
179
|
-
calls?: never;
|
|
180
|
-
value?: bigint;
|
|
181
|
-
}
|
|
182
|
-
:
|
|
183
|
-
| {
|
|
184
|
-
data: Hex;
|
|
185
|
-
address: Address;
|
|
186
|
-
value?: bigint;
|
|
187
|
-
calls?: never;
|
|
188
|
-
}
|
|
189
|
-
| {
|
|
190
|
-
value: bigint;
|
|
191
|
-
address: Address;
|
|
192
|
-
data?: Hex;
|
|
193
|
-
calls?: never;
|
|
194
|
-
}
|
|
195
|
-
| {
|
|
196
|
-
value?: never;
|
|
197
|
-
address?: never;
|
|
198
|
-
calls: (Omit<
|
|
199
|
-
IContractWrite,
|
|
200
|
-
| "calls"
|
|
201
|
-
| "gasLimit"
|
|
202
|
-
| "account"
|
|
203
|
-
| "address"
|
|
204
|
-
| "message"
|
|
205
|
-
| "actionType"
|
|
206
|
-
| TxnEventKeys
|
|
207
|
-
> & {
|
|
208
|
-
address: Address;
|
|
209
|
-
})[];
|
|
210
|
-
});
|
|
211
|
-
|
|
212
|
-
declare global {
|
|
213
|
-
export namespace BeraJS {
|
|
214
|
-
export type BaseFunctionArgs = {
|
|
215
|
-
/**
|
|
216
|
-
* If only chainId is provided, config will be inferred from it
|
|
217
|
-
*
|
|
218
|
-
* @default `import { defaultChainId } from "@berachain/config/internal";`
|
|
219
|
-
*/
|
|
220
|
-
chainId?: ChainId;
|
|
221
|
-
/**
|
|
222
|
-
* A config to infer the default values of the other arguments
|
|
223
|
-
*
|
|
224
|
-
* @default chainConfigs[chainId]
|
|
225
|
-
*/
|
|
226
|
-
config?: BeraConfig;
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
export type { DefaultHookOptions as D, IContractWrite as I, TxnEventKeys as T, UseContractWriteApi as U, DefaultHookReturnType as a, IUseContractWriteArgs as b, IContractWriteFn as c };
|
package/dist/pol.d-CeRgXBL8.d.ts
DELETED
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
2
|
-
import { a as TokenWithMetadata, b as Token } from './HoneyConfigProvider-COOuDNra.js';
|
|
3
|
-
import { ApiValidatorFragment } from '@berachain/graphql/pol/api';
|
|
4
|
-
|
|
5
|
-
interface BribeBoostReward {
|
|
6
|
-
token: string;
|
|
7
|
-
total_unclaimed: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
interface BribeBoostRewardItem {
|
|
11
|
-
rewards: BribeBoostReward[];
|
|
12
|
-
validator: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface BribeBoostRewardProof {
|
|
16
|
-
validator?: string;
|
|
17
|
-
pagination: {
|
|
18
|
-
next: number;
|
|
19
|
-
previous: number;
|
|
20
|
-
record_per_page: number;
|
|
21
|
-
current_page: number;
|
|
22
|
-
total_page: number;
|
|
23
|
-
};
|
|
24
|
-
rewards:
|
|
25
|
-
| {
|
|
26
|
-
id: string;
|
|
27
|
-
dist_id: string;
|
|
28
|
-
token: Address;
|
|
29
|
-
recipient: string;
|
|
30
|
-
amount: string;
|
|
31
|
-
merkle_proof: string[];
|
|
32
|
-
available_at: number;
|
|
33
|
-
}[]
|
|
34
|
-
| null;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// Response shape of GET /api/v1/wallets/:wallet/autoclaimed:
|
|
38
|
-
// { [wallet]: { [validatorPubkey]: { [tokenAddress]: { amount } } } }
|
|
39
|
-
// `amount` is a stringified bigint in token base units. The backend now
|
|
40
|
-
// aggregates across validators under a single fake pubkey (`0x000…000`),
|
|
41
|
-
// so consumers can collapse the validator dimension blindly.
|
|
42
|
-
type AutoclaimedIncentivesResponse = Record<
|
|
43
|
-
Address,
|
|
44
|
-
Record<Address, Record<Address, { amount: string }>>
|
|
45
|
-
>;
|
|
46
|
-
|
|
47
|
-
// Response shape of GET /api/v1/wallets/:wallet/autoclaimed/txhash: same
|
|
48
|
-
// nesting, but each token leaf is `{ txhash }`. Tokens still pending are
|
|
49
|
-
// simply absent — when a token from `/autoclaimed` has no entry here, the
|
|
50
|
-
// bot hasn't distributed it yet.
|
|
51
|
-
type AutoclaimedIncentivesTxHashResponse = Record<
|
|
52
|
-
Address,
|
|
53
|
-
Record<Address, Record<Address, { txhash: string }>>
|
|
54
|
-
>;
|
|
55
|
-
|
|
56
|
-
interface BribeBoostValidatorApr {
|
|
57
|
-
id: string;
|
|
58
|
-
boost_total_bgt: string;
|
|
59
|
-
rewards_total_usd: string;
|
|
60
|
-
daily_rate: string;
|
|
61
|
-
apr: string;
|
|
62
|
-
apy: string;
|
|
63
|
-
tokens: Address[]; // Confirm this type with backend real data
|
|
64
|
-
validator: string;
|
|
65
|
-
start_block: number;
|
|
66
|
-
end_block: number;
|
|
67
|
-
start_timestamp: number;
|
|
68
|
-
end_timestamp: number;
|
|
69
|
-
created_at: string;
|
|
70
|
-
updated_at: string;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
interface ProtocolMetadata {
|
|
74
|
-
name: string;
|
|
75
|
-
logoURI: string;
|
|
76
|
-
url: string;
|
|
77
|
-
description: string;
|
|
78
|
-
tags?: string[];
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Configuration for a single staking option.
|
|
83
|
-
* Maps receipt tokens to their accepted input tokens.
|
|
84
|
-
*/
|
|
85
|
-
type StakingConfig = {
|
|
86
|
-
/** Unique identifier for this staking config */
|
|
87
|
-
id: string;
|
|
88
|
-
/** The token received when staking (e.g., sWBERA, siBERA) */
|
|
89
|
-
receiptToken: TokenWithMetadata;
|
|
90
|
-
/** Tokens that can be staked to receive the receipt token */
|
|
91
|
-
inputTokens: TokenWithMetadata[];
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
type IncentiveReward = {
|
|
95
|
-
tokenMetadata: Token | undefined;
|
|
96
|
-
tokenPrice: number;
|
|
97
|
-
tokenValue: number;
|
|
98
|
-
id: string;
|
|
99
|
-
dist_id: string;
|
|
100
|
-
token: string;
|
|
101
|
-
recipient: string;
|
|
102
|
-
formattedAmount: string;
|
|
103
|
-
amount: string;
|
|
104
|
-
merkle_proof: string[];
|
|
105
|
-
available_at: number;
|
|
106
|
-
};
|
|
107
|
-
interface IncentiveRewardChunksWithValidatorData {
|
|
108
|
-
validator: ApiValidatorInListFragment | ApiValidatorFragment | undefined;
|
|
109
|
-
maxTimestamp: number | undefined;
|
|
110
|
-
minTimestamp: number | undefined;
|
|
111
|
-
totalValue: number;
|
|
112
|
-
tokenTotals: {
|
|
113
|
-
chainId: number;
|
|
114
|
-
address: Address;
|
|
115
|
-
amount: number;
|
|
116
|
-
value: number;
|
|
117
|
-
metadata: Token | undefined;
|
|
118
|
-
}[];
|
|
119
|
-
rewards: IncentiveReward[];
|
|
120
|
-
isCurrent: boolean;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
interface AggregatedTokenTotals {
|
|
124
|
-
address: Address;
|
|
125
|
-
amount: number;
|
|
126
|
-
value: number;
|
|
127
|
-
metadata: Token | undefined;
|
|
128
|
-
chainId: number;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
type ClaimedIncentives = Record<string, string>;
|
|
132
|
-
|
|
133
|
-
type ClaimedIncentivesLocalState = Record<string, ClaimedIncentives>;
|
|
134
|
-
|
|
135
|
-
interface UserVaultInfo {
|
|
136
|
-
balance: bigint;
|
|
137
|
-
delegatedBalance: bigint;
|
|
138
|
-
withdrawableBalance: bigint;
|
|
139
|
-
rewards: string;
|
|
140
|
-
percentage: string;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
type StakedBeraAsset = {
|
|
144
|
-
token: TokenWithMetadata;
|
|
145
|
-
/**
|
|
146
|
-
* Staking APR, or `undefined` when unavailable (e.g. the APR backend is
|
|
147
|
-
* down). `undefined` lets the UI render a "—" placeholder instead of a
|
|
148
|
-
* misleading "0%".
|
|
149
|
-
*/
|
|
150
|
-
apr: number | undefined;
|
|
151
|
-
stakedAmount: number;
|
|
152
|
-
/**
|
|
153
|
-
* USD value of the staked amount, or `undefined` when the token price is
|
|
154
|
-
* unavailable (e.g. the price backend is down). `undefined` lets the UI
|
|
155
|
-
* render a "—" placeholder instead of a misleading "$0.00".
|
|
156
|
-
*/
|
|
157
|
-
stakedAmountUsd: number | undefined;
|
|
158
|
-
earnedAmount: number;
|
|
159
|
-
/**
|
|
160
|
-
* USD value of the earned amount, or `undefined` when the token price is
|
|
161
|
-
* unavailable. See {@link stakedAmountUsd}.
|
|
162
|
-
*/
|
|
163
|
-
earnedAmountUsd: number | undefined;
|
|
164
|
-
isLoadingEarnings?: boolean;
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
export type { AutoclaimedIncentivesResponse as A, BribeBoostRewardProof as B, ClaimedIncentives as C, IncentiveReward as I, ProtocolMetadata as P, StakingConfig as S, UserVaultInfo as U, AutoclaimedIncentivesTxHashResponse as a, BribeBoostRewardItem as b, StakedBeraAsset as c, AggregatedTokenTotals as d, BribeBoostReward as e, BribeBoostValidatorApr as f, ClaimedIncentivesLocalState as g, IncentiveRewardChunksWithValidatorData as h };
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import type { BundleAction } from "@ensofinance/sdk";
|
|
2
|
-
import { ethAddress, zeroAddress } from "viem";
|
|
3
|
-
|
|
4
|
-
import { InvalidArgumentError } from "../../errors/InvalidArgumentError";
|
|
5
|
-
import type {
|
|
6
|
-
GetEnsoSwapBundleArgs,
|
|
7
|
-
GetZapTransactionResponse,
|
|
8
|
-
} from "../../types/enso";
|
|
9
|
-
import { getTransactionsFromBundle } from "./util";
|
|
10
|
-
|
|
11
|
-
export async function getEnsoSwapBundle({
|
|
12
|
-
fromAddress,
|
|
13
|
-
amountIn,
|
|
14
|
-
tokenIn,
|
|
15
|
-
tokenOut,
|
|
16
|
-
chainId,
|
|
17
|
-
ensoClient,
|
|
18
|
-
destinationChainId,
|
|
19
|
-
slippage,
|
|
20
|
-
publicClient,
|
|
21
|
-
}: GetEnsoSwapBundleArgs): Promise<GetZapTransactionResponse> {
|
|
22
|
-
if (!fromAddress) {
|
|
23
|
-
throw new InvalidArgumentError({
|
|
24
|
-
property: "fromAddress",
|
|
25
|
-
value: fromAddress,
|
|
26
|
-
expected: "address",
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
if (tokenOut === zeroAddress) tokenOut = ethAddress;
|
|
30
|
-
|
|
31
|
-
const bundleAction: BundleAction = {
|
|
32
|
-
protocol: "enso",
|
|
33
|
-
action: "route",
|
|
34
|
-
args: {
|
|
35
|
-
tokenIn,
|
|
36
|
-
tokenOut,
|
|
37
|
-
amountIn,
|
|
38
|
-
slippage: slippage * 100, // Enso expects slippage in basis points
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* If the zap is cross chain, we need to add the destination chain id and the refund receiver.
|
|
43
|
-
*
|
|
44
|
-
* Enso still need to update the sdk types to support this.
|
|
45
|
-
*/
|
|
46
|
-
if (destinationChainId && destinationChainId !== chainId) {
|
|
47
|
-
bundleAction.args = {
|
|
48
|
-
...bundleAction.args,
|
|
49
|
-
destinationChainId: destinationChainId,
|
|
50
|
-
refundReceiver: fromAddress,
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
const bundle = await ensoClient.getBundleData(
|
|
55
|
-
{
|
|
56
|
-
fromAddress: fromAddress,
|
|
57
|
-
receiver: fromAddress,
|
|
58
|
-
spender: fromAddress,
|
|
59
|
-
chainId: chainId,
|
|
60
|
-
routingStrategy: "router",
|
|
61
|
-
},
|
|
62
|
-
[bundleAction],
|
|
63
|
-
);
|
|
64
|
-
const transactions = await getTransactionsFromBundle({
|
|
65
|
-
fromAddress,
|
|
66
|
-
amountIn,
|
|
67
|
-
tokenIn,
|
|
68
|
-
chainId,
|
|
69
|
-
ensoClient,
|
|
70
|
-
bundle,
|
|
71
|
-
publicClient,
|
|
72
|
-
});
|
|
73
|
-
return {
|
|
74
|
-
bundle,
|
|
75
|
-
transactions,
|
|
76
|
-
};
|
|
77
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { PublicClient } from "viem";
|
|
2
|
-
|
|
3
|
-
import { bgtIncentiveDistributorAbi } from "@berachain/abis/pol/rewards/bgtIncentiveDistributor";
|
|
4
|
-
|
|
5
|
-
import { assertPublicClient } from "../../errors/assert";
|
|
6
|
-
import { parseBaseArgs } from "../../utils/parseBaseArgs";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Reads `paused()` on the BGT incentive distributor. Used to gate the
|
|
10
|
-
* autoclaim banner — when `true`, users can no longer self-claim and the
|
|
11
|
-
* bot is responsible for distributing incentives on their behalf.
|
|
12
|
-
*/
|
|
13
|
-
export async function getBgtIncentiveDistributorPaused({
|
|
14
|
-
publicClient,
|
|
15
|
-
...args
|
|
16
|
-
}: {
|
|
17
|
-
publicClient: PublicClient | undefined;
|
|
18
|
-
} & BeraJS.BaseFunctionArgs): Promise<boolean> {
|
|
19
|
-
assertPublicClient(publicClient);
|
|
20
|
-
|
|
21
|
-
const { config } = parseBaseArgs(args);
|
|
22
|
-
|
|
23
|
-
return publicClient.readContract({
|
|
24
|
-
address: config.pol.bgtIncentiveDistributor,
|
|
25
|
-
abi: bgtIncentiveDistributorAbi,
|
|
26
|
-
functionName: "paused",
|
|
27
|
-
});
|
|
28
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { Address } from "viem";
|
|
2
|
-
|
|
3
|
-
import { BeraError } from "../../errors/BeraError";
|
|
4
|
-
import type { BribeBoostRewardProof } from "../../types/bribe-boost";
|
|
5
|
-
import { getErrorResponse } from "../../utils/getErrorResponse";
|
|
6
|
-
import { parseBaseArgs } from "../../utils/parseBaseArgs";
|
|
7
|
-
|
|
8
|
-
export async function getRewardProofsByValidator({
|
|
9
|
-
account,
|
|
10
|
-
validator,
|
|
11
|
-
page = 1,
|
|
12
|
-
perPage = 1000,
|
|
13
|
-
...args
|
|
14
|
-
}: {
|
|
15
|
-
account: Address;
|
|
16
|
-
validator: Address;
|
|
17
|
-
page?: number;
|
|
18
|
-
perPage?: number;
|
|
19
|
-
} & BeraJS.BaseFunctionArgs): Promise<BribeBoostRewardProof> {
|
|
20
|
-
const { config } = parseBaseArgs(args);
|
|
21
|
-
|
|
22
|
-
// We'll try to revalidate on the client side by using the cache: "no-store" and swrImmutable
|
|
23
|
-
// In the future, we can look at using cache and tags to invalidate the cache on the server side to prevent stale data
|
|
24
|
-
const result = await fetch(
|
|
25
|
-
`${
|
|
26
|
-
config.pol.bribeBoostApi
|
|
27
|
-
}/api/v1/wallets/${account.toLowerCase()}/proofs/validator/${validator.toLowerCase()}?page=${page}&per_page=${perPage}`,
|
|
28
|
-
{
|
|
29
|
-
cache: "no-store",
|
|
30
|
-
},
|
|
31
|
-
);
|
|
32
|
-
|
|
33
|
-
if (!result.ok) {
|
|
34
|
-
const error = await getErrorResponse(result);
|
|
35
|
-
throw new BeraError({
|
|
36
|
-
message: "Failed to fetch proofs on server",
|
|
37
|
-
cause: {
|
|
38
|
-
error,
|
|
39
|
-
result: result,
|
|
40
|
-
account,
|
|
41
|
-
validator,
|
|
42
|
-
},
|
|
43
|
-
reason: error?.reason,
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
const data = await result.json();
|
|
48
|
-
return data;
|
|
49
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GetSWberaVaultMetadata,
|
|
3
|
-
type GetSWberaVaultMetadataQuery,
|
|
4
|
-
type GetSWberaVaultMetadataQueryVariables,
|
|
5
|
-
type GqlChain,
|
|
6
|
-
GqlSWberaVaultMetadataResolution,
|
|
7
|
-
} from "@berachain/graphql/pol/api";
|
|
8
|
-
|
|
9
|
-
import { parseBaseArgs } from "../../utils/parseBaseArgs";
|
|
10
|
-
import { getApolloClient } from "../clients/getApolloClient";
|
|
11
|
-
|
|
12
|
-
function getResolution(window: "DAY" | "WEEK") {
|
|
13
|
-
if (window === "DAY") {
|
|
14
|
-
return GqlSWberaVaultMetadataResolution.OneDay;
|
|
15
|
-
}
|
|
16
|
-
return GqlSWberaVaultMetadataResolution.SevenDays;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @throws {Error} If the vault is not found
|
|
22
|
-
* @returns
|
|
23
|
-
*/
|
|
24
|
-
export async function getStakedBeraAPR({
|
|
25
|
-
window,
|
|
26
|
-
...args
|
|
27
|
-
}: {
|
|
28
|
-
/**
|
|
29
|
-
* APR might vary depending on the annualized time window (day or week)
|
|
30
|
-
*/
|
|
31
|
-
window: "DAY" | "WEEK";
|
|
32
|
-
} & BeraJS.BaseFunctionArgs): Promise<number> {
|
|
33
|
-
const { config } = parseBaseArgs(args);
|
|
34
|
-
|
|
35
|
-
const bexApiGraphqlClient = getApolloClient("api", args);
|
|
36
|
-
|
|
37
|
-
try {
|
|
38
|
-
const data = await bexApiGraphqlClient.query<
|
|
39
|
-
GetSWberaVaultMetadataQuery,
|
|
40
|
-
GetSWberaVaultMetadataQueryVariables
|
|
41
|
-
>({
|
|
42
|
-
query: GetSWberaVaultMetadata,
|
|
43
|
-
variables: {
|
|
44
|
-
chain: config.bex.chainName as GqlChain,
|
|
45
|
-
resolution: getResolution(window ?? "DAY"),
|
|
46
|
-
},
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
const { apr } = data.data.polGetSWberaVaultMetadata;
|
|
50
|
-
|
|
51
|
-
return Number(apr);
|
|
52
|
-
} catch (error) {
|
|
53
|
-
console.error("Failed to get SW Bera APR", error);
|
|
54
|
-
throw error;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { Address } from "viem";
|
|
2
|
-
|
|
3
|
-
import { BeraError } from "../../errors/BeraError";
|
|
4
|
-
import type { BribeBoostRewardItem } from "../../types/bribe-boost";
|
|
5
|
-
import { getErrorResponse } from "../../utils/getErrorResponse";
|
|
6
|
-
import { parseBaseArgs } from "../../utils/parseBaseArgs";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Server-side function to get user claimable incentives grouped by validator
|
|
10
|
-
*/
|
|
11
|
-
export async function getUserClaimableIncentives({
|
|
12
|
-
account,
|
|
13
|
-
...args
|
|
14
|
-
}: {
|
|
15
|
-
account: Address;
|
|
16
|
-
} & BeraJS.BaseFunctionArgs): Promise<BribeBoostRewardItem[] | null> {
|
|
17
|
-
const { config } = parseBaseArgs(args);
|
|
18
|
-
|
|
19
|
-
// We'll try to revalidate on the client side by using the cache: "no-store" and swrImmutable
|
|
20
|
-
// In the future, we can look at using cache and tags to invalidate the cache on the server side to prevent stale data
|
|
21
|
-
const result = await fetch(
|
|
22
|
-
`${
|
|
23
|
-
config.pol.bribeBoostApi
|
|
24
|
-
}/api/v1/wallets/${account.toLowerCase()}/rewards/aggregation`,
|
|
25
|
-
{
|
|
26
|
-
cache: "no-store",
|
|
27
|
-
},
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
if (!result.ok) {
|
|
31
|
-
const error = await getErrorResponse(result);
|
|
32
|
-
throw new BeraError({
|
|
33
|
-
message: "Failed to fetch incentives on server",
|
|
34
|
-
cause: { error, result, account },
|
|
35
|
-
reason: error?.error,
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return result.json();
|
|
40
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { Address } from "viem";
|
|
2
|
-
|
|
3
|
-
import type { GetValidatorBlockStatsQuery } from "@berachain/graphql/pol/subgraph";
|
|
4
|
-
|
|
5
|
-
import { BeraError } from "../../errors/BeraError";
|
|
6
|
-
import { beraFetchJson } from "../../utils/beraFetch";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Browser-only. Hits `/api/pol/validator-block-stats`. Server callers (RSC)
|
|
10
|
-
* should import from `@berachain/berajs/actions/server` instead — that path
|
|
11
|
-
* has the static Apollo + GraphQL imports and does not pass through the
|
|
12
|
-
* browser endpoint.
|
|
13
|
-
*/
|
|
14
|
-
export async function getDailyValidatorBlockStats({
|
|
15
|
-
pubKey,
|
|
16
|
-
first = 1,
|
|
17
|
-
}: {
|
|
18
|
-
pubKey: Address;
|
|
19
|
-
first?: number;
|
|
20
|
-
}): Promise<GetValidatorBlockStatsQuery | undefined> {
|
|
21
|
-
if (typeof window === "undefined") {
|
|
22
|
-
throw new BeraError({
|
|
23
|
-
message:
|
|
24
|
-
"getDailyValidatorBlockStats is browser-only; for RSC use @berachain/berajs/actions/server",
|
|
25
|
-
level: "error",
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const params = new URLSearchParams({
|
|
30
|
-
pubkey: pubKey,
|
|
31
|
-
first: String(first),
|
|
32
|
-
});
|
|
33
|
-
return beraFetchJson<GetValidatorBlockStatsQuery>({
|
|
34
|
-
url: `/api/pol/validator-block-stats?${params}`,
|
|
35
|
-
name: "pol-validator-block-stats",
|
|
36
|
-
type: "rest",
|
|
37
|
-
});
|
|
38
|
-
}
|