@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
package/dist/hooks/exports.d.ts
CHANGED
|
@@ -1,1542 +1,110 @@
|
|
|
1
|
-
import * as swr__internal from 'swr/_internal';
|
|
2
|
-
import * as _berachain_utils_pkg_swr from '@berachain/utils/pkg/swr';
|
|
3
|
-
import { SWRResponse } from '@berachain/utils/pkg/swr';
|
|
4
|
-
import { b as GetConvertToAssetsProps, O as OnChainPool, B as BaseAggregator, d as GetHoneyVaultsBalanceResponse, j as IsBadCollateralResponse, G as GetBgtAprSimulationArgs, a as GetBgtAprSimulationResult, i as GlobalData, e as GetMarkets, S as StakedBeraWithdrawal, k as RewardVaultIncentive, f as GetRewardVaultRewardsReturn, c as GetGaugeData, t as VaultMetadata, g as GetUserVaultsResponse, h as GetVaultHistoryArgs, V as ValidatorRewardAllocation, s as ValidatorWithUserBoost, U as UserBoostsOnValidator, l as UserStakingPoolPosition, n as ValidatorQueuedCommission, o as ValidatorQueuedOperatorAddress } from '../getValidatorQueuedOperatorAddress-Cxt-DlL_.js';
|
|
5
|
-
import { D as DefaultHookOptions, a as DefaultHookReturnType, b as IUseContractWriteArgs, U as UseContractWriteApi } from '../global.d-q_LQWQqs.js';
|
|
6
|
-
export { T as TxnEventKeys } from '../global.d-q_LQWQqs.js';
|
|
7
|
-
import { S as SwapReferrer, A as Aggregators, a as PoolCreationStep } from '../dex-C_BB0b0O.js';
|
|
8
|
-
import { Address, Hex } from 'viem';
|
|
9
|
-
import { M as MinimalERC20, d as HoneyConfigContextReturn, g as IRawAggregatorQuote, b as Token, t as TokenWithAmount, i as TokenCurrentPriceMap, v as IUserPosition, A as AllowanceQueryItem, j as AllowanceToken, w as TokenPriceInfo, B as BalanceToken, h as PythPriceFeedMap, P as PythLatestUpdates, a as TokenWithMetadata } from '../HoneyConfigProvider-COOuDNra.js';
|
|
10
|
-
import * as _berachain_graphql_dex_api from '@berachain/graphql/dex/api';
|
|
11
|
-
import { GetPoolsQueryVariables, MinimalPoolFragment, GqlPoolEventType, PoolHistoricalDataFragment, GqlRewardVaultDynamicData, GqlVaultSnapshotDataRange, GqlValidatorDynamicData } from '@berachain/graphql/dex/api';
|
|
12
|
-
export { u as useBexStatus } from '../BexStatusProvider-DRymVlQf.js';
|
|
13
|
-
import { PoolType } from '@berachain-foundation/berancer-sdk';
|
|
14
|
-
import { BendDemultiplyBundleResponse, BendMultiplyBundleResponse, GetZapTransactionResponse } from '../types/exports.js';
|
|
15
|
-
import { I as IHoneySwapState } from '../useHoneySwapState-twi7NTaO.js';
|
|
16
|
-
export { r as reducer, u as useHoneySwapState } from '../useHoneySwapState-twi7NTaO.js';
|
|
17
|
-
import * as _berachain_graphql_beep from '@berachain/graphql/beep';
|
|
18
|
-
import { ValidatorIncentivesResponse } from '@berachain/graphql/beep';
|
|
19
|
-
import { A as AutoclaimedIncentivesResponse, a as AutoclaimedIncentivesTxHashResponse, S as StakingConfig, c as StakedBeraAsset, U as UserVaultInfo, B as BribeBoostRewardProof } from '../pol.d-CeRgXBL8.js';
|
|
20
|
-
import * as _berachain_graphql_pol_api from '@berachain/graphql/pol/api';
|
|
21
|
-
import { GqlRewardVaultFilter, ApiVaultFragment, GetVaultsQueryVariables, GetVaultHistoryQuery, ApiValidatorFragment, GetValidatorsQueryVariables, GetValidatorsQuery, GqlChain, GetValidatorQuery, ApiValidatorMinimalFragment } from '@berachain/graphql/pol/api';
|
|
22
|
-
import { VaultStatsByDayResponse } from '@berachain/graphql/api';
|
|
23
|
-
import { Address as Address$1 } from '@berachain/config';
|
|
24
|
-
import * as swr from 'swr';
|
|
25
|
-
import { GetValidatorBlockStatsQuery, GetValidatorAnalyticsQuery } from '@berachain/graphql/pol/subgraph';
|
|
26
|
-
import '@berachain/config/internal';
|
|
27
|
-
import '@wagmi/core';
|
|
28
|
-
import '../txnEnum-ByI5dtDi.js';
|
|
29
|
-
import '../BeraError-7-A5JYy_.js';
|
|
30
|
-
import 'react/jsx-runtime';
|
|
31
|
-
import 'react';
|
|
32
|
-
import '../honey-CYm0RWf4.js';
|
|
33
|
-
import '@berachain/config/internal/edge-config';
|
|
34
|
-
import '@ensofinance/sdk';
|
|
35
|
-
|
|
36
|
-
declare const useGetConvertToAssets: ({ sharesAmount, vaultAddress, vaultChainId, }: Omit<GetConvertToAssetsProps, "publicClient"> & {
|
|
37
|
-
vaultChainId?: number;
|
|
38
|
-
}, options?: DefaultHookOptions) => {
|
|
39
|
-
refresh: () => void;
|
|
40
|
-
data: {
|
|
41
|
-
raw: bigint;
|
|
42
|
-
formatted: string;
|
|
43
|
-
} | undefined;
|
|
44
|
-
error: any;
|
|
45
|
-
mutate: _berachain_utils_pkg_swr.KeyedMutator<{
|
|
46
|
-
raw: bigint;
|
|
47
|
-
formatted: string;
|
|
48
|
-
}>;
|
|
49
|
-
isValidating: boolean;
|
|
50
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
type IUseAggregatorsQuotesArgs$1 = BeraJS.BaseFunctionArgs & {
|
|
54
|
-
tokenIn: MinimalERC20;
|
|
55
|
-
tokenOut: MinimalERC20;
|
|
56
|
-
amount: string;
|
|
57
|
-
slippage: number;
|
|
58
|
-
referrer?: SwapReferrer;
|
|
59
|
-
rewardVault?: Address;
|
|
60
|
-
/**
|
|
61
|
-
* Useful cause the collaterals are provided byt he honeyContext and this way we can
|
|
62
|
-
* use the Provider only in the swap page where is needed.
|
|
63
|
-
*
|
|
64
|
-
* The collaterals for the honey mint/redeem aggregator.
|
|
65
|
-
*/
|
|
66
|
-
honeyNativeState?: Pick<HoneyConfigContextReturn, "collateralList" | "protocol">;
|
|
67
|
-
};
|
|
68
|
-
declare function useAggregatorsQuotes(args: IUseAggregatorsQuotesArgs$1, options?: DefaultHookOptions): {
|
|
69
|
-
refresh: () => Promise<IRawAggregatorQuote | undefined>[];
|
|
70
|
-
quotes: IRawAggregatorQuote[];
|
|
71
|
-
loadingAggregatorsNames: (Aggregators | null)[];
|
|
72
|
-
isLoading: boolean;
|
|
73
|
-
error: any;
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
declare const useAggregatorsRouterFeeBps: () => {
|
|
77
|
-
refresh: _berachain_utils_pkg_swr.KeyedMutator<number>;
|
|
78
|
-
data: number | undefined;
|
|
79
|
-
error: any;
|
|
80
|
-
mutate: _berachain_utils_pkg_swr.KeyedMutator<number>;
|
|
81
|
-
isValidating: boolean;
|
|
82
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
declare const useAllUserPoolsQueryKey: ({ query, }?: {
|
|
86
|
-
query?: GetPoolsQueryVariables;
|
|
87
|
-
}) => (string | _berachain_graphql_dex_api.Exact<{
|
|
88
|
-
textSearch?: _berachain_graphql_dex_api.InputMaybe<_berachain_graphql_dex_api.Scalars["String"]["input"]>;
|
|
89
|
-
first?: _berachain_graphql_dex_api.InputMaybe<_berachain_graphql_dex_api.Scalars["Int"]["input"]>;
|
|
90
|
-
userAddress?: _berachain_graphql_dex_api.InputMaybe<_berachain_graphql_dex_api.Scalars["String"]["input"]>;
|
|
91
|
-
chain: Array<_berachain_graphql_dex_api.GqlChain> | _berachain_graphql_dex_api.GqlChain;
|
|
92
|
-
orderBy?: _berachain_graphql_dex_api.InputMaybe<_berachain_graphql_dex_api.GqlPoolOrderBy>;
|
|
93
|
-
skip?: _berachain_graphql_dex_api.InputMaybe<_berachain_graphql_dex_api.Scalars["Int"]["input"]>;
|
|
94
|
-
orderDirection?: _berachain_graphql_dex_api.InputMaybe<_berachain_graphql_dex_api.GqlPoolOrderDirection>;
|
|
95
|
-
blacklistedPoolIds?: _berachain_graphql_dex_api.InputMaybe<Array<_berachain_graphql_dex_api.Scalars["String"]["input"]> | _berachain_graphql_dex_api.Scalars["String"]["input"]>;
|
|
96
|
-
}> | undefined)[];
|
|
97
|
-
declare const useAllUserPools: (query: GetPoolsQueryVariables, options?: DefaultHookOptions) => {
|
|
98
|
-
refresh: () => void;
|
|
99
|
-
data: {
|
|
100
|
-
pools: {
|
|
101
|
-
__typename?: "GqlPoolMinimal";
|
|
102
|
-
id: string;
|
|
103
|
-
name: string;
|
|
104
|
-
address: `0x${string}`;
|
|
105
|
-
factory?: `0x${string}` | null;
|
|
106
|
-
protocolVersion: number;
|
|
107
|
-
type: _berachain_graphql_dex_api.GqlPoolType;
|
|
108
|
-
tokens: Array<{
|
|
109
|
-
__typename?: "GqlPoolTokenExpanded";
|
|
110
|
-
address: `0x${string}`;
|
|
111
|
-
symbol: string;
|
|
112
|
-
name: string;
|
|
113
|
-
decimals: number;
|
|
114
|
-
}>;
|
|
115
|
-
dynamicData: {
|
|
116
|
-
__typename?: "GqlPoolDynamicData";
|
|
117
|
-
totalShares: string;
|
|
118
|
-
fees24h: string;
|
|
119
|
-
volume24h: string;
|
|
120
|
-
swapFee: string;
|
|
121
|
-
isInRecoveryMode: boolean;
|
|
122
|
-
isPaused: boolean;
|
|
123
|
-
totalLiquidity: string;
|
|
124
|
-
aprItems: Array<{
|
|
125
|
-
__typename?: "GqlPoolAprItem";
|
|
126
|
-
apr: number;
|
|
127
|
-
type: _berachain_graphql_dex_api.GqlPoolAprItemType;
|
|
128
|
-
id: string;
|
|
129
|
-
}>;
|
|
130
|
-
};
|
|
131
|
-
userBalance?: {
|
|
132
|
-
__typename?: "GqlPoolUserBalance";
|
|
133
|
-
totalBalanceUsd: number;
|
|
134
|
-
walletBalance: any;
|
|
135
|
-
walletBalanceUsd: number;
|
|
136
|
-
} | null;
|
|
137
|
-
rewardVault?: {
|
|
138
|
-
__typename?: "GqlRewardVault";
|
|
139
|
-
isVaultWhitelisted: boolean;
|
|
140
|
-
vaultAddress: `0x${string}`;
|
|
141
|
-
stakingTokenAddress: `0x${string}`;
|
|
142
|
-
dynamicData?: {
|
|
143
|
-
__typename?: "GqlRewardVaultDynamicData";
|
|
144
|
-
activeIncentivesValueUsd: string;
|
|
145
|
-
apr?: number | null;
|
|
146
|
-
rewardCapturePercentage: number;
|
|
147
|
-
} | null;
|
|
148
|
-
} | null;
|
|
149
|
-
}[];
|
|
150
|
-
count: number;
|
|
151
|
-
} | undefined;
|
|
152
|
-
error: any;
|
|
153
|
-
mutate: _berachain_utils_pkg_swr.KeyedMutator<{
|
|
154
|
-
pools: {
|
|
155
|
-
__typename?: "GqlPoolMinimal";
|
|
156
|
-
id: string;
|
|
157
|
-
name: string;
|
|
158
|
-
address: `0x${string}`;
|
|
159
|
-
factory?: `0x${string}` | null;
|
|
160
|
-
protocolVersion: number;
|
|
161
|
-
type: _berachain_graphql_dex_api.GqlPoolType;
|
|
162
|
-
tokens: Array<{
|
|
163
|
-
__typename?: "GqlPoolTokenExpanded";
|
|
164
|
-
address: `0x${string}`;
|
|
165
|
-
symbol: string;
|
|
166
|
-
name: string;
|
|
167
|
-
decimals: number;
|
|
168
|
-
}>;
|
|
169
|
-
dynamicData: {
|
|
170
|
-
__typename?: "GqlPoolDynamicData";
|
|
171
|
-
totalShares: string;
|
|
172
|
-
fees24h: string;
|
|
173
|
-
volume24h: string;
|
|
174
|
-
swapFee: string;
|
|
175
|
-
isInRecoveryMode: boolean;
|
|
176
|
-
isPaused: boolean;
|
|
177
|
-
totalLiquidity: string;
|
|
178
|
-
aprItems: Array<{
|
|
179
|
-
__typename?: "GqlPoolAprItem";
|
|
180
|
-
apr: number;
|
|
181
|
-
type: _berachain_graphql_dex_api.GqlPoolAprItemType;
|
|
182
|
-
id: string;
|
|
183
|
-
}>;
|
|
184
|
-
};
|
|
185
|
-
userBalance?: {
|
|
186
|
-
__typename?: "GqlPoolUserBalance";
|
|
187
|
-
totalBalanceUsd: number;
|
|
188
|
-
walletBalance: any;
|
|
189
|
-
walletBalanceUsd: number;
|
|
190
|
-
} | null;
|
|
191
|
-
rewardVault?: {
|
|
192
|
-
__typename?: "GqlRewardVault";
|
|
193
|
-
isVaultWhitelisted: boolean;
|
|
194
|
-
vaultAddress: `0x${string}`;
|
|
195
|
-
stakingTokenAddress: `0x${string}`;
|
|
196
|
-
dynamicData?: {
|
|
197
|
-
__typename?: "GqlRewardVaultDynamicData";
|
|
198
|
-
activeIncentivesValueUsd: string;
|
|
199
|
-
apr?: number | null;
|
|
200
|
-
rewardCapturePercentage: number;
|
|
201
|
-
} | null;
|
|
202
|
-
} | null;
|
|
203
|
-
}[];
|
|
204
|
-
count: number;
|
|
205
|
-
}>;
|
|
206
|
-
isValidating: boolean;
|
|
207
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
declare const useApiPoolQueryKey: ({ poolId, account, }: {
|
|
211
|
-
poolId: Hex;
|
|
212
|
-
account?: Address;
|
|
213
|
-
}) => readonly ["usePool-api", `0x${string}`, `0x${string}` | undefined] | null;
|
|
214
|
-
declare function useApiPool({ poolId, account, }: {
|
|
215
|
-
poolId: Hex;
|
|
216
|
-
account?: Address;
|
|
217
|
-
}): {
|
|
218
|
-
refresh: () => void;
|
|
219
|
-
data: MinimalPoolFragment | undefined;
|
|
220
|
-
error: any;
|
|
221
|
-
mutate: _berachain_utils_pkg_swr.KeyedMutator<MinimalPoolFragment>;
|
|
222
|
-
isValidating: boolean;
|
|
223
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
interface UseCreatePoolProps extends BeraJS.BaseFunctionArgs {
|
|
227
|
-
poolCreateTokens: Token[];
|
|
228
|
-
initialLiquidityTokens: TokenWithAmount[];
|
|
229
|
-
normalizedWeights: bigint[];
|
|
230
|
-
poolType: PoolType;
|
|
231
|
-
swapFee: number;
|
|
232
|
-
owner: string;
|
|
233
|
-
poolSymbol: string;
|
|
234
|
-
poolName: string;
|
|
235
|
-
amplification: number;
|
|
236
|
-
oracles: Oracle[];
|
|
237
|
-
}
|
|
238
|
-
interface UseCreatePoolReturn {
|
|
239
|
-
generatedPoolName: string;
|
|
240
|
-
generatedPoolSymbol: string;
|
|
241
|
-
createPoolArgs: any;
|
|
242
|
-
}
|
|
243
|
-
declare enum OracleMode {
|
|
244
|
-
None = "None",
|
|
245
|
-
Custom = "Custom"
|
|
246
|
-
}
|
|
247
|
-
interface Oracle {
|
|
248
|
-
mode: OracleMode;
|
|
249
|
-
address: string;
|
|
250
|
-
tokenAddress: string;
|
|
251
|
-
cacheDuration: number;
|
|
252
|
-
}
|
|
253
|
-
declare const useCreatePool: ({ poolCreateTokens, initialLiquidityTokens, normalizedWeights, poolType, poolName, poolSymbol, swapFee, owner, amplification, oracles, ...baseArgs }: UseCreatePoolProps) => UseCreatePoolReturn;
|
|
254
|
-
|
|
255
|
-
declare const useGlobalLiquidityAndSwapVolume: () => {
|
|
256
|
-
data: {
|
|
257
|
-
totalLiquidity: number;
|
|
258
|
-
swapVolume24h: number;
|
|
259
|
-
};
|
|
260
|
-
refresh: () => Promise<_berachain_graphql_dex_api.GetGlobalLiquidityAndSwapVolumeQuery | undefined>;
|
|
261
|
-
error: any;
|
|
262
|
-
mutate: _berachain_utils_pkg_swr.KeyedMutator<_berachain_graphql_dex_api.GetGlobalLiquidityAndSwapVolumeQuery>;
|
|
263
|
-
isValidating: boolean;
|
|
264
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
265
|
-
};
|
|
266
|
-
|
|
267
|
-
type LiquidityMismatchInfo = {
|
|
268
|
-
title: string | null;
|
|
269
|
-
message: string | null;
|
|
270
|
-
suggestWeighted?: boolean;
|
|
271
|
-
};
|
|
272
|
-
interface UseLiquidityMismatchParams {
|
|
273
|
-
currentStep: PoolCreationStep;
|
|
274
|
-
tokenPrices?: TokenCurrentPriceMap;
|
|
275
|
-
isLoadingTokenPrices: boolean;
|
|
276
|
-
tokens: TokenWithAmount[] | null;
|
|
277
|
-
weights: bigint[] | null;
|
|
278
|
-
weightsError: string | null;
|
|
279
|
-
poolType: PoolType;
|
|
280
|
-
liquidityMismatchTolerancePercent?: number;
|
|
281
|
-
oracles: Oracle[];
|
|
282
|
-
}
|
|
283
1
|
/**
|
|
284
|
-
*
|
|
285
|
-
*
|
|
286
|
-
*
|
|
287
|
-
*
|
|
288
|
-
* @
|
|
289
|
-
|
|
290
|
-
*
|
|
291
|
-
*
|
|
292
|
-
*
|
|
293
|
-
*
|
|
294
|
-
*
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
*
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
*
|
|
367
|
-
*
|
|
368
|
-
*
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
};
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
};
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
type UsePoolHistoricalDataArgs = {
|
|
394
|
-
poolId: string | undefined;
|
|
395
|
-
};
|
|
396
|
-
declare const usePoolHistoricalData: ({ poolId, ...baseArgs }: UsePoolHistoricalDataArgs & BeraJS.BaseFunctionArgs, options?: DefaultHookOptions) => DefaultHookReturnType<PoolHistoricalDataFragment[] | undefined>;
|
|
397
|
-
|
|
398
|
-
declare const usePoolsQueryKey: ({ query, }?: {
|
|
399
|
-
query?: GetPoolsQueryVariables;
|
|
400
|
-
}) => (string | _berachain_graphql_dex_api.Exact<{
|
|
401
|
-
textSearch?: _berachain_graphql_dex_api.InputMaybe<_berachain_graphql_dex_api.Scalars["String"]["input"]>;
|
|
402
|
-
first?: _berachain_graphql_dex_api.InputMaybe<_berachain_graphql_dex_api.Scalars["Int"]["input"]>;
|
|
403
|
-
userAddress?: _berachain_graphql_dex_api.InputMaybe<_berachain_graphql_dex_api.Scalars["String"]["input"]>;
|
|
404
|
-
chain: Array<_berachain_graphql_dex_api.GqlChain> | _berachain_graphql_dex_api.GqlChain;
|
|
405
|
-
orderBy?: _berachain_graphql_dex_api.InputMaybe<_berachain_graphql_dex_api.GqlPoolOrderBy>;
|
|
406
|
-
skip?: _berachain_graphql_dex_api.InputMaybe<_berachain_graphql_dex_api.Scalars["Int"]["input"]>;
|
|
407
|
-
orderDirection?: _berachain_graphql_dex_api.InputMaybe<_berachain_graphql_dex_api.GqlPoolOrderDirection>;
|
|
408
|
-
blacklistedPoolIds?: _berachain_graphql_dex_api.InputMaybe<Array<_berachain_graphql_dex_api.Scalars["String"]["input"]> | _berachain_graphql_dex_api.Scalars["String"]["input"]>;
|
|
409
|
-
}> | undefined)[];
|
|
410
|
-
/**
|
|
411
|
-
* Returns all pools from bex api, including user's pools if logged in
|
|
412
|
-
* @todo add subgraph fallback
|
|
413
|
-
*/
|
|
414
|
-
declare const usePools: (query: GetPoolsQueryVariables, options?: DefaultHookOptions) => {
|
|
415
|
-
pools: {
|
|
416
|
-
__typename?: "GqlPoolMinimal";
|
|
417
|
-
id: string;
|
|
418
|
-
name: string;
|
|
419
|
-
address: `0x${string}`;
|
|
420
|
-
factory?: `0x${string}` | null;
|
|
421
|
-
protocolVersion: number;
|
|
422
|
-
type: _berachain_graphql_dex_api.GqlPoolType;
|
|
423
|
-
tokens: Array<{
|
|
424
|
-
__typename?: "GqlPoolTokenExpanded";
|
|
425
|
-
address: `0x${string}`;
|
|
426
|
-
symbol: string;
|
|
427
|
-
name: string;
|
|
428
|
-
decimals: number;
|
|
429
|
-
}>;
|
|
430
|
-
dynamicData: {
|
|
431
|
-
__typename?: "GqlPoolDynamicData";
|
|
432
|
-
totalShares: string;
|
|
433
|
-
fees24h: string;
|
|
434
|
-
volume24h: string;
|
|
435
|
-
swapFee: string;
|
|
436
|
-
isInRecoveryMode: boolean;
|
|
437
|
-
isPaused: boolean;
|
|
438
|
-
totalLiquidity: string;
|
|
439
|
-
aprItems: Array<{
|
|
440
|
-
__typename?: "GqlPoolAprItem";
|
|
441
|
-
apr: number;
|
|
442
|
-
type: _berachain_graphql_dex_api.GqlPoolAprItemType;
|
|
443
|
-
id: string;
|
|
444
|
-
}>;
|
|
445
|
-
};
|
|
446
|
-
userBalance?: {
|
|
447
|
-
__typename?: "GqlPoolUserBalance";
|
|
448
|
-
totalBalanceUsd: number;
|
|
449
|
-
walletBalance: any;
|
|
450
|
-
walletBalanceUsd: number;
|
|
451
|
-
} | null;
|
|
452
|
-
rewardVault?: {
|
|
453
|
-
__typename?: "GqlRewardVault";
|
|
454
|
-
isVaultWhitelisted: boolean;
|
|
455
|
-
vaultAddress: `0x${string}`;
|
|
456
|
-
stakingTokenAddress: `0x${string}`;
|
|
457
|
-
dynamicData?: {
|
|
458
|
-
__typename?: "GqlRewardVaultDynamicData";
|
|
459
|
-
activeIncentivesValueUsd: string;
|
|
460
|
-
apr?: number | null;
|
|
461
|
-
rewardCapturePercentage: number;
|
|
462
|
-
} | null;
|
|
463
|
-
} | null;
|
|
464
|
-
}[];
|
|
465
|
-
walletPools: {
|
|
466
|
-
__typename?: "GqlPoolMinimal";
|
|
467
|
-
id: string;
|
|
468
|
-
name: string;
|
|
469
|
-
address: `0x${string}`;
|
|
470
|
-
factory?: `0x${string}` | null;
|
|
471
|
-
protocolVersion: number;
|
|
472
|
-
type: _berachain_graphql_dex_api.GqlPoolType;
|
|
473
|
-
tokens: Array<{
|
|
474
|
-
__typename?: "GqlPoolTokenExpanded";
|
|
475
|
-
address: `0x${string}`;
|
|
476
|
-
symbol: string;
|
|
477
|
-
name: string;
|
|
478
|
-
decimals: number;
|
|
479
|
-
}>;
|
|
480
|
-
dynamicData: {
|
|
481
|
-
__typename?: "GqlPoolDynamicData";
|
|
482
|
-
totalShares: string;
|
|
483
|
-
fees24h: string;
|
|
484
|
-
volume24h: string;
|
|
485
|
-
swapFee: string;
|
|
486
|
-
isInRecoveryMode: boolean;
|
|
487
|
-
isPaused: boolean;
|
|
488
|
-
totalLiquidity: string;
|
|
489
|
-
aprItems: Array<{
|
|
490
|
-
__typename?: "GqlPoolAprItem";
|
|
491
|
-
apr: number;
|
|
492
|
-
type: _berachain_graphql_dex_api.GqlPoolAprItemType;
|
|
493
|
-
id: string;
|
|
494
|
-
}>;
|
|
495
|
-
};
|
|
496
|
-
userBalance?: {
|
|
497
|
-
__typename?: "GqlPoolUserBalance";
|
|
498
|
-
totalBalanceUsd: number;
|
|
499
|
-
walletBalance: any;
|
|
500
|
-
walletBalanceUsd: number;
|
|
501
|
-
} | null;
|
|
502
|
-
rewardVault?: {
|
|
503
|
-
__typename?: "GqlRewardVault";
|
|
504
|
-
isVaultWhitelisted: boolean;
|
|
505
|
-
vaultAddress: `0x${string}`;
|
|
506
|
-
stakingTokenAddress: `0x${string}`;
|
|
507
|
-
dynamicData?: {
|
|
508
|
-
__typename?: "GqlRewardVaultDynamicData";
|
|
509
|
-
activeIncentivesValueUsd: string;
|
|
510
|
-
apr?: number | null;
|
|
511
|
-
rewardCapturePercentage: number;
|
|
512
|
-
} | null;
|
|
513
|
-
} | null;
|
|
514
|
-
}[];
|
|
515
|
-
isLoading: boolean;
|
|
516
|
-
error: any;
|
|
517
|
-
refresh: () => void;
|
|
518
|
-
pagination: {
|
|
519
|
-
page: number;
|
|
520
|
-
pageSize: _berachain_graphql_dex_api.InputMaybe<number> | undefined;
|
|
521
|
-
count: number;
|
|
522
|
-
};
|
|
523
|
-
};
|
|
524
|
-
|
|
525
|
-
declare function usePriceImpact({ tokenIn, tokenOut, formattedAmountIn, formattedAmountOut, }: {
|
|
526
|
-
tokenIn: Token | undefined;
|
|
527
|
-
tokenOut: Token | undefined;
|
|
528
|
-
formattedAmountIn: string | undefined;
|
|
529
|
-
formattedAmountOut: string | undefined;
|
|
530
|
-
}): {
|
|
531
|
-
data: number | null | undefined;
|
|
532
|
-
isLoading: boolean;
|
|
533
|
-
};
|
|
534
|
-
|
|
535
|
-
type IUseAggregatorsQuotesArgs = BeraJS.BaseFunctionArgs & {
|
|
536
|
-
tokenIn: MinimalERC20;
|
|
537
|
-
tokenOut: MinimalERC20;
|
|
538
|
-
amount: string;
|
|
539
|
-
slippage: number;
|
|
540
|
-
referrer?: SwapReferrer;
|
|
541
|
-
rewardVault?: Address;
|
|
542
|
-
/**
|
|
543
|
-
* Useful cause the collaterals are provided byt he honeyContext and this way we can
|
|
544
|
-
* use the Provider only in the swap page where is needed.
|
|
545
|
-
*
|
|
546
|
-
* The collaterals for the honey mint/redeem aggregator.
|
|
547
|
-
*/
|
|
548
|
-
honeyNativeState?: Pick<HoneyConfigContextReturn, "collateralList" | "protocol">;
|
|
549
|
-
underlyingToken?: MinimalERC20 | null;
|
|
550
|
-
};
|
|
551
|
-
declare const USE_AGGREGATORS_QUOTES_QUERY_KEY = "useAggregatorsQuotes";
|
|
552
|
-
/**
|
|
553
|
-
* Standalone hook for fetching a quote from a single aggregator.
|
|
554
|
-
* Resolves wallet, fee, and feature flag context internally — use this
|
|
555
|
-
* when you need a quote outside of the `useAggregatorsQuotes` multi-quote flow.
|
|
556
|
-
*/
|
|
557
|
-
declare function useSingleAggregatorQuote(args: IUseAggregatorsQuotesArgs & {
|
|
558
|
-
aggregator: BaseAggregator;
|
|
559
|
-
}, options?: DefaultHookOptions): _berachain_utils_pkg_swr.SWRResponse<IRawAggregatorQuote | undefined, any, any> | null;
|
|
560
|
-
|
|
561
|
-
type UseBendDemultiply = {
|
|
562
|
-
collateralToken?: Token;
|
|
563
|
-
loanToken?: Token;
|
|
564
|
-
marketId?: Hex;
|
|
565
|
-
primaryAddress?: Address;
|
|
566
|
-
repayAmount?: string;
|
|
567
|
-
slippage?: number;
|
|
568
|
-
chainId?: number;
|
|
569
|
-
collateralPriceInLoanAsset?: string;
|
|
570
|
-
currentCollateral?: string;
|
|
571
|
-
currentDebt?: string;
|
|
572
|
-
};
|
|
573
|
-
declare function useBendDemultiply({ collateralToken, loanToken, marketId, primaryAddress, repayAmount, slippage, chainId, collateralPriceInLoanAsset, currentCollateral, currentDebt, }: UseBendDemultiply, options?: DefaultHookOptions): _berachain_utils_pkg_swr.SWRResponse<BendDemultiplyBundleResponse, unknown, any>;
|
|
574
|
-
|
|
575
|
-
type UseBendMultiply = {
|
|
576
|
-
collateralToken?: Token;
|
|
577
|
-
loanToken?: Token;
|
|
578
|
-
marketId?: Hex;
|
|
579
|
-
primaryAddress?: Address;
|
|
580
|
-
formattedSupplyCollateralAmount?: string;
|
|
581
|
-
formattedCurrentCollateralAmount?: string;
|
|
582
|
-
formattedCurrentBorrowAmount?: string;
|
|
583
|
-
leverageMultiplier?: number;
|
|
584
|
-
slippage?: number;
|
|
585
|
-
chainId?: number;
|
|
586
|
-
formattedCollateralPriceInLoanAsset?: string;
|
|
587
|
-
};
|
|
588
|
-
declare function useBendMultiply({ collateralToken, loanToken, marketId, primaryAddress, formattedSupplyCollateralAmount, formattedCurrentCollateralAmount, formattedCurrentBorrowAmount, leverageMultiplier, slippage, chainId, formattedCollateralPriceInLoanAsset, }: UseBendMultiply, options?: DefaultHookOptions): _berachain_utils_pkg_swr.SWRResponse<BendMultiplyBundleResponse, unknown, any>;
|
|
589
|
-
|
|
590
|
-
type UseBendZapSupplyArgs = {
|
|
591
|
-
tokenIn?: BalanceToken;
|
|
592
|
-
loanToken: MinimalERC20;
|
|
593
|
-
bendVault: MinimalERC20;
|
|
594
|
-
rewardVault?: Address;
|
|
595
|
-
amount?: string;
|
|
596
|
-
slippage?: number;
|
|
597
|
-
};
|
|
598
|
-
/**
|
|
599
|
-
* Get the bend zap supply transaction requests for swapping tokens using Enso.
|
|
600
|
-
* @param {UseBendZapSupplyArgs} props - The props for the hook see {@link UseBendZapSupplyArgs}
|
|
601
|
-
* @returns {DefaultHookReturnType<GetZapTransactionResponse> & {tokens: BalanceToken[], refresh: () => void}}
|
|
602
|
-
*
|
|
603
|
-
* The bend transaction response data with polling enabled, see {@link GetZapTransactionResponse} and {@link BalanceToken}
|
|
604
|
-
* @remarks The hook is only enabled when all parameters are provided and amount is greater than 0
|
|
605
|
-
*/
|
|
606
|
-
declare function useBendZapSupply({ tokenIn, loanToken, bendVault, rewardVault, amount, slippage, }: UseBendZapSupplyArgs, options?: DefaultHookOptions): {
|
|
607
|
-
zapSupplyAmount: {
|
|
608
|
-
raw: bigint;
|
|
609
|
-
formatted: string;
|
|
610
|
-
} | undefined;
|
|
611
|
-
zapSupplyAmountError: any;
|
|
612
|
-
isZapSupplyAmountLoading: boolean;
|
|
613
|
-
priceImpact: number | null | undefined;
|
|
614
|
-
isPriceImpactLoading: boolean;
|
|
615
|
-
hasInsufficientNativeBalance: boolean | 0 | undefined;
|
|
616
|
-
isCrossChain: boolean | 0 | undefined;
|
|
617
|
-
nativeFee: string | undefined;
|
|
618
|
-
refresh: () => void;
|
|
619
|
-
data: any;
|
|
620
|
-
error: any;
|
|
621
|
-
mutate: _berachain_utils_pkg_swr.KeyedMutator<any>;
|
|
622
|
-
isValidating: boolean;
|
|
623
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
624
|
-
};
|
|
625
|
-
declare function useBendZapSupplyHelper({ tokenIn, loanToken, bendVault, rewardVault, amount, slippage, }: UseBendZapSupplyArgs, options?: DefaultHookOptions): _berachain_utils_pkg_swr.SWRResponse<any, any, any>;
|
|
626
|
-
|
|
627
|
-
/**
|
|
628
|
-
* Get the swap bundle for swapping tokens using Enso.
|
|
629
|
-
* @param {Pick<BalanceToken, "address" | "decimals">} tokenIn - The input token to swap from
|
|
630
|
-
* @param {Pick<BalanceToken, "address" | "decimals">} tokenOut - The output token to swap to
|
|
631
|
-
* @param {string} amount - The amount of input token to swap
|
|
632
|
-
* @param {number} slippage - The slippage tolerance to use for the route in percentage
|
|
633
|
-
* @returns {DefaultHookReturnType<GetZapTransactionResponse> & {tokens: BalanceToken[], refresh: () => void}}
|
|
634
|
-
*
|
|
635
|
-
* The zap transaction response data with polling enabled, see {@link GetZapTransactionResponse} and {@link BalanceToken}
|
|
636
|
-
* @remarks The hook is only enabled when all parameters are provided and amount is greater than 0
|
|
637
|
-
*/
|
|
638
|
-
declare function useEnsoSwapBundle({ tokenIn, tokenOut, amount, slippage, }: {
|
|
639
|
-
tokenIn?: Pick<MinimalERC20, "address" | "decimals" | "chainId">;
|
|
640
|
-
tokenOut?: Pick<MinimalERC20, "address" | "decimals">;
|
|
641
|
-
amount?: string;
|
|
642
|
-
slippage?: number;
|
|
643
|
-
}): {
|
|
644
|
-
refresh: () => void;
|
|
645
|
-
data: GetZapTransactionResponse | undefined;
|
|
646
|
-
error: any;
|
|
647
|
-
mutate: _berachain_utils_pkg_swr.KeyedMutator<GetZapTransactionResponse>;
|
|
648
|
-
isValidating: boolean;
|
|
649
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
650
|
-
};
|
|
651
|
-
|
|
652
|
-
declare function useEnsoUserTokensWithBalances({ chainId }?: {
|
|
653
|
-
chainId?: number;
|
|
654
|
-
}, options?: DefaultHookOptions): {
|
|
655
|
-
refresh: () => Promise<BalanceToken[] | undefined>;
|
|
656
|
-
data: BalanceToken[] | undefined;
|
|
657
|
-
error: any;
|
|
658
|
-
mutate: _berachain_utils_pkg_swr.KeyedMutator<BalanceToken[]>;
|
|
659
|
-
isValidating: boolean;
|
|
660
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
661
|
-
};
|
|
662
|
-
|
|
663
|
-
type UseZapStakeBeraArgs = {
|
|
664
|
-
inputToken: MinimalERC20 | undefined;
|
|
665
|
-
amount: string;
|
|
666
|
-
underlyingToken: MinimalERC20 | undefined;
|
|
667
|
-
slippage?: number;
|
|
668
|
-
inputTokenPrice?: number;
|
|
669
|
-
tokenOut: MinimalERC20;
|
|
670
|
-
};
|
|
671
|
-
/**
|
|
672
|
-
* hook to get zap stake BERA transaction data from enso.
|
|
673
|
-
* supports cross-chain zaps from any chain to berachain staking.
|
|
674
|
-
*/
|
|
675
|
-
declare function useZapStakeBera({ inputToken, amount, underlyingToken, slippage, tokenOut, }: UseZapStakeBeraArgs, options?: DefaultHookOptions): {
|
|
676
|
-
data: any;
|
|
677
|
-
refresh: () => void;
|
|
678
|
-
error: any;
|
|
679
|
-
mutate: _berachain_utils_pkg_swr.KeyedMutator<any>;
|
|
680
|
-
isValidating: boolean;
|
|
681
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
682
|
-
};
|
|
683
|
-
|
|
684
|
-
interface UseCappedGloballyResponse extends DefaultHookReturnType<boolean | undefined> {
|
|
685
|
-
}
|
|
686
|
-
declare const useCappedGlobally: ({ asset, amount, isMint, isBasketModeEnabled, }: {
|
|
687
|
-
asset: Token | undefined;
|
|
688
|
-
amount: string | undefined;
|
|
689
|
-
isMint: boolean;
|
|
690
|
-
isBasketModeEnabled: boolean | undefined;
|
|
691
|
-
}, options?: DefaultHookOptions) => UseCappedGloballyResponse;
|
|
692
|
-
|
|
693
|
-
interface UseCappedRelativelyResponse extends DefaultHookReturnType<boolean | undefined> {
|
|
694
|
-
}
|
|
695
|
-
declare const useCappedRelatively: ({ asset, amount, isMint, isBasketModeEnabled, }: {
|
|
696
|
-
asset: Address | undefined;
|
|
697
|
-
amount: string | undefined;
|
|
698
|
-
isMint: boolean;
|
|
699
|
-
isBasketModeEnabled: boolean | undefined;
|
|
700
|
-
}, options?: DefaultHookOptions) => UseCappedRelativelyResponse;
|
|
701
|
-
|
|
702
|
-
interface UseCollateralWeightsResponse extends DefaultHookReturnType<Record<Address, bigint> | undefined> {
|
|
703
|
-
}
|
|
704
|
-
declare const useCollateralWeights: ({ collateralList, }: {
|
|
705
|
-
collateralList: Token[] | undefined;
|
|
706
|
-
}, options?: DefaultHookOptions) => UseCollateralWeightsResponse;
|
|
707
|
-
|
|
708
|
-
declare function useHoney24hVolume(): {
|
|
709
|
-
refresh: () => Promise<BigNumber | undefined>;
|
|
710
|
-
data: BigNumber | undefined;
|
|
711
|
-
error: any;
|
|
712
|
-
mutate: _berachain_utils_pkg_swr.KeyedMutator<BigNumber | undefined>;
|
|
713
|
-
isValidating: boolean;
|
|
714
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
715
|
-
};
|
|
716
|
-
|
|
717
|
-
/**
|
|
718
|
-
* Interface defining the state props that we need without the entire IHoneySwapState
|
|
719
|
-
*/
|
|
720
|
-
type HoneyAlertStateProps = Pick<IHoneySwapState, "actionType" | "fromAmount" | "toAmount" | "collaterals" | "isBasketModeEnabled">;
|
|
721
|
-
/**
|
|
722
|
-
* Interface defining the alert states returned by the useHoneyAlerts hook
|
|
723
|
-
*/
|
|
724
|
-
interface HoneyAlertsReturn {
|
|
725
|
-
/** Indicates if the vault's liquidity is completely depleted (balance <= 1) */
|
|
726
|
-
isLiquidityDepleted: boolean;
|
|
727
|
-
isLiquidityDepletedCollaterals: Token[] | undefined;
|
|
728
|
-
/** Indicates if the requested redeem amount exceeds available liquidity in the vault*/
|
|
729
|
-
isRedeemMoreThanLiquidity: boolean;
|
|
730
|
-
isRedeemMoreThanLiquidityCollaterals: Token[] | undefined;
|
|
731
|
-
/** Indicates if the vault's liquidity is low (balance <= 1000) */
|
|
732
|
-
isLowLiquidity: boolean;
|
|
733
|
-
isLiquidityLowCollaterals: Token[] | undefined;
|
|
734
|
-
/** Indicates if the selected collateral is flagged as bad (blacklisted or depegged) */
|
|
735
|
-
isDepegged: boolean;
|
|
736
|
-
/** Indicates if the selected collateral is blacklisted */
|
|
737
|
-
isBlacklisted: boolean;
|
|
738
|
-
/** Indicates if the input amount exceeds the global cap limit */
|
|
739
|
-
isCappedGlobally: boolean | undefined;
|
|
740
|
-
/** Indicates if the input amount exceeds the relative cap limit */
|
|
741
|
-
isCappedRelatively: boolean | undefined;
|
|
742
|
-
/** Indicates if the input amount exceeds the balance of the user */
|
|
743
|
-
isExceedingBalance: boolean;
|
|
744
|
-
}
|
|
745
|
-
/**
|
|
746
|
-
* Hook that monitors various alert conditions for Honey swap operations
|
|
747
|
-
*
|
|
748
|
-
* This hook tracks multiple states that could affect swap operations:
|
|
749
|
-
* - Liquidity levels in vaults (depleted, low)
|
|
750
|
-
* - Collateral quality (blacklisted, depegged)
|
|
751
|
-
* - Cap limits for transactions (global, relative)
|
|
752
|
-
* - Balance checks
|
|
753
|
-
*
|
|
754
|
-
* @param {Object} params - The parameters object
|
|
755
|
-
* @param {HoneyAlertStateProps} params.state - The current state of the Honey swap operation
|
|
756
|
-
* @returns {HoneyAlertsReturn} Object containing various alert states
|
|
757
|
-
|
|
758
|
-
*/
|
|
759
|
-
declare const useHoneyAlerts: ({ actionType, collaterals, fromAmount, toAmount, isBasketModeEnabled, }: HoneyAlertStateProps) => HoneyAlertsReturn;
|
|
760
|
-
|
|
761
|
-
/**
|
|
762
|
-
* Hook that fetches and maintains balances for HONEY token and collateral tokens
|
|
763
|
-
*
|
|
764
|
-
* This hook:
|
|
765
|
-
* - Fetches balances for all collateral tokens and the HONEY token
|
|
766
|
-
* - Updates balances at regular intervals (10s)
|
|
767
|
-
* - Returns a map of token addresses to their respective balances
|
|
768
|
-
* - Provides a refresh function to manually trigger balance updates
|
|
769
|
-
*
|
|
770
|
-
* The hook requires:
|
|
771
|
-
* - A connected wallet account
|
|
772
|
-
* - A public client
|
|
773
|
-
* - BeraJS configuration
|
|
774
|
-
* - A list of collateral tokens
|
|
775
|
-
*
|
|
776
|
-
* @returns {DefaultHookReturnType<Record<Address, BalanceToken>>} Object containing:
|
|
777
|
-
* - data: Map of token addresses to their balances
|
|
778
|
-
* - error: Any error that occurred during fetching
|
|
779
|
-
* - isLoading: Loading state
|
|
780
|
-
* - refresh: Function to manually refresh balances
|
|
781
|
-
*/
|
|
782
|
-
declare const useHoneyBalances: () => DefaultHookReturnType<Record<Address, BalanceToken>>;
|
|
783
|
-
|
|
784
|
-
declare function useHoneyChartData({ days }: {
|
|
785
|
-
days: number;
|
|
786
|
-
}): {
|
|
787
|
-
refresh: () => Promise<{
|
|
788
|
-
timestamp: number;
|
|
789
|
-
mintVolume: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
|
|
790
|
-
redeemVolume: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
|
|
791
|
-
totalVolume: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
|
|
792
|
-
totalSupply: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
|
|
793
|
-
}[] | undefined>;
|
|
794
|
-
data: {
|
|
795
|
-
timestamp: number;
|
|
796
|
-
mintVolume: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
|
|
797
|
-
redeemVolume: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
|
|
798
|
-
totalVolume: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
|
|
799
|
-
totalSupply: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
|
|
800
|
-
}[] | undefined;
|
|
801
|
-
error: any;
|
|
802
|
-
mutate: _berachain_utils_pkg_swr.KeyedMutator<{
|
|
803
|
-
timestamp: number;
|
|
804
|
-
mintVolume: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
|
|
805
|
-
redeemVolume: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
|
|
806
|
-
totalVolume: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
|
|
807
|
-
totalSupply: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
|
|
808
|
-
}[]>;
|
|
809
|
-
isValidating: boolean;
|
|
810
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
811
|
-
};
|
|
812
|
-
|
|
813
|
-
declare const useHoneyVaultsBalance: (options?: DefaultHookOptions) => DefaultHookReturnType<GetHoneyVaultsBalanceResponse[]>;
|
|
814
|
-
|
|
815
|
-
interface UseIsBadCollateralResponse extends DefaultHookReturnType<IsBadCollateralResponse | undefined> {
|
|
816
|
-
}
|
|
817
|
-
declare const useIsBadCollateralAsset: ({ collateral }: {
|
|
818
|
-
collateral: Token | undefined;
|
|
819
|
-
}, options?: DefaultHookOptions) => UseIsBadCollateralResponse;
|
|
820
|
-
|
|
821
|
-
declare function useIsBasketModeEnabled({ state }: {
|
|
822
|
-
state: IHoneySwapState;
|
|
823
|
-
}, options?: DefaultHookOptions): DefaultHookReturnType<boolean | undefined>;
|
|
824
|
-
|
|
825
|
-
/**
|
|
826
|
-
* Hook to fetch the latest Pyth price updates for specified pair addresses
|
|
827
|
-
* @param {Object} params - The parameters object
|
|
828
|
-
* @param {Address[] | undefined} params.pairMainAddress - Array of pair addresses to fetch price updates for
|
|
829
|
-
* @returns {SWRResponse<PythLatestUpdates>} SWR response containing the latest Pyth price updates
|
|
830
|
-
* @example
|
|
831
|
-
* ```ts
|
|
832
|
-
* const { data, error } = usePythLatestPrices({
|
|
833
|
-
* pairMainAddress: ["0x123...", "0x456..."]
|
|
834
|
-
* });
|
|
835
|
-
* ```
|
|
836
|
-
*/
|
|
837
|
-
declare function usePythLatestPrices({ priceFeedMap, }: {
|
|
838
|
-
priceFeedMap: PythPriceFeedMap | undefined;
|
|
839
|
-
}, options?: DefaultHookOptions): SWRResponse<PythLatestUpdates>;
|
|
840
|
-
|
|
841
|
-
declare const usePythUpdateFee: ({ pythPriceFeedCalldata, tokenListLength, }: {
|
|
842
|
-
pythPriceFeedCalldata: Address[] | undefined;
|
|
843
|
-
tokenListLength: number;
|
|
844
|
-
}, options?: DefaultHookOptions) => {
|
|
845
|
-
QUERY_KEY: readonly ["usePythUpdateFee", `0x${string}`[]] | null;
|
|
846
|
-
data: bigint;
|
|
847
|
-
isLoading: boolean;
|
|
848
|
-
};
|
|
849
|
-
|
|
850
|
-
interface UseAutoclaimedIncentivesArgs {
|
|
851
|
-
enabled: boolean;
|
|
852
|
-
}
|
|
853
|
-
declare function useAutoclaimedIncentives({ enabled, }: UseAutoclaimedIncentivesArgs): DefaultHookReturnType<AutoclaimedIncentivesResponse | null>;
|
|
854
|
-
|
|
855
|
-
interface UseAutoclaimedIncentivesTxHashArgs {
|
|
856
|
-
enabled: boolean;
|
|
857
|
-
}
|
|
858
|
-
declare function useAutoclaimedIncentivesTxHash({ enabled, }: UseAutoclaimedIncentivesTxHashArgs): DefaultHookReturnType<AutoclaimedIncentivesTxHashResponse | null>;
|
|
859
|
-
|
|
860
|
-
declare function useBgtAprSimulation(args: GetBgtAprSimulationArgs | undefined): GetBgtAprSimulationResult
|
|
861
|
-
/**
|
|
862
|
-
* Returns undefined if still loading
|
|
863
|
-
*/
|
|
864
|
-
| undefined;
|
|
865
|
-
|
|
866
|
-
/**
|
|
867
|
-
* Client hook around `getBgtIncentiveDistributorPaused`. When `paused()` is
|
|
868
|
-
* true, users can no longer self-claim incentives and the bot distributes them
|
|
869
|
-
* on their behalf. Fails closed (`false`) so a read error never blocks the UI.
|
|
870
|
-
*/
|
|
871
|
-
declare function useBgtIncentiveDistributorPaused(options?: DefaultHookOptions): DefaultHookReturnType<boolean>;
|
|
872
|
-
|
|
873
|
-
declare const useBgtUnstakedBalance: (options?: DefaultHookOptions) => DefaultHookReturnType<string | undefined>;
|
|
874
|
-
|
|
875
|
-
declare const useClaimableFees: () => {
|
|
876
|
-
refresh: () => Promise<string | undefined>;
|
|
877
|
-
data: string | undefined;
|
|
878
|
-
error: any;
|
|
879
|
-
mutate: _berachain_utils_pkg_swr.KeyedMutator<string>;
|
|
880
|
-
isValidating: boolean;
|
|
881
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
882
|
-
};
|
|
883
|
-
|
|
884
|
-
/**
|
|
885
|
-
* Hook that fetches and returns the highest APR (Annual Percentage Rate) from reward vaults.
|
|
886
|
-
*
|
|
887
|
-
* @param {`0x${string}`[]} [params.filteringVaults=[]] - Optional array of vault addresses to filter by
|
|
888
|
-
*
|
|
889
|
-
* @returns {Object} An object containing:
|
|
890
|
-
* - highestApr: The highest APR value from the reward vaults
|
|
891
|
-
* - refresh: Function to manually refresh the data
|
|
892
|
-
* - ...swrResponse: All properties from the underlying SWR response
|
|
893
|
-
*
|
|
894
|
-
* @example
|
|
895
|
-
* const { highestApr } = useHighestVaultsAPR({
|
|
896
|
-
* filteringVaults: ['0x123...', '0x456...']
|
|
897
|
-
* });
|
|
898
|
-
*/
|
|
899
|
-
declare const useHighestVaultsAPR: (where?: GqlRewardVaultFilter, { isEnabled }?: {
|
|
900
|
-
isEnabled?: boolean;
|
|
901
|
-
}) => {
|
|
902
|
-
highestApr: GqlRewardVaultDynamicData["apr"] | undefined;
|
|
903
|
-
isLoading: boolean;
|
|
904
|
-
refresh: () => void;
|
|
905
|
-
};
|
|
906
|
-
|
|
907
|
-
declare const usePollGlobalData: (options?: DefaultHookOptions) => DefaultHookReturnType<GlobalData>;
|
|
908
|
-
|
|
909
|
-
interface UsePollMarketsResponse extends DefaultHookReturnType<GetMarkets> {
|
|
910
|
-
}
|
|
911
|
-
declare const usePollMarketsQueryKey: () => string;
|
|
912
|
-
declare const usePollMarkets: (options?: DefaultHookOptions) => UsePollMarketsResponse;
|
|
913
|
-
|
|
914
|
-
declare function useQueuedBeraUnlock({ receiptTokenAddresses, account, version, }: {
|
|
915
|
-
receiptTokenAddresses: Address[];
|
|
916
|
-
account?: Address | string;
|
|
917
|
-
version: "V1" | "V2";
|
|
918
|
-
}, options?: DefaultHookOptions): {
|
|
919
|
-
refresh: () => Promise<StakedBeraWithdrawal[] | undefined>;
|
|
920
|
-
data: StakedBeraWithdrawal[] | undefined;
|
|
921
|
-
error: any;
|
|
922
|
-
mutate: _berachain_utils_pkg_swr.KeyedMutator<StakedBeraWithdrawal[]>;
|
|
923
|
-
isValidating: boolean;
|
|
924
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
925
|
-
};
|
|
926
|
-
|
|
927
|
-
declare const useRewardTokenToBeraRate: ({ address, }: {
|
|
928
|
-
address: Address | undefined;
|
|
929
|
-
}, opt?: DefaultHookOptions) => _berachain_utils_pkg_swr.SWRResponse<number, any, any>;
|
|
930
|
-
|
|
931
|
-
interface UseRewardVaultResponse extends DefaultHookReturnType<ApiVaultFragment> {
|
|
932
|
-
}
|
|
933
|
-
declare const useRewardVaultQueryKey: (address: Address | undefined) => readonly ["useRewardVault", `0x${string}`] | null;
|
|
934
|
-
declare const useRewardVault: (id: Address | undefined, options?: DefaultHookOptions) => UseRewardVaultResponse;
|
|
935
|
-
|
|
936
|
-
declare const useRewardVaultBalanceFromStakingToken: ({ stakingToken, rewardVaultAddress: _rewardVaultAddress, }: {
|
|
937
|
-
stakingToken: Address | undefined;
|
|
938
|
-
rewardVaultAddress?: Address;
|
|
939
|
-
}, options?: DefaultHookOptions) => {
|
|
940
|
-
refresh: () => void;
|
|
941
|
-
isLoading: boolean;
|
|
942
|
-
data: {
|
|
943
|
-
address: `0x${string}`;
|
|
944
|
-
balance: bigint;
|
|
945
|
-
} | undefined;
|
|
946
|
-
error: any;
|
|
947
|
-
mutate: _berachain_utils_pkg_swr.KeyedMutator<{
|
|
948
|
-
address: `0x${string}`;
|
|
949
|
-
balance: bigint;
|
|
950
|
-
}>;
|
|
951
|
-
isValidating: boolean;
|
|
952
|
-
};
|
|
953
|
-
|
|
954
|
-
declare const useRewardVaultFromToken: ({ tokenAddress, }: {
|
|
955
|
-
tokenAddress: Address | string | undefined;
|
|
956
|
-
}, { isEnabled, }?: {
|
|
957
|
-
isEnabled?: boolean;
|
|
958
|
-
}) => {
|
|
959
|
-
refresh: () => Promise<`0x${string}` | undefined>;
|
|
960
|
-
data: `0x${string}` | undefined;
|
|
961
|
-
error: any;
|
|
962
|
-
mutate: _berachain_utils_pkg_swr.KeyedMutator<`0x${string}` | undefined>;
|
|
963
|
-
isValidating: boolean;
|
|
964
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
965
|
-
};
|
|
966
|
-
|
|
967
|
-
declare function useRewardVaultIncentives({ address, stakingToken, }: {
|
|
968
|
-
address: Address | undefined;
|
|
969
|
-
stakingToken: Address | undefined;
|
|
970
|
-
}): {
|
|
971
|
-
refresh: () => Promise<RewardVaultIncentive[] | undefined>;
|
|
972
|
-
data: RewardVaultIncentive[] | undefined;
|
|
973
|
-
error: any;
|
|
974
|
-
mutate: _berachain_utils_pkg_swr.KeyedMutator<RewardVaultIncentive[]>;
|
|
975
|
-
isValidating: boolean;
|
|
976
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
977
|
-
};
|
|
978
|
-
|
|
979
|
-
declare const useRewardVaultRewards: (address: Address, options?: DefaultHookOptions) => {
|
|
980
|
-
refresh: () => Promise<GetRewardVaultRewardsReturn | undefined>;
|
|
981
|
-
data: GetRewardVaultRewardsReturn | undefined;
|
|
982
|
-
error: any;
|
|
983
|
-
mutate: _berachain_utils_pkg_swr.KeyedMutator<GetRewardVaultRewardsReturn>;
|
|
984
|
-
isValidating: boolean;
|
|
985
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
986
|
-
};
|
|
987
|
-
|
|
988
|
-
declare const useRewardVaultsQueryKey: (filter?: GetVaultsQueryVariables, onChainIncentives?: boolean) => readonly ["useRewardVaults", _berachain_graphql_pol_api.Exact<{
|
|
989
|
-
where?: _berachain_graphql_pol_api.InputMaybe<_berachain_graphql_pol_api.GqlRewardVaultFilter>;
|
|
990
|
-
pageSize?: _berachain_graphql_pol_api.InputMaybe<_berachain_graphql_pol_api.Scalars["Int"]["input"]>;
|
|
991
|
-
skip?: _berachain_graphql_pol_api.InputMaybe<_berachain_graphql_pol_api.Scalars["Int"]["input"]>;
|
|
992
|
-
orderBy?: _berachain_graphql_pol_api.InputMaybe<_berachain_graphql_pol_api.GqlRewardVaultOrderBy>;
|
|
993
|
-
orderDirection?: _berachain_graphql_pol_api.InputMaybe<_berachain_graphql_pol_api.GqlRewardVaultOrderDirection>;
|
|
994
|
-
search?: _berachain_graphql_pol_api.InputMaybe<_berachain_graphql_pol_api.Scalars["String"]["input"]>;
|
|
995
|
-
}> | undefined, boolean];
|
|
996
|
-
declare const useRewardVaults: (args: {
|
|
997
|
-
filter?: GetVaultsQueryVariables;
|
|
998
|
-
onChainIncentives?: boolean;
|
|
999
|
-
}, options?: DefaultHookOptions) => {
|
|
1000
|
-
refresh: _berachain_utils_pkg_swr.KeyedMutator<GetGaugeData>;
|
|
1001
|
-
data: GetGaugeData | undefined;
|
|
1002
|
-
error: any;
|
|
1003
|
-
mutate: _berachain_utils_pkg_swr.KeyedMutator<GetGaugeData>;
|
|
1004
|
-
isValidating: boolean;
|
|
1005
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1006
|
-
};
|
|
1007
|
-
|
|
1008
|
-
type UseStakedAPR = {
|
|
1009
|
-
timestamp: number;
|
|
1010
|
-
apr: string;
|
|
1011
|
-
}[];
|
|
1012
|
-
declare function useStakedAPR({ range, }: {
|
|
1013
|
-
range: GqlVaultSnapshotDataRange;
|
|
1014
|
-
}): DefaultHookReturnType<UseStakedAPR>;
|
|
1015
|
-
|
|
1016
|
-
/**
|
|
1017
|
-
* Fetches staked asset data in two phases for progressive loading:
|
|
1018
|
-
*
|
|
1019
|
-
* 1. APR — independent fetch, resolves quickly, shared by both phases.
|
|
1020
|
-
* 2. Balances (fast path) — wallet balances (via usePollWalletBalances),
|
|
1021
|
-
* token prices (via useTokenPrices), and exchange rates.
|
|
1022
|
-
* Provides staked amounts and USD values immediately (earnings are 0).
|
|
1023
|
-
* 3. Positions (slow path) — adds earnings data from the vault.
|
|
1024
|
-
* Provides the full picture with earned amounts and USD values.
|
|
1025
|
-
*
|
|
1026
|
-
* Consumers can show `balances` right away and swap in `data` once positions resolve.
|
|
1027
|
-
*/
|
|
1028
|
-
declare const useStakedData: (stakingConfigs: StakingConfig[]) => {
|
|
1029
|
-
/** Fast path: staked amounts + USD values (no earnings) */
|
|
1030
|
-
balances: StakedBeraAsset[] | undefined;
|
|
1031
|
-
/** Slow path: full enriched positions with earnings */
|
|
1032
|
-
data: StakedBeraAsset[] | undefined;
|
|
1033
|
-
/** True only when both balances and positions are still loading */
|
|
1034
|
-
isLoading: boolean;
|
|
1035
|
-
isLoadingBalances: boolean;
|
|
1036
|
-
isLoadingPositions: boolean;
|
|
1037
|
-
isValidatingPositions: boolean;
|
|
1038
|
-
/**
|
|
1039
|
-
* Hard error: the RPC fast-path could not produce staked balances (wallet
|
|
1040
|
-
* balances or exchange-rate reads failed). Price and earnings backend
|
|
1041
|
-
* failures are intentionally excluded — those degrade gracefully (USD/APR
|
|
1042
|
-
* render as "—", earnings stop loading) so RPC-derived amounts still show.
|
|
1043
|
-
*/
|
|
1044
|
-
error: any;
|
|
1045
|
-
/** Set when the earnings (slow path) request failed. */
|
|
1046
|
-
positionsError: any;
|
|
1047
|
-
/**
|
|
1048
|
-
* True once the earnings (slow path) request has settled — resolved or
|
|
1049
|
-
* errored. Consumers should stop showing an earnings loading state once
|
|
1050
|
-
* this is true, even if `data` never arrives (backend outage).
|
|
1051
|
-
*/
|
|
1052
|
-
earningsSettled: boolean;
|
|
1053
|
-
};
|
|
1054
|
-
|
|
1055
|
-
type UseStakedBeraSnapshot = Record<Address, VaultStatsByDayResponse>;
|
|
1056
|
-
declare function useStakedSnapshots({ range, addresses, }: {
|
|
1057
|
-
addresses: Address[];
|
|
1058
|
-
range: 30 | 60 | 90;
|
|
1059
|
-
}): DefaultHookReturnType<UseStakedBeraSnapshot>;
|
|
1060
|
-
|
|
1061
|
-
type StakingVaultEntry = {
|
|
1062
|
-
address: Address;
|
|
1063
|
-
underlyingAsset: Address;
|
|
1064
|
-
};
|
|
1065
|
-
declare const useStakingVaultsMetadata: (vaults?: StakingVaultEntry[]) => _berachain_utils_pkg_swr.SWRResponse<VaultMetadata[], any, any>;
|
|
1066
|
-
|
|
1067
|
-
declare function useTotalStakedAmount({ vaultAddresses, }: {
|
|
1068
|
-
vaultAddresses: Address$1[];
|
|
1069
|
-
}): DefaultHookReturnType<Record<Address$1, bigint>>;
|
|
1070
|
-
|
|
1071
|
-
declare const useUserVaultInfo: (args: {
|
|
1072
|
-
vaultAddress: Address | undefined;
|
|
1073
|
-
}, options?: DefaultHookOptions) => DefaultHookReturnType<UserVaultInfo>;
|
|
1074
|
-
|
|
1075
|
-
declare const useUserVaults: (options?: DefaultHookOptions) => DefaultHookReturnType<GetUserVaultsResponse>;
|
|
1076
|
-
|
|
1077
|
-
interface RewardVault {
|
|
1078
|
-
stakeToken: Address;
|
|
1079
|
-
address: Address;
|
|
1080
|
-
}
|
|
1081
|
-
declare const useVaultAddress: (vaultAddress: Address) => _berachain_utils_pkg_swr.SWRResponse<{
|
|
1082
|
-
stakeToken: `0x${string}`;
|
|
1083
|
-
address: `0x${string}`;
|
|
1084
|
-
}, any, any>;
|
|
1085
|
-
|
|
1086
|
-
declare const useVaultHistory: ({ vault, range, resolution, }: GetVaultHistoryArgs) => DefaultHookReturnType<GetVaultHistoryQuery["polGetRewardVaultSnapshots"]>;
|
|
1087
|
-
|
|
1088
|
-
interface UsePollValidatorInfoResponse$1 extends DefaultHookReturnType<ApiValidatorFragment[] | undefined> {
|
|
1089
|
-
}
|
|
1090
|
-
declare const useVaultValidators: (id: Address, options?: DefaultHookOptions) => UsePollValidatorInfoResponse$1;
|
|
1091
|
-
|
|
1092
|
-
/**
|
|
1093
|
-
* Shorthand for `useTokenCurrentPrice` with the Bera token address.
|
|
1094
|
-
* @returns
|
|
1095
|
-
*/
|
|
1096
|
-
declare function useBeraCurrentPrice(opts?: DefaultHookOptions): {
|
|
1097
|
-
data: TokenPriceInfo | undefined;
|
|
1098
|
-
error: any;
|
|
1099
|
-
mutate: swr.KeyedMutator<TokenCurrentPriceMap>;
|
|
1100
|
-
isValidating: boolean;
|
|
1101
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1102
|
-
};
|
|
1103
|
-
|
|
1104
|
-
type UseMultipleTokenInformationResponse = DefaultHookReturnType<Token[]>;
|
|
1105
|
-
type useMultipleTokenInformationArgs = {
|
|
1106
|
-
addresses: string[] | readonly string[] | undefined;
|
|
1107
|
-
chainId?: number;
|
|
1108
|
-
};
|
|
1109
|
-
declare function useMultipleTokenInformation(args: useMultipleTokenInformationArgs, options?: DefaultHookOptions): UseMultipleTokenInformationResponse;
|
|
1110
|
-
|
|
1111
|
-
type UsePollAllowancesArgs = {
|
|
1112
|
-
items: AllowanceQueryItem[];
|
|
1113
|
-
};
|
|
1114
|
-
interface UsePollAllowancesResponse extends DefaultHookReturnType<AllowanceToken[] | undefined> {
|
|
1115
|
-
}
|
|
1116
|
-
/**
|
|
1117
|
-
*
|
|
1118
|
-
* @brief Allows the user to poll the allowances of a given token array.
|
|
1119
|
-
*
|
|
1120
|
-
* @param contract the address of the ERC20 token contract
|
|
1121
|
-
* @param tokens the list of tokens to poll allowances for
|
|
1122
|
-
* @param chainId the chain ID to check allowances on
|
|
1123
|
-
*/
|
|
1124
|
-
declare function usePollAllowances(args: UsePollAllowancesArgs, options?: DefaultHookOptions): UsePollAllowancesResponse;
|
|
1125
|
-
|
|
1126
|
-
declare function usePollBalance({ address: addressString, owner, chainId, }: {
|
|
1127
|
-
/**
|
|
1128
|
-
* Token address to get the balance of
|
|
1129
|
-
*/
|
|
1130
|
-
address: string | undefined;
|
|
1131
|
-
owner?: Address | undefined;
|
|
1132
|
-
chainId?: number;
|
|
1133
|
-
}, options?: DefaultHookOptions): Omit<DefaultHookReturnType<BalanceToken | undefined>, "mutate">;
|
|
1134
|
-
|
|
1135
|
-
type UsePollWalletBalancesArgs = {
|
|
1136
|
-
/**
|
|
1137
|
-
* If provided, the tokens will be used instead of the default token list.
|
|
1138
|
-
*/
|
|
1139
|
-
tokens?: Token[];
|
|
1140
|
-
walletAddress?: Address;
|
|
1141
|
-
};
|
|
1142
|
-
interface UsePollBalancesResponse extends DefaultHookReturnType<BalanceToken[] | undefined> {
|
|
1143
|
-
}
|
|
1144
|
-
declare function usePollWalletBalances(args?: UsePollWalletBalancesArgs, options?: DefaultHookOptions): UsePollBalancesResponse;
|
|
1145
|
-
|
|
1146
|
-
type UseStakingTokenInformationResponse = DefaultHookReturnType<Partial<Token> | undefined>;
|
|
1147
|
-
type useStakingTokenInformationArgs = {
|
|
1148
|
-
address: string | undefined;
|
|
1149
|
-
};
|
|
1150
|
-
declare const useStakingTokenInformation: (args: useStakingTokenInformationArgs, options?: DefaultHookOptions) => UseStakingTokenInformationResponse;
|
|
1151
|
-
|
|
1152
|
-
/**
|
|
1153
|
-
* @deprecated use useTokenPrice instead
|
|
1154
|
-
*/
|
|
1155
|
-
declare function useTokenCurrentPrice({ address }: {
|
|
1156
|
-
address: `0x${string}` | undefined;
|
|
1157
|
-
}, options?: DefaultHookOptions): {
|
|
1158
|
-
data: TokenPriceInfo | undefined;
|
|
1159
|
-
error: any;
|
|
1160
|
-
mutate: swr.KeyedMutator<TokenCurrentPriceMap>;
|
|
1161
|
-
isValidating: boolean;
|
|
1162
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1163
|
-
};
|
|
1164
|
-
|
|
1165
|
-
/**
|
|
1166
|
-
* @deprecated use useTokenPrices instead that supports multichain tokens
|
|
1167
|
-
*/
|
|
1168
|
-
declare function useTokenCurrentPrices({ addressIn, }?: {
|
|
1169
|
-
addressIn?: string[] | readonly string[];
|
|
1170
|
-
}, options?: DefaultHookOptions): {
|
|
1171
|
-
data: {
|
|
1172
|
-
[x: string]: TokenPriceInfo | undefined;
|
|
1173
|
-
};
|
|
1174
|
-
error: any;
|
|
1175
|
-
mutate: _berachain_utils_pkg_swr.KeyedMutator<TokenCurrentPriceMap>;
|
|
1176
|
-
isValidating: boolean;
|
|
1177
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1178
|
-
};
|
|
1179
|
-
|
|
1180
|
-
type UseTokenInformationResponse = DefaultHookReturnType<Token | undefined>;
|
|
1181
|
-
type UseTokenInformationArgs = {
|
|
1182
|
-
address: string | undefined;
|
|
1183
|
-
chainId: number;
|
|
1184
|
-
};
|
|
1185
|
-
declare function useTokenInformation(args: UseTokenInformationArgs, options?: DefaultHookOptions): UseTokenInformationResponse;
|
|
1186
|
-
|
|
1187
|
-
type TokenPriceInput = Pick<Token, "address" | "chainId">;
|
|
1188
|
-
type TokenPriceOutput = TokenPriceInput & {
|
|
1189
|
-
price: number;
|
|
1190
|
-
};
|
|
1191
|
-
type TokenPriceMap = Record<number, Record<Address, number>>;
|
|
1192
|
-
declare function useTokenPrices({ tokens, }?: {
|
|
1193
|
-
tokens?: TokenPriceInput[];
|
|
1194
|
-
}, options?: DefaultHookOptions): {
|
|
1195
|
-
isLoading: boolean;
|
|
1196
|
-
error: any;
|
|
1197
|
-
data: TokenPriceOutput[];
|
|
1198
|
-
priceMap: TokenPriceMap;
|
|
1199
|
-
getTokenPrice: (token?: TokenPriceInput) => number | undefined;
|
|
1200
|
-
};
|
|
1201
|
-
|
|
1202
|
-
declare function useTokenPrice({ token }: {
|
|
1203
|
-
token: TokenPriceInput | undefined;
|
|
1204
|
-
}, options?: DefaultHookOptions): {
|
|
1205
|
-
data: number | undefined;
|
|
1206
|
-
isLoading: boolean;
|
|
1207
|
-
error: any;
|
|
1208
|
-
};
|
|
1209
|
-
|
|
1210
|
-
declare function useTokens(): {
|
|
1211
|
-
/**
|
|
1212
|
-
* @deprecated use useTokens().tokenList instead
|
|
1213
|
-
*/
|
|
1214
|
-
data: {
|
|
1215
|
-
tokenList: TokenWithMetadata[];
|
|
1216
|
-
customTokenList: Token[];
|
|
1217
|
-
featuredTokenList: TokenWithMetadata[];
|
|
1218
|
-
};
|
|
1219
|
-
tokenList: TokenWithMetadata[];
|
|
1220
|
-
userTokens: Token[];
|
|
1221
|
-
featuredTokens: TokenWithMetadata[];
|
|
1222
|
-
onRemoveToken: (token: Token) => void;
|
|
1223
|
-
onAddToken: (token: Token) => void;
|
|
1224
|
-
refresh: () => void;
|
|
1225
|
-
ensoTokens: BalanceToken[] | undefined;
|
|
1226
|
-
};
|
|
1227
|
-
|
|
1228
|
-
declare function useTotalSupply({ address }: {
|
|
1229
|
-
address: Address | undefined;
|
|
1230
|
-
}): _berachain_utils_pkg_swr.SWRResponse<bigint, any, any>;
|
|
1231
|
-
|
|
1232
|
-
/**
|
|
1233
|
-
*
|
|
1234
|
-
* @returns Timestamp in seconds
|
|
1235
|
-
*/
|
|
1236
|
-
declare function useBlockToTimestamp(inputBlock: number | bigint | string): number | undefined;
|
|
1237
|
-
|
|
1238
|
-
declare function useBeraContractWrite({ onlyPermissionless, onSuccess, onError, onLoading, onWarning, onSubmission, }?: IUseContractWriteArgs & {
|
|
1239
|
-
/**
|
|
1240
|
-
* Whether to allow only permissionless transactions.
|
|
1241
|
-
*
|
|
1242
|
-
* This is useful when UI is reading data for another account compared to the connected account.
|
|
1243
|
-
*/
|
|
1244
|
-
onlyPermissionless?: boolean;
|
|
1245
|
-
}): UseContractWriteApi;
|
|
1246
|
-
|
|
1247
|
-
declare const useGetVerifiedAbi: (address?: string) => _berachain_utils_pkg_swr.SWRResponse<string, any, any>;
|
|
1248
|
-
|
|
1249
|
-
type UseHistoryStateOptions<T> = {
|
|
1250
|
-
key: string;
|
|
1251
|
-
defaultValue: T;
|
|
1252
|
-
};
|
|
1253
|
-
/**
|
|
1254
|
-
* useHistoryState is a hook that allows storing state in the browser's history state
|
|
1255
|
-
* it is useful for storing state that you want to persist across pages
|
|
1256
|
-
* It is indexed by the key parameter to be able to store multiple states on the same page and
|
|
1257
|
-
* also to not override nextjs usage of the history state
|
|
1258
|
-
* @param {string} key - the key to store the state under
|
|
1259
|
-
* @param {T} defaultValue - the default value to use if the state is not found
|
|
1260
|
-
* @returns {T} state - the current state
|
|
1261
|
-
* @returns {function} setHistoryState - a function to set the state
|
|
1262
|
-
*/
|
|
1263
|
-
declare function useHistoryState<T>({ key, defaultValue, }: UseHistoryStateOptions<T>): readonly [T, (value: T | ((prev: T) => T)) => void];
|
|
1264
|
-
|
|
1265
|
-
/**
|
|
1266
|
-
* Returns the previous value of a variable before the render
|
|
1267
|
-
* @param value - the value to return the previous value for
|
|
1268
|
-
*/
|
|
1269
|
-
declare function usePrevious<T>(value: T): T | undefined;
|
|
1270
|
-
|
|
1271
|
-
declare const useAllValidatorsQueryKey: ({ variables, }?: {
|
|
1272
|
-
variables?: GetValidatorsQueryVariables;
|
|
1273
|
-
}) => (string | _berachain_graphql_pol_api.Exact<{
|
|
1274
|
-
where?: _berachain_graphql_pol_api.InputMaybe<_berachain_graphql_pol_api.GqlValidatorFilter>;
|
|
1275
|
-
sortBy?: _berachain_graphql_pol_api.InputMaybe<_berachain_graphql_pol_api.GqlValidatorOrderBy>;
|
|
1276
|
-
sortOrder?: _berachain_graphql_pol_api.InputMaybe<_berachain_graphql_pol_api.GqlValidatorOrderDirection>;
|
|
1277
|
-
pageSize?: _berachain_graphql_pol_api.InputMaybe<_berachain_graphql_pol_api.Scalars["Int"]["input"]>;
|
|
1278
|
-
skip?: _berachain_graphql_pol_api.InputMaybe<_berachain_graphql_pol_api.Scalars["Int"]["input"]>;
|
|
1279
|
-
search?: _berachain_graphql_pol_api.InputMaybe<_berachain_graphql_pol_api.Scalars["String"]["input"]>;
|
|
1280
|
-
chain?: _berachain_graphql_pol_api.InputMaybe<GqlChain>;
|
|
1281
|
-
}> | undefined)[];
|
|
1282
|
-
declare const useAllValidators: (variables: GetValidatorsQueryVariables & BeraJS.BaseFunctionArgs, options?: DefaultHookOptions) => DefaultHookReturnType<GetValidatorsQuery | undefined>;
|
|
1283
|
-
|
|
1284
|
-
declare function useApiEnrichedAllocation({ allocation, }: {
|
|
1285
|
-
allocation: ValidatorRewardAllocation | undefined;
|
|
1286
|
-
}): _berachain_utils_pkg_swr.SWRResponse<_berachain_graphql_pol_api.ApiRewardAllocationWeightFragment[], any, any>;
|
|
1287
|
-
|
|
1288
|
-
interface UsePollValidatorInfoResponse extends DefaultHookReturnType<GetValidatorQuery> {
|
|
1289
|
-
}
|
|
1290
|
-
declare const useApiValidatorQueryKey: (id: Address) => readonly ["useApiValidator", `0x${string}`] | null;
|
|
1291
|
-
declare const useApiValidator: (id: Address, options?: DefaultHookOptions) => UsePollValidatorInfoResponse;
|
|
1292
|
-
|
|
1293
|
-
declare function useBaselineRewardAllocation(): _berachain_utils_pkg_swr.SWRResponse<ValidatorRewardAllocation, any, any>;
|
|
1294
|
-
|
|
1295
|
-
declare const useDailyValidatorBlockStats: ({ pubKey, first, }: {
|
|
1296
|
-
pubKey: Address | undefined;
|
|
1297
|
-
first?: number;
|
|
1298
|
-
}) => DefaultHookReturnType<GetValidatorBlockStatsQuery>;
|
|
1299
|
-
|
|
1300
|
-
declare function useDefaultRewardAllocation(options?: DefaultHookOptions): {
|
|
1301
|
-
refresh: () => Promise<ValidatorRewardAllocation | undefined>;
|
|
1302
|
-
data: ValidatorRewardAllocation | undefined;
|
|
1303
|
-
error: any;
|
|
1304
|
-
mutate: _berachain_utils_pkg_swr.KeyedMutator<ValidatorRewardAllocation | undefined>;
|
|
1305
|
-
isValidating: boolean;
|
|
1306
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1307
|
-
};
|
|
1308
|
-
|
|
1309
|
-
type ManagedValidatorRole = {
|
|
1310
|
-
operator: Address | null;
|
|
1311
|
-
rewardAllocator: Address | null;
|
|
1312
|
-
hasOperatorRole: boolean;
|
|
1313
|
-
hasRewardAllocatorRole: boolean;
|
|
1314
|
-
};
|
|
1315
|
-
declare function useManagedValidatorRole({ pubKey, account: accountAddress, }: {
|
|
1316
|
-
pubKey: Address | undefined;
|
|
1317
|
-
account?: Address | undefined;
|
|
1318
|
-
}, options?: DefaultHookOptions): DefaultHookReturnType<ManagedValidatorRole | undefined>;
|
|
1319
|
-
|
|
1320
|
-
declare const useOnChainValidator: ({ pubkey }: {
|
|
1321
|
-
pubkey: Address;
|
|
1322
|
-
}, options: DefaultHookOptions) => DefaultHookReturnType<Partial<ApiValidatorFragment>>;
|
|
1323
|
-
|
|
1324
|
-
declare const useStakingPoolBatch: ({ valPubKey, options, }: {
|
|
1325
|
-
valPubKey: Address;
|
|
1326
|
-
options?: DefaultHookOptions;
|
|
1327
|
-
}) => DefaultHookReturnType<number | undefined>;
|
|
1328
|
-
|
|
1329
|
-
interface UseUserActiveValidatorsResponse extends DefaultHookReturnType<ValidatorWithUserBoost[] | undefined> {
|
|
1330
|
-
}
|
|
1331
|
-
declare const useUserActiveValidators: (options?: DefaultHookOptions) => UseUserActiveValidatorsResponse;
|
|
1332
|
-
|
|
1333
|
-
declare const useUserBoostsOnValidator: ({ pubkey, ...args }: {
|
|
1334
|
-
pubkey: Address | undefined;
|
|
1335
|
-
account?: Address;
|
|
1336
|
-
}) => DefaultHookReturnType<UserBoostsOnValidator>;
|
|
1337
|
-
|
|
1338
|
-
interface UseUserClaimableIncentivesReturnType extends DefaultHookReturnType<BribeBoostRewardProof[]> {
|
|
1339
|
-
tokenMap?: Set<string> | undefined;
|
|
1340
|
-
}
|
|
1341
|
-
declare const useUserClaimableIncentives: () => UseUserClaimableIncentivesReturnType;
|
|
1342
|
-
|
|
1343
|
-
/**
|
|
1344
|
-
* Hook to fetch and manage user staking positions for validators
|
|
1345
|
-
*
|
|
1346
|
-
* This hook retrieves staking positions for a given account and optionally filters
|
|
1347
|
-
* by a specific validator address.
|
|
1348
|
-
*
|
|
1349
|
-
* @param params - Configuration parameters for the hook
|
|
1350
|
-
* @param params.account - The user's wallet address to fetch staking positions for
|
|
1351
|
-
* @param params.validatorAddress - Optional validator address to filter positions by
|
|
1352
|
-
*
|
|
1353
|
-
*
|
|
1354
|
-
* @example
|
|
1355
|
-
* ```tsx
|
|
1356
|
-
* // Fetch all staking positions for a user
|
|
1357
|
-
* const { data, isLoading, error } = useUserStakingPositions({
|
|
1358
|
-
* account: userAddress
|
|
1359
|
-
* });
|
|
1360
|
-
*
|
|
1361
|
-
* // Fetch staking positions for a specific validator
|
|
1362
|
-
* const { data, isLoading, error } = useUserStakingPositions({
|
|
1363
|
-
* account: userAddress,
|
|
1364
|
-
* validatorAddress: "0x1234..."
|
|
1365
|
-
* });
|
|
1366
|
-
* ```
|
|
1367
|
-
*/
|
|
1368
|
-
declare const useUserStakingPositions: ({ account, validatorAddress, }: {
|
|
1369
|
-
account: Address | undefined;
|
|
1370
|
-
validatorAddress?: Address;
|
|
1371
|
-
}) => {
|
|
1372
|
-
refresh: () => void;
|
|
1373
|
-
data: UserStakingPoolPosition[] | undefined;
|
|
1374
|
-
error: any;
|
|
1375
|
-
mutate: _berachain_utils_pkg_swr.KeyedMutator<UserStakingPoolPosition[]>;
|
|
1376
|
-
isValidating: boolean;
|
|
1377
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1378
|
-
};
|
|
1379
|
-
|
|
1380
|
-
declare function useValidator({ pubkey }: {
|
|
1381
|
-
pubkey: Address;
|
|
1382
|
-
}, options: DefaultHookOptions): {
|
|
1383
|
-
data: {
|
|
1384
|
-
uptime: {
|
|
1385
|
-
__typename?: "GqlValidatorBlockUptime";
|
|
1386
|
-
isActive: boolean;
|
|
1387
|
-
isProposer: boolean;
|
|
1388
|
-
isSigner: boolean;
|
|
1389
|
-
status: _berachain_graphql_pol_api.GqlValidatorBlockUptimeStatus;
|
|
1390
|
-
blockNumber: number;
|
|
1391
|
-
}[] | undefined;
|
|
1392
|
-
validator: {
|
|
1393
|
-
operator: `0x${string}` | null | undefined;
|
|
1394
|
-
dynamicData: {
|
|
1395
|
-
activeBoostAmount: string;
|
|
1396
|
-
queuedBoostAmount: string;
|
|
1397
|
-
allTimeDistributedRewards: string;
|
|
1398
|
-
rewardRate: string;
|
|
1399
|
-
stakedBeraAmount: string;
|
|
1400
|
-
lastDayDistributedRewards: string;
|
|
1401
|
-
lastDayProposedBlockCount: number;
|
|
1402
|
-
activeBoostAmountRank: number;
|
|
1403
|
-
boostApr: GqlValidatorDynamicData["boostApr"];
|
|
1404
|
-
commissionOnIncentives: number;
|
|
1405
|
-
};
|
|
1406
|
-
id: Address;
|
|
1407
|
-
pubkey: Address;
|
|
1408
|
-
metadata: {
|
|
1409
|
-
__typename?: "GqlValidatorMetadata";
|
|
1410
|
-
name: string;
|
|
1411
|
-
logoURI: string;
|
|
1412
|
-
website: string;
|
|
1413
|
-
description: string;
|
|
1414
|
-
} | null | undefined;
|
|
1415
|
-
rewardAllocationWeights: {
|
|
1416
|
-
__typename?: "GqlValidatorRewardAllocationWeight";
|
|
1417
|
-
percentage: number;
|
|
1418
|
-
receiver: `0x${string}`;
|
|
1419
|
-
startBlock: number;
|
|
1420
|
-
receivingVault?: {
|
|
1421
|
-
__typename?: "GqlRewardVault";
|
|
1422
|
-
vaultAddress: `0x${string}`;
|
|
1423
|
-
isVaultWhitelisted: boolean;
|
|
1424
|
-
stakingTokenAmount: string;
|
|
1425
|
-
id: `0x${string}`;
|
|
1426
|
-
address: `0x${string}`;
|
|
1427
|
-
dynamicData?: {
|
|
1428
|
-
__typename?: "GqlRewardVaultDynamicData";
|
|
1429
|
-
allTimeRewards: string;
|
|
1430
|
-
apr?: number | null;
|
|
1431
|
-
rewardCapturePercentage: number;
|
|
1432
|
-
rewardCapturePerBlock: number;
|
|
1433
|
-
activeIncentivesValueUsd: string;
|
|
1434
|
-
activeIncentivesRateUsd: string;
|
|
1435
|
-
tvl?: number | null;
|
|
1436
|
-
} | null;
|
|
1437
|
-
stakingToken: {
|
|
1438
|
-
__typename?: "GqlToken";
|
|
1439
|
-
address: `0x${string}`;
|
|
1440
|
-
name: string;
|
|
1441
|
-
symbol: string;
|
|
1442
|
-
decimals: number;
|
|
1443
|
-
};
|
|
1444
|
-
metadata?: {
|
|
1445
|
-
__typename?: "GqlRewardVaultMetadata";
|
|
1446
|
-
name: string;
|
|
1447
|
-
logoURI: string;
|
|
1448
|
-
url: string;
|
|
1449
|
-
protocolName: string;
|
|
1450
|
-
protocolIcon: string;
|
|
1451
|
-
description: string;
|
|
1452
|
-
categories: Array<string>;
|
|
1453
|
-
action: string;
|
|
1454
|
-
} | null;
|
|
1455
|
-
activeIncentives: Array<{
|
|
1456
|
-
__typename?: "GqlRewardVaultIncentive";
|
|
1457
|
-
active: boolean;
|
|
1458
|
-
tokenAddress: `0x${string}`;
|
|
1459
|
-
remainingAmount: string;
|
|
1460
|
-
remainingAmountUsd: string;
|
|
1461
|
-
incentiveRate: string;
|
|
1462
|
-
incentiveRateUsd: string;
|
|
1463
|
-
token: {
|
|
1464
|
-
__typename?: "GqlToken";
|
|
1465
|
-
address: `0x${string}`;
|
|
1466
|
-
name: string;
|
|
1467
|
-
symbol: string;
|
|
1468
|
-
decimals: number;
|
|
1469
|
-
};
|
|
1470
|
-
}>;
|
|
1471
|
-
} | null;
|
|
1472
|
-
}[];
|
|
1473
|
-
__typename?: "GqlValidator";
|
|
1474
|
-
rewardAllocator?: `0x${string}` | null;
|
|
1475
|
-
lastBlockUptime?: {
|
|
1476
|
-
__typename?: "GqlValidatorBlockUptime";
|
|
1477
|
-
isActive: boolean;
|
|
1478
|
-
isProposer: boolean;
|
|
1479
|
-
isSigner: boolean;
|
|
1480
|
-
status: _berachain_graphql_pol_api.GqlValidatorBlockUptimeStatus;
|
|
1481
|
-
blockNumber: number;
|
|
1482
|
-
} | null | undefined;
|
|
1483
|
-
} | null;
|
|
1484
|
-
};
|
|
1485
|
-
isLoading: boolean;
|
|
1486
|
-
error: any;
|
|
1487
|
-
};
|
|
1488
|
-
|
|
1489
|
-
declare function useValidatorAnalytics({ pubkey, dayRange, }: {
|
|
1490
|
-
pubkey: Address | undefined;
|
|
1491
|
-
dayRange: number;
|
|
1492
|
-
}): DefaultHookReturnType<GetValidatorAnalyticsQuery>;
|
|
1493
|
-
|
|
1494
|
-
declare const useValidatorCommission: (pubKey: Address, options?: DefaultHookOptions) => DefaultHookReturnType<number | undefined | null>;
|
|
1495
|
-
|
|
1496
|
-
declare const useValidatorEstimatedBgtPerYear: (validator: ApiValidatorMinimalFragment) => {
|
|
1497
|
-
data: number | undefined;
|
|
1498
|
-
isLoading: boolean;
|
|
1499
|
-
};
|
|
1500
|
-
|
|
1501
|
-
/**
|
|
1502
|
-
* Historical per-validator incentive distribution. Split from
|
|
1503
|
-
* `useValidatorAnalytics` so the IncentivesEarned chart can switch data
|
|
1504
|
-
* sources independently of the other charts that still consume the umbrella
|
|
1505
|
-
* `GetValidatorAnalytics` query.
|
|
1506
|
-
*/
|
|
1507
|
-
declare function useValidatorIncentiveDistribution({ pubkey, dayRange, }: {
|
|
1508
|
-
pubkey: Address | undefined;
|
|
1509
|
-
dayRange: number;
|
|
1510
|
-
}): DefaultHookReturnType<ValidatorIncentivesResponse>;
|
|
1511
|
-
|
|
1512
|
-
declare function useValidatorQueuedCommission(pubKey: Address, options?: DefaultHookOptions): DefaultHookReturnType<ValidatorQueuedCommission | undefined | null>;
|
|
1513
|
-
|
|
1514
|
-
declare const useValidatorQueuedOperatorAddress: (pubKey: Address, options?: DefaultHookOptions) => DefaultHookReturnType<ValidatorQueuedOperatorAddress | undefined>;
|
|
1515
|
-
|
|
1516
|
-
declare const useValidatorQueuedRewardAllocation: (pubKey: Address, options?: DefaultHookOptions) => DefaultHookReturnType<ValidatorRewardAllocation | undefined>;
|
|
1517
|
-
|
|
1518
|
-
declare function useValidatorRewardAllocation(pubKey: Address, options?: DefaultHookOptions): {
|
|
1519
|
-
refresh: () => Promise<{
|
|
1520
|
-
activeRewardAllocation: ValidatorRewardAllocation;
|
|
1521
|
-
setRewardAllocation: ValidatorRewardAllocation;
|
|
1522
|
-
isBaseline: boolean;
|
|
1523
|
-
isNeverSet: boolean;
|
|
1524
|
-
} | undefined>;
|
|
1525
|
-
data: {
|
|
1526
|
-
activeRewardAllocation: ValidatorRewardAllocation;
|
|
1527
|
-
setRewardAllocation: ValidatorRewardAllocation;
|
|
1528
|
-
isBaseline: boolean;
|
|
1529
|
-
isNeverSet: boolean;
|
|
1530
|
-
} | undefined;
|
|
1531
|
-
error: any;
|
|
1532
|
-
mutate: _berachain_utils_pkg_swr.KeyedMutator<{
|
|
1533
|
-
activeRewardAllocation: ValidatorRewardAllocation;
|
|
1534
|
-
setRewardAllocation: ValidatorRewardAllocation;
|
|
1535
|
-
isBaseline: boolean;
|
|
1536
|
-
isNeverSet: boolean;
|
|
1537
|
-
}>;
|
|
1538
|
-
isValidating: boolean;
|
|
1539
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1540
|
-
};
|
|
1541
|
-
|
|
1542
|
-
export { IHoneySwapState, IUseContractWriteArgs, type LiquidityMismatchInfo, type ManagedValidatorRole, type OnChainPoolFragment, type Oracle, OracleMode, type RewardVault, type StakingVaultEntry, type TokenPriceInput, type TokenPriceMap, type TokenPriceOutput, USE_AGGREGATORS_QUOTES_QUERY_KEY, type UseBendDemultiply, type UseBendMultiply, type UseCappedGloballyResponse, type UseCappedRelativelyResponse, type UseCollateralWeightsResponse, UseContractWriteApi, type UseIsBadCollateralResponse, type UseMultipleTokenInformationResponse, type UsePollAllowancesArgs, type UsePollAllowancesResponse, type UsePollBalancesResponse, type UsePollMarketsResponse, type UsePollValidatorInfoResponse, type UsePollWalletBalancesArgs, type UseRewardVaultResponse, type UseStakingTokenInformationResponse, type UseTokenInformationArgs, type UseTokenInformationResponse, useAggregatorsQuotes, useAggregatorsRouterFeeBps, useAllUserPools, useAllUserPoolsQueryKey, useAllValidators, useAllValidatorsQueryKey, useApiEnrichedAllocation, useApiPool, useApiPoolQueryKey, useApiValidator, useApiValidatorQueryKey, useAutoclaimedIncentives, useAutoclaimedIncentivesTxHash, useBaselineRewardAllocation, useBendDemultiply, useBendMultiply, useBendZapSupply, useBendZapSupplyHelper, useBeraContractWrite, useBeraCurrentPrice, useBgtAprSimulation, useBgtIncentiveDistributorPaused, useBgtUnstakedBalance, useBlockToTimestamp, useCappedGlobally, useCappedRelatively, useClaimableFees, useCollateralWeights, useCreatePool, useDailyValidatorBlockStats, useDefaultRewardAllocation, useEnsoSwapBundle, useEnsoUserTokensWithBalances, useGetConvertToAssets, useGetVerifiedAbi, useGlobalLiquidityAndSwapVolume, useHighestVaultsAPR, useHistoryState, useHoney24hVolume, useHoneyAlerts, useHoneyBalances, useHoneyChartData, useHoneyVaultsBalance, useIsBadCollateralAsset, useIsBasketModeEnabled, useLiquidityMismatch, useLpPosition, useManagedValidatorRole, useMultipleTokenApprovalsWithSlippage, useMultipleTokenInformation, type useMultipleTokenInformationArgs, useOnChainPoolData, useOnChainPoolDataQueryKey, useOnChainValidator, usePollAllowances, usePollBalance, usePollGlobalData, usePollMarkets, usePollMarketsQueryKey, usePollPoolCreationRelayerApproval, usePollWalletBalances, usePool, usePoolEvents, usePoolHistoricalData, usePools, usePoolsQueryKey, usePrevious, usePriceImpact, usePythLatestPrices, usePythUpdateFee, useQueuedBeraUnlock, useRewardTokenToBeraRate, useRewardVault, useRewardVaultBalanceFromStakingToken, useRewardVaultFromToken, useRewardVaultIncentives, useRewardVaultQueryKey, useRewardVaultRewards, useRewardVaults, useRewardVaultsQueryKey, useSingleAggregatorQuote, useStakedAPR, useStakedData, useStakedSnapshots, useStakingPoolBatch, useStakingTokenInformation, type useStakingTokenInformationArgs, useStakingVaultsMetadata, useTokenCurrentPrice, useTokenCurrentPrices, useTokenInformation, useTokenPrice, useTokenPrices, useTokens, useTotalStakedAmount, useTotalSupply, useUserActiveValidators, useUserBoostsOnValidator, useUserClaimableIncentives, useUserStakingPositions, useUserVaultInfo, useUserVaults, useValidator, useValidatorAnalytics, useValidatorCommission, useValidatorEstimatedBgtPerYear, useValidatorIncentiveDistribution, useValidatorQueuedCommission, useValidatorQueuedOperatorAddress, useValidatorQueuedRewardAllocation, useValidatorRewardAllocation, useVaultAddress, useVaultHistory, useVaultValidators, useZapStakeBera };
|
|
2
|
+
* This file avoids more barrel files.
|
|
3
|
+
*
|
|
4
|
+
* It's used to speed up the build process.
|
|
5
|
+
*
|
|
6
|
+
* @see {@link https://marvinh.dev/blog/speeding-up-javascript-ecosystem-part-7/}
|
|
7
|
+
*/
|
|
8
|
+
export * from "./bend/useGetConvertToAssets";
|
|
9
|
+
export * from "./dex/useAggregatorsQuotes";
|
|
10
|
+
export * from "./dex/useAggregatorsRouterFeeBps";
|
|
11
|
+
export * from "./dex/useAllUserPools";
|
|
12
|
+
export * from "./dex/useApiPool";
|
|
13
|
+
export * from "./dex/useBexStatus";
|
|
14
|
+
export * from "./dex/useCreatePool";
|
|
15
|
+
export { useGlobalLiquidityAndSwapVolume } from "./dex/useGlobalLiquidityAndSwapVolume";
|
|
16
|
+
export * from "./dex/useLiquidityMismatch";
|
|
17
|
+
export * from "./dex/useLpPosition";
|
|
18
|
+
export { useMultipleTokenApprovalsWithSlippage } from "./dex/useMultipleTokenApprovalsWithSlippage";
|
|
19
|
+
export * from "./dex/useOnChainPoolData";
|
|
20
|
+
export { usePollPoolCreationRelayerApproval } from "./dex/usePollPoolCreationRelayerApproval";
|
|
21
|
+
export * from "./dex/usePool";
|
|
22
|
+
export * from "./dex/usePoolEvents";
|
|
23
|
+
export * from "./dex/usePoolHistoricalData";
|
|
24
|
+
export * from "./dex/usePools";
|
|
25
|
+
export * from "./dex/usePriceImpact";
|
|
26
|
+
export { USE_AGGREGATORS_QUOTES_QUERY_KEY, useSingleAggregatorQuote, } from "./dex/useSingleAggregatorQuote";
|
|
27
|
+
export * from "./enso/useBendDemultiply";
|
|
28
|
+
export * from "./enso/useBendMultiply";
|
|
29
|
+
export * from "./enso/useBendZapSupply";
|
|
30
|
+
export * from "./enso/useEnsoSwapBundle";
|
|
31
|
+
export * from "./enso/useEnsoUserTokensWithBalances";
|
|
32
|
+
export * from "./enso/useZapStakeBera";
|
|
33
|
+
export * from "./honey/useCappedGlobally";
|
|
34
|
+
export * from "./honey/useCappedRelatively";
|
|
35
|
+
export * from "./honey/useCollateralWeights";
|
|
36
|
+
export * from "./honey/useHoney24hVolume";
|
|
37
|
+
export * from "./honey/useHoneyAlerts";
|
|
38
|
+
export * from "./honey/useHoneyBalances";
|
|
39
|
+
export * from "./honey/useHoneyChartData";
|
|
40
|
+
export * from "./honey/useHoneySwapState";
|
|
41
|
+
export * from "./honey/useHoneyVaultsBalance";
|
|
42
|
+
export * from "./honey/useIsBadCollateralAsset";
|
|
43
|
+
export * from "./honey/useIsBasketModeEnabled";
|
|
44
|
+
export * from "./honey/usePythLatestPrices";
|
|
45
|
+
export * from "./perps/usePythUpdateFee";
|
|
46
|
+
export { useAutoclaimedIncentives } from "./pol/useAutoclaimedIncentives";
|
|
47
|
+
export { useAutoclaimedIncentivesTxHash } from "./pol/useAutoclaimedIncentivesTxHash";
|
|
48
|
+
export * from "./pol/useBgtAprSimulation";
|
|
49
|
+
export { useBgtIncentiveDistributorPaused } from "./pol/useBgtIncentiveDistributorPaused";
|
|
50
|
+
export { useBgtUnstakedBalance } from "./pol/useBgtUnstakedBalance";
|
|
51
|
+
export { useClaimableFees } from "./pol/useClaimableFees";
|
|
52
|
+
export * from "./pol/useHighestVaultsAPR";
|
|
53
|
+
export * from "./pol/usePollGlobalData";
|
|
54
|
+
export * from "./pol/usePollMarkets";
|
|
55
|
+
export * from "./pol/useQueuedBeraUnlock";
|
|
56
|
+
export * from "./pol/useRewardTokenToBeraRate";
|
|
57
|
+
export * from "./pol/useRewardVault";
|
|
58
|
+
export * from "./pol/useRewardVaultBalanceFromStakingToken";
|
|
59
|
+
export { useRewardVaultFromToken } from "./pol/useRewardVaultFromToken";
|
|
60
|
+
export * from "./pol/useRewardVaultIncentives";
|
|
61
|
+
export { useRewardVaultRewards } from "./pol/useRewardVaultRewards";
|
|
62
|
+
export * from "./pol/useRewardVaults";
|
|
63
|
+
export { useRewardVaults } from "./pol/useRewardVaults";
|
|
64
|
+
export * from "./pol/useStakedAPR";
|
|
65
|
+
export * from "./pol/useStakedData";
|
|
66
|
+
export * from "./pol/useStakedSnapshots";
|
|
67
|
+
export * from "./pol/useStakingVaultsMetadata";
|
|
68
|
+
export * from "./pol/useTotalStakedAmount";
|
|
69
|
+
export { useUserVaultInfo } from "./pol/useUserVaultInfo";
|
|
70
|
+
export { useUserVaults } from "./pol/useUserVaults";
|
|
71
|
+
export * from "./pol/useVaultAddress";
|
|
72
|
+
export * from "./pol/useVaultHistory";
|
|
73
|
+
export { useVaultValidators } from "./pol/useVaultValidators";
|
|
74
|
+
export * from "./tokens/useBeraCurrentPrice";
|
|
75
|
+
export * from "./tokens/useMultipleTokenInformation";
|
|
76
|
+
export * from "./tokens/usePollAllowances";
|
|
77
|
+
export * from "./tokens/usePollBalance";
|
|
78
|
+
export * from "./tokens/usePollWalletBalances";
|
|
79
|
+
export * from "./tokens/useStakingTokenInformation";
|
|
80
|
+
export * from "./tokens/useTokenCurrentPrices";
|
|
81
|
+
export * from "./tokens/useTokenInformation";
|
|
82
|
+
export * from "./tokens/useTokenPrice";
|
|
83
|
+
export * from "./tokens/useTokenPrices";
|
|
84
|
+
export * from "./tokens/useTokens";
|
|
85
|
+
export * from "./tokens/useTotalSupply";
|
|
86
|
+
export * from "./useBlockToTimestamp";
|
|
87
|
+
export * from "./useContractWrite";
|
|
88
|
+
export * from "./useGetVerifiedAbi";
|
|
89
|
+
export * from "./useHistoryState";
|
|
90
|
+
export * from "./usePrevious";
|
|
91
|
+
export * from "./validators/useAllValidators";
|
|
92
|
+
export * from "./validators/useApiEnrichedAllocation";
|
|
93
|
+
export * from "./validators/useApiValidator";
|
|
94
|
+
export * from "./validators/useBaselineRewardAllocation";
|
|
95
|
+
export { type ManagedValidatorRole, useManagedValidatorRole, } from "./validators/useManagedValidatorRole";
|
|
96
|
+
export * from "./validators/useStakingPoolBatch";
|
|
97
|
+
export { useUserActiveValidators } from "./validators/useUserActiveValidators";
|
|
98
|
+
export { useUserBoostsOnValidator } from "./validators/useUserBoostsOnValidator";
|
|
99
|
+
export { useUserClaimableIncentives } from "./validators/useUserClaimableIncentives";
|
|
100
|
+
export * from "./validators/useUserStakingPositions";
|
|
101
|
+
export * from "./validators/useValidator";
|
|
102
|
+
export { useValidatorAnalytics } from "./validators/useValidatorAnalytics";
|
|
103
|
+
export { useValidatorCommission } from "./validators/useValidatorCommission";
|
|
104
|
+
export { useValidatorEstimatedBgtPerYear } from "./validators/useValidatorEstimatedBgtPerYear";
|
|
105
|
+
export { useValidatorIncentiveDistribution } from "./validators/useValidatorIncentiveDistribution";
|
|
106
|
+
export { useValidatorQueuedCommission } from "./validators/useValidatorQueuedCommission";
|
|
107
|
+
export { useValidatorQueuedOperatorAddress } from "./validators/useValidatorQueuedOperatorAddress";
|
|
108
|
+
export { useValidatorQueuedRewardAllocation } from "./validators/useValidatorQueuedRewardAllocation";
|
|
109
|
+
export { useValidatorRewardAllocation } from "./validators/useValidatorRewardAllocation";
|
|
110
|
+
//# sourceMappingURL=exports.d.ts.map
|