@berachain/berajs 0.1.2 → 0.2.1
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/{BeraError-D1HS_rbb.d.cts → BeraError-_mQdkanr.d.cts} +35 -10
- package/dist/{BeraError-D1HS_rbb.d.ts → BeraError-_mQdkanr.d.ts} +35 -10
- package/dist/HoneyConfigProvider-CK6mOKFH.d.ts +390 -0
- package/dist/HoneyConfigProvider-Ca3ouozs.d.cts +390 -0
- package/dist/{RequestError-D8AE6xnI.d.cts → RequestError-A8XJ6QR9.d.cts} +1 -1
- package/dist/{RequestError-m4jxyM7D.d.ts → RequestError-Dk97z8rm.d.ts} +1 -1
- package/dist/abi/exports.cjs +2 -0
- package/dist/abi/exports.cjs.map +1 -0
- package/dist/abi/{index.d.cts → exports.d.cts} +12369 -9122
- package/dist/abi/{index.d.ts → exports.d.ts} +12369 -9122
- package/dist/abi/exports.mjs +2 -0
- package/dist/abi/exports.mjs.map +1 -0
- package/dist/actions/exports.cjs +2 -0
- package/dist/actions/exports.cjs.map +1 -0
- package/dist/actions/{index.d.cts → exports.d.cts} +79 -107
- package/dist/actions/{index.d.ts → exports.d.ts} +79 -107
- package/dist/actions/exports.mjs +2 -0
- package/dist/actions/exports.mjs.map +1 -0
- package/dist/chunk-22J3YJDN.cjs +2 -0
- package/dist/chunk-22J3YJDN.cjs.map +1 -0
- package/dist/chunk-2LL3P5PN.mjs +2 -0
- package/dist/chunk-2LL3P5PN.mjs.map +1 -0
- package/dist/chunk-3YXSUBA5.mjs +2 -0
- package/dist/chunk-3YXSUBA5.mjs.map +1 -0
- package/dist/chunk-55L7STYD.mjs +2 -0
- package/dist/chunk-55L7STYD.mjs.map +1 -0
- package/dist/chunk-575OK77P.mjs +2 -0
- package/dist/chunk-575OK77P.mjs.map +1 -0
- package/dist/chunk-6LDOG5RL.cjs +2 -0
- package/dist/chunk-6LDOG5RL.cjs.map +1 -0
- package/dist/chunk-7LNBSOVV.cjs +2 -0
- package/dist/chunk-7LNBSOVV.cjs.map +1 -0
- package/dist/chunk-7SMWQ6SN.mjs +2 -0
- package/dist/chunk-7SMWQ6SN.mjs.map +1 -0
- package/dist/chunk-7WRTK7RJ.mjs +2 -0
- package/dist/chunk-7WRTK7RJ.mjs.map +1 -0
- package/dist/chunk-A4UDYSB6.mjs +4 -0
- package/dist/chunk-A4UDYSB6.mjs.map +1 -0
- package/dist/chunk-AX2YQQFQ.mjs +2 -0
- package/dist/chunk-AX2YQQFQ.mjs.map +1 -0
- package/dist/chunk-C3FHGFLK.mjs +2 -0
- package/dist/chunk-C3FHGFLK.mjs.map +1 -0
- package/dist/chunk-C6ZGUO4H.cjs +2 -0
- package/dist/chunk-C6ZGUO4H.cjs.map +1 -0
- package/dist/chunk-CYKCYPFR.cjs +2 -0
- package/dist/chunk-CYKCYPFR.cjs.map +1 -0
- package/dist/chunk-ECRMUMTA.mjs +2 -0
- package/dist/chunk-ECRMUMTA.mjs.map +1 -0
- package/dist/chunk-F4BKSBEM.mjs +2 -0
- package/dist/chunk-F4BKSBEM.mjs.map +1 -0
- package/dist/chunk-FCWDGE62.cjs +2 -0
- package/dist/chunk-FCWDGE62.cjs.map +1 -0
- package/dist/chunk-FL2N3XHK.cjs +2 -0
- package/dist/chunk-FL2N3XHK.cjs.map +1 -0
- package/dist/chunk-MUCEYO3E.cjs +4 -0
- package/dist/chunk-MUCEYO3E.cjs.map +1 -0
- package/dist/chunk-NAXAZJJY.mjs +2 -0
- package/dist/chunk-NAXAZJJY.mjs.map +1 -0
- package/dist/chunk-OGJMSGB2.mjs +2 -0
- package/dist/chunk-OGJMSGB2.mjs.map +1 -0
- package/dist/chunk-OIYXOKTT.cjs +2 -0
- package/dist/chunk-OIYXOKTT.cjs.map +1 -0
- package/dist/chunk-P2Q7CMUD.cjs +2 -0
- package/dist/chunk-P2Q7CMUD.cjs.map +1 -0
- package/dist/chunk-PKXAW6MO.cjs +2 -0
- package/dist/chunk-PKXAW6MO.cjs.map +1 -0
- package/dist/chunk-Q3SCM6WL.mjs +2 -0
- package/dist/chunk-Q3SCM6WL.mjs.map +1 -0
- package/dist/chunk-SWMJQOH6.cjs +2 -0
- package/dist/chunk-SWMJQOH6.cjs.map +1 -0
- package/dist/chunk-TEBJWAVU.mjs +2 -0
- package/dist/chunk-TEBJWAVU.mjs.map +1 -0
- package/dist/chunk-THATXCJK.mjs +2 -0
- package/dist/chunk-THATXCJK.mjs.map +1 -0
- package/dist/chunk-VP7XUOSI.cjs +2 -0
- package/dist/chunk-VP7XUOSI.cjs.map +1 -0
- package/dist/chunk-VXL2ZZ4X.cjs +2 -0
- package/dist/chunk-VXL2ZZ4X.cjs.map +1 -0
- package/dist/chunk-WRFDB3QJ.cjs +2 -0
- package/dist/chunk-WRFDB3QJ.cjs.map +1 -0
- package/dist/chunk-XNJLSA6P.cjs +2 -0
- package/dist/chunk-XNJLSA6P.cjs.map +1 -0
- package/dist/chunk-YXLFOEZN.mjs +2 -0
- package/dist/chunk-YXLFOEZN.mjs.map +1 -0
- package/dist/chunk-YZV5LKIP.cjs +2 -0
- package/dist/chunk-YZV5LKIP.cjs.map +1 -0
- package/dist/contexts/exports.cjs +2 -0
- package/dist/contexts/exports.cjs.map +1 -0
- package/dist/contexts/{index.d.cts → exports.d.cts} +10 -27
- package/dist/contexts/{index.d.ts → exports.d.ts} +10 -27
- package/dist/contexts/exports.mjs +2 -0
- package/dist/contexts/exports.mjs.map +1 -0
- package/dist/{defaultFlags-V-tJs2K8.d.cts → defaultFlags-d0kPbT0i.d.cts} +1 -1
- package/dist/{defaultFlags-V-tJs2K8.d.ts → defaultFlags-d0kPbT0i.d.ts} +1 -1
- package/dist/dex-C_BB0b0O.d.cts +37 -0
- package/dist/dex-C_BB0b0O.d.ts +37 -0
- package/dist/enum/exports.cjs +2 -0
- package/dist/enum/exports.cjs.map +1 -0
- package/dist/enum/exports.d.cts +23 -0
- package/dist/enum/exports.d.ts +23 -0
- package/dist/enum/exports.mjs +2 -0
- package/dist/enum/exports.mjs.map +1 -0
- package/dist/errors/exports.cjs +2 -0
- package/dist/errors/exports.cjs.map +1 -0
- package/dist/errors/exports.d.cts +408 -0
- package/dist/errors/exports.d.ts +408 -0
- package/dist/errors/exports.mjs +2 -0
- package/dist/{getValidatorQueuedOperatorAddress-Ne2zoiiV.d.ts → getValidatorQueuedOperatorAddress-Dstyaomr.d.cts} +125 -15
- package/dist/{getValidatorQueuedOperatorAddress-9xY2RUGe.d.cts → getValidatorQueuedOperatorAddress-RW4OMcD1.d.ts} +125 -15
- package/dist/global.d-CN6l2b9E.d.cts +473 -0
- package/dist/global.d-wYu8G8IQ.d.ts +473 -0
- package/dist/honey-CYm0RWf4.d.cts +14 -0
- package/dist/honey-CYm0RWf4.d.ts +14 -0
- package/dist/hooks/exports.cjs +4 -0
- package/dist/hooks/exports.cjs.map +1 -0
- package/dist/hooks/{index.d.cts → exports.d.cts} +218 -176
- package/dist/hooks/{index.d.ts → exports.d.ts} +218 -176
- package/dist/hooks/exports.mjs +4 -0
- package/dist/hooks/exports.mjs.map +1 -0
- package/dist/{txnEnum-BQKDfaeH.d.cts → txnEnum-BlBYhNRl.d.cts} +75 -1
- package/dist/{txnEnum-BQKDfaeH.d.ts → txnEnum-BlBYhNRl.d.ts} +75 -1
- package/dist/types/exports.cjs +1 -0
- package/dist/types/exports.cjs.map +1 -0
- package/dist/types/exports.d.cts +57 -0
- package/dist/types/exports.d.ts +57 -0
- package/dist/types/exports.mjs +1 -0
- package/dist/{useHoneySwapState-C-9BV4VB.d.cts → useHoneySwapState-B-vmIP1b.d.cts} +1 -1
- package/dist/{useHoneySwapState-CUY5Sm1b.d.ts → useHoneySwapState-D1DKG_Of.d.ts} +1 -1
- package/dist/utils/exports.cjs +2 -0
- package/dist/utils/exports.cjs.map +1 -0
- package/dist/utils/{index.d.cts → exports.d.cts} +83 -20
- package/dist/utils/{index.d.ts → exports.d.ts} +83 -20
- package/dist/utils/exports.mjs +2 -0
- package/dist/utils/exports.mjs.map +1 -0
- package/package.json +19 -20
- package/src/abi/{index.ts → exports.ts} +3 -0
- package/src/abi/pol/LSTStakerVault.ts +2032 -0
- package/src/abi/utils/openChainErrors.ts +71 -30
- package/src/abi/utils/thirdwebMinimalAccount.ts +616 -0
- package/src/actions/clients/BeraApolloClient.ts +8 -6
- package/src/actions/dex/__tests__/aggregators.unit.test.ts +2 -5
- package/src/actions/dex/aggregators/base.ts +74 -16
- package/src/actions/dex/aggregators/bex.ts +54 -74
- package/src/actions/dex/aggregators/bgt.ts +31 -8
- package/src/actions/dex/aggregators/{enso.ts → enso/enso.ts} +18 -14
- package/src/actions/dex/aggregators/enso/ensoErc4626.debug.test.ts +37 -0
- package/src/actions/dex/aggregators/enso/ensoErc4626.ts +176 -0
- package/src/actions/dex/aggregators/erc4626.ts +122 -0
- package/src/actions/dex/aggregators/fly.ts +59 -53
- package/src/actions/dex/aggregators/haiku.ts +52 -54
- package/src/actions/dex/aggregators/honey.ts +54 -45
- package/src/actions/dex/aggregators/kyberswap.ts +41 -39
- package/src/actions/dex/aggregators/oogabooga.ts +47 -46
- package/src/actions/dex/aggregators/openOcean.ts +51 -46
- package/src/actions/dex/aggregators/wbera.ts +54 -42
- package/src/actions/dex/b-sdk.ts +5 -2
- package/src/actions/dex/getIsTokenExploited.ts +2 -2
- package/src/actions/enso/{zap.ts → getEnsoSwapBundle.ts} +4 -5
- package/src/actions/enso/getEnsoUserTokensWithBalances.debug.test.ts +73 -0
- package/src/actions/enso/{getEnsoUserToken.ts → getEnsoUserTokensWithBalances.ts} +42 -30
- package/src/actions/enso/util.ts +1 -1
- package/src/actions/{index.ts → exports.ts} +5 -0
- package/src/actions/governance/__tests__/checkProposalField.unit.test.ts +1 -1
- package/src/actions/governance/__tests__/getQuorum.integration.test.ts +1 -1
- package/src/actions/governance/checkProposalField.ts +1 -1
- package/src/actions/governance/computeActualStatus.ts +1 -1
- package/src/actions/governance/getBodyErrors.ts +1 -1
- package/src/actions/governance/getDecodedFunctionData.ts +1 -4
- package/src/actions/governance/getProposalDetails.ts +2 -2
- package/src/actions/governance/getProposalFromTx.ts +1 -2
- package/src/actions/governance/getProposalParams.ts +7 -8
- package/src/actions/governance/getQuorum.ts +1 -2
- package/src/actions/honey/getCollateralWeights.ts +1 -1
- package/src/actions/honey/getHoneyCollaterals.ts +1 -0
- package/src/actions/honey/getHoneyVaultsBalance.ts +51 -55
- package/src/actions/honey/getSwapPayload.ts +37 -35
- package/src/actions/honey/tests/pyth.integration.test.ts +0 -1
- package/src/actions/pol/__tests__/getAllValidators.integration.test.ts +1 -1
- package/src/actions/pol/getEarnedStakedBeraVault.ts +31 -0
- package/src/actions/pol/getGlobalData.ts +14 -13
- package/src/actions/pol/getLSTStakeConfig.ts +67 -0
- package/src/actions/pol/getMarkets.ts +1 -1
- package/src/actions/pol/getRewardProofsByValidator.ts +1 -1
- package/src/actions/pol/getRewardVaultIncentives.ts +3 -5
- package/src/actions/pol/getRewardVaults.ts +2 -3
- package/src/actions/pol/getSWBeraVaultMetadata.ts +7 -5
- package/src/actions/pol/getSWBeraWithdrawal.ts +41 -27
- package/src/actions/pol/getStakeWithdrawalCooldown.ts +5 -7
- package/src/actions/pol/getStakingDailyAssets.ts +24 -0
- package/src/actions/pol/getStakingTokenInformation.ts +3 -4
- package/src/actions/pol/getTotalStakedAmount.ts +47 -0
- package/src/actions/pol/getUserClaimableIncentives.ts +1 -1
- package/src/actions/pol/getUserVaults.ts +8 -6
- package/src/actions/pol/getUserVaultsBalance.ts +4 -16
- package/src/actions/prices/getTokenCurrentPrices.ts +8 -3
- package/src/actions/tokens/getAllowances.ts +68 -41
- package/src/actions/tokens/getTokenInformation.ts +4 -1
- package/src/actions/tokens/getTokens.ts +1 -1
- package/src/actions/tokens/getUnderlyingToken.ts +53 -0
- package/src/actions/tokens/getWalletBalances.integration.test.ts +53 -14
- package/src/actions/tokens/getWalletBalances.ts +69 -43
- package/src/actions/transactions/beraWriteContract.integration.test.ts +18 -6
- package/src/actions/transactions/beraWriteContract.ts +3 -3
- package/src/actions/validators/getUserActiveValidators.ts +2 -3
- package/src/actions/validators/getUserBoostsOnValidator.ts +2 -3
- package/src/contexts/BeraFlags/defaultFlags.ts +4 -0
- package/src/contexts/SwrFallback.tsx +13 -3
- package/src/contexts/TokensProvider.tsx +35 -8
- package/src/contexts/block-time-provider.tsx +1 -1
- package/src/contexts/{index.ts → exports.ts} +0 -1
- package/src/data/contracts.ts +17 -2
- package/src/enum/contracts.ts +13 -0
- package/src/enum/dex.ts +29 -0
- package/src/enum/{index.ts → exports.ts} +3 -0
- package/src/enum/governance.ts +61 -0
- package/src/enum/honey.ts +12 -0
- package/src/enum/txnEnum.ts +1 -0
- package/src/errors/BeraError.ts +61 -13
- package/src/errors/BeraMonitoring.ts +66 -0
- package/src/errors/BeraTracing.ts +79 -0
- package/src/errors/BeraTracing.unit.test.ts +198 -0
- package/src/errors/RequestError.ts +29 -3
- package/src/errors/assert.ts +4 -2
- package/src/errors/assert.unit.test.ts +6 -2
- package/src/errors/errorMap.ts +19 -8
- package/src/errors/{index.ts → exports.ts} +7 -0
- package/src/errors/getErrorMessage.ts +67 -9
- package/src/errors/getRevertReason.integration.test.ts +18 -6
- package/src/errors/getRevertReason.ts +41 -2
- package/src/errors/initBeraError.ts +52 -7
- package/src/errors/parseViemError.ts +114 -27
- package/src/errors/severity.ts +12 -0
- package/src/hooks/bend/useGetConvertToAssets.ts +3 -2
- package/src/hooks/dex/useAggregatorsQuotes.ts +126 -365
- package/src/hooks/dex/useAllUserPools.ts +1 -1
- package/src/hooks/dex/useApiPool.ts +1 -1
- package/src/hooks/dex/useCreatePool.ts +6 -5
- package/src/hooks/dex/useExploitedTokens.ts +1 -1
- package/src/hooks/dex/useLiquidityMismatch.ts +2 -5
- package/src/hooks/dex/useLpPosition.ts +21 -20
- package/src/hooks/dex/useMultipleTokenApprovalsWithSlippage.ts +40 -29
- package/src/hooks/dex/usePollPoolCreationRelayerApproval.ts +1 -1
- package/src/hooks/dex/usePoolEvents.ts +1 -1
- package/src/hooks/dex/usePools.ts +1 -1
- package/src/hooks/dex/usePriceImpact.ts +40 -0
- package/src/hooks/dex/useSingleAggregatorQuote.ts +350 -0
- package/src/hooks/enso/useBendZapSupply.ts +216 -0
- package/src/hooks/enso/useEnsoSwapBundle.ts +107 -0
- package/src/hooks/enso/useEnsoUserTokensWithBalances.ts +43 -0
- package/src/hooks/enso/useZapStakeBera.ts +113 -0
- package/src/hooks/{index.ts → exports.ts} +17 -10
- package/src/hooks/governance/useCreateProposal.ts +8 -8
- package/src/hooks/governance/usePollAllProposals.ts +1 -1
- package/src/hooks/governance/usePollProposal.ts +1 -1
- package/src/hooks/governance/usePollProposalThreshold.ts +1 -1
- package/src/hooks/governance/usePollUserDelegates.ts +1 -1
- package/src/hooks/governance/useProposalState.ts +2 -2
- package/src/hooks/honey/useCappedGlobally.ts +2 -1
- package/src/hooks/honey/useCappedRelatively.ts +1 -1
- package/src/hooks/honey/useCollateralWeights.ts +2 -1
- package/src/hooks/honey/useHoneyAlerts.ts +11 -11
- package/src/hooks/honey/useHoneyBalances.ts +7 -3
- package/src/hooks/honey/useHoneyGlobalData.ts +2 -1
- package/src/hooks/honey/useHoneySwapState.ts +2 -1
- package/src/hooks/honey/useHoneyVaultsBalance.ts +1 -1
- package/src/hooks/honey/useIsBadCollateralAsset.ts +2 -1
- package/src/hooks/honey/useIsBasketModeEnabled.ts +1 -1
- package/src/hooks/honey/usePythLatestPrices.ts +1 -1
- package/src/hooks/pol/useOnChainRewardVault.ts +3 -2
- package/src/hooks/pol/usePollGlobalData.ts +1 -1
- package/src/hooks/pol/usePollMarkets.ts +1 -1
- package/src/hooks/pol/useQueuedBeraUnlock.ts +17 -15
- package/src/hooks/pol/useRewardTokenToBeraRate.ts +6 -3
- package/src/hooks/pol/useRewardVault.ts +1 -1
- package/src/hooks/pol/useRewardVaults.ts +1 -1
- package/src/hooks/pol/useSWBeraVaultMetadata.ts +35 -0
- package/src/hooks/pol/useStakedAPR.ts +38 -0
- package/src/hooks/pol/useStakedData.ts +117 -0
- package/src/hooks/pol/useStakedSnapshots.ts +52 -0
- package/src/hooks/pol/useTotalStakedAmount.ts +30 -0
- package/src/hooks/pol/useUserVaultInfo.ts +1 -1
- package/src/hooks/pol/useVaultValidators.ts +1 -1
- package/src/hooks/tokens/useMultipleTokenInformation.ts +15 -6
- package/src/hooks/tokens/usePollAllowances.ts +15 -19
- package/src/hooks/tokens/usePollBalance.ts +8 -4
- package/src/hooks/tokens/usePollWalletBalances.ts +14 -11
- package/src/hooks/tokens/useStakingTokenInformation.ts +2 -1
- package/src/hooks/tokens/useTokenCurrentPrice.ts +4 -2
- package/src/hooks/tokens/useTokenCurrentPrices.ts +92 -13
- package/src/hooks/tokens/useTokenInformation.ts +11 -6
- package/src/hooks/tokens/useTokenPrice.ts +21 -0
- package/src/hooks/tokens/useTokenPrices.ts +133 -0
- package/src/hooks/tokens/useTokens.ts +1 -0
- package/src/hooks/tokens/useUnderlyingAsset.ts +23 -0
- package/src/hooks/useContractWrite/useBeraContractWrite.ts +2 -1
- package/src/hooks/validators/useAllValidators.ts +1 -1
- package/src/hooks/validators/useApiValidator.ts +1 -1
- package/src/hooks/validators/useDailyValidatorBlockStats.ts +1 -1
- package/src/hooks/validators/useManagedValidatorByAccount.ts +1 -1
- package/src/hooks/validators/useManagedValidatorRole.ts +1 -1
- package/src/hooks/validators/useOnChainValidator.ts +1 -1
- package/src/hooks/validators/useStakingPoolBatch.ts +1 -1
- package/src/hooks/validators/useUserActiveValidators.ts +1 -1
- package/src/hooks/validators/useUserBoostsOnValidator.ts +1 -1
- package/src/hooks/validators/useUserClaimableIncentives.ts +8 -8
- package/src/hooks/validators/useValidator.ts +1 -1
- package/src/hooks/validators/useValidatorAnalytics.ts +1 -1
- package/src/hooks/validators/useValidatorCommission.ts +1 -1
- package/src/hooks/validators/useValidatorQueuedCommission.ts +1 -1
- package/src/hooks/validators/useValidatorQueuedOperatorAddress.ts +1 -1
- package/src/hooks/validators/useValidatorQueuedRewardAllocation.ts +1 -1
- package/src/hooks/validators/useValidatorRewardAllocation.ts +1 -1
- package/src/types/{dex.ts → dex.d.ts} +96 -67
- package/src/types/{enso.ts → enso.d.ts} +1 -1
- package/src/types/exports.ts +8 -0
- package/src/types/{global.ts → global.d.ts} +1 -30
- package/src/types/{governance.ts → governance.d.ts} +2 -64
- package/src/types/{honeySwap.ts → honeySwap.d.ts} +1 -13
- package/src/types/{pol.ts → pol.d.ts} +12 -1
- package/src/types/staking.d.ts +22 -0
- package/src/utils/createEmitter.ts +122 -0
- package/src/utils/createEmitter.unit.test.ts +149 -0
- package/src/utils/{index.ts → exports.ts} +3 -2
- package/src/utils/filter.ts +34 -0
- package/src/utils/formatNumber.ts +1 -1
- package/src/utils/formatNumber.unit.test.ts +2 -1
- package/src/utils/formatTokenList.ts +4 -10
- package/src/utils/getHoneySwapMessage.test.ts +1 -2
- package/src/utils/getServerSideClient.ts +4 -5
- package/src/utils/isDifferenceExceedingThreshold.ts +1 -1
- package/src/utils/layerZeroScan.ts +122 -0
- package/src/utils/math.ts +1 -1
- package/src/utils/parseWhiskToken.ts +15 -0
- package/src/utils/poolNamings.ts +1 -1
- package/src/utils/tokens.ts +23 -7
- package/dist/HoneyConfigProvider-6PXZJMSU.d.cts +0 -562
- package/dist/HoneyConfigProvider-CwDFrt02.d.ts +0 -562
- package/dist/abi/index.cjs +0 -2
- package/dist/abi/index.cjs.map +0 -1
- package/dist/abi/index.mjs +0 -2
- package/dist/actions/index.cjs +0 -2
- package/dist/actions/index.cjs.map +0 -1
- package/dist/actions/index.mjs +0 -2
- package/dist/aggregatorsRouter-Cny4B_MB.d.cts +0 -593
- package/dist/aggregatorsRouter-Cny4B_MB.d.ts +0 -593
- package/dist/chunk-22MQVFHP.cjs +0 -2
- package/dist/chunk-22MQVFHP.cjs.map +0 -1
- package/dist/chunk-3TKSVFZ3.mjs +0 -2
- package/dist/chunk-3TKSVFZ3.mjs.map +0 -1
- package/dist/chunk-6VF3RF53.cjs +0 -3
- package/dist/chunk-6VF3RF53.cjs.map +0 -1
- package/dist/chunk-6W22TFYA.mjs +0 -2
- package/dist/chunk-6W22TFYA.mjs.map +0 -1
- package/dist/chunk-AMRJ4B36.mjs +0 -2
- package/dist/chunk-AMRJ4B36.mjs.map +0 -1
- package/dist/chunk-DS2ZDVKU.mjs +0 -2
- package/dist/chunk-DS2ZDVKU.mjs.map +0 -1
- package/dist/chunk-ED43NYSE.cjs +0 -2
- package/dist/chunk-ED43NYSE.cjs.map +0 -1
- package/dist/chunk-EU4WFADK.cjs +0 -2
- package/dist/chunk-EU4WFADK.cjs.map +0 -1
- package/dist/chunk-HCTFDGXL.mjs +0 -2
- package/dist/chunk-HCTFDGXL.mjs.map +0 -1
- package/dist/chunk-IOSYBHKU.mjs +0 -2
- package/dist/chunk-IOSYBHKU.mjs.map +0 -1
- package/dist/chunk-JMKLDDKY.cjs +0 -2
- package/dist/chunk-JMKLDDKY.cjs.map +0 -1
- package/dist/chunk-KMKUXP2S.mjs +0 -3
- package/dist/chunk-KMKUXP2S.mjs.map +0 -1
- package/dist/chunk-OJXJ6CZ4.mjs +0 -4
- package/dist/chunk-OJXJ6CZ4.mjs.map +0 -1
- package/dist/chunk-PHIOKO3A.mjs +0 -2
- package/dist/chunk-PHIOKO3A.mjs.map +0 -1
- package/dist/chunk-QCK474XD.cjs +0 -2
- package/dist/chunk-QCK474XD.cjs.map +0 -1
- package/dist/chunk-REDXXUK7.cjs +0 -2
- package/dist/chunk-REDXXUK7.cjs.map +0 -1
- package/dist/chunk-S74ZMG2G.cjs +0 -2
- package/dist/chunk-S74ZMG2G.cjs.map +0 -1
- package/dist/chunk-TOAXF4YW.cjs +0 -2
- package/dist/chunk-TOAXF4YW.cjs.map +0 -1
- package/dist/chunk-UZ5CB33M.cjs +0 -2
- package/dist/chunk-UZ5CB33M.cjs.map +0 -1
- package/dist/chunk-VYWYJR63.mjs +0 -2
- package/dist/chunk-VYWYJR63.mjs.map +0 -1
- package/dist/chunk-XFPTQMAK.cjs +0 -4
- package/dist/chunk-XFPTQMAK.cjs.map +0 -1
- package/dist/chunk-YK4NINF5.mjs +0 -2
- package/dist/chunk-YK4NINF5.mjs.map +0 -1
- package/dist/contexts/index.cjs +0 -2
- package/dist/contexts/index.cjs.map +0 -1
- package/dist/contexts/index.mjs +0 -2
- package/dist/contexts/index.mjs.map +0 -1
- package/dist/enum/index.cjs +0 -2
- package/dist/enum/index.cjs.map +0 -1
- package/dist/enum/index.d.cts +0 -31
- package/dist/enum/index.d.ts +0 -31
- package/dist/enum/index.mjs +0 -2
- package/dist/enum/index.mjs.map +0 -1
- package/dist/errors/index.cjs +0 -2
- package/dist/errors/index.cjs.map +0 -1
- package/dist/errors/index.d.cts +0 -204
- package/dist/errors/index.d.ts +0 -204
- package/dist/errors/index.mjs +0 -2
- package/dist/errors/index.mjs.map +0 -1
- package/dist/hooks/index.cjs +0 -4
- package/dist/hooks/index.cjs.map +0 -1
- package/dist/hooks/index.mjs +0 -4
- package/dist/hooks/index.mjs.map +0 -1
- package/dist/staking-F9Nx9TKD.d.ts +0 -246
- package/dist/staking-f4BpYH7l.d.cts +0 -246
- package/dist/types/index.cjs +0 -2
- package/dist/types/index.cjs.map +0 -1
- package/dist/types/index.d.cts +0 -56
- package/dist/types/index.d.ts +0 -56
- package/dist/types/index.mjs +0 -2
- package/dist/types/index.mjs.map +0 -1
- package/dist/utils/index.cjs +0 -2
- package/dist/utils/index.cjs.map +0 -1
- package/dist/utils/index.mjs +0 -2
- package/dist/utils/index.mjs.map +0 -1
- package/src/actions/dex/getTransactionCount.ts +0 -29
- package/src/actions/enso/bend.ts +0 -143
- package/src/actions/enso/getEnsoUserToken.debug.test.ts +0 -57
- package/src/contexts/berajsProvider/context.tsx +0 -49
- package/src/contexts/berajsProvider/index.ts +0 -2
- package/src/contexts/berajsProvider/useBeraJs.ts +0 -18
- package/src/hooks/dex/usePollVaultIsPaused.ts +0 -30
- package/src/hooks/enso/useBendTransactionRequests.ts +0 -247
- package/src/hooks/enso/useEnsoZap.ts +0 -166
- package/src/hooks/enso/useZapTransactionRequests.ts +0 -81
- package/src/hooks/pol/useEarnedStakedBeraVault.ts +0 -59
- package/src/hooks/pol/useStakedBeraSnapshots.ts +0 -27
- package/src/hooks/transactions/TransactionStoreContext.tsx +0 -59
- package/src/hooks/transactions/transactionStore.ts +0 -275
- package/src/hooks/transactions/transactionStore.unit.test.ts +0 -508
- package/src/hooks/transactions/useAddRecentTransaction.ts +0 -29
- package/src/hooks/transactions/useRecentTransactions.ts +0 -27
- package/src/hooks/validators/validatorRoleManager.ts +0 -0
- package/src/types/index.ts +0 -8
- package/src/types/staking.ts +0 -7
- package/src/utils/formatAggregatorsQuotes.ts +0 -57
- package/src/utils/formatAggregatorsQuotes.unit.test.ts +0 -191
- package/src/utils/sentryBeforeSend.ts +0 -52
- /package/dist/{abi/index.mjs.map → errors/exports.mjs.map} +0 -0
- /package/dist/{actions/index.mjs.map → types/exports.mjs.map} +0 -0
- /package/src/actions/dex/{__tests__ → aggregators}/haiku.integration.test.ts +0 -0
- /package/src/types/{bribe-boost.ts → bribe-boost.d.ts} +0 -0
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import * as swr from 'swr';
|
|
2
2
|
import { SWRResponse } from 'swr';
|
|
3
|
-
import { G as GetConvertToAssetsProps, O as OnChainPool, c as GetHoneyVaultsBalanceResponse, e as IsBadCollateralResponse, f as GetBgtAprSimulationArgs, h as GetBgtAprSimulationResult, k as GlobalData, m as GetMarkets, S as StakedBeraWithdrawal, R as RewardVaultIncentive, q as GetRewardVaultRewardsReturn, s as GetGaugeData, u as
|
|
4
|
-
import { D as DefaultHookOptions,
|
|
5
|
-
export {
|
|
3
|
+
import { G as GetConvertToAssetsProps, O as OnChainPool, B as BaseAggregator, c as GetHoneyVaultsBalanceResponse, e as IsBadCollateralResponse, f as GetBgtAprSimulationArgs, h as GetBgtAprSimulationResult, k as GlobalData, m as GetMarkets, S as StakedBeraWithdrawal, R as RewardVaultIncentive, q as GetRewardVaultRewardsReturn, s as GetGaugeData, u as VaultMetadata, x as GetUserVaultsResponse, z as GetVaultHistoryArgs, V as ValidatorRewardAllocation, C as ValidatorWithUserBoost, E as UserBoostsOnValidator, H as UserStakingPoolPosition, K as ValidatorQueuedCommission, M as ValidatorQueuedOperatorAddress } from '../getValidatorQueuedOperatorAddress-Dstyaomr.cjs';
|
|
4
|
+
import { D as DefaultHookOptions, c as DefaultHookReturnType, G as GovernanceTopic, a as CustomProposalErrors, C as CustomProposal, S as StakingConfig, d as StakedBeraAsset, U as UserVaultInfo, e as IUseContractWriteArgs, f as UseContractWriteApi, B as BribeBoostRewardProof } from '../global.d-CN6l2b9E.cjs';
|
|
5
|
+
export { T as TxnEventKeys } from '../global.d-CN6l2b9E.cjs';
|
|
6
|
+
import { S as SwapReferrer, A as Aggregators, a as PoolCreationStep } from '../dex-C_BB0b0O.cjs';
|
|
7
|
+
import * as viem from 'viem';
|
|
6
8
|
import { Address, Hex } from 'viem';
|
|
9
|
+
import { M as MinimalERC20, d as HoneyConfigContextReturn, g as IRawAggregatorQuote, b as Token, t as TokenWithAmount, i as TokenCurrentPriceMap, v as IUserPosition, A as AllowanceQueryItem, j as AllowanceToken, B as BalanceToken, w as Calldata, h as PythPriceFeedMap, P as PythLatestUpdates, x as TokenPriceInfo, a as TokenWithMetadata } from '../HoneyConfigProvider-Ca3ouozs.cjs';
|
|
7
10
|
import * as _berachain_graphql_dex_api from '@berachain/graphql/dex/api';
|
|
8
|
-
import { GetPoolsQueryVariables, MinimalPoolFragment, GqlPoolEventType, PoolHistoricalDataFragment, GqlRewardVaultDynamicData, GqlValidatorDynamicData } from '@berachain/graphql/dex/api';
|
|
11
|
+
import { GetPoolsQueryVariables, MinimalPoolFragment, GqlPoolEventType, PoolHistoricalDataFragment, GqlRewardVaultDynamicData, GqlVaultSnapshotDataRange, GqlValidatorDynamicData } from '@berachain/graphql/dex/api';
|
|
9
12
|
export { u as useBexStatus } from '../BexStatusProvider-nS3NcdxI.cjs';
|
|
10
13
|
import { PoolType } from '@berachain-foundation/berancer-sdk';
|
|
11
14
|
import { SubgraphPoolFragment } from '@berachain/graphql/dex/subgraph';
|
|
12
15
|
import { P as POLLING } from '../polling-BKnyavLI.cjs';
|
|
13
16
|
import * as swr__internal from 'swr/_internal';
|
|
14
|
-
import {
|
|
15
|
-
import * as _ensofinance_sdk from '@ensofinance/sdk';
|
|
16
|
-
export { BundleData } from '@ensofinance/sdk';
|
|
17
|
+
import { GetZapTransactionResponse } from '../types/exports.cjs';
|
|
17
18
|
import * as react from 'react';
|
|
18
|
-
import react__default from 'react';
|
|
19
|
-
import { G as GovernanceTopic, c as CustomProposalErrors, C as CustomProposal, U as UserVaultInfo, B as BribeBoostRewardProof } from '../staking-f4BpYH7l.cjs';
|
|
20
19
|
import * as swr_infinite from 'swr/infinite';
|
|
21
20
|
import { SWRInfiniteResponse, SWRInfiniteKeyLoader } from 'swr/infinite';
|
|
22
21
|
import * as _berachain_graphql_governance from '@berachain/graphql/governance';
|
|
23
22
|
import { Proposal_Filter, Proposal_OrderBy, OrderDirection, ProposalStatus, ProposalSelectionFragment, ProposalWithVotesFragment, GetProposalVotesQueryVariables } from '@berachain/graphql/governance';
|
|
24
|
-
import { I as IHoneySwapState } from '../useHoneySwapState-
|
|
25
|
-
export { r as reducer, u as useHoneySwapState } from '../useHoneySwapState-
|
|
23
|
+
import { I as IHoneySwapState } from '../useHoneySwapState-B-vmIP1b.cjs';
|
|
24
|
+
export { r as reducer, u as useHoneySwapState } from '../useHoneySwapState-B-vmIP1b.cjs';
|
|
26
25
|
import * as _berachain_graphql_honey from '@berachain/graphql/honey';
|
|
27
|
-
import BigNumber from 'bignumber.js';
|
|
26
|
+
import BigNumber from '@berachain/utils/pkg/bignumber.js';
|
|
28
27
|
import * as _berachain_graphql_pol_api from '@berachain/graphql/pol/api';
|
|
29
|
-
import { GqlRewardVaultFilter, ApiVaultFragment, GetVaultsQueryVariables,
|
|
30
|
-
import
|
|
31
|
-
import { Config } from '@wagmi/core';
|
|
32
|
-
import { T as TransactionActionType } from '../txnEnum-BQKDfaeH.cjs';
|
|
28
|
+
import { GqlRewardVaultFilter, ApiVaultFragment, GetVaultsQueryVariables, GetVaultHistoryQuery, ApiValidatorFragment, GetValidatorsQueryVariables, GqlChain, GetValidatorsQuery, GetValidatorQuery, ApiValidatorMinimalFragment } from '@berachain/graphql/pol/api';
|
|
29
|
+
import { Address as Address$1 } from '@berachain/config';
|
|
33
30
|
import * as _berachain_graphql_pol_subgraph from '@berachain/graphql/pol/subgraph';
|
|
34
31
|
import { GetValidatorBlockStatsQuery, GetValidatorAnalyticsQuery } from '@berachain/graphql/pol/subgraph';
|
|
35
|
-
import '
|
|
36
|
-
import '
|
|
37
|
-
import '
|
|
38
|
-
import '
|
|
32
|
+
import '@berachain/config/internal';
|
|
33
|
+
import '../txnEnum-BlBYhNRl.cjs';
|
|
34
|
+
import '@wagmi/core';
|
|
35
|
+
import '../BeraError-_mQdkanr.cjs';
|
|
36
|
+
import 'react/jsx-runtime';
|
|
37
|
+
import '../honey-CYm0RWf4.cjs';
|
|
39
38
|
import '@berachain/config/internal/edge-config';
|
|
39
|
+
import '@ensofinance/sdk';
|
|
40
40
|
|
|
41
41
|
declare const useGetConvertToAssets: ({ sharesAmount, vaultAddress, vaultChainId, }: Omit<GetConvertToAssetsProps, "publicClient"> & {
|
|
42
42
|
vaultChainId?: number;
|
|
@@ -55,11 +55,9 @@ declare const useGetConvertToAssets: ({ sharesAmount, vaultAddress, vaultChainId
|
|
|
55
55
|
isLoading: boolean;
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
-
type IUseAggregatorsQuotesArgs = BeraJS.BaseFunctionArgs & {
|
|
59
|
-
tokenIn:
|
|
60
|
-
tokenOut:
|
|
61
|
-
tokenInDecimals: number;
|
|
62
|
-
tokenOutDecimals: number;
|
|
58
|
+
type IUseAggregatorsQuotesArgs$1 = BeraJS.BaseFunctionArgs & {
|
|
59
|
+
tokenIn: MinimalERC20;
|
|
60
|
+
tokenOut: MinimalERC20;
|
|
63
61
|
amount: string;
|
|
64
62
|
slippage: number;
|
|
65
63
|
referrer?: SwapReferrer;
|
|
@@ -72,9 +70,8 @@ type IUseAggregatorsQuotesArgs = BeraJS.BaseFunctionArgs & {
|
|
|
72
70
|
*/
|
|
73
71
|
honeyNativeState?: Pick<HoneyConfigContextReturn, "collateralList" | "protocol">;
|
|
74
72
|
};
|
|
75
|
-
declare
|
|
76
|
-
|
|
77
|
-
refresh: () => Promise<IRawAggregatorQuote<false> | IRawAggregatorQuote | undefined>[];
|
|
73
|
+
declare function useAggregatorsQuotes(args: IUseAggregatorsQuotesArgs$1, options?: DefaultHookOptions): {
|
|
74
|
+
refresh: () => Promise<IRawAggregatorQuote | undefined>[];
|
|
78
75
|
quotes: IRawAggregatorQuote[];
|
|
79
76
|
loadingAggregatorsNames: (Aggregators | null)[];
|
|
80
77
|
isLoading: boolean;
|
|
@@ -235,7 +232,7 @@ declare function useApiPool({ poolId, account, }: {
|
|
|
235
232
|
|
|
236
233
|
interface UseCreatePoolProps extends BeraJS.BaseFunctionArgs {
|
|
237
234
|
poolCreateTokens: Token[];
|
|
238
|
-
initialLiquidityTokens:
|
|
235
|
+
initialLiquidityTokens: TokenWithAmount[];
|
|
239
236
|
normalizedWeights: bigint[];
|
|
240
237
|
poolType: PoolType;
|
|
241
238
|
swapFee: number;
|
|
@@ -340,7 +337,9 @@ declare const useLpPosition: ({ pool, vaultAddress }: IUseLpPositionArgs, option
|
|
|
340
337
|
type NeedsApprovalToken = AllowanceToken & {
|
|
341
338
|
maxAmountIn: bigint;
|
|
342
339
|
};
|
|
343
|
-
declare
|
|
340
|
+
declare function useMultipleTokenApprovalsWithSlippage(tokenInput: AllowanceQueryItem[], options?: {
|
|
341
|
+
slippage?: number;
|
|
342
|
+
}): {
|
|
344
343
|
needsApproval: NeedsApprovalToken[];
|
|
345
344
|
refresh: () => void;
|
|
346
345
|
isLoading: boolean;
|
|
@@ -552,60 +551,79 @@ declare const usePools: (query: GetPoolsQueryVariables, options?: DefaultHookOpt
|
|
|
552
551
|
};
|
|
553
552
|
};
|
|
554
553
|
|
|
555
|
-
|
|
556
|
-
tokenIn
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
554
|
+
declare function usePriceImpact({ tokenIn, tokenOut, formattedAmountIn, formattedAmountOut, }: {
|
|
555
|
+
tokenIn: Token | undefined;
|
|
556
|
+
tokenOut: Token | undefined;
|
|
557
|
+
formattedAmountIn: string | undefined;
|
|
558
|
+
formattedAmountOut: string | undefined;
|
|
559
|
+
}): {
|
|
560
|
+
data: number | null | undefined;
|
|
561
|
+
isLoading: boolean;
|
|
562
|
+
};
|
|
563
|
+
|
|
564
|
+
type IUseAggregatorsQuotesArgs = BeraJS.BaseFunctionArgs & {
|
|
565
|
+
tokenIn: MinimalERC20;
|
|
566
|
+
tokenOut: MinimalERC20;
|
|
567
|
+
amount: string;
|
|
568
|
+
slippage: number;
|
|
569
|
+
referrer?: SwapReferrer;
|
|
570
|
+
rewardVault?: Address;
|
|
571
|
+
/**
|
|
572
|
+
* Useful cause the collaterals are provided byt he honeyContext and this way we can
|
|
573
|
+
* use the Provider only in the swap page where is needed.
|
|
574
|
+
*
|
|
575
|
+
* The collaterals for the honey mint/redeem aggregator.
|
|
576
|
+
*/
|
|
577
|
+
honeyNativeState?: Pick<HoneyConfigContextReturn, "collateralList" | "protocol">;
|
|
578
|
+
underlyingToken?: MinimalERC20 | null;
|
|
579
|
+
};
|
|
580
|
+
declare const USE_AGGREGATORS_QUOTES_QUERY_KEY = "useAggregatorsQuotes";
|
|
581
|
+
/**
|
|
582
|
+
* Standalone hook for fetching a quote from a single aggregator.
|
|
583
|
+
* Resolves wallet, fee, and feature flag context internally — use this
|
|
584
|
+
* when you need a quote outside of the `useAggregatorsQuotes` multi-quote flow.
|
|
585
|
+
*/
|
|
586
|
+
declare function useSingleAggregatorQuote(args: IUseAggregatorsQuotesArgs & {
|
|
587
|
+
aggregator: BaseAggregator;
|
|
588
|
+
}, options?: DefaultHookOptions): swr.SWRResponse<IRawAggregatorQuote | undefined, any, (Partial<swr__internal.PublicConfiguration<any, any, swr.BareFetcher<any>>> & Partial<swr__internal.ProviderConfiguration> & {
|
|
589
|
+
provider?: (cache: Readonly<swr.Cache>) => swr.Cache;
|
|
590
|
+
} & {
|
|
591
|
+
isEnabled?: boolean;
|
|
592
|
+
}) | undefined> | null;
|
|
593
|
+
|
|
594
|
+
type UseBendZapSupplyArgs = {
|
|
595
|
+
tokenIn?: BalanceToken;
|
|
596
|
+
loanToken: MinimalERC20;
|
|
597
|
+
bendVault: MinimalERC20;
|
|
560
598
|
rewardVault?: Address;
|
|
561
599
|
amount?: string;
|
|
562
600
|
slippage?: number;
|
|
563
|
-
chainId?: number;
|
|
564
601
|
};
|
|
565
602
|
/**
|
|
566
|
-
* Get the bend transaction requests for swapping tokens using Enso.
|
|
567
|
-
* @param {
|
|
568
|
-
* @returns {DefaultHookReturnType<GetZapTransactionResponse> & {tokens:
|
|
603
|
+
* Get the bend zap supply transaction requests for swapping tokens using Enso.
|
|
604
|
+
* @param {UseBendZapSupplyArgs} props - The props for the hook see {@link UseBendZapSupplyArgs}
|
|
605
|
+
* @returns {DefaultHookReturnType<GetZapTransactionResponse> & {tokens: BalanceToken[], refresh: () => void}}
|
|
569
606
|
*
|
|
570
|
-
* The bend transaction response data with polling enabled, see {@link GetZapTransactionResponse} and {@link
|
|
607
|
+
* The bend transaction response data with polling enabled, see {@link GetZapTransactionResponse} and {@link BalanceToken}
|
|
571
608
|
* @remarks The hook is only enabled when all parameters are provided and amount is greater than 0
|
|
572
|
-
* @see {@link useEnsoZap}
|
|
573
609
|
*/
|
|
574
|
-
declare function
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
refresh: () => void;
|
|
579
|
-
data: {
|
|
580
|
-
bundle: _ensofinance_sdk.BundleData;
|
|
581
|
-
transactions: GetZapTransactions;
|
|
582
|
-
supplyAmount: {
|
|
583
|
-
raw: bigint;
|
|
584
|
-
formatted: string;
|
|
585
|
-
};
|
|
586
|
-
priceImpact: number | undefined;
|
|
610
|
+
declare function useBendZapSupply({ tokenIn, loanToken, bendVault, rewardVault, amount, slippage, }: UseBendZapSupplyArgs, options?: DefaultHookOptions): {
|
|
611
|
+
zapSupplyAmount: {
|
|
612
|
+
raw: bigint;
|
|
613
|
+
formatted: string;
|
|
587
614
|
} | undefined;
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
}>;
|
|
615
|
+
priceImpact: number | null | undefined;
|
|
616
|
+
hasInsufficientNativeBalance: boolean | 0 | undefined;
|
|
617
|
+
isCrossChain: boolean | 0 | undefined;
|
|
618
|
+
nativeFee: string | undefined;
|
|
619
|
+
refresh: () => void;
|
|
620
|
+
data: IRawAggregatorQuote | undefined;
|
|
621
|
+
error: any;
|
|
622
|
+
mutate: swr.KeyedMutator<IRawAggregatorQuote>;
|
|
597
623
|
isValidating: boolean;
|
|
598
624
|
isLoading: boolean;
|
|
599
625
|
};
|
|
600
|
-
declare function
|
|
601
|
-
bundle: _ensofinance_sdk.BundleData;
|
|
602
|
-
transactions: GetZapTransactions;
|
|
603
|
-
supplyAmount: {
|
|
604
|
-
raw: bigint;
|
|
605
|
-
formatted: string;
|
|
606
|
-
};
|
|
607
|
-
priceImpact: number | undefined;
|
|
608
|
-
}, any, {
|
|
626
|
+
declare function useBendZapSupplyHelper({ tokenIn, loanToken, bendVault, rewardVault, amount, slippage, }: UseBendZapSupplyArgs, options?: DefaultHookOptions): swr.SWRResponse<IRawAggregatorQuote, any, {
|
|
609
627
|
refreshInterval: POLLING;
|
|
610
628
|
errorRetryInterval?: number | undefined;
|
|
611
629
|
errorRetryCount?: number;
|
|
@@ -643,52 +661,22 @@ declare function useBendTransactionRequestsHelper({ tokenIn, loanTokenAddress, l
|
|
|
643
661
|
}>;
|
|
644
662
|
|
|
645
663
|
/**
|
|
646
|
-
* Get the
|
|
647
|
-
* @returns {EnsoClient} The enso client, see {@link EnsoClient}
|
|
648
|
-
* @see {@link useEnsoBalances}
|
|
649
|
-
* @see {@link useTokens}
|
|
650
|
-
*/
|
|
651
|
-
declare function useEnsoZap({ chainId }: {
|
|
652
|
-
chainId?: number;
|
|
653
|
-
}): {
|
|
654
|
-
tokens: BalanceTokenWithMetadata[] | undefined;
|
|
655
|
-
getBendTransactionRequests: ({ tokenIn, amount, loanToken, bendVault, rewardVault, slippage, }: {
|
|
656
|
-
tokenIn?: Pick<BalanceToken, "address" | "decimals" | "chainId">;
|
|
657
|
-
amount: string;
|
|
658
|
-
loanToken: Address;
|
|
659
|
-
bendVault: Address;
|
|
660
|
-
rewardVault?: Address;
|
|
661
|
-
slippage: number;
|
|
662
|
-
}) => Promise<GetZapTransactionResponse>;
|
|
663
|
-
getZapTransactionRequests: ({ tokenIn, tokenOut, amount, slippage, }: {
|
|
664
|
-
tokenIn?: Pick<BalanceToken, "address" | "decimals" | "chainId">;
|
|
665
|
-
tokenOut: Address;
|
|
666
|
-
amount: string;
|
|
667
|
-
slippage: number;
|
|
668
|
-
}) => Promise<GetZapTransactionResponse>;
|
|
669
|
-
refreshTokens: () => Promise<BalanceTokenWithMetadata[] | undefined>;
|
|
670
|
-
};
|
|
671
|
-
|
|
672
|
-
/**
|
|
673
|
-
* Get the zap transaction requests for swapping tokens using Enso.
|
|
664
|
+
* Get the swap bundle for swapping tokens using Enso.
|
|
674
665
|
* @param {Pick<BalanceToken, "address" | "decimals">} tokenIn - The input token to swap from
|
|
675
666
|
* @param {Pick<BalanceToken, "address" | "decimals">} tokenOut - The output token to swap to
|
|
676
667
|
* @param {string} amount - The amount of input token to swap
|
|
677
668
|
* @param {number} slippage - The slippage tolerance to use for the route in percentage
|
|
678
|
-
* @returns {DefaultHookReturnType<GetZapTransactionResponse> & {tokens:
|
|
669
|
+
* @returns {DefaultHookReturnType<GetZapTransactionResponse> & {tokens: BalanceToken[], refresh: () => void}}
|
|
679
670
|
*
|
|
680
|
-
* The zap transaction response data with polling enabled, see {@link GetZapTransactionResponse} and {@link
|
|
671
|
+
* The zap transaction response data with polling enabled, see {@link GetZapTransactionResponse} and {@link BalanceToken}
|
|
681
672
|
* @remarks The hook is only enabled when all parameters are provided and amount is greater than 0
|
|
682
|
-
* @see {@link useEnsoZap}
|
|
683
673
|
*/
|
|
684
|
-
declare
|
|
685
|
-
tokenIn?: Pick<
|
|
686
|
-
tokenOut?: Pick<
|
|
674
|
+
declare function useEnsoSwapBundle({ tokenIn, tokenOut, amount, slippage, }: {
|
|
675
|
+
tokenIn?: Pick<MinimalERC20, "address" | "decimals" | "chainId">;
|
|
676
|
+
tokenOut?: Pick<MinimalERC20, "address" | "decimals">;
|
|
687
677
|
amount?: string;
|
|
688
678
|
slippage?: number;
|
|
689
|
-
|
|
690
|
-
}) => {
|
|
691
|
-
tokens: BalanceTokenWithMetadata[] | undefined;
|
|
679
|
+
}): {
|
|
692
680
|
refresh: () => void;
|
|
693
681
|
data: GetZapTransactionResponse | undefined;
|
|
694
682
|
error: any;
|
|
@@ -697,6 +685,39 @@ declare const useZapTransactionRequests: ({ tokenIn, tokenOut, amount, slippage,
|
|
|
697
685
|
isLoading: boolean;
|
|
698
686
|
};
|
|
699
687
|
|
|
688
|
+
type UseZapStakeBeraArgs = {
|
|
689
|
+
inputToken: MinimalERC20 | undefined;
|
|
690
|
+
amount: string;
|
|
691
|
+
underlyingToken: MinimalERC20 | undefined;
|
|
692
|
+
slippage?: number;
|
|
693
|
+
inputTokenPrice?: number;
|
|
694
|
+
tokenOut: MinimalERC20;
|
|
695
|
+
};
|
|
696
|
+
/**
|
|
697
|
+
* hook to get zap stake BERA transaction data from enso.
|
|
698
|
+
* supports cross-chain zaps from any chain to berachain staking.
|
|
699
|
+
*/
|
|
700
|
+
declare function useZapStakeBera({ inputToken, amount, underlyingToken, slippage, tokenOut, }: UseZapStakeBeraArgs, options?: DefaultHookOptions): {
|
|
701
|
+
data: {
|
|
702
|
+
priceImpactPercentage: number | null | undefined;
|
|
703
|
+
isCrossChain: boolean | undefined;
|
|
704
|
+
amountOut?: string | undefined;
|
|
705
|
+
amountIn?: string | undefined;
|
|
706
|
+
name?: any;
|
|
707
|
+
allowanceRequirements?: AllowanceQueryItem[] | undefined;
|
|
708
|
+
isNativeSwap?: boolean;
|
|
709
|
+
swapFeeBps?: number | undefined;
|
|
710
|
+
getCalldata?: ({ account }: {
|
|
711
|
+
account: viem.Address;
|
|
712
|
+
}) => Calldata;
|
|
713
|
+
};
|
|
714
|
+
refresh: () => void;
|
|
715
|
+
error: any;
|
|
716
|
+
mutate: swr.KeyedMutator<IRawAggregatorQuote>;
|
|
717
|
+
isValidating: boolean;
|
|
718
|
+
isLoading: boolean;
|
|
719
|
+
};
|
|
720
|
+
|
|
700
721
|
declare const useCreateProposal: ({ initialData, currentTopic, onError, }: {
|
|
701
722
|
initialData?: any;
|
|
702
723
|
currentTopic: GovernanceTopic;
|
|
@@ -1037,14 +1058,6 @@ declare const useClaimableFees: () => {
|
|
|
1037
1058
|
isLoading: boolean;
|
|
1038
1059
|
};
|
|
1039
1060
|
|
|
1040
|
-
type UseEarnedStakedBeraVaultArgs = {
|
|
1041
|
-
/**
|
|
1042
|
-
* The token that the user has staked
|
|
1043
|
-
*/
|
|
1044
|
-
receiptToken: TokenWithMetadata;
|
|
1045
|
-
};
|
|
1046
|
-
declare function useEarnedStakedBeraVault({ receiptToken }: UseEarnedStakedBeraVaultArgs, opt?: DefaultHookOptions): DefaultHookReturnType<string>;
|
|
1047
|
-
|
|
1048
1061
|
/**
|
|
1049
1062
|
* Hook that fetches and returns the highest APR (Annual Percentage Rate) from reward vaults.
|
|
1050
1063
|
*
|
|
@@ -1075,8 +1088,8 @@ interface UsePollMarketsResponse extends DefaultHookReturnType<GetMarkets> {
|
|
|
1075
1088
|
declare const usePollMarketsQueryKey: () => string;
|
|
1076
1089
|
declare const usePollMarkets: (options?: DefaultHookOptions) => UsePollMarketsResponse;
|
|
1077
1090
|
|
|
1078
|
-
declare function useQueuedBeraUnlock({
|
|
1079
|
-
|
|
1091
|
+
declare function useQueuedBeraUnlock({ receiptTokenAddresses, account, version, }: {
|
|
1092
|
+
receiptTokenAddresses: Address[];
|
|
1080
1093
|
account?: Address | string;
|
|
1081
1094
|
version: "V1" | "V2";
|
|
1082
1095
|
}, options?: DefaultHookOptions): {
|
|
@@ -1204,7 +1217,32 @@ declare const useRewardVaults: (args: {
|
|
|
1204
1217
|
isLoading: boolean;
|
|
1205
1218
|
};
|
|
1206
1219
|
|
|
1207
|
-
|
|
1220
|
+
type UseStakedAPR = {
|
|
1221
|
+
_timestamp: number;
|
|
1222
|
+
apr: string;
|
|
1223
|
+
}[];
|
|
1224
|
+
declare function useStakedAPR({ range, }: {
|
|
1225
|
+
range: GqlVaultSnapshotDataRange;
|
|
1226
|
+
}): DefaultHookReturnType<UseStakedAPR>;
|
|
1227
|
+
|
|
1228
|
+
declare const useStakedData: (stakingConfigs: StakingConfig[]) => swr.SWRResponse<StakedBeraAsset[] | undefined, any, swr.SWRConfiguration<StakedBeraAsset[] | undefined, any, (arg: readonly ["useStakedData", `0x${string}`, StakingConfig[], "DAY" | "WEEK"]) => swr__internal.FetcherResponse<StakedBeraAsset[] | undefined>> | undefined>;
|
|
1229
|
+
|
|
1230
|
+
type UseStakedBeraSnapshot = Record<Address, {
|
|
1231
|
+
_timestamp: number;
|
|
1232
|
+
total_assets: string;
|
|
1233
|
+
}[]>;
|
|
1234
|
+
declare function useStakedSnapshots({ range, addresses, }: {
|
|
1235
|
+
addresses: Address[];
|
|
1236
|
+
range: 30 | 60 | 90;
|
|
1237
|
+
}): DefaultHookReturnType<UseStakedBeraSnapshot>;
|
|
1238
|
+
|
|
1239
|
+
declare const useSWBeraVaultMetadata: (receiptTokenAddress?: Address) => swr.SWRResponse<VaultMetadata, any, {
|
|
1240
|
+
refreshInterval: POLLING;
|
|
1241
|
+
}>;
|
|
1242
|
+
|
|
1243
|
+
declare function useTotalStakedAmount({ vaultAddresses, }: {
|
|
1244
|
+
vaultAddresses: Address$1[];
|
|
1245
|
+
}): DefaultHookReturnType<Record<Address$1, bigint>>;
|
|
1208
1246
|
|
|
1209
1247
|
declare const useUserVaultInfo: (args: {
|
|
1210
1248
|
vaultAddress: Address | undefined;
|
|
@@ -1231,17 +1269,23 @@ declare const useVaultValidators: (id: Address, options?: DefaultHookOptions) =>
|
|
|
1231
1269
|
* Shorthand for `useTokenCurrentPrice` with the Bera token address.
|
|
1232
1270
|
* @returns
|
|
1233
1271
|
*/
|
|
1234
|
-
declare function useBeraCurrentPrice(opts?: DefaultHookOptions):
|
|
1272
|
+
declare function useBeraCurrentPrice(opts?: DefaultHookOptions): {
|
|
1273
|
+
data: TokenPriceInfo | undefined;
|
|
1274
|
+
error: any;
|
|
1275
|
+
mutate: swr.KeyedMutator<TokenCurrentPriceMap>;
|
|
1276
|
+
isValidating: boolean;
|
|
1277
|
+
isLoading: boolean;
|
|
1278
|
+
};
|
|
1235
1279
|
|
|
1236
1280
|
type UseMultipleTokenInformationResponse = DefaultHookReturnType<Token[]>;
|
|
1237
1281
|
type useMultipleTokenInformationArgs = {
|
|
1238
1282
|
addresses: string[] | readonly string[] | undefined;
|
|
1283
|
+
chainId?: number;
|
|
1239
1284
|
};
|
|
1240
|
-
declare
|
|
1285
|
+
declare function useMultipleTokenInformation(args: useMultipleTokenInformationArgs, options?: DefaultHookOptions): UseMultipleTokenInformationResponse;
|
|
1241
1286
|
|
|
1242
1287
|
type UsePollAllowancesArgs = {
|
|
1243
|
-
|
|
1244
|
-
tokens: Token[];
|
|
1288
|
+
items: AllowanceQueryItem[];
|
|
1245
1289
|
};
|
|
1246
1290
|
interface UsePollAllowancesResponse extends DefaultHookReturnType<AllowanceToken[] | undefined> {
|
|
1247
1291
|
}
|
|
@@ -1251,8 +1295,9 @@ interface UsePollAllowancesResponse extends DefaultHookReturnType<AllowanceToken
|
|
|
1251
1295
|
*
|
|
1252
1296
|
* @param contract the address of the ERC20 token contract
|
|
1253
1297
|
* @param tokens the list of tokens to poll allowances for
|
|
1298
|
+
* @param chainId the chain ID to check allowances on
|
|
1254
1299
|
*/
|
|
1255
|
-
declare
|
|
1300
|
+
declare function usePollAllowances(args: UsePollAllowancesArgs, options?: DefaultHookOptions): UsePollAllowancesResponse;
|
|
1256
1301
|
|
|
1257
1302
|
declare function usePollBalance({ address: addressString, owner, chainId, }: {
|
|
1258
1303
|
/**
|
|
@@ -1280,20 +1325,61 @@ type useStakingTokenInformationArgs = {
|
|
|
1280
1325
|
};
|
|
1281
1326
|
declare const useStakingTokenInformation: (args: useStakingTokenInformationArgs, options?: DefaultHookOptions) => UseStakingTokenInformationResponse;
|
|
1282
1327
|
|
|
1328
|
+
/**
|
|
1329
|
+
* @deprecated use useTokenPrice instead
|
|
1330
|
+
*/
|
|
1283
1331
|
declare function useTokenCurrentPrice({ address }: {
|
|
1284
1332
|
address: `0x${string}` | undefined;
|
|
1285
|
-
}, options?: DefaultHookOptions):
|
|
1333
|
+
}, options?: DefaultHookOptions): {
|
|
1334
|
+
data: TokenPriceInfo | undefined;
|
|
1335
|
+
error: any;
|
|
1336
|
+
mutate: swr.KeyedMutator<TokenCurrentPriceMap>;
|
|
1337
|
+
isValidating: boolean;
|
|
1338
|
+
isLoading: boolean;
|
|
1339
|
+
};
|
|
1286
1340
|
|
|
1341
|
+
/**
|
|
1342
|
+
* @deprecated use useTokenPrices instead that supports multichain tokens
|
|
1343
|
+
*/
|
|
1287
1344
|
declare function useTokenCurrentPrices({ addressIn, }?: {
|
|
1288
1345
|
addressIn?: string[] | readonly string[];
|
|
1289
|
-
}, options?: DefaultHookOptions):
|
|
1346
|
+
}, options?: DefaultHookOptions): {
|
|
1347
|
+
data: {
|
|
1348
|
+
[x: string]: TokenPriceInfo | undefined;
|
|
1349
|
+
};
|
|
1350
|
+
error: any;
|
|
1351
|
+
mutate: swr.KeyedMutator<TokenCurrentPriceMap>;
|
|
1352
|
+
isValidating: boolean;
|
|
1353
|
+
isLoading: boolean;
|
|
1354
|
+
};
|
|
1290
1355
|
|
|
1291
1356
|
type UseTokenInformationResponse = DefaultHookReturnType<Token | undefined>;
|
|
1292
1357
|
type UseTokenInformationArgs = {
|
|
1293
1358
|
address: string | undefined;
|
|
1294
|
-
chainId
|
|
1359
|
+
chainId: number;
|
|
1360
|
+
};
|
|
1361
|
+
declare function useTokenInformation(args: UseTokenInformationArgs, options?: DefaultHookOptions): UseTokenInformationResponse;
|
|
1362
|
+
|
|
1363
|
+
type TokenPriceInput = Pick<Token, "address" | "chainId">;
|
|
1364
|
+
type TokenPriceOutput = TokenPriceInput & {
|
|
1365
|
+
price: number;
|
|
1366
|
+
};
|
|
1367
|
+
type TokenPriceMap = Record<number, Record<Address, number>>;
|
|
1368
|
+
declare function useTokenPrices({ tokens, }?: {
|
|
1369
|
+
tokens?: TokenPriceInput[];
|
|
1370
|
+
}, options?: DefaultHookOptions): {
|
|
1371
|
+
isLoading: boolean;
|
|
1372
|
+
data: TokenPriceOutput[];
|
|
1373
|
+
priceMap: TokenPriceMap;
|
|
1374
|
+
getTokenPrice: (token?: TokenPriceInput) => number | undefined;
|
|
1375
|
+
};
|
|
1376
|
+
|
|
1377
|
+
declare function useTokenPrice({ token }: {
|
|
1378
|
+
token: TokenPriceInput | undefined;
|
|
1379
|
+
}, options?: DefaultHookOptions): {
|
|
1380
|
+
data: number | undefined;
|
|
1381
|
+
isLoading: boolean;
|
|
1295
1382
|
};
|
|
1296
|
-
declare const useTokenInformation: (args: UseTokenInformationArgs, options?: DefaultHookOptions) => UseTokenInformationResponse;
|
|
1297
1383
|
|
|
1298
1384
|
declare function useTokens(): {
|
|
1299
1385
|
/**
|
|
@@ -1309,58 +1395,14 @@ declare function useTokens(): {
|
|
|
1309
1395
|
featuredTokens: TokenWithMetadata[];
|
|
1310
1396
|
onRemoveToken: (token: Token) => void;
|
|
1311
1397
|
onAddToken: (token: Token) => void;
|
|
1398
|
+
refresh: () => void;
|
|
1399
|
+
ensoTokens: BalanceToken[] | undefined;
|
|
1312
1400
|
};
|
|
1313
1401
|
|
|
1314
1402
|
declare function useTotalSupply({ address }: {
|
|
1315
1403
|
address: Address | undefined;
|
|
1316
1404
|
}): swr.SWRResponse<bigint, any, any>;
|
|
1317
1405
|
|
|
1318
|
-
type TransactionStatus = "pending" | "confirmed" | "failed";
|
|
1319
|
-
interface Transaction {
|
|
1320
|
-
hash: string;
|
|
1321
|
-
description: string;
|
|
1322
|
-
actionType?: TransactionActionType;
|
|
1323
|
-
timestamp: number;
|
|
1324
|
-
status: TransactionStatus;
|
|
1325
|
-
confirmations?: number;
|
|
1326
|
-
chainId: number;
|
|
1327
|
-
}
|
|
1328
|
-
type NewTransaction = Omit<Transaction, "status">;
|
|
1329
|
-
type DataLegacy = Record<string, Record<number, Transaction[] | undefined>>;
|
|
1330
|
-
type Data = Record<string, Transaction[] | undefined>;
|
|
1331
|
-
declare function safeParseJsonData<T = DataLegacy | Data>(string: string | null): T;
|
|
1332
|
-
/**
|
|
1333
|
-
*
|
|
1334
|
-
* @param legacyData - The legacy data to convert to the new data format.
|
|
1335
|
-
* removes the nested chains and converts the data to a flat array.
|
|
1336
|
-
* @returns Data in the new format with the chainId added to each transaction.
|
|
1337
|
-
*/
|
|
1338
|
-
declare function convertLegacyDataToNewData(legacyData: DataLegacy): Data;
|
|
1339
|
-
/**
|
|
1340
|
-
* Filter out duplicate transactions by hash
|
|
1341
|
-
*/
|
|
1342
|
-
declare const filterDuplicatefn: (tx: Transaction, idx: number, arr: Transaction[]) => boolean;
|
|
1343
|
-
declare function mergeData(legacyData: DataLegacy, newData: Data): Data;
|
|
1344
|
-
declare function createTransactionStore({ config }: {
|
|
1345
|
-
config: Config;
|
|
1346
|
-
}): {
|
|
1347
|
-
addTransaction: (account: string, transaction: NewTransaction) => void;
|
|
1348
|
-
clearTransactions: (account: string) => void;
|
|
1349
|
-
getTransactions: (account: string) => Transaction[];
|
|
1350
|
-
onChange: (fn: () => void) => () => void;
|
|
1351
|
-
waitForPendingTransactions: (account: string) => Promise<void>;
|
|
1352
|
-
};
|
|
1353
|
-
type TransactionStore = ReturnType<typeof createTransactionStore>;
|
|
1354
|
-
|
|
1355
|
-
declare function TransactionStoreProvider({ children, }: {
|
|
1356
|
-
children: react__default.ReactNode;
|
|
1357
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1358
|
-
declare function useTransactionStore(): TransactionStore;
|
|
1359
|
-
|
|
1360
|
-
declare function useAddRecentTransaction(): (transaction: NewTransaction) => void;
|
|
1361
|
-
|
|
1362
|
-
declare function useRecentTransactions(): Transaction[];
|
|
1363
|
-
|
|
1364
1406
|
/**
|
|
1365
1407
|
*
|
|
1366
1408
|
* @returns Timestamp in seconds
|
|
@@ -1700,4 +1742,4 @@ declare function useValidatorRewardAllocation(pubKey: Address, options?: Default
|
|
|
1700
1742
|
isLoading: boolean;
|
|
1701
1743
|
};
|
|
1702
1744
|
|
|
1703
|
-
export {
|
|
1745
|
+
export { IHoneySwapState, IUseContractWriteArgs, type LiquidityMismatchInfo, type ManagedValidatorRole, type OnChainPoolFragment, type Oracle, OracleMode, type RewardVault, type TokenPriceInput, type TokenPriceMap, type TokenPriceOutput, USE_AGGREGATORS_QUOTES_QUERY_KEY, type UseCappedGloballyResponse, type UseCappedRelativelyResponse, type UseCollateralWeightsResponse, UseContractWriteApi, type UseIsBadCollateralResponse, type UseMultipleTokenInformationResponse, type UsePollAllowancesArgs, type UsePollAllowancesResponse, type UsePollBalancesResponse, type UsePollMarketsResponse, type UsePollProposalResponse, type UsePollValidatorInfoResponse, type UsePollWalletBalancesArgs, type UseRewardVaultResponse, type UseStakingTokenInformationResponse, type UseTokenInformationArgs, type UseTokenInformationResponse, useAggregatorsQuotes, useAggregatorsRouterFeeBps, useAllUserPools, useAllUserPoolsQueryKey, useAllValidators, useAllValidatorsQueryKey, useApiEnrichedAllocation, useApiPool, useApiPoolQueryKey, useApiValidator, useApiValidatorQueryKey, useBaselineRewardAllocation, useBendZapSupply, useBendZapSupplyHelper, useBeraContractWrite, useBeraCurrentPrice, useBgtAprSimulation, useBgtUnstakedBalance, useBlockToTimestamp, useCappedGlobally, useCappedRelatively, useClaimableFees, useCollateralWeights, useCreatePool, useCreateProposal, useDailyValidatorBlockStats, useDefaultRewardAllocation, useEnsoSwapBundle, useExploitedTokens, useExploitedTokensQueryKey, useGetConvertToAssets, useGetPastVotes, useGetVerifiedAbi, useGlobalLiquidityAndSwapVolume, useHasVoted, useHighestVaultsAPR, useHistoryState, useHoneyAlerts, useHoneyBalances, useHoneyChartData, useHoneyGlobalData, useHoneyVaultsBalance, useIsBadCollateralAsset, useIsBasketModeEnabled, useIsCanceller, useLiquidityMismatch, useLpPosition, useManagedValidatorByAccount, useManagedValidatorRole, useMultipleTokenApprovalsWithSlippage, useMultipleTokenInformation, type useMultipleTokenInformationArgs, useOnChainPoolData, useOnChainPoolDataQueryKey, useOnChainValidator, usePollAllProposals, usePollAllProposalsQueryKey, usePollAllowances, usePollBalance, usePollGlobalData, usePollMarkets, usePollMarketsQueryKey, usePollPoolCreationRelayerApproval, usePollProposal, usePollProposalThreshold, usePollProposalVotes, usePollProposalVotesQueryKey, usePollUserDelegates, usePollWalletBalances, usePool, usePoolEvents, usePoolHistoricalData, usePools, usePoolsQueryKey, usePrevious, usePriceImpact, useProposalFromTx, useProposalSnapshot, useProposalState, useProposalTimelockState, usePythLatestPrices, usePythUpdateFee, useQueuedBeraUnlock, useQuorum, useRewardTokenToBeraRate, useRewardVault, useRewardVaultBalanceFromStakingToken, useRewardVaultFromToken, useRewardVaultIncentives, useRewardVaultQueryKey, useRewardVaultRewards, useRewardVaults, useRewardVaultsQueryKey, useSWBeraVaultMetadata, useSingleAggregatorQuote, useStakedAPR, useStakedData, useStakedSnapshots, useStakingPoolBatch, useStakingTokenInformation, type useStakingTokenInformationArgs, useSubgraphPoolQueryKey, useSubgraphUserValidators, useTokenCurrentPrice, useTokenCurrentPrices, useTokenInformation, useTokenPrice, useTokenPrices, useTokens, useTotalStakedAmount, useTotalSupply, useUserActiveValidators, useUserBoostsOnValidator, useUserClaimableIncentives, useUserStakingPositions, useUserVaultInfo, useUserVaults, useValidator, useValidatorAnalytics, useValidatorCommission, useValidatorEstimatedBgtPerYear, useValidatorQueuedCommission, useValidatorQueuedOperatorAddress, useValidatorQueuedRewardAllocation, useValidatorRewardAllocation, useVaultAddress, useVaultHistory, useVaultValidators, useZapStakeBera };
|