@berachain/berajs 0.2.11 → 0.2.12

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.
Files changed (124) hide show
  1. package/dist/actions/clients/exports.d.ts +5 -21
  2. package/dist/actions/clients/exports.mjs +5 -7
  3. package/dist/actions/exports.d.ts +65 -29
  4. package/dist/actions/exports.mjs +6 -36
  5. package/dist/actions/server/exports.mjs +2 -2
  6. package/dist/{chunk-UD5IUNCW.mjs → chunk-4ML4Y6UN.mjs} +14 -2
  7. package/dist/{chunk-7YVNSDXG.mjs → chunk-FGION6F6.mjs} +1 -1
  8. package/dist/{chunk-3JJLQ2JX.mjs → chunk-MKSFQIKC.mjs} +1 -4
  9. package/dist/{chunk-ZLTMIFCZ.mjs → chunk-RFJGL4MF.mjs} +3 -3
  10. package/dist/{chunk-Y6THHG77.mjs → chunk-T43JPYQS.mjs} +1 -1
  11. package/dist/{chunk-SXUNCX5E.mjs → chunk-W2VODV76.mjs} +3 -7
  12. package/dist/{chunk-VAA2FVPP.mjs → chunk-XDG26EG6.mjs} +90 -183
  13. package/dist/{chunk-MRQGHXAN.mjs → chunk-YLTWPFCJ.mjs} +2 -17
  14. package/dist/contexts/exports.mjs +4 -4
  15. package/dist/errors/exports.mjs +2 -2
  16. package/dist/{getApolloClient-BcUTGFUb.d.ts → getApolloClient-MWm_iq4u.d.ts} +4 -5
  17. package/dist/{getValidatorQueuedOperatorAddress-Cxt-DlL_.d.ts → getValidatorQueuedOperatorAddress-Cc05dlO3.d.ts} +6 -57
  18. package/dist/{global.d-q_LQWQqs.d.ts → global.d-CR3zicga.d.ts} +2 -7
  19. package/dist/hooks/exports.d.ts +109 -318
  20. package/dist/hooks/exports.mjs +102 -345
  21. package/dist/hooks/governance/exports.d.ts +10 -10
  22. package/dist/hooks/governance/exports.mjs +8 -20
  23. package/dist/types/exports.d.ts +1 -1
  24. package/dist/utils/exports.mjs +2 -2
  25. package/package.json +3 -3
  26. package/src/actions/clients/exports.ts +0 -1
  27. package/src/actions/clients/fetchBeep.ts +0 -7
  28. package/src/actions/clients/fetchOpenApi.ts +4 -4
  29. package/src/actions/clients/fetchOpenApi.unit.test.ts +3 -19
  30. package/src/actions/clients/getApolloClient.ts +4 -9
  31. package/src/actions/exports.ts +0 -1
  32. package/src/actions/honey/getChartData.ts +3 -44
  33. package/src/actions/honey/getHoney24hVolume.ts +2 -21
  34. package/src/actions/honey/getHoneyTxns.ts +1 -49
  35. package/src/actions/pol/__tests__/rewardVaults.integration.test.ts +3 -3
  36. package/src/actions/pol/getEarnedStakedBeraVault.ts +0 -15
  37. package/src/actions/pol/getGlobalData.ts +10 -29
  38. package/src/actions/pol/getRewardVaults.ts +4 -4
  39. package/src/actions/pol/getSWBeraVaultMetadata.ts +0 -7
  40. package/src/actions/pol/getStakingDailyAssets.ts +0 -14
  41. package/src/actions/validators/getApiEnrichedAllocation.ts +1 -1
  42. package/src/actions/validators/getValidatorIncentiveDistribution.ts +2 -24
  43. package/src/errors/RequestError.ts +3 -3
  44. package/src/hooks/bend/useGetConvertToAssets.ts +1 -8
  45. package/src/hooks/dex/useAggregatorsQuotes.ts +3 -1
  46. package/src/hooks/dex/useAggregatorsRouterFeeBps.ts +1 -6
  47. package/src/hooks/dex/useAllUserPools.ts +1 -8
  48. package/src/hooks/dex/useApiPool.ts +1 -8
  49. package/src/hooks/dex/useGlobalLiquidityAndSwapVolume.ts +0 -1
  50. package/src/hooks/dex/useOnChainPoolData.ts +2 -3
  51. package/src/hooks/dex/usePollPoolCreationRelayerApproval.ts +1 -7
  52. package/src/hooks/dex/usePoolHistoricalData.ts +1 -6
  53. package/src/hooks/dex/usePools.ts +2 -2
  54. package/src/hooks/enso/useBendZapSupply.ts +1 -1
  55. package/src/hooks/enso/useEnsoSwapBundle.ts +1 -1
  56. package/src/hooks/enso/useEnsoUserTokensWithBalances.ts +1 -5
  57. package/src/hooks/enso/useZapStakeBera.ts +0 -3
  58. package/src/hooks/governance/usePollProposal.ts +4 -7
  59. package/src/hooks/governance/usePollProposalThreshold.ts +1 -6
  60. package/src/hooks/governance/usePollUserDelegates.ts +1 -6
  61. package/src/hooks/governance/useProposalFromTx.ts +3 -5
  62. package/src/hooks/governance/useProposalSnapshot.ts +2 -2
  63. package/src/hooks/governance/useProposalState.ts +2 -2
  64. package/src/hooks/governance/useProposalTimelockState.ts +2 -2
  65. package/src/hooks/honey/useCappedGlobally.ts +1 -6
  66. package/src/hooks/honey/useCappedRelatively.ts +1 -6
  67. package/src/hooks/honey/useCollateralWeights.ts +1 -6
  68. package/src/hooks/honey/useHoney24hVolume.ts +1 -5
  69. package/src/hooks/honey/useHoneyBalances.ts +1 -6
  70. package/src/hooks/honey/useHoneyChartData.ts +3 -11
  71. package/src/hooks/honey/useHoneyVaultsBalance.ts +1 -6
  72. package/src/hooks/honey/useIsBadCollateralAsset.ts +1 -6
  73. package/src/hooks/honey/useIsBasketModeEnabled.ts +1 -6
  74. package/src/hooks/honey/usePythLatestPrices.ts +4 -6
  75. package/src/hooks/pol/useAutoclaimedIncentives.ts +1 -6
  76. package/src/hooks/pol/useAutoclaimedIncentivesTxHash.ts +1 -6
  77. package/src/hooks/pol/useBgtIncentiveDistributorPaused.ts +1 -6
  78. package/src/hooks/pol/useBgtUnstakedBalance.ts +1 -6
  79. package/src/hooks/pol/useClaimableFees.ts +1 -5
  80. package/src/hooks/pol/useHighestVaultsAPR.ts +2 -5
  81. package/src/hooks/pol/usePollGlobalData.ts +1 -6
  82. package/src/hooks/pol/usePollMarkets.ts +1 -6
  83. package/src/hooks/pol/useQueuedBeraUnlock.ts +1 -10
  84. package/src/hooks/pol/useRewardVault.ts +2 -2
  85. package/src/hooks/pol/useRewardVaultBalanceFromStakingToken.ts +2 -2
  86. package/src/hooks/pol/useRewardVaultFromToken.ts +23 -29
  87. package/src/hooks/pol/useRewardVaultIncentives.ts +1 -6
  88. package/src/hooks/pol/useRewardVaultRewards.ts +1 -6
  89. package/src/hooks/pol/useRewardVaults.ts +1 -6
  90. package/src/hooks/pol/useStakedAPR.ts +1 -6
  91. package/src/hooks/pol/useStakedSnapshots.ts +3 -8
  92. package/src/hooks/pol/useTotalStakedAmount.ts +1 -6
  93. package/src/hooks/pol/useUserVaultInfo.ts +1 -6
  94. package/src/hooks/pol/useUserVaults.ts +1 -5
  95. package/src/hooks/pol/useVaultHistory.ts +1 -6
  96. package/src/hooks/pol/useVaultValidators.ts +1 -6
  97. package/src/hooks/tokens/useMultipleTokenInformation.ts +1 -6
  98. package/src/hooks/tokens/usePollAllowances.ts +1 -7
  99. package/src/hooks/tokens/usePollBalance.ts +0 -3
  100. package/src/hooks/tokens/usePollWalletBalances.ts +1 -1
  101. package/src/hooks/tokens/useStakingTokenInformation.ts +1 -10
  102. package/src/hooks/tokens/useTokenInformation.ts +1 -6
  103. package/src/hooks/validators/useAllValidators.ts +1 -6
  104. package/src/hooks/validators/useApiValidator.ts +1 -6
  105. package/src/hooks/validators/useDailyValidatorBlockStats.ts +1 -3
  106. package/src/hooks/validators/useDefaultRewardAllocation.ts +1 -6
  107. package/src/hooks/validators/useManagedValidatorRole.ts +0 -1
  108. package/src/hooks/validators/useOnChainValidator.ts +1 -8
  109. package/src/hooks/validators/useStakingPoolBatch.ts +1 -6
  110. package/src/hooks/validators/useUserActiveValidators.ts +1 -6
  111. package/src/hooks/validators/useUserBoostsOnValidator.ts +1 -3
  112. package/src/hooks/validators/useUserClaimableIncentives.ts +2 -2
  113. package/src/hooks/validators/useUserStakingPositions.ts +1 -8
  114. package/src/hooks/validators/useValidatorAnalytics.ts +1 -3
  115. package/src/hooks/validators/useValidatorCommission.ts +1 -6
  116. package/src/hooks/validators/useValidatorIncentiveDistribution.ts +1 -3
  117. package/src/hooks/validators/useValidatorQueuedCommission.ts +1 -6
  118. package/src/hooks/validators/useValidatorQueuedOperatorAddress.ts +1 -6
  119. package/src/hooks/validators/useValidatorQueuedRewardAllocation.ts +1 -6
  120. package/src/hooks/validators/useValidatorRewardAllocation.ts +1 -6
  121. package/src/types/global.d.ts +5 -7
  122. package/src/actions/clients/fetchRailwayBackend.ts +0 -34
  123. package/src/actions/pol/getGlobalCuttingBoard.ts +0 -25
  124. package/src/actions/pol/getIncentiveFeeClaimStats.ts +0 -24
@@ -1,14 +1,13 @@
1
1
  import { paths } from '@berachain/graphql/beep';
2
2
  import { HttpLink } from '@berachain/config';
3
- import { paths as paths$1 } from '@berachain/graphql/api';
4
- export { g as getApolloClient } from '../../getApolloClient-BcUTGFUb.js';
3
+ export { g as getApolloClient } from '../../getApolloClient-MWm_iq4u.js';
5
4
  export { gql } from '@apollo/client';
6
5
 
7
6
  /**
8
7
  * A minimal, fully-typed GET helper for our `openapi-typescript`-generated
9
- * backends. Both backends serve only GETs, so rather than a full OpenAPI client
10
- * we type a single `fetchOpenApi` against a schema's `paths` and wrap it per
11
- * backend (`fetchBeep`, `fetchRailwayBackend`).
8
+ * `beep` backend. beep serves only GETs, so rather than a full OpenAPI client
9
+ * we type a single `fetchOpenApi` against a schema's `paths` and wrap it
10
+ * (`fetchBeep`).
12
11
  *
13
12
  * The `path`, its path/query params and the response body are all type-checked
14
13
  * against the schema, so route shapes can never drift out of sync with the
@@ -57,22 +56,7 @@ declare function fetchOpenApi<Paths extends AnyPaths, P extends GetPath<Paths>>(
57
56
  * against the beep schema (`@berachain/graphql/beep`), so route shapes (e.g.
58
57
  * the `/v0/stake/*` namespace) can never drift out of sync with the backend.
59
58
  * The base URL is resolved from `config.beep`.
60
- *
61
- * @throws if `config.beep` is not set for the active chain. Callers should only
62
- * reach for beep when `config.beep` is non-null.
63
59
  */
64
60
  declare function fetchBeep<P extends GetPath<paths>>(path: P, params: DefinedParams<paths, P>, args?: BeraJS.BaseFunctionArgs): Promise<GetResponse<paths, P>>;
65
61
 
66
- /**
67
- * Typed GET against the legacy Railway backend.
68
- *
69
- * The `path`, its path/query params and the response are all type-checked
70
- * against the Railway schema (`@berachain/graphql/api`). The base URL is
71
- * resolved from `config.backend`.
72
- *
73
- * @deprecated The Railway backend is being replaced by beep; prefer
74
- * {@link fetchBeep} where `config.beep` is available.
75
- */
76
- declare function fetchRailwayBackend<P extends GetPath<paths$1>>(path: P, params: DefinedParams<paths$1, P>, args?: BeraJS.BaseFunctionArgs): Promise<GetResponse<paths$1, P>>;
77
-
78
- export { fetchBeep, fetchOpenApi, fetchRailwayBackend };
62
+ export { fetchBeep, fetchOpenApi };
@@ -1,21 +1,19 @@
1
1
  import {
2
2
  fetchBeep,
3
- fetchOpenApi,
4
- fetchRailwayBackend
5
- } from "../../chunk-MRQGHXAN.mjs";
3
+ fetchOpenApi
4
+ } from "../../chunk-YLTWPFCJ.mjs";
6
5
  import {
7
6
  getApolloClient,
8
7
  gql
9
- } from "../../chunk-3JJLQ2JX.mjs";
10
- import "../../chunk-Y6THHG77.mjs";
8
+ } from "../../chunk-MKSFQIKC.mjs";
9
+ import "../../chunk-T43JPYQS.mjs";
11
10
  import "../../chunk-DQRH5VE3.mjs";
12
11
  import "../../chunk-SZ5C44L5.mjs";
13
- import "../../chunk-ZLTMIFCZ.mjs";
12
+ import "../../chunk-RFJGL4MF.mjs";
14
13
  import "../../chunk-KHXJDYA4.mjs";
15
14
  export {
16
15
  fetchBeep,
17
16
  fetchOpenApi,
18
- fetchRailwayBackend,
19
17
  getApolloClient,
20
18
  gql
21
19
  };
@@ -1,7 +1,7 @@
1
- import { V as ValidatorRewardAllocation } from '../getValidatorQueuedOperatorAddress-Cxt-DlL_.js';
2
- export { B as BaseAggregator, G as GetBgtAprSimulationArgs, a as GetBgtAprSimulationResult, b as GetConvertToAssetsProps, c as GetGaugeData, d as GetHoneyVaultsBalanceResponse, e as GetMarkets, f as GetRewardVaultRewardsReturn, g as GetUserVaultsResponse, h as GetVaultHistoryArgs, i as GlobalData, I as IsBadCollateralArgs, j as IsBadCollateralResponse, O as OnChainPool, P as PoolStatus, R as RewardVaultDistributionMode, k as RewardVaultIncentive, S as StakedBeraWithdrawal, U as UserBoostsOnValidator, l as UserStakingPoolPosition, m as UserVault, n as ValidatorQueuedCommission, o as ValidatorQueuedOperatorAddress, p as ValidatorRewardAllocationRaw, q as ValidatorRewardAllocationUpdate, r as ValidatorRewardAllocationUpdateWithExpiration, s as ValidatorWithUserBoost, t as VaultMetadata, u as formatValidatorRewardAllocation, v as getBgtAprSimulation, w as getConvertToAssets, x as getGlobalData, y as getHoneyVaultsBalance, z as getMarkets, A as getOnChainPool, C as getPoolPausedState, D as getRewardVaultIncentives, E as getRewardVaultRewards, F as getRewardVaults, H as getSWBeraVaultMetadata, J as getSWBeraWithdrawal, K as getUserActiveValidators, L as getUserBoostsOnValidator, M as getUserStakingPositions, N as getUserVaults, Q as getValidatorQueuedCommission, T as getValidatorQueuedOperatorAddress, W as getValidatorRewardAllocation, X as getVaultHistory, Y as isBadCollateralAsset, Z as isSameRewardAllocation } from '../getValidatorQueuedOperatorAddress-Cxt-DlL_.js';
3
- import { Address, PublicClient, Abi, ContractFunctionArgs, ContractFunctionName, TransactionReceipt, WalletCallReceipt } from 'viem';
4
- export { B as BeraApolloClient, g as getApolloClient } from '../getApolloClient-BcUTGFUb.js';
1
+ import { V as ValidatorRewardAllocation } from '../getValidatorQueuedOperatorAddress-Cc05dlO3.js';
2
+ export { B as BaseAggregator, G as GetBgtAprSimulationArgs, a as GetBgtAprSimulationResult, b as GetConvertToAssetsProps, c as GetHoneyVaultsBalanceResponse, d as GetMarkets, e as GetRewardVaultData, f as GetRewardVaultRewardsReturn, g as GetUserVaultsResponse, h as GetVaultHistoryArgs, i as GlobalData, I as IsBadCollateralArgs, j as IsBadCollateralResponse, R as RewardVaultDistributionMode, k as RewardVaultIncentive, S as StakedBeraWithdrawal, U as UserBoostsOnValidator, l as UserStakingPoolPosition, m as UserVault, n as ValidatorQueuedCommission, o as ValidatorQueuedOperatorAddress, p as ValidatorRewardAllocationRaw, q as ValidatorRewardAllocationUpdate, r as ValidatorRewardAllocationUpdateWithExpiration, s as ValidatorWithUserBoost, t as VaultMetadata, u as formatValidatorRewardAllocation, v as getBgtAprSimulation, w as getConvertToAssets, x as getGlobalData, y as getHoneyVaultsBalance, z as getMarkets, A as getRewardVaultIncentives, C as getRewardVaultRewards, D as getRewardVaults, E as getSWBeraVaultMetadata, F as getSWBeraWithdrawal, H as getUserActiveValidators, J as getUserBoostsOnValidator, K as getUserStakingPositions, L as getUserVaults, M as getValidatorQueuedCommission, N as getValidatorQueuedOperatorAddress, O as getValidatorRewardAllocation, P as getVaultHistory, Q as isBadCollateralAsset, T as isSameRewardAllocation } from '../getValidatorQueuedOperatorAddress-Cc05dlO3.js';
3
+ import { Address, PublicClient, Hex, Abi, ContractFunctionArgs, ContractFunctionName, TransactionReceipt, WalletCallReceipt } from 'viem';
4
+ export { B as BeraApolloClient, g as getApolloClient } from '../getApolloClient-MWm_iq4u.js';
5
5
  import { EnsoClient } from '@ensofinance/sdk';
6
6
  import { PoolState } from '@berachain-foundation/berancer-sdk';
7
7
  export { BalancerApi } from '@berachain-foundation/berancer-sdk';
@@ -9,7 +9,7 @@ import * as _berachain_graphql_dex_api from '@berachain/graphql/dex/api';
9
9
  import { GetPoolsQueryVariables, GetGlobalLiquidityAndSwapVolumeQuery, GetPoolEventsQuery, GqlChain, PoolHistoricalDataFragment, MinimalPoolFragment } from '@berachain/graphql/dex/api';
10
10
  import { FetchPolicy } from '@apollo/client';
11
11
  export { gql } from '@apollo/client';
12
- import { GqlPoolEventType, ApiVaultFragment, GetHeroEarnVaultsQuery, GqlChain as GqlChain$1, GqlVaultSnapshotDataRange, GetSWberaVaultSnapshotsQuery, ApiValidatorFragment, GetValidatorsQueryVariables, GetValidatorsQuery, ApiRewardAllocationWeightFragment, GetValidatorQuery, ApiValidatorMinimalFragment, ApiValidatorRewardAllocationWeightFragment, ApiMinimalVaultIncentiveFragment } from '@berachain/graphql/pol/api';
12
+ import { GqlPoolType, GqlPoolEventType, ApiVaultFragment, GetHeroEarnVaultsQuery, GqlChain as GqlChain$1, GqlVaultSnapshotDataRange, GetSWberaVaultSnapshotsQuery, ApiValidatorFragment, GetValidatorsQueryVariables, GetValidatorsQuery, ApiRewardAllocationWeightFragment, GetValidatorQuery, ApiValidatorMinimalFragment, ApiValidatorRewardAllocationWeightFragment, ApiMinimalVaultIncentiveFragment } from '@berachain/graphql/pol/api';
13
13
  import * as _berachain_graphql_beep from '@berachain/graphql/beep';
14
14
  import { HoneySnapshotResponse, HoneyTransactionsLatestResponse } from '@berachain/graphql/beep';
15
15
  import { b as Token, P as PythLatestUpdates, a as TokenWithMetadata, T as TokenWithOrder, h as PythPriceFeedMap, i as TokenCurrentPriceMap, A as AllowanceQueryItem, j as AllowanceToken, M as MinimalERC20, B as BalanceToken } from '../HoneyConfigProvider-COOuDNra.js';
@@ -22,7 +22,7 @@ import { I as IHoneySwapState } from '../useHoneySwapState-twi7NTaO.js';
22
22
  import { A as AutoclaimedIncentivesResponse, a as AutoclaimedIncentivesTxHashResponse, S as StakingConfig, B as BribeBoostRewardProof, b as BribeBoostRewardItem, U as UserVaultInfo } from '../pol.d-CeRgXBL8.js';
23
23
  import { Address as Address$1, ChainId } from '@berachain/config';
24
24
  import { Config } from '@wagmi/core';
25
- import { I as IContractWrite } from '../global.d-q_LQWQqs.js';
25
+ import { I as IContractWrite } from '../global.d-CR3zicga.js';
26
26
  import { GetValidatorBlockStatsQuery, GetValidatorAnalyticsQuery } from '@berachain/graphql/pol/subgraph';
27
27
  import '@berachain/config/internal';
28
28
  import '../dex-C_BB0b0O.js';
@@ -514,6 +514,54 @@ declare function getApiPool({ poolId, account, ...args }: {
514
514
 
515
515
  declare function getGlobalLiquidityAndSwapVolume(args?: BeraJS.BaseFunctionArgs): Promise<GetGlobalLiquidityAndSwapVolumeQuery>;
516
516
 
517
+ interface PoolStatus {
518
+ isPoolInRecoveryMode: boolean;
519
+ isPoolPaused: boolean;
520
+ }
521
+ declare function getPoolPausedState({ publicClient, poolAddress, }: {
522
+ publicClient: PublicClient;
523
+ poolAddress: Address;
524
+ }): Promise<PoolStatus>;
525
+
526
+ interface OnChainPool {
527
+ pausedState: PoolStatus;
528
+ address: Address;
529
+ id: Hex;
530
+ name: string;
531
+ poolTokens: [
532
+ /**
533
+ * The addresses of the tokens in the pool
534
+ */
535
+ readonly Address[],
536
+ /**
537
+ * The balances of the tokens in the pool
538
+ */
539
+ string[],
540
+ /**
541
+ * The last change block of the pool
542
+ */
543
+ number
544
+ ];
545
+ totalSupply: string;
546
+ swapFee: string;
547
+ decimals: number;
548
+ weights: readonly string[] | undefined;
549
+ version: unknown;
550
+ factory: Address;
551
+ type: GqlPoolType;
552
+ /**
553
+ * For example, if value is 300000n and precision is 1000n, the user-set amplification parameter would be 300000n / 1000n = 300n.
554
+ *
555
+ * The first number is the raw value, the second number is a boolean indicating if the amplification parameter is being updated, and the third number is the precision factor.
556
+ * @see https://github.com/balancer/docs-developers/blob/main/references/valuing-balancer-lp-tokens/pools/stablepools.md#getamplificationparameter
557
+ */
558
+ amplificationParameter: readonly [number, boolean, number] | undefined;
559
+ }
560
+ declare function getOnChainPool({ poolId, publicClient, ...args }: {
561
+ poolId: string;
562
+ publicClient: PublicClient;
563
+ } & BeraJS.BaseFunctionArgs): Promise<OnChainPool>;
564
+
517
565
  declare function getPoolEvents({ poolId, typeInArray, ...args }: {
518
566
  poolId: string;
519
567
  typeInArray: GqlPoolEventType[];
@@ -542,11 +590,9 @@ declare function getVaultPausedState({ publicClient, ...args }: BeraJS.BaseFunct
542
590
  * Browser-only. Returns daily honey snapshots in the `beep` response shape
543
591
  * (`HoneySnapshotResponse`) the chart consumes.
544
592
  *
545
- * Reads from the `beep` backend (`fetchBeep`) when configured, falling back to
546
- * the legacy honey subgraph proxied through `/api/honey/snapshots` (whose
547
- * GraphQL result is adapted into the beep shape) otherwise. Server callers must
548
- * compose the upstream query directly (this action is not server-safe — `fetch`
549
- * against a relative URL has no origin off-browser).
593
+ * Reads from the `beep` backend (`fetchBeep`). Server callers must compose the
594
+ * upstream query directly (this action is not server-safe — `fetch` against a
595
+ * relative URL has no origin off-browser).
550
596
  */
551
597
  declare function getChartData({ days, }: {
552
598
  days: number;
@@ -591,9 +637,8 @@ declare function getGlobalCapLimit({ client, asset, amount, isMint, isPythWrappe
591
637
  /**
592
638
  * Browser-only. Sums the last 24 hourly honey snapshots into a 24h volume.
593
639
  *
594
- * Reads from the `beep` backend (`fetchBeep`) when configured, falling back to
595
- * the legacy honey subgraph proxied through `/api/honey/snapshots` otherwise.
596
- * Both backends expose `totalVolume` per snapshot, so the sum is shape-agnostic.
640
+ * Reads from the `beep` backend (`fetchBeep`), which exposes `totalVolume` per
641
+ * snapshot.
597
642
  */
598
643
  declare function getHoney24hVolume(): Promise<BigNumber | undefined>;
599
644
 
@@ -665,9 +710,7 @@ interface GetHoneyTxnsArgs {
665
710
  * Browser-only. Returns a page of honey transactions in the `beep` response
666
711
  * shape (`HoneyTransactionsLatestResponse`) the transactions table consumes.
667
712
  *
668
- * Reads from the `beep` backend (`fetchBeep`) when configured, falling back to
669
- * the legacy honey subgraph proxied through `/api/honey/txns` (whose GraphQL
670
- * result is adapted into the beep shape) otherwise.
713
+ * Reads from the `beep` backend (`fetchBeep`).
671
714
  */
672
715
  declare function getHoneyTxns({ index, limit, txnType, }: GetHoneyTxnsArgs): Promise<HoneyTransactionsLatestResponse>;
673
716
 
@@ -800,8 +843,8 @@ declare function getEarnedStakedBeraVault({ address, account, ...args }: BeraJS.
800
843
  assets: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
801
844
  shares: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
802
845
  _type: "deposit" | "withdrawal";
803
- sender: string;
804
- owner: string;
846
+ sender: _berachain_graphql_beep.components["schemas"]["EvmAddress"];
847
+ owner: _berachain_graphql_beep.components["schemas"]["EvmAddress"];
805
848
  total_assets: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
806
849
  } | {
807
850
  _height: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
@@ -809,8 +852,8 @@ declare function getEarnedStakedBeraVault({ address, account, ...args }: BeraJS.
809
852
  assets: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
810
853
  shares: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
811
854
  _type: "transfer";
812
- from: string;
813
- to: string;
855
+ from: _berachain_graphql_beep.components["schemas"]["EvmAddress"];
856
+ to: _berachain_graphql_beep.components["schemas"]["EvmAddress"];
814
857
  value: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
815
858
  })[];
816
859
  }>;
@@ -849,13 +892,6 @@ declare function getHeroEarnVaults({ bestAprExcludedAddresses, ...args }?: {
849
892
  bestAprExcludedAddresses?: string[];
850
893
  } & BeraJS.BaseFunctionArgs): Promise<HeroEarnVaults>;
851
894
 
852
- type IncentiveFeeClaimStats = {
853
- sumAllClaims: number;
854
- sumClaimsInLast24Hours: number;
855
- };
856
- /** Browser-only. Hits `/api/pol/incentive-fee-claims` (server computes totals). */
857
- declare function getIncentiveFeeClaimStats(): Promise<IncentiveFeeClaimStats>;
858
-
859
895
  type GetLSTStakeConfigArgs = {
860
896
  tokenList: TokenWithMetadata[];
861
897
  publicClient?: PublicClient;
@@ -1644,4 +1680,4 @@ declare function getValidatorBoostApy({ validator, bgtPrice, }: {
1644
1680
  bgtPrice: number;
1645
1681
  }): number;
1646
1682
 
1647
- export { type ActiveBoostAndCommissionChangeDelay, type GetAllowances, type GetAllowancesResponse, type GetBeraTokenTotalSupplyArgs, type GetLSTStakeConfigArgs, type GetStakedBeraSnapshotsArgs, type GetTokenInformation, type GetTokenInformationResponse, type GetUserVaultInfoParams, type GetUserVaultsInfo, type GetWalletBalances, type HeroEarnVaults, type IncentiveFeeClaimStats, type MaxDeposit, type PoolDayData, PythLatestUpdates, type RewardVaultDurationConstants, ValidatorRewardAllocation, aggregateValidatorIncentives, beraWriteContract, getActiveBoostAndCommissionChangeDelay, getAllPools, getAllValidators, getAllowances, getApiEnrichedAllocation, getApiPool, getApiValidator, getAutoclaimedIncentives, getAutoclaimedIncentivesTxHash, getBalanceCall, getBeraTokenTotalSupply, getBgtIncentiveDistributorPaused, getBlockTime, getBlockTimestamp, getChartData, getCollateralWeights, getDailyValidatorBlockStats, getDefaultRewardAllocation, getEarnedStakedBeraVault, getEnsoClient, getGlobalCapLimit, getGlobalLiquidityAndSwapVolume, getHeroEarnVaults, getHoney24hVolume, getHoneyCollaterals, getHoneyPausedState, getHoneyPythFeeds, getHoneyPythOracle, getHoneyRootPriceOracle, getHoneyTxns, getIncentiveFeeClaimStats, getLSTStakeConfig, getMaxDeposit, getPoolEvents, getPoolHistoricalData, getPoolState, getPythUpdateFee, getRelativeCapLimit, getRewardProofsByValidator, getRewardTokenToBeraRate, getRewardVault, getRewardVaultDurationConstants, getRewardVaultFromToken, getRewardVaultStakingToken, getStakeWithdrawalCooldown, getStakedBeraAPR, getStakedBeraSnapshots, getStakingPoolBatch, getSwapPayload, getTokenCurrentPrices, getTokenInformation, getTokens, getTotalStakedAmount, getUserClaimableIncentives, getUserVaultInfo, getUserVaultsReward, getValidatorAnalytics, getValidatorBoostApy, getValidatorCommission, getValidatorEstimatedBgtPerYear, getValidatorOperatorAddress, getValidatorQueuedRewardAllocation, getValidatorReturnPerBgt, getVaultPausedState, getVaultValidators, getWalletBalances, isBasketModeEnabled, isDefaultRewardAllocation, isImpersonateAccount };
1683
+ export { type ActiveBoostAndCommissionChangeDelay, type GetAllowances, type GetAllowancesResponse, type GetBeraTokenTotalSupplyArgs, type GetLSTStakeConfigArgs, type GetStakedBeraSnapshotsArgs, type GetTokenInformation, type GetTokenInformationResponse, type GetUserVaultInfoParams, type GetUserVaultsInfo, type GetWalletBalances, type HeroEarnVaults, type MaxDeposit, type OnChainPool, type PoolDayData, type PoolStatus, PythLatestUpdates, type RewardVaultDurationConstants, ValidatorRewardAllocation, aggregateValidatorIncentives, beraWriteContract, getActiveBoostAndCommissionChangeDelay, getAllPools, getAllValidators, getAllowances, getApiEnrichedAllocation, getApiPool, getApiValidator, getAutoclaimedIncentives, getAutoclaimedIncentivesTxHash, getBalanceCall, getBeraTokenTotalSupply, getBgtIncentiveDistributorPaused, getBlockTime, getBlockTimestamp, getChartData, getCollateralWeights, getDailyValidatorBlockStats, getDefaultRewardAllocation, getEarnedStakedBeraVault, getEnsoClient, getGlobalCapLimit, getGlobalLiquidityAndSwapVolume, getHeroEarnVaults, getHoney24hVolume, getHoneyCollaterals, getHoneyPausedState, getHoneyPythFeeds, getHoneyPythOracle, getHoneyRootPriceOracle, getHoneyTxns, getLSTStakeConfig, getMaxDeposit, getOnChainPool, getPoolEvents, getPoolHistoricalData, getPoolPausedState, getPoolState, getPythUpdateFee, getRelativeCapLimit, getRewardProofsByValidator, getRewardTokenToBeraRate, getRewardVault, getRewardVaultDurationConstants, getRewardVaultFromToken, getRewardVaultStakingToken, getStakeWithdrawalCooldown, getStakedBeraAPR, getStakedBeraSnapshots, getStakingPoolBatch, getSwapPayload, getTokenCurrentPrices, getTokenInformation, getTokens, getTotalStakedAmount, getUserClaimableIncentives, getUserVaultInfo, getUserVaultsReward, getValidatorAnalytics, getValidatorBoostApy, getValidatorCommission, getValidatorEstimatedBgtPerYear, getValidatorOperatorAddress, getValidatorQueuedRewardAllocation, getValidatorReturnPerBgt, getVaultPausedState, getVaultValidators, getWalletBalances, isBasketModeEnabled, isDefaultRewardAllocation, isImpersonateAccount };
@@ -29,7 +29,6 @@ import {
29
29
  getHoneyCollaterals,
30
30
  getHoneyPreview,
31
31
  getHoneyVaultsBalance,
32
- getIncentiveFeeClaimStats,
33
32
  getMarkets,
34
33
  getOnChainPool,
35
34
  getPoolEvents,
@@ -77,15 +76,15 @@ import {
77
76
  isDefaultRewardAllocation,
78
77
  isImpersonateAccount,
79
78
  isSameRewardAllocation
80
- } from "../chunk-VAA2FVPP.mjs";
79
+ } from "../chunk-XDG26EG6.mjs";
81
80
  import {
82
81
  fetchBeep
83
- } from "../chunk-MRQGHXAN.mjs";
82
+ } from "../chunk-YLTWPFCJ.mjs";
84
83
  import {
85
84
  BeraApolloClient,
86
85
  getApolloClient,
87
86
  gql
88
- } from "../chunk-3JJLQ2JX.mjs";
87
+ } from "../chunk-MKSFQIKC.mjs";
89
88
  import "../chunk-CDK4YV3D.mjs";
90
89
  import {
91
90
  getBalanceCall,
@@ -94,7 +93,7 @@ import {
94
93
  } from "../chunk-HYDP32P6.mjs";
95
94
  import "../chunk-HQCOU6GY.mjs";
96
95
  import "../chunk-AUOPN6NK.mjs";
97
- import "../chunk-7YVNSDXG.mjs";
96
+ import "../chunk-FGION6F6.mjs";
98
97
  import {
99
98
  assertAddress,
100
99
  assertDefined,
@@ -107,7 +106,7 @@ import {
107
106
  } from "../chunk-E7YFXBBQ.mjs";
108
107
  import {
109
108
  beraFetchJson
110
- } from "../chunk-Y6THHG77.mjs";
109
+ } from "../chunk-T43JPYQS.mjs";
111
110
  import {
112
111
  isToken
113
112
  } from "../chunk-IXIBY5FP.mjs";
@@ -115,7 +114,7 @@ import {
115
114
  parseBaseArgs
116
115
  } from "../chunk-DQRH5VE3.mjs";
117
116
  import "../chunk-SZ5C44L5.mjs";
118
- import "../chunk-ZLTMIFCZ.mjs";
117
+ import "../chunk-RFJGL4MF.mjs";
119
118
  import {
120
119
  BeraError
121
120
  } from "../chunk-KHXJDYA4.mjs";
@@ -295,38 +294,10 @@ async function getHoneyTxns({
295
294
  level: "error"
296
295
  });
297
296
  }
298
- const { config } = parseBaseArgs({});
299
- if (!config.beep) {
300
- const params = new URLSearchParams({
301
- skip: String(index * limit),
302
- limit: String(limit)
303
- });
304
- if (txnType) params.set("type", txnType);
305
- const txns = await beraFetchJson({
306
- url: `/api/honey/txns?${params}`,
307
- name: "honey-txns",
308
- type: "rest"
309
- });
310
- return txns.map(fromHoneyTxn);
311
- }
312
297
  return fetchBeep("/v0/honey/transactions/latest", {
313
298
  query: { page: String(index + 1), perPage: String(limit), type: txnType }
314
299
  });
315
300
  }
316
- function fromHoneyTxn(txn) {
317
- return {
318
- txHash: txn.chainTransaction.txHash,
319
- type: txn.type ?? "MINT",
320
- collaterals: txn.collateral.map((collateral) => ({
321
- address: collateral.collateral,
322
- amount: collateral.collateralAmount
323
- })),
324
- to: txn.to,
325
- from: txn.from,
326
- honeyAmount: txn.honeyAmount,
327
- timestamp: Number(txn.timestamp)
328
- };
329
- }
330
301
 
331
302
  // src/actions/pol/getBeraTokenTotalSupply.ts
332
303
  import { ChainId } from "@berachain/config";
@@ -832,7 +803,6 @@ export {
832
803
  getHoneyRootPriceOracle,
833
804
  getHoneyTxns,
834
805
  getHoneyVaultsBalance,
835
- getIncentiveFeeClaimStats,
836
806
  getLSTStakeConfig,
837
807
  getMarkets,
838
808
  getMaxDeposit,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getApolloClient
3
- } from "../../chunk-3JJLQ2JX.mjs";
3
+ } from "../../chunk-MKSFQIKC.mjs";
4
4
  import "../../chunk-DQRH5VE3.mjs";
5
5
  import "../../chunk-SZ5C44L5.mjs";
6
- import "../../chunk-ZLTMIFCZ.mjs";
6
+ import "../../chunk-RFJGL4MF.mjs";
7
7
  import "../../chunk-KHXJDYA4.mjs";
8
8
 
9
9
  // src/actions/server/getDailyValidatorBlockStats.ts
@@ -10,19 +10,31 @@ import useOriginalSWR from "swr";
10
10
  import useOriginalSWRImmutable from "swr/immutable";
11
11
  function useSWR(key, fetcher, options) {
12
12
  const { isEnabled = true, ...swrConfig } = options ?? {};
13
- return useOriginalSWR(
13
+ const response = useOriginalSWR(
14
14
  isEnabled ? key : null,
15
15
  fetcher,
16
16
  swrConfig
17
17
  );
18
+ return {
19
+ ...response,
20
+ refresh: () => {
21
+ response.mutate();
22
+ }
23
+ };
18
24
  }
19
25
  function useSWRImmutable(key, fetcher, options) {
20
26
  const { isEnabled = true, ...swrConfig } = options ?? {};
21
- return useOriginalSWRImmutable(
27
+ const response = useOriginalSWRImmutable(
22
28
  isEnabled ? key : null,
23
29
  fetcher,
24
30
  swrConfig
25
31
  );
32
+ return {
33
+ ...response,
34
+ refresh: () => {
35
+ response.mutate();
36
+ }
37
+ };
26
38
  }
27
39
  var swr_default = useSWR;
28
40
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  RequestError
3
- } from "./chunk-ZLTMIFCZ.mjs";
3
+ } from "./chunk-RFJGL4MF.mjs";
4
4
  import {
5
5
  BeraError,
6
6
  parseViemError
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-SZ5C44L5.mjs";
7
7
  import {
8
8
  RequestError
9
- } from "./chunk-ZLTMIFCZ.mjs";
9
+ } from "./chunk-RFJGL4MF.mjs";
10
10
  import {
11
11
  BeraError
12
12
  } from "./chunk-KHXJDYA4.mjs";
@@ -155,7 +155,6 @@ function getClient(endpoint, {
155
155
  });
156
156
  }
157
157
  var SUBGRAPH_CLIENTS = [
158
- "honey.subgraph",
159
158
  "pol.subgraph"
160
159
  ];
161
160
  function isSubgraphClient(name) {
@@ -197,8 +196,6 @@ function getApolloClient(clientName, { ...args }) {
197
196
  });
198
197
  }
199
198
  return store(cacheKey, getClient(config.bend.whiskApi));
200
- case "honey.subgraph":
201
- return store(cacheKey, getClient(config.honey.subgraph));
202
199
  case "pol.subgraph":
203
200
  return store(cacheKey, getClient(config.pol.subgraph));
204
201
  }
@@ -32,9 +32,9 @@ var RequestError = class _RequestError extends BeraError {
32
32
  "https://open-api.openocean.finance/v4/bera/swap",
33
33
  // vercel internal proxy
34
34
  "/api/aggregators?aggregator",
35
- // bonder endpoints have date-based query params (e.g. ?start=2025-11-28)
36
- mainnet.backend,
37
- // beep (next-gen backend) on testnet — same date-based bonder query params
35
+ // beep (next-gen backend) bonder endpoints have date-based query params
36
+ // (e.g. ?start=2025-11-28) on both networks
37
+ mainnet.beep,
38
38
  bepolia.beep
39
39
  ];
40
40
  statusCode;
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-SZ5C44L5.mjs";
4
4
  import {
5
5
  RequestError
6
- } from "./chunk-ZLTMIFCZ.mjs";
6
+ } from "./chunk-RFJGL4MF.mjs";
7
7
 
8
8
  // src/utils/getErrorResponse.ts
9
9
  async function getErrorResponse(response) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useSWR
3
- } from "./chunk-UD5IUNCW.mjs";
3
+ } from "./chunk-4ML4Y6UN.mjs";
4
4
  import {
5
5
  getBalanceCall,
6
6
  getEnsoClient
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BeraMonitoring,
10
10
  initBeraError
11
- } from "./chunk-7YVNSDXG.mjs";
11
+ } from "./chunk-FGION6F6.mjs";
12
12
  import {
13
13
  defaultFlags
14
14
  } from "./chunk-BGMRHTBQ.mjs";
@@ -298,7 +298,7 @@ function useEnsoUserTokensWithBalances({ chainId } = {}, options) {
298
298
  chainId,
299
299
  proxyAggregatorsThroughVercel ?? false
300
300
  ] : null;
301
- const swrResponse = useSWR(
301
+ return useSWR(
302
302
  QUERY_KEY,
303
303
  async ([, fromAddress2, chainId2]) => getEnsoUserTokensWithBalances({
304
304
  account: fromAddress2,
@@ -313,10 +313,6 @@ function useEnsoUserTokensWithBalances({ chainId } = {}, options) {
313
313
  ...options
314
314
  }
315
315
  );
316
- return {
317
- ...swrResponse,
318
- refresh: () => swrResponse.mutate()
319
- };
320
316
  }
321
317
 
322
318
  // src/contexts/TokensProvider.tsx