@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
|
@@ -1,1647 +1,101 @@
|
|
|
1
|
-
import { V as ValidatorRewardAllocation } from '../getValidatorQueuedOperatorAddress-Cxt-DlL_.js';
|
|
2
|
-
export { B as BaseAggregator, G as GetBgtAprSimulationArgs, a as GetBgtAprSimulationResult, b as GetConvertToAssetsProps, c as GetGaugeData, d as GetHoneyVaultsBalanceResponse, e as GetMarkets, f as GetRewardVaultRewardsReturn, g as GetUserVaultsResponse, h as GetVaultHistoryArgs, i as GlobalData, I as IsBadCollateralArgs, j as IsBadCollateralResponse, O as OnChainPool, P as PoolStatus, R as RewardVaultDistributionMode, k as RewardVaultIncentive, S as StakedBeraWithdrawal, U as UserBoostsOnValidator, l as UserStakingPoolPosition, m as UserVault, n as ValidatorQueuedCommission, o as ValidatorQueuedOperatorAddress, p as ValidatorRewardAllocationRaw, q as ValidatorRewardAllocationUpdate, r as ValidatorRewardAllocationUpdateWithExpiration, s as ValidatorWithUserBoost, t as VaultMetadata, u as formatValidatorRewardAllocation, v as getBgtAprSimulation, w as getConvertToAssets, x as getGlobalData, y as getHoneyVaultsBalance, z as getMarkets, A as getOnChainPool, C as getPoolPausedState, D as getRewardVaultIncentives, E as getRewardVaultRewards, F as getRewardVaults, H as getSWBeraVaultMetadata, J as getSWBeraWithdrawal, K as getUserActiveValidators, L as getUserBoostsOnValidator, M as getUserStakingPositions, N as getUserVaults, Q as getValidatorQueuedCommission, T as getValidatorQueuedOperatorAddress, W as getValidatorRewardAllocation, X as getVaultHistory, Y as isBadCollateralAsset, Z as isSameRewardAllocation } from '../getValidatorQueuedOperatorAddress-Cxt-DlL_.js';
|
|
3
|
-
import { Address, PublicClient, Abi, ContractFunctionArgs, ContractFunctionName, TransactionReceipt, WalletCallReceipt } from 'viem';
|
|
4
|
-
export { B as BeraApolloClient, g as getApolloClient } from '../getApolloClient-BcUTGFUb.js';
|
|
5
|
-
import { EnsoClient } from '@ensofinance/sdk';
|
|
6
|
-
import { PoolState } from '@berachain-foundation/berancer-sdk';
|
|
7
|
-
export { BalancerApi } from '@berachain-foundation/berancer-sdk';
|
|
8
|
-
import * as _berachain_graphql_dex_api from '@berachain/graphql/dex/api';
|
|
9
|
-
import { GetPoolsQueryVariables, GetGlobalLiquidityAndSwapVolumeQuery, GetPoolEventsQuery, GqlChain, PoolHistoricalDataFragment, MinimalPoolFragment } from '@berachain/graphql/dex/api';
|
|
10
|
-
import { FetchPolicy } from '@apollo/client';
|
|
11
|
-
export { gql } from '@apollo/client';
|
|
12
|
-
import { GqlPoolEventType, ApiVaultFragment, GetHeroEarnVaultsQuery, GqlChain as GqlChain$1, GqlVaultSnapshotDataRange, GetSWberaVaultSnapshotsQuery, ApiValidatorFragment, GetValidatorsQueryVariables, GetValidatorsQuery, ApiRewardAllocationWeightFragment, GetValidatorQuery, ApiValidatorMinimalFragment, ApiValidatorRewardAllocationWeightFragment, ApiMinimalVaultIncentiveFragment } from '@berachain/graphql/pol/api';
|
|
13
|
-
import * as _berachain_graphql_beep from '@berachain/graphql/beep';
|
|
14
|
-
import { HoneySnapshotResponse, HoneyTransactionsLatestResponse } from '@berachain/graphql/beep';
|
|
15
|
-
import { b as Token, P as PythLatestUpdates, a as TokenWithMetadata, T as TokenWithOrder, h as PythPriceFeedMap, i as TokenCurrentPriceMap, A as AllowanceQueryItem, j as AllowanceToken, M as MinimalERC20, B as BalanceToken } from '../HoneyConfigProvider-COOuDNra.js';
|
|
16
|
-
export { C as CollateralRates, k as CollateralRatesArgs, l as HoneyFeeMap, m as HoneyPreviewArgs, n as HoneyPreviewMethod, o as HoneyPreviewReadResult, p as HoneyPreviewResult, q as getHoneyFees, r as getHoneyPreview, s as getPythLatestPrices } from '../HoneyConfigProvider-COOuDNra.js';
|
|
17
|
-
import BigNumber from '@berachain/utils/pkg/bignumber.js';
|
|
18
|
-
import { EdgeConfigSchema } from '@berachain/config/internal/edge-config';
|
|
19
|
-
import { honeyFactoryAbi } from '@berachain/abis/honey/honeyFactory';
|
|
20
|
-
import { honeyFactoryPythWrapperAbi } from '@berachain/abis/honey/honeyFactoryPythWrapper';
|
|
21
|
-
import { I as IHoneySwapState } from '../useHoneySwapState-twi7NTaO.js';
|
|
22
|
-
import { A as AutoclaimedIncentivesResponse, a as AutoclaimedIncentivesTxHashResponse, S as StakingConfig, B as BribeBoostRewardProof, b as BribeBoostRewardItem, U as UserVaultInfo } from '../pol.d-CeRgXBL8.js';
|
|
23
|
-
import { Address as Address$1, ChainId } from '@berachain/config';
|
|
24
|
-
import { Config } from '@wagmi/core';
|
|
25
|
-
import { I as IContractWrite } from '../global.d-q_LQWQqs.js';
|
|
26
|
-
import { GetValidatorBlockStatsQuery, GetValidatorAnalyticsQuery } from '@berachain/graphql/pol/subgraph';
|
|
27
|
-
import '@berachain/config/internal';
|
|
28
|
-
import '../dex-C_BB0b0O.js';
|
|
29
|
-
import 'react/jsx-runtime';
|
|
30
|
-
import 'react';
|
|
31
|
-
import '../honey-CYm0RWf4.js';
|
|
32
|
-
import '@berachain/utils/pkg/swr';
|
|
33
|
-
import '../txnEnum-ByI5dtDi.js';
|
|
34
|
-
import '../BeraError-7-A5JYy_.js';
|
|
35
|
-
|
|
36
|
-
interface GetMaxDepositProps {
|
|
37
|
-
vaultAddress: Address;
|
|
38
|
-
publicClient: PublicClient;
|
|
39
|
-
}
|
|
40
|
-
interface MaxDeposit {
|
|
41
|
-
/** `maxDeposit` formatted as an ether-denominated decimal string. */
|
|
42
|
-
formatted: string;
|
|
43
|
-
/**
|
|
44
|
-
* True when the vault has no real deposit cap. MetaMorpho's `maxDeposit` sums
|
|
45
|
-
* each enabled market's remaining capacity (its supply cap minus current
|
|
46
|
-
* supply); an uncapped market stores `type(uint184).max` as its cap, so the
|
|
47
|
-
* sum lands at ~uint184.max (≈2.45e55) — not uint256.max. `formatted` turns
|
|
48
|
-
* that into an astronomical number, so callers must key off this flag, not
|
|
49
|
-
* the formatted value, to detect "unlimited".
|
|
50
|
-
*
|
|
51
|
-
* A genuine cap is many orders of magnitude smaller (e.g. Re7 HONEY's ~92M =
|
|
52
|
-
* ~9.2e25), so the uint184-based threshold cleanly separates the two. The sum
|
|
53
|
-
* can exceed uint184.max when several markets are uncapped, so we compare with
|
|
54
|
-
* `>=` rather than testing for the exact sentinel.
|
|
55
|
-
*/
|
|
56
|
-
isUncapped: boolean;
|
|
57
|
-
}
|
|
58
|
-
declare function getMaxDeposit({ vaultAddress, publicClient, }: GetMaxDepositProps): Promise<MaxDeposit>;
|
|
59
|
-
|
|
60
|
-
declare function getEnsoClient({ baseURL, ...args }?: BeraJS.BaseFunctionArgs & {
|
|
61
|
-
/**
|
|
62
|
-
* Override the Enso API base URL.
|
|
63
|
-
*
|
|
64
|
-
* - Omit (or pass `undefined`) → external proxy in production, direct in dev/test
|
|
65
|
-
* - Pass a URL string (e.g. `"/api/enso"`) → route through that proxy
|
|
66
|
-
*/
|
|
67
|
-
baseURL?: string;
|
|
68
|
-
}): EnsoClient;
|
|
69
|
-
|
|
70
|
-
declare function getAllPools({ textSearch, chain, first, orderBy, orderDirection, skip, fetchPolicy, userAddress, blacklistedPoolIds, ...args }?: Partial<GetPoolsQueryVariables & {
|
|
71
|
-
fetchPolicy: FetchPolicy;
|
|
72
|
-
}> & BeraJS.BaseFunctionArgs): Promise<{
|
|
73
|
-
pools: {
|
|
74
|
-
__typename?: "GqlPoolMinimal";
|
|
75
|
-
id: string;
|
|
76
|
-
name: string;
|
|
77
|
-
address: `0x${string}`;
|
|
78
|
-
factory?: `0x${string}` | null;
|
|
79
|
-
protocolVersion: number;
|
|
80
|
-
type: _berachain_graphql_dex_api.GqlPoolType;
|
|
81
|
-
tokens: Array<{
|
|
82
|
-
__typename?: "GqlPoolTokenExpanded";
|
|
83
|
-
address: `0x${string}`;
|
|
84
|
-
symbol: string;
|
|
85
|
-
name: string;
|
|
86
|
-
decimals: number;
|
|
87
|
-
}>;
|
|
88
|
-
dynamicData: {
|
|
89
|
-
__typename?: "GqlPoolDynamicData";
|
|
90
|
-
totalShares: string;
|
|
91
|
-
fees24h: string;
|
|
92
|
-
volume24h: string;
|
|
93
|
-
swapFee: string;
|
|
94
|
-
isInRecoveryMode: boolean;
|
|
95
|
-
isPaused: boolean;
|
|
96
|
-
totalLiquidity: string;
|
|
97
|
-
aprItems: Array<{
|
|
98
|
-
__typename?: "GqlPoolAprItem";
|
|
99
|
-
apr: number;
|
|
100
|
-
type: _berachain_graphql_dex_api.GqlPoolAprItemType;
|
|
101
|
-
id: string;
|
|
102
|
-
}>;
|
|
103
|
-
};
|
|
104
|
-
userBalance?: {
|
|
105
|
-
__typename?: "GqlPoolUserBalance";
|
|
106
|
-
totalBalanceUsd: number;
|
|
107
|
-
walletBalance: any;
|
|
108
|
-
walletBalanceUsd: number;
|
|
109
|
-
} | null;
|
|
110
|
-
rewardVault?: {
|
|
111
|
-
__typename?: "GqlRewardVault";
|
|
112
|
-
isVaultWhitelisted: boolean;
|
|
113
|
-
vaultAddress: `0x${string}`;
|
|
114
|
-
stakingTokenAddress: `0x${string}`;
|
|
115
|
-
dynamicData?: {
|
|
116
|
-
__typename?: "GqlRewardVaultDynamicData";
|
|
117
|
-
activeIncentivesValueUsd: string;
|
|
118
|
-
apr?: number | null;
|
|
119
|
-
rewardCapturePercentage: number;
|
|
120
|
-
} | null;
|
|
121
|
-
} | null;
|
|
122
|
-
}[];
|
|
123
|
-
count: number;
|
|
124
|
-
}>;
|
|
125
|
-
|
|
126
|
-
declare function getApiPool({ poolId, account, ...args }: {
|
|
127
|
-
poolId: string;
|
|
128
|
-
account?: Address | undefined;
|
|
129
|
-
} & BeraJS.BaseFunctionArgs): Promise<{
|
|
130
|
-
__typename?: "GqlPoolComposableStable";
|
|
131
|
-
id: string;
|
|
132
|
-
name: string;
|
|
133
|
-
address: `0x${string}`;
|
|
134
|
-
factory?: `0x${string}` | null;
|
|
135
|
-
protocolVersion: number;
|
|
136
|
-
type: _berachain_graphql_dex_api.GqlPoolType;
|
|
137
|
-
createTime: number;
|
|
138
|
-
tokens: Array<{
|
|
139
|
-
__typename?: "GqlPoolTokenDetail";
|
|
140
|
-
index: number;
|
|
141
|
-
address: `0x${string}`;
|
|
142
|
-
symbol: string;
|
|
143
|
-
name: string;
|
|
144
|
-
decimals: number;
|
|
145
|
-
weight?: string | null;
|
|
146
|
-
balance: string;
|
|
147
|
-
balanceUSD: string;
|
|
148
|
-
}>;
|
|
149
|
-
dynamicData: {
|
|
150
|
-
__typename?: "GqlPoolDynamicData";
|
|
151
|
-
totalShares: string;
|
|
152
|
-
fees24h: string;
|
|
153
|
-
volume24h: string;
|
|
154
|
-
swapFee: string;
|
|
155
|
-
isInRecoveryMode: boolean;
|
|
156
|
-
isPaused: boolean;
|
|
157
|
-
totalLiquidity: string;
|
|
158
|
-
aprItems: Array<{
|
|
159
|
-
__typename?: "GqlPoolAprItem";
|
|
160
|
-
apr: number;
|
|
161
|
-
type: _berachain_graphql_dex_api.GqlPoolAprItemType;
|
|
162
|
-
id: string;
|
|
163
|
-
}>;
|
|
164
|
-
};
|
|
165
|
-
rewardVault?: {
|
|
166
|
-
__typename?: "GqlRewardVault";
|
|
167
|
-
isVaultWhitelisted: boolean;
|
|
168
|
-
vaultAddress: `0x${string}`;
|
|
169
|
-
stakingTokenAddress: `0x${string}`;
|
|
170
|
-
dynamicData?: {
|
|
171
|
-
__typename?: "GqlRewardVaultDynamicData";
|
|
172
|
-
activeIncentivesValueUsd: string;
|
|
173
|
-
apr?: number | null;
|
|
174
|
-
rewardCapturePercentage: number;
|
|
175
|
-
} | null;
|
|
176
|
-
} | null;
|
|
177
|
-
} | {
|
|
178
|
-
__typename?: "GqlPoolElement";
|
|
179
|
-
id: string;
|
|
180
|
-
name: string;
|
|
181
|
-
address: `0x${string}`;
|
|
182
|
-
factory?: `0x${string}` | null;
|
|
183
|
-
protocolVersion: number;
|
|
184
|
-
type: _berachain_graphql_dex_api.GqlPoolType;
|
|
185
|
-
createTime: number;
|
|
186
|
-
tokens: Array<{
|
|
187
|
-
__typename?: "GqlPoolTokenDetail";
|
|
188
|
-
index: number;
|
|
189
|
-
address: `0x${string}`;
|
|
190
|
-
symbol: string;
|
|
191
|
-
name: string;
|
|
192
|
-
decimals: number;
|
|
193
|
-
weight?: string | null;
|
|
194
|
-
balance: string;
|
|
195
|
-
balanceUSD: string;
|
|
196
|
-
}>;
|
|
197
|
-
dynamicData: {
|
|
198
|
-
__typename?: "GqlPoolDynamicData";
|
|
199
|
-
totalShares: string;
|
|
200
|
-
fees24h: string;
|
|
201
|
-
volume24h: string;
|
|
202
|
-
swapFee: string;
|
|
203
|
-
isInRecoveryMode: boolean;
|
|
204
|
-
isPaused: boolean;
|
|
205
|
-
totalLiquidity: string;
|
|
206
|
-
aprItems: Array<{
|
|
207
|
-
__typename?: "GqlPoolAprItem";
|
|
208
|
-
apr: number;
|
|
209
|
-
type: _berachain_graphql_dex_api.GqlPoolAprItemType;
|
|
210
|
-
id: string;
|
|
211
|
-
}>;
|
|
212
|
-
};
|
|
213
|
-
rewardVault?: {
|
|
214
|
-
__typename?: "GqlRewardVault";
|
|
215
|
-
isVaultWhitelisted: boolean;
|
|
216
|
-
vaultAddress: `0x${string}`;
|
|
217
|
-
stakingTokenAddress: `0x${string}`;
|
|
218
|
-
dynamicData?: {
|
|
219
|
-
__typename?: "GqlRewardVaultDynamicData";
|
|
220
|
-
activeIncentivesValueUsd: string;
|
|
221
|
-
apr?: number | null;
|
|
222
|
-
rewardCapturePercentage: number;
|
|
223
|
-
} | null;
|
|
224
|
-
} | null;
|
|
225
|
-
} | {
|
|
226
|
-
__typename?: "GqlPoolFx";
|
|
227
|
-
id: string;
|
|
228
|
-
name: string;
|
|
229
|
-
address: `0x${string}`;
|
|
230
|
-
factory?: `0x${string}` | null;
|
|
231
|
-
protocolVersion: number;
|
|
232
|
-
type: _berachain_graphql_dex_api.GqlPoolType;
|
|
233
|
-
createTime: number;
|
|
234
|
-
tokens: Array<{
|
|
235
|
-
__typename?: "GqlPoolTokenDetail";
|
|
236
|
-
index: number;
|
|
237
|
-
address: `0x${string}`;
|
|
238
|
-
symbol: string;
|
|
239
|
-
name: string;
|
|
240
|
-
decimals: number;
|
|
241
|
-
weight?: string | null;
|
|
242
|
-
balance: string;
|
|
243
|
-
balanceUSD: string;
|
|
244
|
-
}>;
|
|
245
|
-
dynamicData: {
|
|
246
|
-
__typename?: "GqlPoolDynamicData";
|
|
247
|
-
totalShares: string;
|
|
248
|
-
fees24h: string;
|
|
249
|
-
volume24h: string;
|
|
250
|
-
swapFee: string;
|
|
251
|
-
isInRecoveryMode: boolean;
|
|
252
|
-
isPaused: boolean;
|
|
253
|
-
totalLiquidity: string;
|
|
254
|
-
aprItems: Array<{
|
|
255
|
-
__typename?: "GqlPoolAprItem";
|
|
256
|
-
apr: number;
|
|
257
|
-
type: _berachain_graphql_dex_api.GqlPoolAprItemType;
|
|
258
|
-
id: string;
|
|
259
|
-
}>;
|
|
260
|
-
};
|
|
261
|
-
rewardVault?: {
|
|
262
|
-
__typename?: "GqlRewardVault";
|
|
263
|
-
isVaultWhitelisted: boolean;
|
|
264
|
-
vaultAddress: `0x${string}`;
|
|
265
|
-
stakingTokenAddress: `0x${string}`;
|
|
266
|
-
dynamicData?: {
|
|
267
|
-
__typename?: "GqlRewardVaultDynamicData";
|
|
268
|
-
activeIncentivesValueUsd: string;
|
|
269
|
-
apr?: number | null;
|
|
270
|
-
rewardCapturePercentage: number;
|
|
271
|
-
} | null;
|
|
272
|
-
} | null;
|
|
273
|
-
} | {
|
|
274
|
-
__typename?: "GqlPoolGyro";
|
|
275
|
-
id: string;
|
|
276
|
-
name: string;
|
|
277
|
-
address: `0x${string}`;
|
|
278
|
-
factory?: `0x${string}` | null;
|
|
279
|
-
protocolVersion: number;
|
|
280
|
-
type: _berachain_graphql_dex_api.GqlPoolType;
|
|
281
|
-
createTime: number;
|
|
282
|
-
tokens: Array<{
|
|
283
|
-
__typename?: "GqlPoolTokenDetail";
|
|
284
|
-
index: number;
|
|
285
|
-
address: `0x${string}`;
|
|
286
|
-
symbol: string;
|
|
287
|
-
name: string;
|
|
288
|
-
decimals: number;
|
|
289
|
-
weight?: string | null;
|
|
290
|
-
balance: string;
|
|
291
|
-
balanceUSD: string;
|
|
292
|
-
}>;
|
|
293
|
-
dynamicData: {
|
|
294
|
-
__typename?: "GqlPoolDynamicData";
|
|
295
|
-
totalShares: string;
|
|
296
|
-
fees24h: string;
|
|
297
|
-
volume24h: string;
|
|
298
|
-
swapFee: string;
|
|
299
|
-
isInRecoveryMode: boolean;
|
|
300
|
-
isPaused: boolean;
|
|
301
|
-
totalLiquidity: string;
|
|
302
|
-
aprItems: Array<{
|
|
303
|
-
__typename?: "GqlPoolAprItem";
|
|
304
|
-
apr: number;
|
|
305
|
-
type: _berachain_graphql_dex_api.GqlPoolAprItemType;
|
|
306
|
-
id: string;
|
|
307
|
-
}>;
|
|
308
|
-
};
|
|
309
|
-
rewardVault?: {
|
|
310
|
-
__typename?: "GqlRewardVault";
|
|
311
|
-
isVaultWhitelisted: boolean;
|
|
312
|
-
vaultAddress: `0x${string}`;
|
|
313
|
-
stakingTokenAddress: `0x${string}`;
|
|
314
|
-
dynamicData?: {
|
|
315
|
-
__typename?: "GqlRewardVaultDynamicData";
|
|
316
|
-
activeIncentivesValueUsd: string;
|
|
317
|
-
apr?: number | null;
|
|
318
|
-
rewardCapturePercentage: number;
|
|
319
|
-
} | null;
|
|
320
|
-
} | null;
|
|
321
|
-
} | {
|
|
322
|
-
__typename?: "GqlPoolLiquidityBootstrapping";
|
|
323
|
-
id: string;
|
|
324
|
-
name: string;
|
|
325
|
-
address: `0x${string}`;
|
|
326
|
-
factory?: `0x${string}` | null;
|
|
327
|
-
protocolVersion: number;
|
|
328
|
-
type: _berachain_graphql_dex_api.GqlPoolType;
|
|
329
|
-
createTime: number;
|
|
330
|
-
tokens: Array<{
|
|
331
|
-
__typename?: "GqlPoolTokenDetail";
|
|
332
|
-
index: number;
|
|
333
|
-
address: `0x${string}`;
|
|
334
|
-
symbol: string;
|
|
335
|
-
name: string;
|
|
336
|
-
decimals: number;
|
|
337
|
-
weight?: string | null;
|
|
338
|
-
balance: string;
|
|
339
|
-
balanceUSD: string;
|
|
340
|
-
}>;
|
|
341
|
-
dynamicData: {
|
|
342
|
-
__typename?: "GqlPoolDynamicData";
|
|
343
|
-
totalShares: string;
|
|
344
|
-
fees24h: string;
|
|
345
|
-
volume24h: string;
|
|
346
|
-
swapFee: string;
|
|
347
|
-
isInRecoveryMode: boolean;
|
|
348
|
-
isPaused: boolean;
|
|
349
|
-
totalLiquidity: string;
|
|
350
|
-
aprItems: Array<{
|
|
351
|
-
__typename?: "GqlPoolAprItem";
|
|
352
|
-
apr: number;
|
|
353
|
-
type: _berachain_graphql_dex_api.GqlPoolAprItemType;
|
|
354
|
-
id: string;
|
|
355
|
-
}>;
|
|
356
|
-
};
|
|
357
|
-
rewardVault?: {
|
|
358
|
-
__typename?: "GqlRewardVault";
|
|
359
|
-
isVaultWhitelisted: boolean;
|
|
360
|
-
vaultAddress: `0x${string}`;
|
|
361
|
-
stakingTokenAddress: `0x${string}`;
|
|
362
|
-
dynamicData?: {
|
|
363
|
-
__typename?: "GqlRewardVaultDynamicData";
|
|
364
|
-
activeIncentivesValueUsd: string;
|
|
365
|
-
apr?: number | null;
|
|
366
|
-
rewardCapturePercentage: number;
|
|
367
|
-
} | null;
|
|
368
|
-
} | null;
|
|
369
|
-
} | {
|
|
370
|
-
__typename?: "GqlPoolMetaStable";
|
|
371
|
-
id: string;
|
|
372
|
-
name: string;
|
|
373
|
-
address: `0x${string}`;
|
|
374
|
-
factory?: `0x${string}` | null;
|
|
375
|
-
protocolVersion: number;
|
|
376
|
-
type: _berachain_graphql_dex_api.GqlPoolType;
|
|
377
|
-
createTime: number;
|
|
378
|
-
tokens: Array<{
|
|
379
|
-
__typename?: "GqlPoolTokenDetail";
|
|
380
|
-
index: number;
|
|
381
|
-
address: `0x${string}`;
|
|
382
|
-
symbol: string;
|
|
383
|
-
name: string;
|
|
384
|
-
decimals: number;
|
|
385
|
-
weight?: string | null;
|
|
386
|
-
balance: string;
|
|
387
|
-
balanceUSD: string;
|
|
388
|
-
}>;
|
|
389
|
-
dynamicData: {
|
|
390
|
-
__typename?: "GqlPoolDynamicData";
|
|
391
|
-
totalShares: string;
|
|
392
|
-
fees24h: string;
|
|
393
|
-
volume24h: string;
|
|
394
|
-
swapFee: string;
|
|
395
|
-
isInRecoveryMode: boolean;
|
|
396
|
-
isPaused: boolean;
|
|
397
|
-
totalLiquidity: string;
|
|
398
|
-
aprItems: Array<{
|
|
399
|
-
__typename?: "GqlPoolAprItem";
|
|
400
|
-
apr: number;
|
|
401
|
-
type: _berachain_graphql_dex_api.GqlPoolAprItemType;
|
|
402
|
-
id: string;
|
|
403
|
-
}>;
|
|
404
|
-
};
|
|
405
|
-
rewardVault?: {
|
|
406
|
-
__typename?: "GqlRewardVault";
|
|
407
|
-
isVaultWhitelisted: boolean;
|
|
408
|
-
vaultAddress: `0x${string}`;
|
|
409
|
-
stakingTokenAddress: `0x${string}`;
|
|
410
|
-
dynamicData?: {
|
|
411
|
-
__typename?: "GqlRewardVaultDynamicData";
|
|
412
|
-
activeIncentivesValueUsd: string;
|
|
413
|
-
apr?: number | null;
|
|
414
|
-
rewardCapturePercentage: number;
|
|
415
|
-
} | null;
|
|
416
|
-
} | null;
|
|
417
|
-
} | {
|
|
418
|
-
__typename?: "GqlPoolStable";
|
|
419
|
-
id: string;
|
|
420
|
-
name: string;
|
|
421
|
-
address: `0x${string}`;
|
|
422
|
-
factory?: `0x${string}` | null;
|
|
423
|
-
protocolVersion: number;
|
|
424
|
-
type: _berachain_graphql_dex_api.GqlPoolType;
|
|
425
|
-
createTime: number;
|
|
426
|
-
tokens: Array<{
|
|
427
|
-
__typename?: "GqlPoolTokenDetail";
|
|
428
|
-
index: number;
|
|
429
|
-
address: `0x${string}`;
|
|
430
|
-
symbol: string;
|
|
431
|
-
name: string;
|
|
432
|
-
decimals: number;
|
|
433
|
-
weight?: string | null;
|
|
434
|
-
balance: string;
|
|
435
|
-
balanceUSD: string;
|
|
436
|
-
}>;
|
|
437
|
-
dynamicData: {
|
|
438
|
-
__typename?: "GqlPoolDynamicData";
|
|
439
|
-
totalShares: string;
|
|
440
|
-
fees24h: string;
|
|
441
|
-
volume24h: string;
|
|
442
|
-
swapFee: string;
|
|
443
|
-
isInRecoveryMode: boolean;
|
|
444
|
-
isPaused: boolean;
|
|
445
|
-
totalLiquidity: string;
|
|
446
|
-
aprItems: Array<{
|
|
447
|
-
__typename?: "GqlPoolAprItem";
|
|
448
|
-
apr: number;
|
|
449
|
-
type: _berachain_graphql_dex_api.GqlPoolAprItemType;
|
|
450
|
-
id: string;
|
|
451
|
-
}>;
|
|
452
|
-
};
|
|
453
|
-
rewardVault?: {
|
|
454
|
-
__typename?: "GqlRewardVault";
|
|
455
|
-
isVaultWhitelisted: boolean;
|
|
456
|
-
vaultAddress: `0x${string}`;
|
|
457
|
-
stakingTokenAddress: `0x${string}`;
|
|
458
|
-
dynamicData?: {
|
|
459
|
-
__typename?: "GqlRewardVaultDynamicData";
|
|
460
|
-
activeIncentivesValueUsd: string;
|
|
461
|
-
apr?: number | null;
|
|
462
|
-
rewardCapturePercentage: number;
|
|
463
|
-
} | null;
|
|
464
|
-
} | null;
|
|
465
|
-
} | {
|
|
466
|
-
__typename?: "GqlPoolWeighted";
|
|
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
|
-
createTime: number;
|
|
474
|
-
tokens: Array<{
|
|
475
|
-
__typename?: "GqlPoolTokenDetail";
|
|
476
|
-
index: number;
|
|
477
|
-
address: `0x${string}`;
|
|
478
|
-
symbol: string;
|
|
479
|
-
name: string;
|
|
480
|
-
decimals: number;
|
|
481
|
-
weight?: string | null;
|
|
482
|
-
balance: string;
|
|
483
|
-
balanceUSD: string;
|
|
484
|
-
}>;
|
|
485
|
-
dynamicData: {
|
|
486
|
-
__typename?: "GqlPoolDynamicData";
|
|
487
|
-
totalShares: string;
|
|
488
|
-
fees24h: string;
|
|
489
|
-
volume24h: string;
|
|
490
|
-
swapFee: string;
|
|
491
|
-
isInRecoveryMode: boolean;
|
|
492
|
-
isPaused: boolean;
|
|
493
|
-
totalLiquidity: string;
|
|
494
|
-
aprItems: Array<{
|
|
495
|
-
__typename?: "GqlPoolAprItem";
|
|
496
|
-
apr: number;
|
|
497
|
-
type: _berachain_graphql_dex_api.GqlPoolAprItemType;
|
|
498
|
-
id: string;
|
|
499
|
-
}>;
|
|
500
|
-
};
|
|
501
|
-
rewardVault?: {
|
|
502
|
-
__typename?: "GqlRewardVault";
|
|
503
|
-
isVaultWhitelisted: boolean;
|
|
504
|
-
vaultAddress: `0x${string}`;
|
|
505
|
-
stakingTokenAddress: `0x${string}`;
|
|
506
|
-
dynamicData?: {
|
|
507
|
-
__typename?: "GqlRewardVaultDynamicData";
|
|
508
|
-
activeIncentivesValueUsd: string;
|
|
509
|
-
apr?: number | null;
|
|
510
|
-
rewardCapturePercentage: number;
|
|
511
|
-
} | null;
|
|
512
|
-
} | null;
|
|
513
|
-
}>;
|
|
514
|
-
|
|
515
|
-
declare function getGlobalLiquidityAndSwapVolume(args?: BeraJS.BaseFunctionArgs): Promise<GetGlobalLiquidityAndSwapVolumeQuery>;
|
|
516
|
-
|
|
517
|
-
declare function getPoolEvents({ poolId, typeInArray, ...args }: {
|
|
518
|
-
poolId: string;
|
|
519
|
-
typeInArray: GqlPoolEventType[];
|
|
520
|
-
} & BeraJS.BaseFunctionArgs): Promise<GetPoolEventsQuery>;
|
|
521
|
-
|
|
522
|
-
/** @deprecated */
|
|
523
|
-
type PoolDayData = {
|
|
524
|
-
date: number;
|
|
525
|
-
tvlUsd: string;
|
|
526
|
-
volumeUsd: string;
|
|
527
|
-
feesUsd: string;
|
|
528
|
-
};
|
|
529
|
-
interface GetPoolHistoricalDataProps {
|
|
530
|
-
poolId: string;
|
|
531
|
-
chain: GqlChain;
|
|
532
|
-
}
|
|
533
|
-
declare function getPoolHistoricalData({ poolId, chain, ...args }: GetPoolHistoricalDataProps & BeraJS.BaseFunctionArgs): Promise<PoolHistoricalDataFragment[] | undefined>;
|
|
534
|
-
|
|
535
|
-
declare const getPoolState: (apiPool: MinimalPoolFragment) => PoolState;
|
|
536
|
-
|
|
537
|
-
declare function getVaultPausedState({ publicClient, ...args }: BeraJS.BaseFunctionArgs & {
|
|
538
|
-
publicClient: PublicClient;
|
|
539
|
-
}): Promise<boolean>;
|
|
540
|
-
|
|
541
1
|
/**
|
|
542
|
-
*
|
|
543
|
-
*
|
|
544
|
-
*
|
|
545
|
-
*
|
|
546
|
-
*
|
|
547
|
-
|
|
548
|
-
*
|
|
549
|
-
*
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
*
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
*
|
|
564
|
-
*
|
|
565
|
-
*
|
|
566
|
-
*
|
|
567
|
-
*
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
*
|
|
581
|
-
*
|
|
582
|
-
*
|
|
583
|
-
*
|
|
584
|
-
*
|
|
585
|
-
*
|
|
586
|
-
*
|
|
587
|
-
*
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
*
|
|
593
|
-
*
|
|
594
|
-
*
|
|
595
|
-
*
|
|
596
|
-
*
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
*
|
|
616
|
-
*
|
|
617
|
-
*
|
|
618
|
-
*
|
|
619
|
-
*
|
|
620
|
-
*
|
|
621
|
-
*
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
*
|
|
630
|
-
*
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
*
|
|
638
|
-
*
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
pythOracle: Address;
|
|
643
|
-
}): Promise<`0x${string}`>;
|
|
644
|
-
|
|
645
|
-
/**
|
|
646
|
-
* Gets the address of the Honey Root Price Oracle, which keeps the logic to price the collaterals
|
|
647
|
-
*/
|
|
648
|
-
declare function getHoneyRootPriceOracle({ publicClient, factory, ...args }: BeraJS.BaseFunctionArgs & {
|
|
649
|
-
publicClient: PublicClient;
|
|
650
|
-
factory?: Address;
|
|
651
|
-
}): Promise<Address>;
|
|
652
|
-
|
|
653
|
-
type HoneyTxn = HoneyTransactionsLatestResponse[number];
|
|
654
|
-
/** beep's transaction type discriminator (`"MINT" | "REDEEM"`). */
|
|
655
|
-
type HoneyTxnType = HoneyTxn["type"];
|
|
656
|
-
interface GetHoneyTxnsArgs {
|
|
657
|
-
/** Zero-based page index (the page size is applied internally). */
|
|
658
|
-
index: number;
|
|
659
|
-
/** Page size. */
|
|
660
|
-
limit: number;
|
|
661
|
-
/** Optional MINT/REDEEM filter; omit for all transactions. */
|
|
662
|
-
txnType?: HoneyTxnType;
|
|
663
|
-
}
|
|
664
|
-
/**
|
|
665
|
-
* Browser-only. Returns a page of honey transactions in the `beep` response
|
|
666
|
-
* shape (`HoneyTransactionsLatestResponse`) the transactions table consumes.
|
|
667
|
-
*
|
|
668
|
-
* Reads from the `beep` backend (`fetchBeep`) when configured, falling back to
|
|
669
|
-
* the legacy honey subgraph proxied through `/api/honey/txns` (whose GraphQL
|
|
670
|
-
* result is adapted into the beep shape) otherwise.
|
|
671
|
-
*/
|
|
672
|
-
declare function getHoneyTxns({ index, limit, txnType, }: GetHoneyTxnsArgs): Promise<HoneyTransactionsLatestResponse>;
|
|
673
|
-
|
|
674
|
-
interface GetRelativeCapLimitArgs extends BeraJS.BaseFunctionArgs {
|
|
675
|
-
client: PublicClient;
|
|
676
|
-
asset: Address;
|
|
677
|
-
amount: string;
|
|
678
|
-
isMint: boolean;
|
|
679
|
-
referenceCollateral: TokenWithOrder;
|
|
680
|
-
}
|
|
681
|
-
/**
|
|
682
|
-
* Get the relative cap limit for a given asset.
|
|
683
|
-
*
|
|
684
|
-
* @param {Object} args - The arguments object.
|
|
685
|
-
* @param {PublicClient} args.client - The client used to interact with the blockchain.
|
|
686
|
-
* @param {Address} args.asset - The address of the asset to get the relative cap limit for.
|
|
687
|
-
* @param {string} args.amount - The amount of the asset to get the relative cap limit for.
|
|
688
|
-
* @param {boolean} args.isMint - Whether the transaction is a mint or a redeem.
|
|
689
|
-
*
|
|
690
|
-
* @returns {Promise<boolean | undefined>} If the asset is relatively capped.
|
|
691
|
-
*/
|
|
692
|
-
declare function getRelativeCapLimit({ client, asset, amount, isMint, referenceCollateral, ...args }: GetRelativeCapLimitArgs): Promise<boolean | undefined>;
|
|
693
|
-
|
|
694
|
-
interface GetSwapPayloadReturn {
|
|
695
|
-
address: Address;
|
|
696
|
-
abi: Abi;
|
|
697
|
-
functionName: "mint" | "redeem";
|
|
698
|
-
params: ContractFunctionArgs<typeof honeyFactoryPythWrapperAbi, "payable", "mint" | "redeem"> | ContractFunctionArgs<typeof honeyFactoryAbi, "nonpayable", "mint" | "redeem">;
|
|
699
|
-
value: bigint;
|
|
700
|
-
}
|
|
701
|
-
declare const getSwapPayload: ({ state, publicClient, priceFeedMap, collateralList, isPythWrapperEnabled, ...args }: BeraJS.BaseFunctionArgs & {
|
|
702
|
-
state: Pick<IHoneySwapState, "actionType" | "fromAmount" | "collaterals" | "isBasketModeEnabled">;
|
|
703
|
-
collateralList: TokenWithMetadata[];
|
|
704
|
-
publicClient: PublicClient | undefined;
|
|
705
|
-
priceFeedMap?: PythPriceFeedMap;
|
|
706
|
-
isPythWrapperEnabled: boolean;
|
|
707
|
-
}) => Promise<({ account }: {
|
|
708
|
-
account: Address;
|
|
709
|
-
}) => GetSwapPayloadReturn>;
|
|
710
|
-
|
|
711
|
-
declare function isBasketModeEnabled({ client, isMint, collateralList, latestPrices, isPythWrapperEnabled, ...args }: {
|
|
712
|
-
client: PublicClient;
|
|
713
|
-
isMint: boolean;
|
|
714
|
-
collateralList: Token[];
|
|
715
|
-
latestPrices: PythLatestUpdates | undefined;
|
|
716
|
-
isPythWrapperEnabled: boolean;
|
|
717
|
-
} & BeraJS.BaseFunctionArgs): Promise<boolean | undefined>;
|
|
718
|
-
|
|
719
|
-
/**
|
|
720
|
-
* Gets the timestamp of a block or an estimated timestamp if the block is in the future.
|
|
721
|
-
* @returns
|
|
722
|
-
*/
|
|
723
|
-
declare function getBlockTimestamp({ block, currentBlock, blockTime, publicClient, }: {
|
|
724
|
-
block: number | bigint | string;
|
|
725
|
-
currentBlock: number | bigint | string;
|
|
726
|
-
blockTime: number;
|
|
727
|
-
publicClient: PublicClient;
|
|
728
|
-
}): Promise<{
|
|
729
|
-
timestamp: number;
|
|
730
|
-
}>;
|
|
731
|
-
|
|
732
|
-
/**
|
|
733
|
-
* Server-side function to fetch the incentives the bot autoclaimed on behalf
|
|
734
|
-
* of a wallet during the BGT → BERA cutover. Only valid to call once the
|
|
735
|
-
* bgtIncentiveDistributor contract is paused.
|
|
736
|
-
*
|
|
737
|
-
* Returns `null` on 404 — the endpoint 404s when the bot has not yet processed
|
|
738
|
-
* the wallet, which is a normal "no data yet" state rather than an error.
|
|
739
|
-
*/
|
|
740
|
-
declare function getAutoclaimedIncentives({ account, ...args }: {
|
|
741
|
-
account: Address;
|
|
742
|
-
} & BeraJS.BaseFunctionArgs): Promise<AutoclaimedIncentivesResponse | null>;
|
|
743
|
-
|
|
744
|
-
/**
|
|
745
|
-
* Companion to `getAutoclaimedIncentives` that fetches the on-chain tx hash
|
|
746
|
-
* for each autoclaimed token. Same nested shape as `/autoclaimed`, but each
|
|
747
|
-
* token leaf is `{ txhash }` where the hash may be absent or empty while the
|
|
748
|
-
* bot is still in flight.
|
|
749
|
-
*
|
|
750
|
-
* Returns `null` on 404 (bot has not run yet for this wallet).
|
|
751
|
-
*/
|
|
752
|
-
declare function getAutoclaimedIncentivesTxHash({ account, ...args }: {
|
|
753
|
-
account: Address;
|
|
754
|
-
} & BeraJS.BaseFunctionArgs): Promise<AutoclaimedIncentivesTxHashResponse | null>;
|
|
755
|
-
|
|
756
|
-
type GetBeraTokenTotalSupplyArgs = BeraJS.BaseFunctionArgs;
|
|
757
|
-
/**
|
|
758
|
-
* Fetches the native BERA total supply (in whole BERA units) from the
|
|
759
|
-
* Berachain supply-monitor service.
|
|
760
|
-
*/
|
|
761
|
-
declare function getBeraTokenTotalSupply(args?: GetBeraTokenTotalSupplyArgs): Promise<string>;
|
|
762
|
-
|
|
763
|
-
/**
|
|
764
|
-
* Reads `paused()` on the BGT incentive distributor. Used to gate the
|
|
765
|
-
* autoclaim banner — when `true`, users can no longer self-claim and the
|
|
766
|
-
* bot is responsible for distributing incentives on their behalf.
|
|
767
|
-
*/
|
|
768
|
-
declare function getBgtIncentiveDistributorPaused({ publicClient, ...args }: {
|
|
769
|
-
publicClient: PublicClient | undefined;
|
|
770
|
-
} & BeraJS.BaseFunctionArgs): Promise<boolean>;
|
|
771
|
-
|
|
772
|
-
declare function getBlockTime({ defaultBlockTime, publicClient, blocksSpan, ...args }: {
|
|
773
|
-
defaultBlockTime?: number;
|
|
774
|
-
blocksSpan?: number;
|
|
775
|
-
publicClient: PublicClient | undefined;
|
|
776
|
-
} & BeraJS.BaseFunctionArgs): Promise<number>;
|
|
777
|
-
|
|
778
|
-
type GetEarnedStakedBeraVaultArgs = {
|
|
779
|
-
/**
|
|
780
|
-
* The token that the user has staked
|
|
781
|
-
*/
|
|
782
|
-
address: Address;
|
|
783
|
-
/**
|
|
784
|
-
* The account that the user has staked
|
|
785
|
-
*/
|
|
786
|
-
account: Address;
|
|
787
|
-
};
|
|
788
|
-
declare function getEarnedStakedBeraVault({ address, account, ...args }: BeraJS.BaseFunctionArgs & GetEarnedStakedBeraVaultArgs): Promise<{
|
|
789
|
-
currentDepositRate: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
|
|
790
|
-
earningsTotal: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
|
|
791
|
-
earningsRealized: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
|
|
792
|
-
earningsUnrealized: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
|
|
793
|
-
shareLots: {
|
|
794
|
-
shares: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
|
|
795
|
-
depositRate: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
|
|
796
|
-
}[];
|
|
797
|
-
sortedEvents: ({
|
|
798
|
-
_height: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
|
|
799
|
-
_log_index: number;
|
|
800
|
-
assets: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
|
|
801
|
-
shares: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
|
|
802
|
-
_type: "deposit" | "withdrawal";
|
|
803
|
-
sender: string;
|
|
804
|
-
owner: string;
|
|
805
|
-
total_assets: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
|
|
806
|
-
} | {
|
|
807
|
-
_height: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
|
|
808
|
-
_log_index: number;
|
|
809
|
-
assets: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
|
|
810
|
-
shares: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
|
|
811
|
-
_type: "transfer";
|
|
812
|
-
from: string;
|
|
813
|
-
to: string;
|
|
814
|
-
value: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
|
|
815
|
-
})[];
|
|
816
|
-
}>;
|
|
817
|
-
|
|
818
|
-
interface HeroEarnVaults {
|
|
819
|
-
/**
|
|
820
|
-
* Top-APR PoL reward vaults, ordered by APR descending. Callers typically
|
|
821
|
-
* read `[0]` for the "Earn with PoL" hero subtitle. `bestAprExcludedAddresses`
|
|
822
|
-
* lets callers filter out non-incentivized earn actions whose APR figures
|
|
823
|
-
* would otherwise dominate the listing and mislead users.
|
|
824
|
-
*/
|
|
825
|
-
bestApr: ApiVaultFragment[];
|
|
826
|
-
/**
|
|
827
|
-
* Highest-APR PoL reward vault among vaults whose protocol is "bend".
|
|
828
|
-
* Its `stakingToken.address` is a Bend vault share token — match it back
|
|
829
|
-
* against `bendVaults` to combine the PoL reward APR with the underlying
|
|
830
|
-
* Bend native supply APY.
|
|
831
|
-
*/
|
|
832
|
-
bendRewardVault: ApiVaultFragment[];
|
|
833
|
-
/**
|
|
834
|
-
* Minimal Bend native vault data (address + `totalApy`) used to look up the
|
|
835
|
-
* underlying Bend supply APY for whichever Bend vault `bendRewardVault`
|
|
836
|
-
* resolves to.
|
|
837
|
-
*/
|
|
838
|
-
bendVaults: GetHeroEarnVaultsQuery["bendVaults"];
|
|
839
|
-
}
|
|
840
|
-
/**
|
|
841
|
-
* Batched fetch for the hub home page hero cards. Issues a single GraphQL
|
|
842
|
-
* request to the BEX API that returns:
|
|
843
|
-
* - the top-APR PoL reward vaults (for the "Earn with PoL" card)
|
|
844
|
-
* - the highest-APR Bend-protocol PoL reward vault (for the "Lend" card)
|
|
845
|
-
* - minimal Bend native vault data, so callers can add the Bend supply APY
|
|
846
|
-
* on top of the PoL reward APR when displaying the combined Lend APY
|
|
847
|
-
*/
|
|
848
|
-
declare function getHeroEarnVaults({ bestAprExcludedAddresses, ...args }?: {
|
|
849
|
-
bestAprExcludedAddresses?: string[];
|
|
850
|
-
} & BeraJS.BaseFunctionArgs): Promise<HeroEarnVaults>;
|
|
851
|
-
|
|
852
|
-
type IncentiveFeeClaimStats = {
|
|
853
|
-
sumAllClaims: number;
|
|
854
|
-
sumClaimsInLast24Hours: number;
|
|
855
|
-
};
|
|
856
|
-
/** Browser-only. Hits `/api/pol/incentive-fee-claims` (server computes totals). */
|
|
857
|
-
declare function getIncentiveFeeClaimStats(): Promise<IncentiveFeeClaimStats>;
|
|
858
|
-
|
|
859
|
-
type GetLSTStakeConfigArgs = {
|
|
860
|
-
tokenList: TokenWithMetadata[];
|
|
861
|
-
publicClient?: PublicClient;
|
|
862
|
-
lstStakingVaults: Address[];
|
|
863
|
-
} & BeraJS.BaseFunctionArgs;
|
|
864
|
-
/**
|
|
865
|
-
* Builds staking configs from on-chain LST vaults and optional native configs.
|
|
866
|
-
*/
|
|
867
|
-
declare function getLSTStakeConfig({ tokenList, publicClient, lstStakingVaults, ...args }: GetLSTStakeConfigArgs): Promise<StakingConfig[]>;
|
|
868
|
-
|
|
869
|
-
declare function getRewardProofsByValidator({ account, validator, page, perPage, ...args }: {
|
|
870
|
-
account: Address;
|
|
871
|
-
validator: Address;
|
|
872
|
-
page?: number;
|
|
873
|
-
perPage?: number;
|
|
874
|
-
} & BeraJS.BaseFunctionArgs): Promise<BribeBoostRewardProof>;
|
|
875
|
-
|
|
876
|
-
/**
|
|
877
|
-
*
|
|
878
|
-
* @param address - The address of the vault
|
|
879
|
-
* @throws {Error} If the vault is not found
|
|
880
|
-
* @returns
|
|
881
|
-
*/
|
|
882
|
-
declare function getRewardTokenToBeraRate({ address, publicClient, }: {
|
|
883
|
-
address: Address;
|
|
884
|
-
publicClient?: PublicClient;
|
|
885
|
-
}): Promise<number>;
|
|
886
|
-
|
|
887
|
-
/**
|
|
888
|
-
*
|
|
889
|
-
* @param address - The address of the vault
|
|
890
|
-
* @throws {Error} If the vault is not found
|
|
891
|
-
* @returns
|
|
892
|
-
*/
|
|
893
|
-
declare function getRewardVault({ address, chainName, ...args }: {
|
|
894
|
-
address: Address;
|
|
895
|
-
chainName?: GqlChain$1;
|
|
896
|
-
} & BeraJS.BaseFunctionArgs): Promise<ApiVaultFragment>;
|
|
897
|
-
|
|
898
|
-
interface RewardVaultDurationConstants {
|
|
899
|
-
minRewardDuration: number;
|
|
900
|
-
maxRewardDuration: number;
|
|
901
|
-
}
|
|
902
|
-
/**
|
|
903
|
-
* Returns the minimum and maximum reward duration constants for all reward vaults.
|
|
904
|
-
*/
|
|
905
|
-
declare function getRewardVaultDurationConstants({ publicClient, ...baseArgs }: BeraJS.BaseFunctionArgs & {
|
|
906
|
-
publicClient: PublicClient;
|
|
907
|
-
}): Promise<RewardVaultDurationConstants>;
|
|
908
|
-
|
|
909
|
-
declare function getRewardVaultFromToken({ tokenAddress, publicClient, factoryAddress, ...args }: {
|
|
910
|
-
tokenAddress: Address;
|
|
911
|
-
publicClient: PublicClient;
|
|
912
|
-
factoryAddress?: Address;
|
|
913
|
-
} & BeraJS.BaseFunctionArgs): Promise<`0x${string}` | null>;
|
|
914
|
-
|
|
915
|
-
declare function getRewardVaultStakingToken({ address, publicClient, }: {
|
|
916
|
-
address: Address;
|
|
917
|
-
publicClient: NonNullable<PublicClient>;
|
|
918
|
-
}): Promise<`0x${string}`>;
|
|
919
|
-
|
|
920
|
-
/**
|
|
921
|
-
*
|
|
922
|
-
* @throws {Error} If the vault is not found
|
|
923
|
-
* @returns
|
|
924
|
-
*/
|
|
925
|
-
declare function getStakedBeraAPR({ window, ...args }: {
|
|
926
|
-
/**
|
|
927
|
-
* APR might vary depending on the annualized time window (day or week)
|
|
928
|
-
*/
|
|
929
|
-
window: "DAY" | "WEEK";
|
|
930
|
-
} & BeraJS.BaseFunctionArgs): Promise<number>;
|
|
931
|
-
|
|
932
|
-
type GetStakedBeraSnapshotsArgs = {
|
|
933
|
-
chain?: GqlChain$1;
|
|
934
|
-
range?: GqlVaultSnapshotDataRange;
|
|
935
|
-
} & BeraJS.BaseFunctionArgs;
|
|
936
|
-
/**
|
|
937
|
-
*
|
|
938
|
-
* @throws {Error} If the vault is not found
|
|
939
|
-
* @returns
|
|
940
|
-
*/
|
|
941
|
-
declare function getStakedBeraSnapshots({ chain, range, ...args }?: GetStakedBeraSnapshotsArgs): Promise<GetSWberaVaultSnapshotsQuery["polGetSWberaVaultSnapshots"]>;
|
|
942
|
-
|
|
943
|
-
declare function getStakeWithdrawalCooldown({ publicClient, address, }: {
|
|
944
|
-
publicClient: PublicClient;
|
|
945
|
-
address: Address;
|
|
946
|
-
}): Promise<number>;
|
|
947
|
-
|
|
948
|
-
/**
|
|
949
|
-
* Get the total staked amount for a given vault address
|
|
950
|
-
* @param vaultAddresses - The addresses of the vaults to get the total staked amount for
|
|
951
|
-
* @param publicClient - The public client to use to get the total staked amount
|
|
952
|
-
* @returns The total staked amount for the given vault addresses
|
|
953
|
-
*/
|
|
954
|
-
declare function getTotalStakedAmount({ vaultAddresses, publicClient, }: {
|
|
955
|
-
vaultAddresses: Address$1[];
|
|
956
|
-
publicClient?: PublicClient;
|
|
957
|
-
} & BeraJS.BaseFunctionArgs): Promise<Record<Address$1, bigint>>;
|
|
958
|
-
|
|
959
|
-
/**
|
|
960
|
-
* Server-side function to get user claimable incentives grouped by validator
|
|
961
|
-
*/
|
|
962
|
-
declare function getUserClaimableIncentives({ account, ...args }: {
|
|
963
|
-
account: Address;
|
|
964
|
-
} & BeraJS.BaseFunctionArgs): Promise<BribeBoostRewardItem[] | null>;
|
|
965
|
-
|
|
966
|
-
interface GetUserVaultInfoParams {
|
|
967
|
-
account: Address;
|
|
968
|
-
vaultAddress: Address;
|
|
969
|
-
publicClient: PublicClient | undefined;
|
|
970
|
-
}
|
|
971
|
-
declare function getUserVaultInfo({ account, vaultAddress, publicClient, }: GetUserVaultInfoParams): Promise<UserVaultInfo>;
|
|
972
|
-
|
|
973
|
-
interface GetUserVaultsInfo {
|
|
974
|
-
account: string | undefined;
|
|
975
|
-
vaultAddress: Address;
|
|
976
|
-
publicClient: PublicClient | undefined;
|
|
977
|
-
}
|
|
978
|
-
/**
|
|
979
|
-
* Gets claimable rewards for a user's vault.
|
|
980
|
-
*
|
|
981
|
-
* It can also be used to get the claimable fees from the BGT staker
|
|
982
|
-
* @returns
|
|
983
|
-
*/
|
|
984
|
-
declare function getUserVaultsReward({ account, vaultAddress, publicClient, }: GetUserVaultsInfo): Promise<bigint>;
|
|
985
|
-
|
|
986
|
-
declare function getVaultValidators({ address, onlyActiveValidators, ...args }: {
|
|
987
|
-
address: Address;
|
|
988
|
-
onlyActiveValidators?: boolean;
|
|
989
|
-
} & BeraJS.BaseFunctionArgs): Promise<ApiValidatorFragment[]>;
|
|
990
|
-
|
|
991
|
-
declare function getTokenCurrentPrices({ addressIn: _addressIn, ...args }: {
|
|
992
|
-
addressIn: string[];
|
|
993
|
-
} & BeraJS.BaseFunctionArgs): Promise<TokenCurrentPriceMap>;
|
|
994
|
-
|
|
995
|
-
/**
|
|
996
|
-
* Given a list of tokens, it will return the price feed ids for each token according to honey priceOracle
|
|
997
|
-
* @returns
|
|
998
|
-
*/
|
|
999
|
-
declare function getHoneyPythFeeds({ tokenList, publicClient, ...args }: {
|
|
1000
|
-
tokenList: readonly Address$1[];
|
|
1001
|
-
publicClient: PublicClient;
|
|
1002
|
-
} & BeraJS.BaseFunctionArgs): Promise<PythPriceFeedMap>;
|
|
1003
|
-
|
|
1004
|
-
declare function getPythUpdateFee({ client, priceFeedId, ...args }: {
|
|
1005
|
-
client: PublicClient;
|
|
1006
|
-
priceFeedId: Address[];
|
|
1007
|
-
} & BeraJS.BaseFunctionArgs): Promise<bigint>;
|
|
1008
|
-
|
|
1009
|
-
interface GetAllowances {
|
|
1010
|
-
items: AllowanceQueryItem[] | undefined;
|
|
1011
|
-
account: `0x${string}` | undefined;
|
|
1012
|
-
config: Config | undefined;
|
|
1013
|
-
}
|
|
1014
|
-
type GetAllowancesResponse = AllowanceToken[] | undefined;
|
|
1015
|
-
declare function getAllowances({ items: itemsList, account, config, }: GetAllowances): Promise<GetAllowancesResponse>;
|
|
1016
|
-
|
|
1017
|
-
interface GetTokenInformation {
|
|
1018
|
-
address: Address;
|
|
1019
|
-
publicClient: PublicClient;
|
|
1020
|
-
chainId: ChainId;
|
|
1021
|
-
}
|
|
1022
|
-
type GetTokenInformationResponse = MinimalERC20;
|
|
1023
|
-
declare function getTokenInformation({ address, publicClient, chainId, }: GetTokenInformation): Promise<GetTokenInformationResponse>;
|
|
1024
|
-
|
|
1025
|
-
declare function getTokens({ url, ...args }?: BeraJS.BaseFunctionArgs & {
|
|
1026
|
-
url?: string;
|
|
1027
|
-
}): Promise<TokenWithMetadata[]>;
|
|
1028
|
-
|
|
1029
|
-
interface GetWalletBalances {
|
|
1030
|
-
account: string | undefined;
|
|
1031
|
-
tokenList: Token[] | undefined;
|
|
1032
|
-
wagmiConfig: Config | undefined;
|
|
1033
|
-
}
|
|
1034
|
-
/**
|
|
1035
|
-
* Returns the payload for the balanceOf call for a given token and account.
|
|
1036
|
-
*
|
|
1037
|
-
* @internal
|
|
1038
|
-
* @returns
|
|
1039
|
-
*/
|
|
1040
|
-
declare function getBalanceCall({ token, account, multicallAddress, }: {
|
|
1041
|
-
token: Token;
|
|
1042
|
-
account: Address;
|
|
1043
|
-
multicallAddress: Address;
|
|
1044
|
-
}): {
|
|
1045
|
-
readonly address: `0x${string}`;
|
|
1046
|
-
readonly abi: readonly [{
|
|
1047
|
-
readonly inputs: readonly [{
|
|
1048
|
-
readonly components: readonly [{
|
|
1049
|
-
readonly internalType: "address";
|
|
1050
|
-
readonly name: "target";
|
|
1051
|
-
readonly type: "address";
|
|
1052
|
-
}, {
|
|
1053
|
-
readonly internalType: "bytes";
|
|
1054
|
-
readonly name: "callData";
|
|
1055
|
-
readonly type: "bytes";
|
|
1056
|
-
}];
|
|
1057
|
-
readonly internalType: "struct Multicall3.Call[]";
|
|
1058
|
-
readonly name: "calls";
|
|
1059
|
-
readonly type: "tuple[]";
|
|
1060
|
-
}];
|
|
1061
|
-
readonly name: "aggregate";
|
|
1062
|
-
readonly outputs: readonly [{
|
|
1063
|
-
readonly internalType: "uint256";
|
|
1064
|
-
readonly name: "blockNumber";
|
|
1065
|
-
readonly type: "uint256";
|
|
1066
|
-
}, {
|
|
1067
|
-
readonly internalType: "bytes[]";
|
|
1068
|
-
readonly name: "returnData";
|
|
1069
|
-
readonly type: "bytes[]";
|
|
1070
|
-
}];
|
|
1071
|
-
readonly stateMutability: "payable";
|
|
1072
|
-
readonly type: "function";
|
|
1073
|
-
}, {
|
|
1074
|
-
readonly inputs: readonly [{
|
|
1075
|
-
readonly components: readonly [{
|
|
1076
|
-
readonly internalType: "address";
|
|
1077
|
-
readonly name: "target";
|
|
1078
|
-
readonly type: "address";
|
|
1079
|
-
}, {
|
|
1080
|
-
readonly internalType: "bool";
|
|
1081
|
-
readonly name: "allowFailure";
|
|
1082
|
-
readonly type: "bool";
|
|
1083
|
-
}, {
|
|
1084
|
-
readonly internalType: "bytes";
|
|
1085
|
-
readonly name: "callData";
|
|
1086
|
-
readonly type: "bytes";
|
|
1087
|
-
}];
|
|
1088
|
-
readonly internalType: "struct Multicall3.Call3[]";
|
|
1089
|
-
readonly name: "calls";
|
|
1090
|
-
readonly type: "tuple[]";
|
|
1091
|
-
}];
|
|
1092
|
-
readonly name: "aggregate3";
|
|
1093
|
-
readonly outputs: readonly [{
|
|
1094
|
-
readonly components: readonly [{
|
|
1095
|
-
readonly internalType: "bool";
|
|
1096
|
-
readonly name: "success";
|
|
1097
|
-
readonly type: "bool";
|
|
1098
|
-
}, {
|
|
1099
|
-
readonly internalType: "bytes";
|
|
1100
|
-
readonly name: "returnData";
|
|
1101
|
-
readonly type: "bytes";
|
|
1102
|
-
}];
|
|
1103
|
-
readonly internalType: "struct Multicall3.Result[]";
|
|
1104
|
-
readonly name: "returnData";
|
|
1105
|
-
readonly type: "tuple[]";
|
|
1106
|
-
}];
|
|
1107
|
-
readonly stateMutability: "payable";
|
|
1108
|
-
readonly type: "function";
|
|
1109
|
-
}, {
|
|
1110
|
-
readonly inputs: readonly [{
|
|
1111
|
-
readonly components: readonly [{
|
|
1112
|
-
readonly internalType: "address";
|
|
1113
|
-
readonly name: "target";
|
|
1114
|
-
readonly type: "address";
|
|
1115
|
-
}, {
|
|
1116
|
-
readonly internalType: "bool";
|
|
1117
|
-
readonly name: "allowFailure";
|
|
1118
|
-
readonly type: "bool";
|
|
1119
|
-
}, {
|
|
1120
|
-
readonly internalType: "uint256";
|
|
1121
|
-
readonly name: "value";
|
|
1122
|
-
readonly type: "uint256";
|
|
1123
|
-
}, {
|
|
1124
|
-
readonly internalType: "bytes";
|
|
1125
|
-
readonly name: "callData";
|
|
1126
|
-
readonly type: "bytes";
|
|
1127
|
-
}];
|
|
1128
|
-
readonly internalType: "struct Multicall3.Call3Value[]";
|
|
1129
|
-
readonly name: "calls";
|
|
1130
|
-
readonly type: "tuple[]";
|
|
1131
|
-
}];
|
|
1132
|
-
readonly name: "aggregate3Value";
|
|
1133
|
-
readonly outputs: readonly [{
|
|
1134
|
-
readonly components: readonly [{
|
|
1135
|
-
readonly internalType: "bool";
|
|
1136
|
-
readonly name: "success";
|
|
1137
|
-
readonly type: "bool";
|
|
1138
|
-
}, {
|
|
1139
|
-
readonly internalType: "bytes";
|
|
1140
|
-
readonly name: "returnData";
|
|
1141
|
-
readonly type: "bytes";
|
|
1142
|
-
}];
|
|
1143
|
-
readonly internalType: "struct Multicall3.Result[]";
|
|
1144
|
-
readonly name: "returnData";
|
|
1145
|
-
readonly type: "tuple[]";
|
|
1146
|
-
}];
|
|
1147
|
-
readonly stateMutability: "payable";
|
|
1148
|
-
readonly type: "function";
|
|
1149
|
-
}, {
|
|
1150
|
-
readonly inputs: readonly [{
|
|
1151
|
-
readonly components: readonly [{
|
|
1152
|
-
readonly internalType: "address";
|
|
1153
|
-
readonly name: "target";
|
|
1154
|
-
readonly type: "address";
|
|
1155
|
-
}, {
|
|
1156
|
-
readonly internalType: "bytes";
|
|
1157
|
-
readonly name: "callData";
|
|
1158
|
-
readonly type: "bytes";
|
|
1159
|
-
}];
|
|
1160
|
-
readonly internalType: "struct Multicall3.Call[]";
|
|
1161
|
-
readonly name: "calls";
|
|
1162
|
-
readonly type: "tuple[]";
|
|
1163
|
-
}];
|
|
1164
|
-
readonly name: "blockAndAggregate";
|
|
1165
|
-
readonly outputs: readonly [{
|
|
1166
|
-
readonly internalType: "uint256";
|
|
1167
|
-
readonly name: "blockNumber";
|
|
1168
|
-
readonly type: "uint256";
|
|
1169
|
-
}, {
|
|
1170
|
-
readonly internalType: "bytes32";
|
|
1171
|
-
readonly name: "blockHash";
|
|
1172
|
-
readonly type: "bytes32";
|
|
1173
|
-
}, {
|
|
1174
|
-
readonly components: readonly [{
|
|
1175
|
-
readonly internalType: "bool";
|
|
1176
|
-
readonly name: "success";
|
|
1177
|
-
readonly type: "bool";
|
|
1178
|
-
}, {
|
|
1179
|
-
readonly internalType: "bytes";
|
|
1180
|
-
readonly name: "returnData";
|
|
1181
|
-
readonly type: "bytes";
|
|
1182
|
-
}];
|
|
1183
|
-
readonly internalType: "struct Multicall3.Result[]";
|
|
1184
|
-
readonly name: "returnData";
|
|
1185
|
-
readonly type: "tuple[]";
|
|
1186
|
-
}];
|
|
1187
|
-
readonly stateMutability: "payable";
|
|
1188
|
-
readonly type: "function";
|
|
1189
|
-
}, {
|
|
1190
|
-
readonly inputs: readonly [];
|
|
1191
|
-
readonly name: "getBasefee";
|
|
1192
|
-
readonly outputs: readonly [{
|
|
1193
|
-
readonly internalType: "uint256";
|
|
1194
|
-
readonly name: "basefee";
|
|
1195
|
-
readonly type: "uint256";
|
|
1196
|
-
}];
|
|
1197
|
-
readonly stateMutability: "view";
|
|
1198
|
-
readonly type: "function";
|
|
1199
|
-
}, {
|
|
1200
|
-
readonly inputs: readonly [{
|
|
1201
|
-
readonly internalType: "uint256";
|
|
1202
|
-
readonly name: "blockNumber";
|
|
1203
|
-
readonly type: "uint256";
|
|
1204
|
-
}];
|
|
1205
|
-
readonly name: "getBlockHash";
|
|
1206
|
-
readonly outputs: readonly [{
|
|
1207
|
-
readonly internalType: "bytes32";
|
|
1208
|
-
readonly name: "blockHash";
|
|
1209
|
-
readonly type: "bytes32";
|
|
1210
|
-
}];
|
|
1211
|
-
readonly stateMutability: "view";
|
|
1212
|
-
readonly type: "function";
|
|
1213
|
-
}, {
|
|
1214
|
-
readonly inputs: readonly [];
|
|
1215
|
-
readonly name: "getBlockNumber";
|
|
1216
|
-
readonly outputs: readonly [{
|
|
1217
|
-
readonly internalType: "uint256";
|
|
1218
|
-
readonly name: "blockNumber";
|
|
1219
|
-
readonly type: "uint256";
|
|
1220
|
-
}];
|
|
1221
|
-
readonly stateMutability: "view";
|
|
1222
|
-
readonly type: "function";
|
|
1223
|
-
}, {
|
|
1224
|
-
readonly inputs: readonly [];
|
|
1225
|
-
readonly name: "getChainId";
|
|
1226
|
-
readonly outputs: readonly [{
|
|
1227
|
-
readonly internalType: "uint256";
|
|
1228
|
-
readonly name: "chainid";
|
|
1229
|
-
readonly type: "uint256";
|
|
1230
|
-
}];
|
|
1231
|
-
readonly stateMutability: "view";
|
|
1232
|
-
readonly type: "function";
|
|
1233
|
-
}, {
|
|
1234
|
-
readonly inputs: readonly [];
|
|
1235
|
-
readonly name: "getCurrentBlockCoinbase";
|
|
1236
|
-
readonly outputs: readonly [{
|
|
1237
|
-
readonly internalType: "address";
|
|
1238
|
-
readonly name: "coinbase";
|
|
1239
|
-
readonly type: "address";
|
|
1240
|
-
}];
|
|
1241
|
-
readonly stateMutability: "view";
|
|
1242
|
-
readonly type: "function";
|
|
1243
|
-
}, {
|
|
1244
|
-
readonly inputs: readonly [];
|
|
1245
|
-
readonly name: "getCurrentBlockDifficulty";
|
|
1246
|
-
readonly outputs: readonly [{
|
|
1247
|
-
readonly internalType: "uint256";
|
|
1248
|
-
readonly name: "difficulty";
|
|
1249
|
-
readonly type: "uint256";
|
|
1250
|
-
}];
|
|
1251
|
-
readonly stateMutability: "view";
|
|
1252
|
-
readonly type: "function";
|
|
1253
|
-
}, {
|
|
1254
|
-
readonly inputs: readonly [];
|
|
1255
|
-
readonly name: "getCurrentBlockGasLimit";
|
|
1256
|
-
readonly outputs: readonly [{
|
|
1257
|
-
readonly internalType: "uint256";
|
|
1258
|
-
readonly name: "gaslimit";
|
|
1259
|
-
readonly type: "uint256";
|
|
1260
|
-
}];
|
|
1261
|
-
readonly stateMutability: "view";
|
|
1262
|
-
readonly type: "function";
|
|
1263
|
-
}, {
|
|
1264
|
-
readonly inputs: readonly [];
|
|
1265
|
-
readonly name: "getCurrentBlockTimestamp";
|
|
1266
|
-
readonly outputs: readonly [{
|
|
1267
|
-
readonly internalType: "uint256";
|
|
1268
|
-
readonly name: "timestamp";
|
|
1269
|
-
readonly type: "uint256";
|
|
1270
|
-
}];
|
|
1271
|
-
readonly stateMutability: "view";
|
|
1272
|
-
readonly type: "function";
|
|
1273
|
-
}, {
|
|
1274
|
-
readonly inputs: readonly [{
|
|
1275
|
-
readonly internalType: "address";
|
|
1276
|
-
readonly name: "addr";
|
|
1277
|
-
readonly type: "address";
|
|
1278
|
-
}];
|
|
1279
|
-
readonly name: "getEthBalance";
|
|
1280
|
-
readonly outputs: readonly [{
|
|
1281
|
-
readonly internalType: "uint256";
|
|
1282
|
-
readonly name: "balance";
|
|
1283
|
-
readonly type: "uint256";
|
|
1284
|
-
}];
|
|
1285
|
-
readonly stateMutability: "view";
|
|
1286
|
-
readonly type: "function";
|
|
1287
|
-
}, {
|
|
1288
|
-
readonly inputs: readonly [];
|
|
1289
|
-
readonly name: "getLastBlockHash";
|
|
1290
|
-
readonly outputs: readonly [{
|
|
1291
|
-
readonly internalType: "bytes32";
|
|
1292
|
-
readonly name: "blockHash";
|
|
1293
|
-
readonly type: "bytes32";
|
|
1294
|
-
}];
|
|
1295
|
-
readonly stateMutability: "view";
|
|
1296
|
-
readonly type: "function";
|
|
1297
|
-
}, {
|
|
1298
|
-
readonly inputs: readonly [{
|
|
1299
|
-
readonly internalType: "bool";
|
|
1300
|
-
readonly name: "requireSuccess";
|
|
1301
|
-
readonly type: "bool";
|
|
1302
|
-
}, {
|
|
1303
|
-
readonly components: readonly [{
|
|
1304
|
-
readonly internalType: "address";
|
|
1305
|
-
readonly name: "target";
|
|
1306
|
-
readonly type: "address";
|
|
1307
|
-
}, {
|
|
1308
|
-
readonly internalType: "bytes";
|
|
1309
|
-
readonly name: "callData";
|
|
1310
|
-
readonly type: "bytes";
|
|
1311
|
-
}];
|
|
1312
|
-
readonly internalType: "struct Multicall3.Call[]";
|
|
1313
|
-
readonly name: "calls";
|
|
1314
|
-
readonly type: "tuple[]";
|
|
1315
|
-
}];
|
|
1316
|
-
readonly name: "tryAggregate";
|
|
1317
|
-
readonly outputs: readonly [{
|
|
1318
|
-
readonly components: readonly [{
|
|
1319
|
-
readonly internalType: "bool";
|
|
1320
|
-
readonly name: "success";
|
|
1321
|
-
readonly type: "bool";
|
|
1322
|
-
}, {
|
|
1323
|
-
readonly internalType: "bytes";
|
|
1324
|
-
readonly name: "returnData";
|
|
1325
|
-
readonly type: "bytes";
|
|
1326
|
-
}];
|
|
1327
|
-
readonly internalType: "struct Multicall3.Result[]";
|
|
1328
|
-
readonly name: "returnData";
|
|
1329
|
-
readonly type: "tuple[]";
|
|
1330
|
-
}];
|
|
1331
|
-
readonly stateMutability: "payable";
|
|
1332
|
-
readonly type: "function";
|
|
1333
|
-
}, {
|
|
1334
|
-
readonly inputs: readonly [{
|
|
1335
|
-
readonly internalType: "bool";
|
|
1336
|
-
readonly name: "requireSuccess";
|
|
1337
|
-
readonly type: "bool";
|
|
1338
|
-
}, {
|
|
1339
|
-
readonly components: readonly [{
|
|
1340
|
-
readonly internalType: "address";
|
|
1341
|
-
readonly name: "target";
|
|
1342
|
-
readonly type: "address";
|
|
1343
|
-
}, {
|
|
1344
|
-
readonly internalType: "bytes";
|
|
1345
|
-
readonly name: "callData";
|
|
1346
|
-
readonly type: "bytes";
|
|
1347
|
-
}];
|
|
1348
|
-
readonly internalType: "struct Multicall3.Call[]";
|
|
1349
|
-
readonly name: "calls";
|
|
1350
|
-
readonly type: "tuple[]";
|
|
1351
|
-
}];
|
|
1352
|
-
readonly name: "tryBlockAndAggregate";
|
|
1353
|
-
readonly outputs: readonly [{
|
|
1354
|
-
readonly internalType: "uint256";
|
|
1355
|
-
readonly name: "blockNumber";
|
|
1356
|
-
readonly type: "uint256";
|
|
1357
|
-
}, {
|
|
1358
|
-
readonly internalType: "bytes32";
|
|
1359
|
-
readonly name: "blockHash";
|
|
1360
|
-
readonly type: "bytes32";
|
|
1361
|
-
}, {
|
|
1362
|
-
readonly components: readonly [{
|
|
1363
|
-
readonly internalType: "bool";
|
|
1364
|
-
readonly name: "success";
|
|
1365
|
-
readonly type: "bool";
|
|
1366
|
-
}, {
|
|
1367
|
-
readonly internalType: "bytes";
|
|
1368
|
-
readonly name: "returnData";
|
|
1369
|
-
readonly type: "bytes";
|
|
1370
|
-
}];
|
|
1371
|
-
readonly internalType: "struct Multicall3.Result[]";
|
|
1372
|
-
readonly name: "returnData";
|
|
1373
|
-
readonly type: "tuple[]";
|
|
1374
|
-
}];
|
|
1375
|
-
readonly stateMutability: "payable";
|
|
1376
|
-
readonly type: "function";
|
|
1377
|
-
}];
|
|
1378
|
-
readonly functionName: "getEthBalance";
|
|
1379
|
-
readonly args: readonly [`0x${string}`];
|
|
1380
|
-
} | {
|
|
1381
|
-
readonly address: Address;
|
|
1382
|
-
readonly abi: readonly [{
|
|
1383
|
-
readonly type: "event";
|
|
1384
|
-
readonly name: "Approval";
|
|
1385
|
-
readonly inputs: readonly [{
|
|
1386
|
-
readonly indexed: true;
|
|
1387
|
-
readonly name: "owner";
|
|
1388
|
-
readonly type: "address";
|
|
1389
|
-
}, {
|
|
1390
|
-
readonly indexed: true;
|
|
1391
|
-
readonly name: "spender";
|
|
1392
|
-
readonly type: "address";
|
|
1393
|
-
}, {
|
|
1394
|
-
readonly indexed: false;
|
|
1395
|
-
readonly name: "value";
|
|
1396
|
-
readonly type: "uint256";
|
|
1397
|
-
}];
|
|
1398
|
-
}, {
|
|
1399
|
-
readonly type: "event";
|
|
1400
|
-
readonly name: "Transfer";
|
|
1401
|
-
readonly inputs: readonly [{
|
|
1402
|
-
readonly indexed: true;
|
|
1403
|
-
readonly name: "from";
|
|
1404
|
-
readonly type: "address";
|
|
1405
|
-
}, {
|
|
1406
|
-
readonly indexed: true;
|
|
1407
|
-
readonly name: "to";
|
|
1408
|
-
readonly type: "address";
|
|
1409
|
-
}, {
|
|
1410
|
-
readonly indexed: false;
|
|
1411
|
-
readonly name: "value";
|
|
1412
|
-
readonly type: "uint256";
|
|
1413
|
-
}];
|
|
1414
|
-
}, {
|
|
1415
|
-
readonly type: "function";
|
|
1416
|
-
readonly name: "allowance";
|
|
1417
|
-
readonly stateMutability: "view";
|
|
1418
|
-
readonly inputs: readonly [{
|
|
1419
|
-
readonly name: "owner";
|
|
1420
|
-
readonly type: "address";
|
|
1421
|
-
}, {
|
|
1422
|
-
readonly name: "spender";
|
|
1423
|
-
readonly type: "address";
|
|
1424
|
-
}];
|
|
1425
|
-
readonly outputs: readonly [{
|
|
1426
|
-
readonly type: "uint256";
|
|
1427
|
-
}];
|
|
1428
|
-
}, {
|
|
1429
|
-
readonly type: "function";
|
|
1430
|
-
readonly name: "approve";
|
|
1431
|
-
readonly stateMutability: "nonpayable";
|
|
1432
|
-
readonly inputs: readonly [{
|
|
1433
|
-
readonly name: "spender";
|
|
1434
|
-
readonly type: "address";
|
|
1435
|
-
}, {
|
|
1436
|
-
readonly name: "amount";
|
|
1437
|
-
readonly type: "uint256";
|
|
1438
|
-
}];
|
|
1439
|
-
readonly outputs: readonly [{
|
|
1440
|
-
readonly type: "bool";
|
|
1441
|
-
}];
|
|
1442
|
-
}, {
|
|
1443
|
-
readonly type: "function";
|
|
1444
|
-
readonly name: "balanceOf";
|
|
1445
|
-
readonly stateMutability: "view";
|
|
1446
|
-
readonly inputs: readonly [{
|
|
1447
|
-
readonly name: "account";
|
|
1448
|
-
readonly type: "address";
|
|
1449
|
-
}];
|
|
1450
|
-
readonly outputs: readonly [{
|
|
1451
|
-
readonly type: "uint256";
|
|
1452
|
-
}];
|
|
1453
|
-
}, {
|
|
1454
|
-
readonly type: "function";
|
|
1455
|
-
readonly name: "decimals";
|
|
1456
|
-
readonly stateMutability: "view";
|
|
1457
|
-
readonly inputs: readonly [];
|
|
1458
|
-
readonly outputs: readonly [{
|
|
1459
|
-
readonly type: "uint8";
|
|
1460
|
-
}];
|
|
1461
|
-
}, {
|
|
1462
|
-
readonly type: "function";
|
|
1463
|
-
readonly name: "name";
|
|
1464
|
-
readonly stateMutability: "view";
|
|
1465
|
-
readonly inputs: readonly [];
|
|
1466
|
-
readonly outputs: readonly [{
|
|
1467
|
-
readonly type: "string";
|
|
1468
|
-
}];
|
|
1469
|
-
}, {
|
|
1470
|
-
readonly type: "function";
|
|
1471
|
-
readonly name: "symbol";
|
|
1472
|
-
readonly stateMutability: "view";
|
|
1473
|
-
readonly inputs: readonly [];
|
|
1474
|
-
readonly outputs: readonly [{
|
|
1475
|
-
readonly type: "string";
|
|
1476
|
-
}];
|
|
1477
|
-
}, {
|
|
1478
|
-
readonly type: "function";
|
|
1479
|
-
readonly name: "totalSupply";
|
|
1480
|
-
readonly stateMutability: "view";
|
|
1481
|
-
readonly inputs: readonly [];
|
|
1482
|
-
readonly outputs: readonly [{
|
|
1483
|
-
readonly type: "uint256";
|
|
1484
|
-
}];
|
|
1485
|
-
}, {
|
|
1486
|
-
readonly type: "function";
|
|
1487
|
-
readonly name: "transfer";
|
|
1488
|
-
readonly stateMutability: "nonpayable";
|
|
1489
|
-
readonly inputs: readonly [{
|
|
1490
|
-
readonly name: "recipient";
|
|
1491
|
-
readonly type: "address";
|
|
1492
|
-
}, {
|
|
1493
|
-
readonly name: "amount";
|
|
1494
|
-
readonly type: "uint256";
|
|
1495
|
-
}];
|
|
1496
|
-
readonly outputs: readonly [{
|
|
1497
|
-
readonly type: "bool";
|
|
1498
|
-
}];
|
|
1499
|
-
}, {
|
|
1500
|
-
readonly type: "function";
|
|
1501
|
-
readonly name: "transferFrom";
|
|
1502
|
-
readonly stateMutability: "nonpayable";
|
|
1503
|
-
readonly inputs: readonly [{
|
|
1504
|
-
readonly name: "sender";
|
|
1505
|
-
readonly type: "address";
|
|
1506
|
-
}, {
|
|
1507
|
-
readonly name: "recipient";
|
|
1508
|
-
readonly type: "address";
|
|
1509
|
-
}, {
|
|
1510
|
-
readonly name: "amount";
|
|
1511
|
-
readonly type: "uint256";
|
|
1512
|
-
}];
|
|
1513
|
-
readonly outputs: readonly [{
|
|
1514
|
-
readonly type: "bool";
|
|
1515
|
-
}];
|
|
1516
|
-
}];
|
|
1517
|
-
readonly functionName: "balanceOf";
|
|
1518
|
-
readonly args: readonly [`0x${string}`];
|
|
1519
|
-
};
|
|
1520
|
-
/**
|
|
1521
|
-
* fetch the balances of a given wallet address
|
|
1522
|
-
*/
|
|
1523
|
-
declare function getWalletBalances({ account, tokenList, wagmiConfig: config, }: GetWalletBalances): Promise<BalanceToken[] | undefined>;
|
|
1524
|
-
|
|
1525
|
-
declare function isImpersonateAccount(chainId?: number): boolean;
|
|
1526
|
-
declare function beraWriteContract<abi extends Abi | undefined = undefined, functionName extends abi extends Abi ? ContractFunctionName<abi> : never = abi extends Abi ? ContractFunctionName<abi> : never, params extends abi extends Abi ? ContractFunctionArgs<abi, "payable" | "nonpayable", functionName> : never = abi extends Abi ? ContractFunctionArgs<abi, "payable" | "nonpayable", functionName> : never>(args: IContractWrite<abi, functionName, params> & {
|
|
1527
|
-
enableSimulateCalls?: boolean;
|
|
1528
|
-
chainId?: number;
|
|
1529
|
-
impersonateAccount?: boolean;
|
|
1530
|
-
/**
|
|
1531
|
-
* The polling interval in milliseconds to fetch the on-chain transaction status
|
|
1532
|
-
* @default 1000 (1 second)
|
|
1533
|
-
*/
|
|
1534
|
-
pollingInterval?: number;
|
|
1535
|
-
/**
|
|
1536
|
-
* The timeout in milliseconds to wait for the transaction to be confirmed.
|
|
1537
|
-
* @default 120_000 (2 minutes)
|
|
1538
|
-
*/
|
|
1539
|
-
txConfirmationTimeout?: number;
|
|
1540
|
-
}): Promise<TransactionReceipt | WalletCallReceipt<bigint, "success" | "reverted"> | undefined>;
|
|
1541
|
-
|
|
1542
|
-
interface ActiveBoostAndCommissionChangeDelay {
|
|
1543
|
-
boostDelay: number;
|
|
1544
|
-
unboostDelay: number;
|
|
1545
|
-
commissionChangeDelay: number;
|
|
1546
|
-
rewardAllocationBlockDelay: number;
|
|
1547
|
-
maxWeightPerVault: number;
|
|
1548
|
-
maxNumWeightsPerRewardAllocation: number;
|
|
1549
|
-
/**
|
|
1550
|
-
* Percentage of the validator's commission rate that can be changed at once.
|
|
1551
|
-
*
|
|
1552
|
-
* @example 1 => 100%
|
|
1553
|
-
*/
|
|
1554
|
-
maxCommissionRate: number;
|
|
1555
|
-
/**
|
|
1556
|
-
* The number of blocks after which a reward allocation is considered stale and will fallback
|
|
1557
|
-
* to baseline reward allocation.
|
|
1558
|
-
*
|
|
1559
|
-
*/
|
|
1560
|
-
rewardAllocationInactivityBlockSpan: number;
|
|
1561
|
-
/**
|
|
1562
|
-
* The number of hours in advance to warn the operator that the reward allocation is expiring.
|
|
1563
|
-
*/
|
|
1564
|
-
ui: EdgeConfigSchema["pol"]["automatedRewardAllocation"];
|
|
1565
|
-
}
|
|
1566
|
-
declare function getActiveBoostAndCommissionChangeDelay({ publicClient, ui, ...args }: BeraJS.BaseFunctionArgs & Pick<ActiveBoostAndCommissionChangeDelay, "ui"> & {
|
|
1567
|
-
publicClient: PublicClient;
|
|
1568
|
-
}): Promise<ActiveBoostAndCommissionChangeDelay>;
|
|
1569
|
-
|
|
1570
|
-
declare function getAllValidators({ variables, ...args }?: {
|
|
1571
|
-
variables?: GetValidatorsQueryVariables;
|
|
1572
|
-
} & BeraJS.BaseFunctionArgs): Promise<GetValidatorsQuery | undefined>;
|
|
1573
|
-
|
|
1574
|
-
declare function getApiEnrichedAllocation({ allocation, }: {
|
|
1575
|
-
allocation: ValidatorRewardAllocation;
|
|
1576
|
-
}): Promise<ApiRewardAllocationWeightFragment[]>;
|
|
1577
|
-
|
|
1578
|
-
declare function getApiValidator({ id, ...args }: {
|
|
1579
|
-
/**
|
|
1580
|
-
* The validator keccak256 pubkey
|
|
1581
|
-
*/
|
|
1582
|
-
id: Address;
|
|
1583
|
-
} & BeraJS.BaseFunctionArgs): Promise<GetValidatorQuery>;
|
|
1584
|
-
|
|
1585
|
-
/**
|
|
1586
|
-
* Browser-only. Hits `/api/pol/validator-block-stats`. Server callers (RSC)
|
|
1587
|
-
* should import from `@berachain/berajs/actions/server` instead — that path
|
|
1588
|
-
* has the static Apollo + GraphQL imports and does not pass through the
|
|
1589
|
-
* browser endpoint.
|
|
1590
|
-
*/
|
|
1591
|
-
declare function getDailyValidatorBlockStats({ pubKey, first, }: {
|
|
1592
|
-
pubKey: Address;
|
|
1593
|
-
first?: number;
|
|
1594
|
-
}): Promise<GetValidatorBlockStatsQuery | undefined>;
|
|
1595
|
-
|
|
1596
|
-
declare function isDefaultRewardAllocation(rewardAllocation: ValidatorRewardAllocation): boolean;
|
|
1597
|
-
declare function getDefaultRewardAllocation({ client, ...args }: {
|
|
1598
|
-
client: PublicClient;
|
|
1599
|
-
}): Promise<ValidatorRewardAllocation>;
|
|
1600
|
-
|
|
1601
|
-
/**
|
|
1602
|
-
* Get the current number of BERA in the batch for a validator's staking pool
|
|
1603
|
-
* The batch can contain at most 10K BERA, then the batch will be sent to the contract
|
|
1604
|
-
* @param client - The public client
|
|
1605
|
-
* @param valPubKey - The public key of the validator
|
|
1606
|
-
* @returns The current batch number
|
|
1607
|
-
*/
|
|
1608
|
-
declare function getStakingPoolBatch({ client, valPubKey, }: {
|
|
1609
|
-
client: PublicClient;
|
|
1610
|
-
valPubKey: `0x${string}`;
|
|
1611
|
-
}): Promise<number>;
|
|
1612
|
-
|
|
1613
|
-
/** Browser-only. Hits `/api/pol/validator-analytics`. */
|
|
1614
|
-
declare function getValidatorAnalytics({ pubkey, dayRange, }: {
|
|
1615
|
-
pubkey: Address;
|
|
1616
|
-
dayRange: number;
|
|
1617
|
-
}): Promise<GetValidatorAnalyticsQuery | undefined>;
|
|
1618
|
-
|
|
1619
|
-
declare function getValidatorCommission({ client, pubKey, ...args }: {
|
|
1620
|
-
client: PublicClient;
|
|
1621
|
-
pubKey: Address;
|
|
1622
|
-
} & BeraJS.BaseFunctionArgs): Promise<number | undefined | null>;
|
|
1623
|
-
|
|
1624
|
-
declare const getValidatorEstimatedBgtPerYear: (validator: ApiValidatorMinimalFragment, totalStakedBeraAmount: number, blockTime: number) => number;
|
|
1625
|
-
|
|
1626
|
-
declare function getValidatorOperatorAddress({ client, pubKey, ...args }: BeraJS.BaseFunctionArgs & {
|
|
1627
|
-
client: PublicClient;
|
|
1628
|
-
pubKey: Address;
|
|
1629
|
-
}): Promise<Address | undefined>;
|
|
1630
|
-
|
|
1631
|
-
declare function getValidatorQueuedRewardAllocation({ client, pubKey, ...args }: BeraJS.BaseFunctionArgs & {
|
|
1632
|
-
client: PublicClient;
|
|
1633
|
-
pubKey: Address;
|
|
1634
|
-
}): Promise<ValidatorRewardAllocation | undefined>;
|
|
1635
|
-
|
|
1636
|
-
declare function aggregateValidatorIncentives({ rewardAllocationWeights, activeOnly, }: {
|
|
1637
|
-
rewardAllocationWeights: ApiValidatorRewardAllocationWeightFragment[];
|
|
1638
|
-
activeOnly?: boolean;
|
|
1639
|
-
}): ApiMinimalVaultIncentiveFragment[];
|
|
1640
|
-
|
|
1641
|
-
declare function getValidatorReturnPerBgt(validator: Pick<ApiValidatorFragment, "dynamicData" | "rewardAllocationWeights">): number;
|
|
1642
|
-
declare function getValidatorBoostApy({ validator, bgtPrice, }: {
|
|
1643
|
-
validator: Pick<ApiValidatorFragment, "dynamicData" | "rewardAllocationWeights">;
|
|
1644
|
-
bgtPrice: number;
|
|
1645
|
-
}): number;
|
|
1646
|
-
|
|
1647
|
-
export { type ActiveBoostAndCommissionChangeDelay, type GetAllowances, type GetAllowancesResponse, type GetBeraTokenTotalSupplyArgs, type GetLSTStakeConfigArgs, type GetStakedBeraSnapshotsArgs, type GetTokenInformation, type GetTokenInformationResponse, type GetUserVaultInfoParams, type GetUserVaultsInfo, type GetWalletBalances, type HeroEarnVaults, type IncentiveFeeClaimStats, type MaxDeposit, type PoolDayData, PythLatestUpdates, type RewardVaultDurationConstants, ValidatorRewardAllocation, aggregateValidatorIncentives, beraWriteContract, getActiveBoostAndCommissionChangeDelay, getAllPools, getAllValidators, getAllowances, getApiEnrichedAllocation, getApiPool, getApiValidator, getAutoclaimedIncentives, getAutoclaimedIncentivesTxHash, getBalanceCall, getBeraTokenTotalSupply, getBgtIncentiveDistributorPaused, getBlockTime, getBlockTimestamp, getChartData, getCollateralWeights, getDailyValidatorBlockStats, getDefaultRewardAllocation, getEarnedStakedBeraVault, getEnsoClient, getGlobalCapLimit, getGlobalLiquidityAndSwapVolume, getHeroEarnVaults, getHoney24hVolume, getHoneyCollaterals, getHoneyPausedState, getHoneyPythFeeds, getHoneyPythOracle, getHoneyRootPriceOracle, getHoneyTxns, getIncentiveFeeClaimStats, getLSTStakeConfig, getMaxDeposit, getPoolEvents, getPoolHistoricalData, getPoolState, getPythUpdateFee, getRelativeCapLimit, getRewardProofsByValidator, getRewardTokenToBeraRate, getRewardVault, getRewardVaultDurationConstants, getRewardVaultFromToken, getRewardVaultStakingToken, getStakeWithdrawalCooldown, getStakedBeraAPR, getStakedBeraSnapshots, getStakingPoolBatch, getSwapPayload, getTokenCurrentPrices, getTokenInformation, getTokens, getTotalStakedAmount, getUserClaimableIncentives, getUserVaultInfo, getUserVaultsReward, getValidatorAnalytics, getValidatorBoostApy, getValidatorCommission, getValidatorEstimatedBgtPerYear, getValidatorOperatorAddress, getValidatorQueuedRewardAllocation, getValidatorReturnPerBgt, getVaultPausedState, getVaultValidators, getWalletBalances, isBasketModeEnabled, isDefaultRewardAllocation, isImpersonateAccount };
|
|
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/getConvertToAssets";
|
|
9
|
+
export * from "./bend/getMaxDeposit";
|
|
10
|
+
export { BeraApolloClient } from "./clients/BeraApolloClient";
|
|
11
|
+
export { getApolloClient, gql, } from "./clients/getApolloClient";
|
|
12
|
+
export * from "./clients/getEnsoClient";
|
|
13
|
+
export * from "./dex/aggregators/base";
|
|
14
|
+
export * from "./dex/bSdk";
|
|
15
|
+
export * from "./dex/getAllPools";
|
|
16
|
+
export * from "./dex/getApiPool";
|
|
17
|
+
export * from "./dex/getGlobalLiquidityAndSwapVolume";
|
|
18
|
+
export * from "./dex/getOnChainPool";
|
|
19
|
+
export * from "./dex/getPoolEvents";
|
|
20
|
+
export * from "./dex/getPoolHistoricalData";
|
|
21
|
+
export * from "./dex/getPoolPausedState";
|
|
22
|
+
export * from "./dex/getPoolWithState";
|
|
23
|
+
export * from "./dex/getVaultPausedState";
|
|
24
|
+
export * from "./honey/getChartData";
|
|
25
|
+
export * from "./honey/getCollateralWeights";
|
|
26
|
+
export * from "./honey/getGlobalCapLimit";
|
|
27
|
+
export * from "./honey/getHoney24hVolume";
|
|
28
|
+
export * from "./honey/getHoneyCollaterals";
|
|
29
|
+
export * from "./honey/getHoneyFees";
|
|
30
|
+
export * from "./honey/getHoneyPausedState";
|
|
31
|
+
export * from "./honey/getHoneyPreview";
|
|
32
|
+
export * from "./honey/getHoneyPythPriceOracle";
|
|
33
|
+
export * from "./honey/getHoneyRootPriceOracle";
|
|
34
|
+
export * from "./honey/getHoneyTxns";
|
|
35
|
+
export * from "./honey/getHoneyVaultsBalance";
|
|
36
|
+
export * from "./honey/getPythLatestPrices";
|
|
37
|
+
export * from "./honey/getRelativeCapLimit";
|
|
38
|
+
export * from "./honey/getSwapPayload";
|
|
39
|
+
export * from "./honey/isBadCollateralAsset";
|
|
40
|
+
export * from "./honey/isBasketModeEnabled";
|
|
41
|
+
export * from "./misc/getBlockTimestamp";
|
|
42
|
+
export * from "./pol/getAutoclaimedIncentives";
|
|
43
|
+
export * from "./pol/getAutoclaimedIncentivesTxHash";
|
|
44
|
+
export * from "./pol/getBeraTokenTotalSupply";
|
|
45
|
+
export * from "./pol/getBgtAprSimulation";
|
|
46
|
+
export * from "./pol/getBgtIncentiveDistributorPaused";
|
|
47
|
+
export * from "./pol/getBlockTime";
|
|
48
|
+
export * from "./pol/getEarnedStakedBeraVault";
|
|
49
|
+
export * from "./pol/getGlobalData";
|
|
50
|
+
export * from "./pol/getHeroEarnVaults";
|
|
51
|
+
export * from "./pol/getLSTStakeConfig";
|
|
52
|
+
export * from "./pol/getMarkets";
|
|
53
|
+
export * from "./pol/getRewardProofsByValidator";
|
|
54
|
+
export * from "./pol/getRewardTokenToBeraRate";
|
|
55
|
+
export * from "./pol/getRewardVault";
|
|
56
|
+
export * from "./pol/getRewardVaultDurationConstants";
|
|
57
|
+
export * from "./pol/getRewardVaultEarnedRewards";
|
|
58
|
+
export * from "./pol/getRewardVaultFromToken";
|
|
59
|
+
export * from "./pol/getRewardVaultIncentives";
|
|
60
|
+
export * from "./pol/getRewardVaultRewards";
|
|
61
|
+
export * from "./pol/getRewardVaultStakingToken";
|
|
62
|
+
export * from "./pol/getRewardVaults";
|
|
63
|
+
export * from "./pol/getStakedBeraAPR";
|
|
64
|
+
export * from "./pol/getStakedBeraSnapshots";
|
|
65
|
+
export * from "./pol/getStakeWithdrawalCooldown";
|
|
66
|
+
export * from "./pol/getSWBeraVaultMetadata";
|
|
67
|
+
export * from "./pol/getSWBeraWithdrawal";
|
|
68
|
+
export * from "./pol/getTotalStakedAmount";
|
|
69
|
+
export * from "./pol/getUserClaimableIncentives";
|
|
70
|
+
export * from "./pol/getUserVaultInfo";
|
|
71
|
+
export * from "./pol/getUserVaults";
|
|
72
|
+
export * from "./pol/getVaultHistory";
|
|
73
|
+
export * from "./pol/getVaultValidators";
|
|
74
|
+
export * from "./prices/getTokenCurrentPrices";
|
|
75
|
+
export * from "./pyth/getHoneyPythFeeds";
|
|
76
|
+
export * from "./pyth/getUpdateFee";
|
|
77
|
+
export * from "./tokens/getAllowances";
|
|
78
|
+
export * from "./tokens/getTokenInformation";
|
|
79
|
+
export * from "./tokens/getTokens";
|
|
80
|
+
export * from "./tokens/getWalletBalances";
|
|
81
|
+
export * from "./transactions/beraWriteContract";
|
|
82
|
+
export * from "./validators/getActiveBoostAndCommissionChangeDelay";
|
|
83
|
+
export * from "./validators/getAllValidators";
|
|
84
|
+
export * from "./validators/getApiEnrichedAllocation";
|
|
85
|
+
export * from "./validators/getApiValidator";
|
|
86
|
+
export * from "./validators/getDefaultRewardAllocation";
|
|
87
|
+
export * from "./validators/getStakingPoolBatch";
|
|
88
|
+
export * from "./validators/getUserActiveValidators";
|
|
89
|
+
export * from "./validators/getUserBoostsOnValidator";
|
|
90
|
+
export * from "./validators/getUserStakingPositions";
|
|
91
|
+
export * from "./validators/getValidatorAnalytics";
|
|
92
|
+
export * from "./validators/getValidatorCommission";
|
|
93
|
+
export * from "./validators/getValidatorEstimatedBgtPerYear";
|
|
94
|
+
export * from "./validators/getValidatorOperatorAddress";
|
|
95
|
+
export * from "./validators/getValidatorQueuedCommission";
|
|
96
|
+
export * from "./validators/getValidatorQueuedOperatorAddress";
|
|
97
|
+
export * from "./validators/getValidatorQueuedRewardAllocation";
|
|
98
|
+
export * from "./validators/getValidatorRewardAllocation";
|
|
99
|
+
export * from "./validators/utils/aggregateValidatorIncentives";
|
|
100
|
+
export * from "./validators/utils/getValidatorBoostApy";
|
|
101
|
+
//# sourceMappingURL=exports.d.ts.map
|