@berachain/berajs 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{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} +80 -107
- package/dist/actions/{index.d.ts → exports.d.ts} +80 -107
- package/dist/actions/exports.mjs +2 -0
- package/dist/actions/exports.mjs.map +1 -0
- package/dist/chunk-575OK77P.mjs +2 -0
- package/dist/chunk-575OK77P.mjs.map +1 -0
- package/dist/chunk-7GWTHOLO.mjs +2 -0
- package/dist/chunk-7GWTHOLO.mjs.map +1 -0
- package/dist/chunk-7SC4VD3U.cjs +2 -0
- package/dist/chunk-7SC4VD3U.cjs.map +1 -0
- package/dist/chunk-BHNQX4XC.mjs +2 -0
- package/dist/chunk-BHNQX4XC.mjs.map +1 -0
- package/dist/chunk-BOYZVULX.cjs +2 -0
- package/dist/chunk-BOYZVULX.cjs.map +1 -0
- package/dist/chunk-C3FHGFLK.mjs +2 -0
- package/dist/chunk-C3FHGFLK.mjs.map +1 -0
- package/dist/chunk-C3G5KXCH.mjs +2 -0
- package/dist/chunk-C3G5KXCH.mjs.map +1 -0
- package/dist/chunk-CYKCYPFR.cjs +2 -0
- package/dist/chunk-CYKCYPFR.cjs.map +1 -0
- package/dist/chunk-F4BKSBEM.mjs +2 -0
- package/dist/chunk-F4BKSBEM.mjs.map +1 -0
- package/dist/chunk-FL2N3XHK.cjs +2 -0
- package/dist/chunk-FL2N3XHK.cjs.map +1 -0
- package/dist/chunk-G6NA6NSM.mjs +4 -0
- package/dist/chunk-G6NA6NSM.mjs.map +1 -0
- package/dist/chunk-H2QSRMVS.mjs +2 -0
- package/dist/chunk-H2QSRMVS.mjs.map +1 -0
- package/dist/chunk-IJM76AWK.cjs +4 -0
- package/dist/chunk-IJM76AWK.cjs.map +1 -0
- package/dist/chunk-MTS5SZLA.mjs +2 -0
- package/dist/chunk-MTS5SZLA.mjs.map +1 -0
- package/dist/chunk-MUNAP5TM.cjs +2 -0
- package/dist/chunk-MUNAP5TM.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-OS5AJMYJ.cjs +2 -0
- package/dist/chunk-OS5AJMYJ.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-TJWKS54T.mjs +2 -0
- package/dist/chunk-TJWKS54T.mjs.map +1 -0
- package/dist/chunk-UQUWMHVF.cjs +2 -0
- package/dist/chunk-UQUWMHVF.cjs.map +1 -0
- package/dist/chunk-UXUWSRVV.cjs +2 -0
- package/dist/chunk-UXUWSRVV.cjs.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-WTCBORPB.cjs +2 -0
- package/dist/chunk-WTCBORPB.cjs.map +1 -0
- package/dist/chunk-XNJLSA6P.cjs +2 -0
- package/dist/chunk-XNJLSA6P.cjs.map +1 -0
- package/dist/chunk-YQGZMWDT.mjs +2 -0
- package/dist/chunk-YQGZMWDT.mjs.map +1 -0
- package/dist/chunk-YXLFOEZN.mjs +2 -0
- package/dist/chunk-YXLFOEZN.mjs.map +1 -0
- package/dist/chunk-ZAKA4TGK.cjs +2 -0
- package/dist/chunk-ZAKA4TGK.cjs.map +1 -0
- package/dist/chunk-ZQRACIGR.mjs +2 -0
- package/dist/chunk-ZQRACIGR.mjs.map +1 -0
- package/dist/contexts/exports.cjs +2 -0
- package/dist/contexts/exports.cjs.map +1 -0
- package/dist/contexts/{index.d.ts → exports.d.cts} +19 -28
- package/dist/contexts/{index.d.cts → exports.d.ts} +19 -28
- package/dist/contexts/exports.mjs +2 -0
- package/dist/contexts/exports.mjs.map +1 -0
- package/dist/contracts-CQIPk0Jc.d.cts +74 -0
- package/dist/contracts-CQIPk0Jc.d.ts +74 -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 +24 -0
- package/dist/enum/exports.d.ts +24 -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 +385 -0
- package/dist/errors/exports.d.ts +385 -0
- package/dist/errors/exports.mjs +2 -0
- package/dist/{getValidatorQueuedOperatorAddress-9xY2RUGe.d.cts → getValidatorQueuedOperatorAddress-BX35p2Lv.d.ts} +125 -15
- package/dist/{getValidatorQueuedOperatorAddress-Ne2zoiiV.d.ts → getValidatorQueuedOperatorAddress-It0GsdvQ.d.cts} +125 -15
- package/dist/global.d-Ba-NIojH.d.cts +474 -0
- package/dist/global.d-By70bEv2.d.ts +474 -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} +223 -173
- package/dist/hooks/{index.d.ts → exports.d.ts} +223 -173
- package/dist/hooks/exports.mjs +4 -0
- package/dist/hooks/exports.mjs.map +1 -0
- package/dist/{BexStatusProvider-nS3NcdxI.d.cts → transactionStore-BvStaXf3.d.ts} +41 -1
- package/dist/{BexStatusProvider-nS3NcdxI.d.ts → transactionStore-CQrGYSY2.d.cts} +41 -1
- package/dist/{txnEnum-BQKDfaeH.d.cts → txnEnum-BYNbCxla.d.cts} +1 -0
- package/dist/{txnEnum-BQKDfaeH.d.ts → txnEnum-BYNbCxla.d.ts} +1 -0
- package/dist/types/exports.cjs +1 -0
- package/dist/types/exports.cjs.map +1 -0
- package/dist/types/exports.d.cts +58 -0
- package/dist/types/exports.d.ts +58 -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 +16 -17
- 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 +21 -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/{hooks/transactions → contexts}/TransactionStoreContext.tsx +32 -4
- package/src/contexts/block-time-provider.tsx +1 -1
- package/src/contexts/{index.ts → exports.ts} +1 -1
- package/src/data/contracts.ts +16 -1
- 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 +50 -11
- 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 +2 -2
- package/src/errors/assert.ts +4 -2
- package/src/errors/assert.unit.test.ts +6 -2
- package/src/errors/errorMap.ts +16 -6
- package/src/errors/{index.ts → exports.ts} +7 -0
- package/src/errors/getErrorMessage.ts +22 -3
- package/src/errors/getRevertReason.integration.test.ts +17 -5
- 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} +18 -7
- 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/transactions/transactionStore.ts +86 -65
- package/src/hooks/transactions/transactionStore.unit.test.ts +54 -1
- package/src/hooks/transactions/useAddRecentTransaction.ts +1 -1
- package/src/hooks/transactions/useRecentTransactions.ts +1 -1
- package/src/hooks/transactions/useSetTransactionStatus.ts +31 -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/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,44 @@
|
|
|
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-It0GsdvQ.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-Ba-NIojH.cjs';
|
|
5
|
+
export { T as TxnEventKeys } from '../global.d-Ba-NIojH.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';
|
|
9
|
-
|
|
11
|
+
import { GetPoolsQueryVariables, MinimalPoolFragment, GqlPoolEventType, PoolHistoricalDataFragment, GqlRewardVaultDynamicData, GqlVaultSnapshotDataRange, GqlValidatorDynamicData } from '@berachain/graphql/dex/api';
|
|
12
|
+
import { N as NewTransaction, c as Transaction, d as TransactionStatus } from '../transactionStore-CQrGYSY2.cjs';
|
|
13
|
+
export { e as Data, D as DataLegacy, T as TransactionStore, f as convertLegacyDataToNewData, h as createTransactionStore, g as filterDuplicatefn, m as mergeData, s as safeParseJsonData, u as useBexStatus } from '../transactionStore-CQrGYSY2.cjs';
|
|
10
14
|
import { PoolType } from '@berachain-foundation/berancer-sdk';
|
|
11
15
|
import { SubgraphPoolFragment } from '@berachain/graphql/dex/subgraph';
|
|
12
16
|
import { P as POLLING } from '../polling-BKnyavLI.cjs';
|
|
13
17
|
import * as swr__internal from 'swr/_internal';
|
|
14
|
-
import {
|
|
15
|
-
import * as _ensofinance_sdk from '@ensofinance/sdk';
|
|
16
|
-
export { BundleData } from '@ensofinance/sdk';
|
|
18
|
+
import { GetZapTransactionResponse } from '../types/exports.cjs';
|
|
17
19
|
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
20
|
import * as swr_infinite from 'swr/infinite';
|
|
21
21
|
import { SWRInfiniteResponse, SWRInfiniteKeyLoader } from 'swr/infinite';
|
|
22
22
|
import * as _berachain_graphql_governance from '@berachain/graphql/governance';
|
|
23
23
|
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-
|
|
24
|
+
import { I as IHoneySwapState } from '../useHoneySwapState-B-vmIP1b.cjs';
|
|
25
|
+
export { r as reducer, u as useHoneySwapState } from '../useHoneySwapState-B-vmIP1b.cjs';
|
|
26
26
|
import * as _berachain_graphql_honey from '@berachain/graphql/honey';
|
|
27
|
-
import BigNumber from 'bignumber.js';
|
|
27
|
+
import BigNumber from '@berachain/utils/pkg/bignumber.js';
|
|
28
28
|
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';
|
|
29
|
+
import { GqlRewardVaultFilter, ApiVaultFragment, GetVaultsQueryVariables, GetVaultHistoryQuery, ApiValidatorFragment, GetValidatorsQueryVariables, GqlChain, GetValidatorsQuery, GetValidatorQuery, ApiValidatorMinimalFragment } from '@berachain/graphql/pol/api';
|
|
30
|
+
import { Address as Address$1 } from '@berachain/config';
|
|
33
31
|
import * as _berachain_graphql_pol_subgraph from '@berachain/graphql/pol/subgraph';
|
|
34
32
|
import { GetValidatorBlockStatsQuery, GetValidatorAnalyticsQuery } from '@berachain/graphql/pol/subgraph';
|
|
35
|
-
import '
|
|
36
|
-
import '
|
|
37
|
-
import '
|
|
38
|
-
import '
|
|
33
|
+
import '@berachain/config/internal';
|
|
34
|
+
import '../contracts-CQIPk0Jc.cjs';
|
|
35
|
+
import '@wagmi/core';
|
|
36
|
+
import '../txnEnum-BYNbCxla.cjs';
|
|
37
|
+
import '../BeraError-_mQdkanr.cjs';
|
|
38
|
+
import 'react/jsx-runtime';
|
|
39
|
+
import '../honey-CYm0RWf4.cjs';
|
|
39
40
|
import '@berachain/config/internal/edge-config';
|
|
41
|
+
import '@ensofinance/sdk';
|
|
40
42
|
|
|
41
43
|
declare const useGetConvertToAssets: ({ sharesAmount, vaultAddress, vaultChainId, }: Omit<GetConvertToAssetsProps, "publicClient"> & {
|
|
42
44
|
vaultChainId?: number;
|
|
@@ -55,11 +57,9 @@ declare const useGetConvertToAssets: ({ sharesAmount, vaultAddress, vaultChainId
|
|
|
55
57
|
isLoading: boolean;
|
|
56
58
|
};
|
|
57
59
|
|
|
58
|
-
type IUseAggregatorsQuotesArgs = BeraJS.BaseFunctionArgs & {
|
|
59
|
-
tokenIn:
|
|
60
|
-
tokenOut:
|
|
61
|
-
tokenInDecimals: number;
|
|
62
|
-
tokenOutDecimals: number;
|
|
60
|
+
type IUseAggregatorsQuotesArgs$1 = BeraJS.BaseFunctionArgs & {
|
|
61
|
+
tokenIn: MinimalERC20;
|
|
62
|
+
tokenOut: MinimalERC20;
|
|
63
63
|
amount: string;
|
|
64
64
|
slippage: number;
|
|
65
65
|
referrer?: SwapReferrer;
|
|
@@ -72,9 +72,8 @@ type IUseAggregatorsQuotesArgs = BeraJS.BaseFunctionArgs & {
|
|
|
72
72
|
*/
|
|
73
73
|
honeyNativeState?: Pick<HoneyConfigContextReturn, "collateralList" | "protocol">;
|
|
74
74
|
};
|
|
75
|
-
declare
|
|
76
|
-
|
|
77
|
-
refresh: () => Promise<IRawAggregatorQuote<false> | IRawAggregatorQuote | undefined>[];
|
|
75
|
+
declare function useAggregatorsQuotes(args: IUseAggregatorsQuotesArgs$1, options?: DefaultHookOptions): {
|
|
76
|
+
refresh: () => Promise<IRawAggregatorQuote | undefined>[];
|
|
78
77
|
quotes: IRawAggregatorQuote[];
|
|
79
78
|
loadingAggregatorsNames: (Aggregators | null)[];
|
|
80
79
|
isLoading: boolean;
|
|
@@ -235,7 +234,7 @@ declare function useApiPool({ poolId, account, }: {
|
|
|
235
234
|
|
|
236
235
|
interface UseCreatePoolProps extends BeraJS.BaseFunctionArgs {
|
|
237
236
|
poolCreateTokens: Token[];
|
|
238
|
-
initialLiquidityTokens:
|
|
237
|
+
initialLiquidityTokens: TokenWithAmount[];
|
|
239
238
|
normalizedWeights: bigint[];
|
|
240
239
|
poolType: PoolType;
|
|
241
240
|
swapFee: number;
|
|
@@ -340,7 +339,9 @@ declare const useLpPosition: ({ pool, vaultAddress }: IUseLpPositionArgs, option
|
|
|
340
339
|
type NeedsApprovalToken = AllowanceToken & {
|
|
341
340
|
maxAmountIn: bigint;
|
|
342
341
|
};
|
|
343
|
-
declare
|
|
342
|
+
declare function useMultipleTokenApprovalsWithSlippage(tokenInput: AllowanceQueryItem[], options?: {
|
|
343
|
+
slippage?: number;
|
|
344
|
+
}): {
|
|
344
345
|
needsApproval: NeedsApprovalToken[];
|
|
345
346
|
refresh: () => void;
|
|
346
347
|
isLoading: boolean;
|
|
@@ -552,60 +553,79 @@ declare const usePools: (query: GetPoolsQueryVariables, options?: DefaultHookOpt
|
|
|
552
553
|
};
|
|
553
554
|
};
|
|
554
555
|
|
|
555
|
-
|
|
556
|
-
tokenIn
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
556
|
+
declare function usePriceImpact({ tokenIn, tokenOut, formattedAmountIn, formattedAmountOut, }: {
|
|
557
|
+
tokenIn: Token | undefined;
|
|
558
|
+
tokenOut: Token | undefined;
|
|
559
|
+
formattedAmountIn: string | undefined;
|
|
560
|
+
formattedAmountOut: string | undefined;
|
|
561
|
+
}): {
|
|
562
|
+
data: number | null | undefined;
|
|
563
|
+
isLoading: boolean;
|
|
564
|
+
};
|
|
565
|
+
|
|
566
|
+
type IUseAggregatorsQuotesArgs = BeraJS.BaseFunctionArgs & {
|
|
567
|
+
tokenIn: MinimalERC20;
|
|
568
|
+
tokenOut: MinimalERC20;
|
|
569
|
+
amount: string;
|
|
570
|
+
slippage: number;
|
|
571
|
+
referrer?: SwapReferrer;
|
|
572
|
+
rewardVault?: Address;
|
|
573
|
+
/**
|
|
574
|
+
* Useful cause the collaterals are provided byt he honeyContext and this way we can
|
|
575
|
+
* use the Provider only in the swap page where is needed.
|
|
576
|
+
*
|
|
577
|
+
* The collaterals for the honey mint/redeem aggregator.
|
|
578
|
+
*/
|
|
579
|
+
honeyNativeState?: Pick<HoneyConfigContextReturn, "collateralList" | "protocol">;
|
|
580
|
+
underlyingToken?: MinimalERC20 | null;
|
|
581
|
+
};
|
|
582
|
+
declare const USE_AGGREGATORS_QUOTES_QUERY_KEY = "useAggregatorsQuotes";
|
|
583
|
+
/**
|
|
584
|
+
* Standalone hook for fetching a quote from a single aggregator.
|
|
585
|
+
* Resolves wallet, fee, and feature flag context internally — use this
|
|
586
|
+
* when you need a quote outside of the `useAggregatorsQuotes` multi-quote flow.
|
|
587
|
+
*/
|
|
588
|
+
declare function useSingleAggregatorQuote(args: IUseAggregatorsQuotesArgs & {
|
|
589
|
+
aggregator: BaseAggregator;
|
|
590
|
+
}, options?: DefaultHookOptions): swr.SWRResponse<IRawAggregatorQuote | undefined, any, (Partial<swr__internal.PublicConfiguration<any, any, swr.BareFetcher<any>>> & Partial<swr__internal.ProviderConfiguration> & {
|
|
591
|
+
provider?: (cache: Readonly<swr.Cache>) => swr.Cache;
|
|
592
|
+
} & {
|
|
593
|
+
isEnabled?: boolean;
|
|
594
|
+
}) | undefined> | null;
|
|
595
|
+
|
|
596
|
+
type UseBendZapSupplyArgs = {
|
|
597
|
+
tokenIn?: BalanceToken;
|
|
598
|
+
loanToken: MinimalERC20;
|
|
599
|
+
bendVault: MinimalERC20;
|
|
560
600
|
rewardVault?: Address;
|
|
561
601
|
amount?: string;
|
|
562
602
|
slippage?: number;
|
|
563
|
-
chainId?: number;
|
|
564
603
|
};
|
|
565
604
|
/**
|
|
566
|
-
* Get the bend transaction requests for swapping tokens using Enso.
|
|
567
|
-
* @param {
|
|
568
|
-
* @returns {DefaultHookReturnType<GetZapTransactionResponse> & {tokens:
|
|
605
|
+
* Get the bend zap supply transaction requests for swapping tokens using Enso.
|
|
606
|
+
* @param {UseBendZapSupplyArgs} props - The props for the hook see {@link UseBendZapSupplyArgs}
|
|
607
|
+
* @returns {DefaultHookReturnType<GetZapTransactionResponse> & {tokens: BalanceToken[], refresh: () => void}}
|
|
569
608
|
*
|
|
570
|
-
* The bend transaction response data with polling enabled, see {@link GetZapTransactionResponse} and {@link
|
|
609
|
+
* The bend transaction response data with polling enabled, see {@link GetZapTransactionResponse} and {@link BalanceToken}
|
|
571
610
|
* @remarks The hook is only enabled when all parameters are provided and amount is greater than 0
|
|
572
|
-
* @see {@link useEnsoZap}
|
|
573
611
|
*/
|
|
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;
|
|
612
|
+
declare function useBendZapSupply({ tokenIn, loanToken, bendVault, rewardVault, amount, slippage, }: UseBendZapSupplyArgs, options?: DefaultHookOptions): {
|
|
613
|
+
zapSupplyAmount: {
|
|
614
|
+
raw: bigint;
|
|
615
|
+
formatted: string;
|
|
587
616
|
} | undefined;
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
}>;
|
|
617
|
+
priceImpact: number | null | undefined;
|
|
618
|
+
hasInsufficientNativeBalance: boolean | 0 | undefined;
|
|
619
|
+
isCrossChain: boolean | 0 | undefined;
|
|
620
|
+
nativeFee: string | undefined;
|
|
621
|
+
refresh: () => void;
|
|
622
|
+
data: IRawAggregatorQuote | undefined;
|
|
623
|
+
error: any;
|
|
624
|
+
mutate: swr.KeyedMutator<IRawAggregatorQuote>;
|
|
597
625
|
isValidating: boolean;
|
|
598
626
|
isLoading: boolean;
|
|
599
627
|
};
|
|
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, {
|
|
628
|
+
declare function useBendZapSupplyHelper({ tokenIn, loanToken, bendVault, rewardVault, amount, slippage, }: UseBendZapSupplyArgs, options?: DefaultHookOptions): swr.SWRResponse<IRawAggregatorQuote, any, {
|
|
609
629
|
refreshInterval: POLLING;
|
|
610
630
|
errorRetryInterval?: number | undefined;
|
|
611
631
|
errorRetryCount?: number;
|
|
@@ -643,52 +663,22 @@ declare function useBendTransactionRequestsHelper({ tokenIn, loanTokenAddress, l
|
|
|
643
663
|
}>;
|
|
644
664
|
|
|
645
665
|
/**
|
|
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.
|
|
666
|
+
* Get the swap bundle for swapping tokens using Enso.
|
|
674
667
|
* @param {Pick<BalanceToken, "address" | "decimals">} tokenIn - The input token to swap from
|
|
675
668
|
* @param {Pick<BalanceToken, "address" | "decimals">} tokenOut - The output token to swap to
|
|
676
669
|
* @param {string} amount - The amount of input token to swap
|
|
677
670
|
* @param {number} slippage - The slippage tolerance to use for the route in percentage
|
|
678
|
-
* @returns {DefaultHookReturnType<GetZapTransactionResponse> & {tokens:
|
|
671
|
+
* @returns {DefaultHookReturnType<GetZapTransactionResponse> & {tokens: BalanceToken[], refresh: () => void}}
|
|
679
672
|
*
|
|
680
|
-
* The zap transaction response data with polling enabled, see {@link GetZapTransactionResponse} and {@link
|
|
673
|
+
* The zap transaction response data with polling enabled, see {@link GetZapTransactionResponse} and {@link BalanceToken}
|
|
681
674
|
* @remarks The hook is only enabled when all parameters are provided and amount is greater than 0
|
|
682
|
-
* @see {@link useEnsoZap}
|
|
683
675
|
*/
|
|
684
|
-
declare
|
|
685
|
-
tokenIn?: Pick<
|
|
686
|
-
tokenOut?: Pick<
|
|
676
|
+
declare function useEnsoSwapBundle({ tokenIn, tokenOut, amount, slippage, }: {
|
|
677
|
+
tokenIn?: Pick<MinimalERC20, "address" | "decimals" | "chainId">;
|
|
678
|
+
tokenOut?: Pick<MinimalERC20, "address" | "decimals">;
|
|
687
679
|
amount?: string;
|
|
688
680
|
slippage?: number;
|
|
689
|
-
|
|
690
|
-
}) => {
|
|
691
|
-
tokens: BalanceTokenWithMetadata[] | undefined;
|
|
681
|
+
}): {
|
|
692
682
|
refresh: () => void;
|
|
693
683
|
data: GetZapTransactionResponse | undefined;
|
|
694
684
|
error: any;
|
|
@@ -697,6 +687,39 @@ declare const useZapTransactionRequests: ({ tokenIn, tokenOut, amount, slippage,
|
|
|
697
687
|
isLoading: boolean;
|
|
698
688
|
};
|
|
699
689
|
|
|
690
|
+
type UseZapStakeBeraArgs = {
|
|
691
|
+
inputToken: MinimalERC20 | undefined;
|
|
692
|
+
amount: string;
|
|
693
|
+
underlyingToken: MinimalERC20 | undefined;
|
|
694
|
+
slippage?: number;
|
|
695
|
+
inputTokenPrice?: number;
|
|
696
|
+
tokenOut: MinimalERC20;
|
|
697
|
+
};
|
|
698
|
+
/**
|
|
699
|
+
* hook to get zap stake BERA transaction data from enso.
|
|
700
|
+
* supports cross-chain zaps from any chain to berachain staking.
|
|
701
|
+
*/
|
|
702
|
+
declare function useZapStakeBera({ inputToken, amount, underlyingToken, slippage, tokenOut, }: UseZapStakeBeraArgs, options?: DefaultHookOptions): {
|
|
703
|
+
data: {
|
|
704
|
+
priceImpactPercentage: number | null | undefined;
|
|
705
|
+
isCrossChain: boolean | undefined;
|
|
706
|
+
amountOut?: string | undefined;
|
|
707
|
+
amountIn?: string | undefined;
|
|
708
|
+
name?: any;
|
|
709
|
+
allowanceRequirements?: AllowanceQueryItem[] | undefined;
|
|
710
|
+
isNativeSwap?: boolean;
|
|
711
|
+
swapFeeBps?: number | undefined;
|
|
712
|
+
getCalldata?: ({ account }: {
|
|
713
|
+
account: viem.Address;
|
|
714
|
+
}) => Calldata;
|
|
715
|
+
};
|
|
716
|
+
refresh: () => void;
|
|
717
|
+
error: any;
|
|
718
|
+
mutate: swr.KeyedMutator<IRawAggregatorQuote>;
|
|
719
|
+
isValidating: boolean;
|
|
720
|
+
isLoading: boolean;
|
|
721
|
+
};
|
|
722
|
+
|
|
700
723
|
declare const useCreateProposal: ({ initialData, currentTopic, onError, }: {
|
|
701
724
|
initialData?: any;
|
|
702
725
|
currentTopic: GovernanceTopic;
|
|
@@ -1037,14 +1060,6 @@ declare const useClaimableFees: () => {
|
|
|
1037
1060
|
isLoading: boolean;
|
|
1038
1061
|
};
|
|
1039
1062
|
|
|
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
1063
|
/**
|
|
1049
1064
|
* Hook that fetches and returns the highest APR (Annual Percentage Rate) from reward vaults.
|
|
1050
1065
|
*
|
|
@@ -1075,8 +1090,8 @@ interface UsePollMarketsResponse extends DefaultHookReturnType<GetMarkets> {
|
|
|
1075
1090
|
declare const usePollMarketsQueryKey: () => string;
|
|
1076
1091
|
declare const usePollMarkets: (options?: DefaultHookOptions) => UsePollMarketsResponse;
|
|
1077
1092
|
|
|
1078
|
-
declare function useQueuedBeraUnlock({
|
|
1079
|
-
|
|
1093
|
+
declare function useQueuedBeraUnlock({ receiptTokenAddresses, account, version, }: {
|
|
1094
|
+
receiptTokenAddresses: Address[];
|
|
1080
1095
|
account?: Address | string;
|
|
1081
1096
|
version: "V1" | "V2";
|
|
1082
1097
|
}, options?: DefaultHookOptions): {
|
|
@@ -1204,7 +1219,32 @@ declare const useRewardVaults: (args: {
|
|
|
1204
1219
|
isLoading: boolean;
|
|
1205
1220
|
};
|
|
1206
1221
|
|
|
1207
|
-
|
|
1222
|
+
type UseStakedAPR = {
|
|
1223
|
+
_timestamp: number;
|
|
1224
|
+
apr: string;
|
|
1225
|
+
}[];
|
|
1226
|
+
declare function useStakedAPR({ range, }: {
|
|
1227
|
+
range: GqlVaultSnapshotDataRange;
|
|
1228
|
+
}): DefaultHookReturnType<UseStakedAPR>;
|
|
1229
|
+
|
|
1230
|
+
declare const useStakedData: (stakingConfigs: StakingConfig[]) => swr.SWRResponse<StakedBeraAsset[] | undefined, any, swr.SWRConfiguration<StakedBeraAsset[] | undefined, any, (arg: readonly ["useData", `0x${string}`, StakingConfig[], "DAY" | "WEEK"]) => swr__internal.FetcherResponse<StakedBeraAsset[] | undefined>> | undefined>;
|
|
1231
|
+
|
|
1232
|
+
type UseStakedBeraSnapshot = Record<Address, {
|
|
1233
|
+
_timestamp: number;
|
|
1234
|
+
total_assets: string;
|
|
1235
|
+
}[]>;
|
|
1236
|
+
declare function useStakedSnapshots({ range, addresses, }: {
|
|
1237
|
+
addresses: Address[];
|
|
1238
|
+
range: 30 | 60 | 90;
|
|
1239
|
+
}): DefaultHookReturnType<UseStakedBeraSnapshot>;
|
|
1240
|
+
|
|
1241
|
+
declare const useSWBeraVaultMetadata: (receiptTokenAddress?: Address) => swr.SWRResponse<VaultMetadata, any, {
|
|
1242
|
+
refreshInterval: POLLING;
|
|
1243
|
+
}>;
|
|
1244
|
+
|
|
1245
|
+
declare function useTotalStakedAmount({ vaultAddresses, }: {
|
|
1246
|
+
vaultAddresses: Address$1[];
|
|
1247
|
+
}): DefaultHookReturnType<Record<Address$1, bigint>>;
|
|
1208
1248
|
|
|
1209
1249
|
declare const useUserVaultInfo: (args: {
|
|
1210
1250
|
vaultAddress: Address | undefined;
|
|
@@ -1231,17 +1271,23 @@ declare const useVaultValidators: (id: Address, options?: DefaultHookOptions) =>
|
|
|
1231
1271
|
* Shorthand for `useTokenCurrentPrice` with the Bera token address.
|
|
1232
1272
|
* @returns
|
|
1233
1273
|
*/
|
|
1234
|
-
declare function useBeraCurrentPrice(opts?: DefaultHookOptions):
|
|
1274
|
+
declare function useBeraCurrentPrice(opts?: DefaultHookOptions): {
|
|
1275
|
+
data: TokenPriceInfo | undefined;
|
|
1276
|
+
error: any;
|
|
1277
|
+
mutate: swr.KeyedMutator<TokenCurrentPriceMap>;
|
|
1278
|
+
isValidating: boolean;
|
|
1279
|
+
isLoading: boolean;
|
|
1280
|
+
};
|
|
1235
1281
|
|
|
1236
1282
|
type UseMultipleTokenInformationResponse = DefaultHookReturnType<Token[]>;
|
|
1237
1283
|
type useMultipleTokenInformationArgs = {
|
|
1238
1284
|
addresses: string[] | readonly string[] | undefined;
|
|
1285
|
+
chainId?: number;
|
|
1239
1286
|
};
|
|
1240
|
-
declare
|
|
1287
|
+
declare function useMultipleTokenInformation(args: useMultipleTokenInformationArgs, options?: DefaultHookOptions): UseMultipleTokenInformationResponse;
|
|
1241
1288
|
|
|
1242
1289
|
type UsePollAllowancesArgs = {
|
|
1243
|
-
|
|
1244
|
-
tokens: Token[];
|
|
1290
|
+
items: AllowanceQueryItem[];
|
|
1245
1291
|
};
|
|
1246
1292
|
interface UsePollAllowancesResponse extends DefaultHookReturnType<AllowanceToken[] | undefined> {
|
|
1247
1293
|
}
|
|
@@ -1251,8 +1297,9 @@ interface UsePollAllowancesResponse extends DefaultHookReturnType<AllowanceToken
|
|
|
1251
1297
|
*
|
|
1252
1298
|
* @param contract the address of the ERC20 token contract
|
|
1253
1299
|
* @param tokens the list of tokens to poll allowances for
|
|
1300
|
+
* @param chainId the chain ID to check allowances on
|
|
1254
1301
|
*/
|
|
1255
|
-
declare
|
|
1302
|
+
declare function usePollAllowances(args: UsePollAllowancesArgs, options?: DefaultHookOptions): UsePollAllowancesResponse;
|
|
1256
1303
|
|
|
1257
1304
|
declare function usePollBalance({ address: addressString, owner, chainId, }: {
|
|
1258
1305
|
/**
|
|
@@ -1280,20 +1327,61 @@ type useStakingTokenInformationArgs = {
|
|
|
1280
1327
|
};
|
|
1281
1328
|
declare const useStakingTokenInformation: (args: useStakingTokenInformationArgs, options?: DefaultHookOptions) => UseStakingTokenInformationResponse;
|
|
1282
1329
|
|
|
1330
|
+
/**
|
|
1331
|
+
* @deprecated use useTokenPrice instead
|
|
1332
|
+
*/
|
|
1283
1333
|
declare function useTokenCurrentPrice({ address }: {
|
|
1284
1334
|
address: `0x${string}` | undefined;
|
|
1285
|
-
}, options?: DefaultHookOptions):
|
|
1335
|
+
}, options?: DefaultHookOptions): {
|
|
1336
|
+
data: TokenPriceInfo | undefined;
|
|
1337
|
+
error: any;
|
|
1338
|
+
mutate: swr.KeyedMutator<TokenCurrentPriceMap>;
|
|
1339
|
+
isValidating: boolean;
|
|
1340
|
+
isLoading: boolean;
|
|
1341
|
+
};
|
|
1286
1342
|
|
|
1343
|
+
/**
|
|
1344
|
+
* @deprecated use useTokenPrices instead that supports multichain tokens
|
|
1345
|
+
*/
|
|
1287
1346
|
declare function useTokenCurrentPrices({ addressIn, }?: {
|
|
1288
1347
|
addressIn?: string[] | readonly string[];
|
|
1289
|
-
}, options?: DefaultHookOptions):
|
|
1348
|
+
}, options?: DefaultHookOptions): {
|
|
1349
|
+
data: {
|
|
1350
|
+
[x: string]: TokenPriceInfo | undefined;
|
|
1351
|
+
};
|
|
1352
|
+
error: any;
|
|
1353
|
+
mutate: swr.KeyedMutator<TokenCurrentPriceMap>;
|
|
1354
|
+
isValidating: boolean;
|
|
1355
|
+
isLoading: boolean;
|
|
1356
|
+
};
|
|
1290
1357
|
|
|
1291
1358
|
type UseTokenInformationResponse = DefaultHookReturnType<Token | undefined>;
|
|
1292
1359
|
type UseTokenInformationArgs = {
|
|
1293
1360
|
address: string | undefined;
|
|
1294
|
-
chainId
|
|
1361
|
+
chainId: number;
|
|
1362
|
+
};
|
|
1363
|
+
declare function useTokenInformation(args: UseTokenInformationArgs, options?: DefaultHookOptions): UseTokenInformationResponse;
|
|
1364
|
+
|
|
1365
|
+
type TokenPriceInput = Pick<Token, "address" | "chainId">;
|
|
1366
|
+
type TokenPriceOutput = TokenPriceInput & {
|
|
1367
|
+
price: number;
|
|
1368
|
+
};
|
|
1369
|
+
type TokenPriceMap = Record<number, Record<Address, number>>;
|
|
1370
|
+
declare function useTokenPrices({ tokens, }?: {
|
|
1371
|
+
tokens?: TokenPriceInput[];
|
|
1372
|
+
}, options?: DefaultHookOptions): {
|
|
1373
|
+
isLoading: boolean;
|
|
1374
|
+
data: TokenPriceOutput[];
|
|
1375
|
+
priceMap: TokenPriceMap;
|
|
1376
|
+
getTokenPrice: (token?: TokenPriceInput) => number | undefined;
|
|
1377
|
+
};
|
|
1378
|
+
|
|
1379
|
+
declare function useTokenPrice({ token }: {
|
|
1380
|
+
token: TokenPriceInput | undefined;
|
|
1381
|
+
}, options?: DefaultHookOptions): {
|
|
1382
|
+
data: number | undefined;
|
|
1383
|
+
isLoading: boolean;
|
|
1295
1384
|
};
|
|
1296
|
-
declare const useTokenInformation: (args: UseTokenInformationArgs, options?: DefaultHookOptions) => UseTokenInformationResponse;
|
|
1297
1385
|
|
|
1298
1386
|
declare function useTokens(): {
|
|
1299
1387
|
/**
|
|
@@ -1309,58 +1397,20 @@ declare function useTokens(): {
|
|
|
1309
1397
|
featuredTokens: TokenWithMetadata[];
|
|
1310
1398
|
onRemoveToken: (token: Token) => void;
|
|
1311
1399
|
onAddToken: (token: Token) => void;
|
|
1400
|
+
refresh: () => void;
|
|
1401
|
+
ensoTokens: BalanceToken[] | undefined;
|
|
1312
1402
|
};
|
|
1313
1403
|
|
|
1314
1404
|
declare function useTotalSupply({ address }: {
|
|
1315
1405
|
address: Address | undefined;
|
|
1316
1406
|
}): swr.SWRResponse<bigint, any, any>;
|
|
1317
1407
|
|
|
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
1408
|
declare function useAddRecentTransaction(): (transaction: NewTransaction) => void;
|
|
1361
1409
|
|
|
1362
1410
|
declare function useRecentTransactions(): Transaction[];
|
|
1363
1411
|
|
|
1412
|
+
declare function useSetTransactionStatus(): (hash: string, status: TransactionStatus) => void;
|
|
1413
|
+
|
|
1364
1414
|
/**
|
|
1365
1415
|
*
|
|
1366
1416
|
* @returns Timestamp in seconds
|
|
@@ -1700,4 +1750,4 @@ declare function useValidatorRewardAllocation(pubKey: Address, options?: Default
|
|
|
1700
1750
|
isLoading: boolean;
|
|
1701
1751
|
};
|
|
1702
1752
|
|
|
1703
|
-
export {
|
|
1753
|
+
export { IHoneySwapState, IUseContractWriteArgs, type LiquidityMismatchInfo, type ManagedValidatorRole, NewTransaction, type OnChainPoolFragment, type Oracle, OracleMode, type RewardVault, type TokenPriceInput, type TokenPriceMap, type TokenPriceOutput, Transaction, TransactionStatus, 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, useAddRecentTransaction, 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, useRecentTransactions, useRewardTokenToBeraRate, useRewardVault, useRewardVaultBalanceFromStakingToken, useRewardVaultFromToken, useRewardVaultIncentives, useRewardVaultQueryKey, useRewardVaultRewards, useRewardVaults, useRewardVaultsQueryKey, useSWBeraVaultMetadata, useSetTransactionStatus, 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 };
|