@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,9 +1,8 @@
1
- import * as swr__internal from 'swr/_internal';
2
1
  import * as _berachain_utils_pkg_swr from '@berachain/utils/pkg/swr';
3
- import { SWRResponse } from '@berachain/utils/pkg/swr';
4
- import { b as GetConvertToAssetsProps, O as OnChainPool, B as BaseAggregator, d as GetHoneyVaultsBalanceResponse, j as IsBadCollateralResponse, G as GetBgtAprSimulationArgs, a as GetBgtAprSimulationResult, i as GlobalData, e as GetMarkets, S as StakedBeraWithdrawal, k as RewardVaultIncentive, f as GetRewardVaultRewardsReturn, c as GetGaugeData, t as VaultMetadata, g as GetUserVaultsResponse, h as GetVaultHistoryArgs, V as ValidatorRewardAllocation, s as ValidatorWithUserBoost, U as UserBoostsOnValidator, l as UserStakingPoolPosition, n as ValidatorQueuedCommission, o as ValidatorQueuedOperatorAddress } from '../getValidatorQueuedOperatorAddress-Cxt-DlL_.js';
5
- import { D as DefaultHookOptions, a as DefaultHookReturnType, b as IUseContractWriteArgs, U as UseContractWriteApi } from '../global.d-q_LQWQqs.js';
6
- export { T as TxnEventKeys } from '../global.d-q_LQWQqs.js';
2
+ import { BeraSwrResponse } from '@berachain/utils/pkg/swr';
3
+ import { b as GetConvertToAssetsProps, B as BaseAggregator, c as GetHoneyVaultsBalanceResponse, j as IsBadCollateralResponse, G as GetBgtAprSimulationArgs, a as GetBgtAprSimulationResult, i as GlobalData, d as GetMarkets, S as StakedBeraWithdrawal, k as RewardVaultIncentive, f as GetRewardVaultRewardsReturn, e as GetRewardVaultData, t as VaultMetadata, g as GetUserVaultsResponse, h as GetVaultHistoryArgs, V as ValidatorRewardAllocation, s as ValidatorWithUserBoost, U as UserBoostsOnValidator, l as UserStakingPoolPosition, n as ValidatorQueuedCommission, o as ValidatorQueuedOperatorAddress } from '../getValidatorQueuedOperatorAddress-Cc05dlO3.js';
4
+ import { D as DefaultHookOptions, a as DefaultHookReturnType, b as IUseContractWriteArgs, U as UseContractWriteApi } from '../global.d-CR3zicga.js';
5
+ export { T as TxnEventKeys } from '../global.d-CR3zicga.js';
7
6
  import { S as SwapReferrer, A as Aggregators, a as PoolCreationStep } from '../dex-C_BB0b0O.js';
8
7
  import { Address, Hex } from 'viem';
9
8
  import { M as MinimalERC20, d as HoneyConfigContextReturn, g as IRawAggregatorQuote, b as Token, t as TokenWithAmount, i as TokenCurrentPriceMap, v as IUserPosition, A as AllowanceQueryItem, j as AllowanceToken, w as TokenPriceInfo, B as BalanceToken, h as PythPriceFeedMap, P as PythLatestUpdates, a as TokenWithMetadata } from '../HoneyConfigProvider-COOuDNra.js';
@@ -11,17 +10,16 @@ import * as _berachain_graphql_dex_api from '@berachain/graphql/dex/api';
11
10
  import { GetPoolsQueryVariables, MinimalPoolFragment, GqlPoolEventType, PoolHistoricalDataFragment, GqlRewardVaultDynamicData, GqlVaultSnapshotDataRange, GqlValidatorDynamicData } from '@berachain/graphql/dex/api';
12
11
  export { u as useBexStatus } from '../BexStatusProvider-DRymVlQf.js';
13
12
  import { PoolType } from '@berachain-foundation/berancer-sdk';
13
+ import * as swr__internal from 'swr/_internal';
14
14
  import { BendDemultiplyBundleResponse, BendMultiplyBundleResponse, GetZapTransactionResponse } from '../types/exports.js';
15
15
  import { I as IHoneySwapState } from '../useHoneySwapState-twi7NTaO.js';
16
16
  export { r as reducer, u as useHoneySwapState } from '../useHoneySwapState-twi7NTaO.js';
17
17
  import * as _berachain_graphql_beep from '@berachain/graphql/beep';
18
- import { ValidatorIncentivesResponse } from '@berachain/graphql/beep';
18
+ import { StakeStatsByDayResponse, ValidatorIncentivesResponse } from '@berachain/graphql/beep';
19
19
  import { A as AutoclaimedIncentivesResponse, a as AutoclaimedIncentivesTxHashResponse, S as StakingConfig, c as StakedBeraAsset, U as UserVaultInfo, B as BribeBoostRewardProof } from '../pol.d-CeRgXBL8.js';
20
20
  import * as _berachain_graphql_pol_api from '@berachain/graphql/pol/api';
21
21
  import { GqlRewardVaultFilter, ApiVaultFragment, GetVaultsQueryVariables, GetVaultHistoryQuery, ApiValidatorFragment, GetValidatorsQueryVariables, GetValidatorsQuery, GqlChain, GetValidatorQuery, ApiValidatorMinimalFragment } from '@berachain/graphql/pol/api';
22
- import { VaultStatsByDayResponse } from '@berachain/graphql/api';
23
22
  import { Address as Address$1 } from '@berachain/config';
24
- import * as swr from 'swr';
25
23
  import { GetValidatorBlockStatsQuery, GetValidatorAnalyticsQuery } from '@berachain/graphql/pol/subgraph';
26
24
  import '@berachain/config/internal';
27
25
  import '@wagmi/core';
@@ -35,20 +33,10 @@ import '@ensofinance/sdk';
35
33
 
36
34
  declare const useGetConvertToAssets: ({ sharesAmount, vaultAddress, vaultChainId, }: Omit<GetConvertToAssetsProps, "publicClient"> & {
37
35
  vaultChainId?: number;
38
- }, options?: DefaultHookOptions) => {
39
- refresh: () => void;
40
- data: {
41
- raw: bigint;
42
- formatted: string;
43
- } | undefined;
44
- error: any;
45
- mutate: _berachain_utils_pkg_swr.KeyedMutator<{
46
- raw: bigint;
47
- formatted: string;
48
- }>;
49
- isValidating: boolean;
50
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
51
- };
36
+ }, options?: DefaultHookOptions) => _berachain_utils_pkg_swr.BeraSwrResponse<{
37
+ raw: bigint;
38
+ formatted: string;
39
+ }, any>;
52
40
 
53
41
  type IUseAggregatorsQuotesArgs$1 = BeraJS.BaseFunctionArgs & {
54
42
  tokenIn: MinimalERC20;
@@ -66,21 +54,14 @@ type IUseAggregatorsQuotesArgs$1 = BeraJS.BaseFunctionArgs & {
66
54
  honeyNativeState?: Pick<HoneyConfigContextReturn, "collateralList" | "protocol">;
67
55
  };
68
56
  declare function useAggregatorsQuotes(args: IUseAggregatorsQuotesArgs$1, options?: DefaultHookOptions): {
69
- refresh: () => Promise<IRawAggregatorQuote | undefined>[];
57
+ refresh: () => void;
70
58
  quotes: IRawAggregatorQuote[];
71
59
  loadingAggregatorsNames: (Aggregators | null)[];
72
60
  isLoading: boolean;
73
61
  error: any;
74
62
  };
75
63
 
76
- declare const useAggregatorsRouterFeeBps: () => {
77
- refresh: _berachain_utils_pkg_swr.KeyedMutator<number>;
78
- data: number | undefined;
79
- error: any;
80
- mutate: _berachain_utils_pkg_swr.KeyedMutator<number>;
81
- isValidating: boolean;
82
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
83
- };
64
+ declare const useAggregatorsRouterFeeBps: () => _berachain_utils_pkg_swr.BeraSwrResponse<number, any>;
84
65
 
85
66
  declare const useAllUserPoolsQueryKey: ({ query, }?: {
86
67
  query?: GetPoolsQueryVariables;
@@ -94,118 +75,59 @@ declare const useAllUserPoolsQueryKey: ({ query, }?: {
94
75
  orderDirection?: _berachain_graphql_dex_api.InputMaybe<_berachain_graphql_dex_api.GqlPoolOrderDirection>;
95
76
  blacklistedPoolIds?: _berachain_graphql_dex_api.InputMaybe<Array<_berachain_graphql_dex_api.Scalars["String"]["input"]> | _berachain_graphql_dex_api.Scalars["String"]["input"]>;
96
77
  }> | undefined)[];
97
- declare const useAllUserPools: (query: GetPoolsQueryVariables, options?: DefaultHookOptions) => {
98
- refresh: () => void;
99
- data: {
100
- pools: {
101
- __typename?: "GqlPoolMinimal";
102
- id: string;
103
- name: string;
78
+ declare const useAllUserPools: (query: GetPoolsQueryVariables, options?: DefaultHookOptions) => _berachain_utils_pkg_swr.BeraSwrResponse<{
79
+ pools: {
80
+ __typename?: "GqlPoolMinimal";
81
+ id: string;
82
+ name: string;
83
+ address: `0x${string}`;
84
+ factory?: `0x${string}` | null;
85
+ protocolVersion: number;
86
+ type: _berachain_graphql_dex_api.GqlPoolType;
87
+ tokens: Array<{
88
+ __typename?: "GqlPoolTokenExpanded";
104
89
  address: `0x${string}`;
105
- factory?: `0x${string}` | null;
106
- protocolVersion: number;
107
- type: _berachain_graphql_dex_api.GqlPoolType;
108
- tokens: Array<{
109
- __typename?: "GqlPoolTokenExpanded";
110
- address: `0x${string}`;
111
- symbol: string;
112
- name: string;
113
- decimals: number;
114
- }>;
115
- dynamicData: {
116
- __typename?: "GqlPoolDynamicData";
117
- totalShares: string;
118
- fees24h: string;
119
- volume24h: string;
120
- swapFee: string;
121
- isInRecoveryMode: boolean;
122
- isPaused: boolean;
123
- totalLiquidity: string;
124
- aprItems: Array<{
125
- __typename?: "GqlPoolAprItem";
126
- apr: number;
127
- type: _berachain_graphql_dex_api.GqlPoolAprItemType;
128
- id: string;
129
- }>;
130
- };
131
- userBalance?: {
132
- __typename?: "GqlPoolUserBalance";
133
- totalBalanceUsd: number;
134
- walletBalance: any;
135
- walletBalanceUsd: number;
136
- } | null;
137
- rewardVault?: {
138
- __typename?: "GqlRewardVault";
139
- isVaultWhitelisted: boolean;
140
- vaultAddress: `0x${string}`;
141
- stakingTokenAddress: `0x${string}`;
142
- dynamicData?: {
143
- __typename?: "GqlRewardVaultDynamicData";
144
- activeIncentivesValueUsd: string;
145
- apr?: number | null;
146
- rewardCapturePercentage: number;
147
- } | null;
148
- } | null;
149
- }[];
150
- count: number;
151
- } | undefined;
152
- error: any;
153
- mutate: _berachain_utils_pkg_swr.KeyedMutator<{
154
- pools: {
155
- __typename?: "GqlPoolMinimal";
156
- id: string;
90
+ symbol: string;
157
91
  name: string;
158
- address: `0x${string}`;
159
- factory?: `0x${string}` | null;
160
- protocolVersion: number;
161
- type: _berachain_graphql_dex_api.GqlPoolType;
162
- tokens: Array<{
163
- __typename?: "GqlPoolTokenExpanded";
164
- address: `0x${string}`;
165
- symbol: string;
166
- name: string;
167
- decimals: number;
92
+ decimals: number;
93
+ }>;
94
+ dynamicData: {
95
+ __typename?: "GqlPoolDynamicData";
96
+ totalShares: string;
97
+ fees24h: string;
98
+ volume24h: string;
99
+ swapFee: string;
100
+ isInRecoveryMode: boolean;
101
+ isPaused: boolean;
102
+ totalLiquidity: string;
103
+ aprItems: Array<{
104
+ __typename?: "GqlPoolAprItem";
105
+ apr: number;
106
+ type: _berachain_graphql_dex_api.GqlPoolAprItemType;
107
+ id: string;
168
108
  }>;
169
- dynamicData: {
170
- __typename?: "GqlPoolDynamicData";
171
- totalShares: string;
172
- fees24h: string;
173
- volume24h: string;
174
- swapFee: string;
175
- isInRecoveryMode: boolean;
176
- isPaused: boolean;
177
- totalLiquidity: string;
178
- aprItems: Array<{
179
- __typename?: "GqlPoolAprItem";
180
- apr: number;
181
- type: _berachain_graphql_dex_api.GqlPoolAprItemType;
182
- id: string;
183
- }>;
184
- };
185
- userBalance?: {
186
- __typename?: "GqlPoolUserBalance";
187
- totalBalanceUsd: number;
188
- walletBalance: any;
189
- walletBalanceUsd: number;
190
- } | null;
191
- rewardVault?: {
192
- __typename?: "GqlRewardVault";
193
- isVaultWhitelisted: boolean;
194
- vaultAddress: `0x${string}`;
195
- stakingTokenAddress: `0x${string}`;
196
- dynamicData?: {
197
- __typename?: "GqlRewardVaultDynamicData";
198
- activeIncentivesValueUsd: string;
199
- apr?: number | null;
200
- rewardCapturePercentage: number;
201
- } | null;
109
+ };
110
+ userBalance?: {
111
+ __typename?: "GqlPoolUserBalance";
112
+ totalBalanceUsd: number;
113
+ walletBalance: any;
114
+ walletBalanceUsd: number;
115
+ } | null;
116
+ rewardVault?: {
117
+ __typename?: "GqlRewardVault";
118
+ isVaultWhitelisted: boolean;
119
+ vaultAddress: `0x${string}`;
120
+ stakingTokenAddress: `0x${string}`;
121
+ dynamicData?: {
122
+ __typename?: "GqlRewardVaultDynamicData";
123
+ activeIncentivesValueUsd: string;
124
+ apr?: number | null;
125
+ rewardCapturePercentage: number;
202
126
  } | null;
203
- }[];
204
- count: number;
205
- }>;
206
- isValidating: boolean;
207
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
208
- };
127
+ } | null;
128
+ }[];
129
+ count: number;
130
+ }, any>;
209
131
 
210
132
  declare const useApiPoolQueryKey: ({ poolId, account, }: {
211
133
  poolId: Hex;
@@ -214,14 +136,7 @@ declare const useApiPoolQueryKey: ({ poolId, account, }: {
214
136
  declare function useApiPool({ poolId, account, }: {
215
137
  poolId: Hex;
216
138
  account?: Address;
217
- }): {
218
- refresh: () => void;
219
- data: MinimalPoolFragment | undefined;
220
- error: any;
221
- mutate: _berachain_utils_pkg_swr.KeyedMutator<MinimalPoolFragment>;
222
- isValidating: boolean;
223
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
224
- };
139
+ }): _berachain_utils_pkg_swr.BeraSwrResponse<MinimalPoolFragment, any>;
225
140
 
226
141
  interface UseCreatePoolProps extends BeraJS.BaseFunctionArgs {
227
142
  poolCreateTokens: Token[];
@@ -257,11 +172,10 @@ declare const useGlobalLiquidityAndSwapVolume: () => {
257
172
  totalLiquidity: number;
258
173
  swapVolume24h: number;
259
174
  };
260
- refresh: () => Promise<_berachain_graphql_dex_api.GetGlobalLiquidityAndSwapVolumeQuery | undefined>;
261
175
  error: any;
262
- mutate: _berachain_utils_pkg_swr.KeyedMutator<_berachain_graphql_dex_api.GetGlobalLiquidityAndSwapVolumeQuery>;
263
176
  isValidating: boolean;
264
177
  isLoading: swr__internal.IsLoadingResponse<Data, Config>;
178
+ refresh: () => void;
265
179
  };
266
180
 
267
181
  type LiquidityMismatchInfo = {
@@ -358,8 +272,7 @@ declare function useOnChainPoolData(poolId: string): {
358
272
  data: OnChainPoolFragment | undefined;
359
273
  error: any;
360
274
  isLoading: boolean;
361
- mutate: _berachain_utils_pkg_swr.KeyedMutator<OnChainPool>;
362
- refresh: () => Promise<OnChainPool | undefined>;
275
+ refresh: () => void;
363
276
  };
364
277
 
365
278
  /**
@@ -367,14 +280,7 @@ declare function useOnChainPoolData(poolId: string): {
367
280
  *
368
281
  * @returns SWR data spread and refresh function
369
282
  */
370
- declare const usePollPoolCreationRelayerApproval: (options?: DefaultHookOptions) => {
371
- refreshPoolCreationApproval: () => void;
372
- data: boolean | undefined;
373
- error: any;
374
- mutate: _berachain_utils_pkg_swr.KeyedMutator<boolean>;
375
- isValidating: boolean;
376
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
377
- };
283
+ declare const usePollPoolCreationRelayerApproval: (options?: DefaultHookOptions) => _berachain_utils_pkg_swr.BeraSwrResponse<boolean, any>;
378
284
 
379
285
  declare function usePool({ poolId }: {
380
286
  poolId: Hex;
@@ -388,7 +294,7 @@ declare function usePool({ poolId }: {
388
294
  declare const usePoolEvents: ({ poolId, typeInArray, }: {
389
295
  poolId: string | undefined;
390
296
  typeInArray: GqlPoolEventType[];
391
- }) => _berachain_utils_pkg_swr.SWRResponse<_berachain_graphql_dex_api.GetPoolEventsQuery, any, any>;
297
+ }) => _berachain_utils_pkg_swr.BeraSwrResponse<_berachain_graphql_dex_api.GetPoolEventsQuery, any>;
392
298
 
393
299
  type UsePoolHistoricalDataArgs = {
394
300
  poolId: string | undefined;
@@ -556,7 +462,7 @@ declare const USE_AGGREGATORS_QUOTES_QUERY_KEY = "useAggregatorsQuotes";
556
462
  */
557
463
  declare function useSingleAggregatorQuote(args: IUseAggregatorsQuotesArgs & {
558
464
  aggregator: BaseAggregator;
559
- }, options?: DefaultHookOptions): _berachain_utils_pkg_swr.SWRResponse<IRawAggregatorQuote | undefined, any, any> | null;
465
+ }, options?: DefaultHookOptions): _berachain_utils_pkg_swr.BeraSwrResponse<IRawAggregatorQuote | undefined, any> | null;
560
466
 
561
467
  type UseBendDemultiply = {
562
468
  collateralToken?: Token;
@@ -570,7 +476,7 @@ type UseBendDemultiply = {
570
476
  currentCollateral?: string;
571
477
  currentDebt?: string;
572
478
  };
573
- declare function useBendDemultiply({ collateralToken, loanToken, marketId, primaryAddress, repayAmount, slippage, chainId, collateralPriceInLoanAsset, currentCollateral, currentDebt, }: UseBendDemultiply, options?: DefaultHookOptions): _berachain_utils_pkg_swr.SWRResponse<BendDemultiplyBundleResponse, unknown, any>;
479
+ declare function useBendDemultiply({ collateralToken, loanToken, marketId, primaryAddress, repayAmount, slippage, chainId, collateralPriceInLoanAsset, currentCollateral, currentDebt, }: UseBendDemultiply, options?: DefaultHookOptions): _berachain_utils_pkg_swr.BeraSwrResponse<BendDemultiplyBundleResponse, unknown>;
574
480
 
575
481
  type UseBendMultiply = {
576
482
  collateralToken?: Token;
@@ -585,7 +491,7 @@ type UseBendMultiply = {
585
491
  chainId?: number;
586
492
  formattedCollateralPriceInLoanAsset?: string;
587
493
  };
588
- declare function useBendMultiply({ collateralToken, loanToken, marketId, primaryAddress, formattedSupplyCollateralAmount, formattedCurrentCollateralAmount, formattedCurrentBorrowAmount, leverageMultiplier, slippage, chainId, formattedCollateralPriceInLoanAsset, }: UseBendMultiply, options?: DefaultHookOptions): _berachain_utils_pkg_swr.SWRResponse<BendMultiplyBundleResponse, unknown, any>;
494
+ declare function useBendMultiply({ collateralToken, loanToken, marketId, primaryAddress, formattedSupplyCollateralAmount, formattedCurrentCollateralAmount, formattedCurrentBorrowAmount, leverageMultiplier, slippage, chainId, formattedCollateralPriceInLoanAsset, }: UseBendMultiply, options?: DefaultHookOptions): _berachain_utils_pkg_swr.BeraSwrResponse<BendMultiplyBundleResponse, unknown>;
589
495
 
590
496
  type UseBendZapSupplyArgs = {
591
497
  tokenIn?: BalanceToken;
@@ -618,11 +524,10 @@ declare function useBendZapSupply({ tokenIn, loanToken, bendVault, rewardVault,
618
524
  refresh: () => void;
619
525
  data: any;
620
526
  error: any;
621
- mutate: _berachain_utils_pkg_swr.KeyedMutator<any>;
622
527
  isValidating: boolean;
623
528
  isLoading: swr__internal.IsLoadingResponse<Data, Config>;
624
529
  };
625
- declare function useBendZapSupplyHelper({ tokenIn, loanToken, bendVault, rewardVault, amount, slippage, }: UseBendZapSupplyArgs, options?: DefaultHookOptions): _berachain_utils_pkg_swr.SWRResponse<any, any, any>;
530
+ declare function useBendZapSupplyHelper({ tokenIn, loanToken, bendVault, rewardVault, amount, slippage, }: UseBendZapSupplyArgs, options?: DefaultHookOptions): _berachain_utils_pkg_swr.BeraSwrResponse<any, any>;
626
531
 
627
532
  /**
628
533
  * Get the swap bundle for swapping tokens using Enso.
@@ -644,21 +549,13 @@ declare function useEnsoSwapBundle({ tokenIn, tokenOut, amount, slippage, }: {
644
549
  refresh: () => void;
645
550
  data: GetZapTransactionResponse | undefined;
646
551
  error: any;
647
- mutate: _berachain_utils_pkg_swr.KeyedMutator<GetZapTransactionResponse>;
648
552
  isValidating: boolean;
649
553
  isLoading: swr__internal.IsLoadingResponse<Data, Config>;
650
554
  };
651
555
 
652
556
  declare function useEnsoUserTokensWithBalances({ chainId }?: {
653
557
  chainId?: number;
654
- }, options?: DefaultHookOptions): {
655
- refresh: () => Promise<BalanceToken[] | undefined>;
656
- data: BalanceToken[] | undefined;
657
- error: any;
658
- mutate: _berachain_utils_pkg_swr.KeyedMutator<BalanceToken[]>;
659
- isValidating: boolean;
660
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
661
- };
558
+ }, options?: DefaultHookOptions): _berachain_utils_pkg_swr.BeraSwrResponse<BalanceToken[], any>;
662
559
 
663
560
  type UseZapStakeBeraArgs = {
664
561
  inputToken: MinimalERC20 | undefined;
@@ -674,11 +571,10 @@ type UseZapStakeBeraArgs = {
674
571
  */
675
572
  declare function useZapStakeBera({ inputToken, amount, underlyingToken, slippage, tokenOut, }: UseZapStakeBeraArgs, options?: DefaultHookOptions): {
676
573
  data: any;
677
- refresh: () => void;
678
574
  error: any;
679
- mutate: _berachain_utils_pkg_swr.KeyedMutator<any>;
680
575
  isValidating: boolean;
681
576
  isLoading: swr__internal.IsLoadingResponse<Data, Config>;
577
+ refresh: () => void;
682
578
  };
683
579
 
684
580
  interface UseCappedGloballyResponse extends DefaultHookReturnType<boolean | undefined> {
@@ -705,14 +601,7 @@ declare const useCollateralWeights: ({ collateralList, }: {
705
601
  collateralList: Token[] | undefined;
706
602
  }, options?: DefaultHookOptions) => UseCollateralWeightsResponse;
707
603
 
708
- declare function useHoney24hVolume(): {
709
- refresh: () => Promise<BigNumber | undefined>;
710
- data: BigNumber | undefined;
711
- error: any;
712
- mutate: _berachain_utils_pkg_swr.KeyedMutator<BigNumber | undefined>;
713
- isValidating: boolean;
714
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
715
- };
604
+ declare function useHoney24hVolume(): _berachain_utils_pkg_swr.BeraSwrResponse<BigNumber | undefined, any>;
716
605
 
717
606
  /**
718
607
  * Interface defining the state props that we need without the entire IHoneySwapState
@@ -783,32 +672,13 @@ declare const useHoneyBalances: () => DefaultHookReturnType<Record<Address, Bala
783
672
 
784
673
  declare function useHoneyChartData({ days }: {
785
674
  days: number;
786
- }): {
787
- refresh: () => Promise<{
788
- timestamp: number;
789
- mintVolume: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
790
- redeemVolume: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
791
- totalVolume: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
792
- totalSupply: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
793
- }[] | undefined>;
794
- data: {
795
- timestamp: number;
796
- mintVolume: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
797
- redeemVolume: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
798
- totalVolume: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
799
- totalSupply: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
800
- }[] | undefined;
801
- error: any;
802
- mutate: _berachain_utils_pkg_swr.KeyedMutator<{
803
- timestamp: number;
804
- mintVolume: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
805
- redeemVolume: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
806
- totalVolume: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
807
- totalSupply: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
808
- }[]>;
809
- isValidating: boolean;
810
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
811
- };
675
+ }): _berachain_utils_pkg_swr.BeraSwrResponse<{
676
+ timestamp: number;
677
+ mintVolume: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
678
+ redeemVolume: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
679
+ totalVolume: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
680
+ totalSupply: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
681
+ }[], any>;
812
682
 
813
683
  declare const useHoneyVaultsBalance: (options?: DefaultHookOptions) => DefaultHookReturnType<GetHoneyVaultsBalanceResponse[]>;
814
684
 
@@ -826,7 +696,7 @@ declare function useIsBasketModeEnabled({ state }: {
826
696
  * Hook to fetch the latest Pyth price updates for specified pair addresses
827
697
  * @param {Object} params - The parameters object
828
698
  * @param {Address[] | undefined} params.pairMainAddress - Array of pair addresses to fetch price updates for
829
- * @returns {SWRResponse<PythLatestUpdates>} SWR response containing the latest Pyth price updates
699
+ * @returns {BeraSwrResponse<PythLatestUpdates>} SWR response containing the latest Pyth price updates
830
700
  * @example
831
701
  * ```ts
832
702
  * const { data, error } = usePythLatestPrices({
@@ -836,7 +706,7 @@ declare function useIsBasketModeEnabled({ state }: {
836
706
  */
837
707
  declare function usePythLatestPrices({ priceFeedMap, }: {
838
708
  priceFeedMap: PythPriceFeedMap | undefined;
839
- }, options?: DefaultHookOptions): SWRResponse<PythLatestUpdates>;
709
+ }, options?: DefaultHookOptions): BeraSwrResponse<PythLatestUpdates>;
840
710
 
841
711
  declare const usePythUpdateFee: ({ pythPriceFeedCalldata, tokenListLength, }: {
842
712
  pythPriceFeedCalldata: Address[] | undefined;
@@ -872,14 +742,7 @@ declare function useBgtIncentiveDistributorPaused(options?: DefaultHookOptions):
872
742
 
873
743
  declare const useBgtUnstakedBalance: (options?: DefaultHookOptions) => DefaultHookReturnType<string | undefined>;
874
744
 
875
- declare const useClaimableFees: () => {
876
- refresh: () => Promise<string | undefined>;
877
- data: string | undefined;
878
- error: any;
879
- mutate: _berachain_utils_pkg_swr.KeyedMutator<string>;
880
- isValidating: boolean;
881
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
882
- };
745
+ declare const useClaimableFees: () => _berachain_utils_pkg_swr.BeraSwrResponse<string, any>;
883
746
 
884
747
  /**
885
748
  * Hook that fetches and returns the highest APR (Annual Percentage Rate) from reward vaults.
@@ -888,8 +751,7 @@ declare const useClaimableFees: () => {
888
751
  *
889
752
  * @returns {Object} An object containing:
890
753
  * - highestApr: The highest APR value from the reward vaults
891
- * - refresh: Function to manually refresh the data
892
- * - ...swrResponse: All properties from the underlying SWR response
754
+ * - isLoading: Loading state
893
755
  *
894
756
  * @example
895
757
  * const { highestApr } = useHighestVaultsAPR({
@@ -901,7 +763,6 @@ declare const useHighestVaultsAPR: (where?: GqlRewardVaultFilter, { isEnabled }?
901
763
  }) => {
902
764
  highestApr: GqlRewardVaultDynamicData["apr"] | undefined;
903
765
  isLoading: boolean;
904
- refresh: () => void;
905
766
  };
906
767
 
907
768
  declare const usePollGlobalData: (options?: DefaultHookOptions) => DefaultHookReturnType<GlobalData>;
@@ -915,18 +776,11 @@ declare function useQueuedBeraUnlock({ receiptTokenAddresses, account, version,
915
776
  receiptTokenAddresses: Address[];
916
777
  account?: Address | string;
917
778
  version: "V1" | "V2";
918
- }, options?: DefaultHookOptions): {
919
- refresh: () => Promise<StakedBeraWithdrawal[] | undefined>;
920
- data: StakedBeraWithdrawal[] | undefined;
921
- error: any;
922
- mutate: _berachain_utils_pkg_swr.KeyedMutator<StakedBeraWithdrawal[]>;
923
- isValidating: boolean;
924
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
925
- };
779
+ }, options?: DefaultHookOptions): _berachain_utils_pkg_swr.BeraSwrResponse<StakedBeraWithdrawal[], any>;
926
780
 
927
781
  declare const useRewardTokenToBeraRate: ({ address, }: {
928
782
  address: Address | undefined;
929
- }, opt?: DefaultHookOptions) => _berachain_utils_pkg_swr.SWRResponse<number, any, any>;
783
+ }, opt?: DefaultHookOptions) => _berachain_utils_pkg_swr.BeraSwrResponse<number, any>;
930
784
 
931
785
  interface UseRewardVaultResponse extends DefaultHookReturnType<ApiVaultFragment> {
932
786
  }
@@ -944,10 +798,6 @@ declare const useRewardVaultBalanceFromStakingToken: ({ stakingToken, rewardVaul
944
798
  balance: bigint;
945
799
  } | undefined;
946
800
  error: any;
947
- mutate: _berachain_utils_pkg_swr.KeyedMutator<{
948
- address: `0x${string}`;
949
- balance: bigint;
950
- }>;
951
801
  isValidating: boolean;
952
802
  };
953
803
 
@@ -955,35 +805,14 @@ declare const useRewardVaultFromToken: ({ tokenAddress, }: {
955
805
  tokenAddress: Address | string | undefined;
956
806
  }, { isEnabled, }?: {
957
807
  isEnabled?: boolean;
958
- }) => {
959
- refresh: () => Promise<`0x${string}` | undefined>;
960
- data: `0x${string}` | undefined;
961
- error: any;
962
- mutate: _berachain_utils_pkg_swr.KeyedMutator<`0x${string}` | undefined>;
963
- isValidating: boolean;
964
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
965
- };
808
+ }) => _berachain_utils_pkg_swr.BeraSwrResponse<`0x${string}` | undefined, any>;
966
809
 
967
810
  declare function useRewardVaultIncentives({ address, stakingToken, }: {
968
811
  address: Address | undefined;
969
812
  stakingToken: Address | undefined;
970
- }): {
971
- refresh: () => Promise<RewardVaultIncentive[] | undefined>;
972
- data: RewardVaultIncentive[] | undefined;
973
- error: any;
974
- mutate: _berachain_utils_pkg_swr.KeyedMutator<RewardVaultIncentive[]>;
975
- isValidating: boolean;
976
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
977
- };
813
+ }): _berachain_utils_pkg_swr.BeraSwrResponse<RewardVaultIncentive[], any>;
978
814
 
979
- declare const useRewardVaultRewards: (address: Address, options?: DefaultHookOptions) => {
980
- refresh: () => Promise<GetRewardVaultRewardsReturn | undefined>;
981
- data: GetRewardVaultRewardsReturn | undefined;
982
- error: any;
983
- mutate: _berachain_utils_pkg_swr.KeyedMutator<GetRewardVaultRewardsReturn>;
984
- isValidating: boolean;
985
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
986
- };
815
+ declare const useRewardVaultRewards: (address: Address, options?: DefaultHookOptions) => _berachain_utils_pkg_swr.BeraSwrResponse<GetRewardVaultRewardsReturn, any>;
987
816
 
988
817
  declare const useRewardVaultsQueryKey: (filter?: GetVaultsQueryVariables, onChainIncentives?: boolean) => readonly ["useRewardVaults", _berachain_graphql_pol_api.Exact<{
989
818
  where?: _berachain_graphql_pol_api.InputMaybe<_berachain_graphql_pol_api.GqlRewardVaultFilter>;
@@ -996,14 +825,7 @@ declare const useRewardVaultsQueryKey: (filter?: GetVaultsQueryVariables, onChai
996
825
  declare const useRewardVaults: (args: {
997
826
  filter?: GetVaultsQueryVariables;
998
827
  onChainIncentives?: boolean;
999
- }, options?: DefaultHookOptions) => {
1000
- refresh: _berachain_utils_pkg_swr.KeyedMutator<GetGaugeData>;
1001
- data: GetGaugeData | undefined;
1002
- error: any;
1003
- mutate: _berachain_utils_pkg_swr.KeyedMutator<GetGaugeData>;
1004
- isValidating: boolean;
1005
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
1006
- };
828
+ }, options?: DefaultHookOptions) => _berachain_utils_pkg_swr.BeraSwrResponse<GetRewardVaultData, any>;
1007
829
 
1008
830
  type UseStakedAPR = {
1009
831
  timestamp: number;
@@ -1052,7 +874,7 @@ declare const useStakedData: (stakingConfigs: StakingConfig[]) => {
1052
874
  earningsSettled: boolean;
1053
875
  };
1054
876
 
1055
- type UseStakedBeraSnapshot = Record<Address, VaultStatsByDayResponse>;
877
+ type UseStakedBeraSnapshot = Record<Address, StakeStatsByDayResponse>;
1056
878
  declare function useStakedSnapshots({ range, addresses, }: {
1057
879
  addresses: Address[];
1058
880
  range: 30 | 60 | 90;
@@ -1062,7 +884,7 @@ type StakingVaultEntry = {
1062
884
  address: Address;
1063
885
  underlyingAsset: Address;
1064
886
  };
1065
- declare const useStakingVaultsMetadata: (vaults?: StakingVaultEntry[]) => _berachain_utils_pkg_swr.SWRResponse<VaultMetadata[], any, any>;
887
+ declare const useStakingVaultsMetadata: (vaults?: StakingVaultEntry[]) => _berachain_utils_pkg_swr.BeraSwrResponse<VaultMetadata[], any>;
1066
888
 
1067
889
  declare function useTotalStakedAmount({ vaultAddresses, }: {
1068
890
  vaultAddresses: Address$1[];
@@ -1078,10 +900,10 @@ interface RewardVault {
1078
900
  stakeToken: Address;
1079
901
  address: Address;
1080
902
  }
1081
- declare const useVaultAddress: (vaultAddress: Address) => _berachain_utils_pkg_swr.SWRResponse<{
903
+ declare const useVaultAddress: (vaultAddress: Address) => _berachain_utils_pkg_swr.BeraSwrResponse<{
1082
904
  stakeToken: `0x${string}`;
1083
905
  address: `0x${string}`;
1084
- }, any, any>;
906
+ }, any>;
1085
907
 
1086
908
  declare const useVaultHistory: ({ vault, range, resolution, }: GetVaultHistoryArgs) => DefaultHookReturnType<GetVaultHistoryQuery["polGetRewardVaultSnapshots"]>;
1087
909
 
@@ -1096,9 +918,9 @@ declare const useVaultValidators: (id: Address, options?: DefaultHookOptions) =>
1096
918
  declare function useBeraCurrentPrice(opts?: DefaultHookOptions): {
1097
919
  data: TokenPriceInfo | undefined;
1098
920
  error: any;
1099
- mutate: swr.KeyedMutator<TokenCurrentPriceMap>;
1100
921
  isValidating: boolean;
1101
922
  isLoading: swr__internal.IsLoadingResponse<Data, Config>;
923
+ refresh: () => void;
1102
924
  };
1103
925
 
1104
926
  type UseMultipleTokenInformationResponse = DefaultHookReturnType<Token[]>;
@@ -1157,9 +979,9 @@ declare function useTokenCurrentPrice({ address }: {
1157
979
  }, options?: DefaultHookOptions): {
1158
980
  data: TokenPriceInfo | undefined;
1159
981
  error: any;
1160
- mutate: swr.KeyedMutator<TokenCurrentPriceMap>;
1161
982
  isValidating: boolean;
1162
983
  isLoading: swr__internal.IsLoadingResponse<Data, Config>;
984
+ refresh: () => void;
1163
985
  };
1164
986
 
1165
987
  /**
@@ -1172,9 +994,9 @@ declare function useTokenCurrentPrices({ addressIn, }?: {
1172
994
  [x: string]: TokenPriceInfo | undefined;
1173
995
  };
1174
996
  error: any;
1175
- mutate: _berachain_utils_pkg_swr.KeyedMutator<TokenCurrentPriceMap>;
1176
997
  isValidating: boolean;
1177
998
  isLoading: swr__internal.IsLoadingResponse<Data, Config>;
999
+ refresh: () => void;
1178
1000
  };
1179
1001
 
1180
1002
  type UseTokenInformationResponse = DefaultHookReturnType<Token | undefined>;
@@ -1227,7 +1049,7 @@ declare function useTokens(): {
1227
1049
 
1228
1050
  declare function useTotalSupply({ address }: {
1229
1051
  address: Address | undefined;
1230
- }): _berachain_utils_pkg_swr.SWRResponse<bigint, any, any>;
1052
+ }): _berachain_utils_pkg_swr.BeraSwrResponse<bigint, any>;
1231
1053
 
1232
1054
  /**
1233
1055
  *
@@ -1244,7 +1066,7 @@ declare function useBeraContractWrite({ onlyPermissionless, onSuccess, onError,
1244
1066
  onlyPermissionless?: boolean;
1245
1067
  }): UseContractWriteApi;
1246
1068
 
1247
- declare const useGetVerifiedAbi: (address?: string) => _berachain_utils_pkg_swr.SWRResponse<string, any, any>;
1069
+ declare const useGetVerifiedAbi: (address?: string) => _berachain_utils_pkg_swr.BeraSwrResponse<string, any>;
1248
1070
 
1249
1071
  type UseHistoryStateOptions<T> = {
1250
1072
  key: string;
@@ -1283,28 +1105,21 @@ declare const useAllValidators: (variables: GetValidatorsQueryVariables & BeraJS
1283
1105
 
1284
1106
  declare function useApiEnrichedAllocation({ allocation, }: {
1285
1107
  allocation: ValidatorRewardAllocation | undefined;
1286
- }): _berachain_utils_pkg_swr.SWRResponse<_berachain_graphql_pol_api.ApiRewardAllocationWeightFragment[], any, any>;
1108
+ }): _berachain_utils_pkg_swr.BeraSwrResponse<_berachain_graphql_pol_api.ApiRewardAllocationWeightFragment[], any>;
1287
1109
 
1288
1110
  interface UsePollValidatorInfoResponse extends DefaultHookReturnType<GetValidatorQuery> {
1289
1111
  }
1290
1112
  declare const useApiValidatorQueryKey: (id: Address) => readonly ["useApiValidator", `0x${string}`] | null;
1291
1113
  declare const useApiValidator: (id: Address, options?: DefaultHookOptions) => UsePollValidatorInfoResponse;
1292
1114
 
1293
- declare function useBaselineRewardAllocation(): _berachain_utils_pkg_swr.SWRResponse<ValidatorRewardAllocation, any, any>;
1115
+ declare function useBaselineRewardAllocation(): _berachain_utils_pkg_swr.BeraSwrResponse<ValidatorRewardAllocation, any>;
1294
1116
 
1295
1117
  declare const useDailyValidatorBlockStats: ({ pubKey, first, }: {
1296
1118
  pubKey: Address | undefined;
1297
1119
  first?: number;
1298
1120
  }) => DefaultHookReturnType<GetValidatorBlockStatsQuery>;
1299
1121
 
1300
- declare function useDefaultRewardAllocation(options?: DefaultHookOptions): {
1301
- refresh: () => Promise<ValidatorRewardAllocation | undefined>;
1302
- data: ValidatorRewardAllocation | undefined;
1303
- error: any;
1304
- mutate: _berachain_utils_pkg_swr.KeyedMutator<ValidatorRewardAllocation | undefined>;
1305
- isValidating: boolean;
1306
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
1307
- };
1122
+ declare function useDefaultRewardAllocation(options?: DefaultHookOptions): _berachain_utils_pkg_swr.BeraSwrResponse<ValidatorRewardAllocation | undefined, any>;
1308
1123
 
1309
1124
  type ManagedValidatorRole = {
1310
1125
  operator: Address | null;
@@ -1368,14 +1183,7 @@ declare const useUserClaimableIncentives: () => UseUserClaimableIncentivesReturn
1368
1183
  declare const useUserStakingPositions: ({ account, validatorAddress, }: {
1369
1184
  account: Address | undefined;
1370
1185
  validatorAddress?: Address;
1371
- }) => {
1372
- refresh: () => void;
1373
- data: UserStakingPoolPosition[] | undefined;
1374
- error: any;
1375
- mutate: _berachain_utils_pkg_swr.KeyedMutator<UserStakingPoolPosition[]>;
1376
- isValidating: boolean;
1377
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
1378
- };
1186
+ }) => _berachain_utils_pkg_swr.BeraSwrResponse<UserStakingPoolPosition[], any>;
1379
1187
 
1380
1188
  declare function useValidator({ pubkey }: {
1381
1189
  pubkey: Address;
@@ -1515,28 +1323,11 @@ declare const useValidatorQueuedOperatorAddress: (pubKey: Address, options?: Def
1515
1323
 
1516
1324
  declare const useValidatorQueuedRewardAllocation: (pubKey: Address, options?: DefaultHookOptions) => DefaultHookReturnType<ValidatorRewardAllocation | undefined>;
1517
1325
 
1518
- declare function useValidatorRewardAllocation(pubKey: Address, options?: DefaultHookOptions): {
1519
- refresh: () => Promise<{
1520
- activeRewardAllocation: ValidatorRewardAllocation;
1521
- setRewardAllocation: ValidatorRewardAllocation;
1522
- isBaseline: boolean;
1523
- isNeverSet: boolean;
1524
- } | undefined>;
1525
- data: {
1526
- activeRewardAllocation: ValidatorRewardAllocation;
1527
- setRewardAllocation: ValidatorRewardAllocation;
1528
- isBaseline: boolean;
1529
- isNeverSet: boolean;
1530
- } | undefined;
1531
- error: any;
1532
- mutate: _berachain_utils_pkg_swr.KeyedMutator<{
1533
- activeRewardAllocation: ValidatorRewardAllocation;
1534
- setRewardAllocation: ValidatorRewardAllocation;
1535
- isBaseline: boolean;
1536
- isNeverSet: boolean;
1537
- }>;
1538
- isValidating: boolean;
1539
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
1540
- };
1326
+ declare function useValidatorRewardAllocation(pubKey: Address, options?: DefaultHookOptions): _berachain_utils_pkg_swr.BeraSwrResponse<{
1327
+ activeRewardAllocation: ValidatorRewardAllocation;
1328
+ setRewardAllocation: ValidatorRewardAllocation;
1329
+ isBaseline: boolean;
1330
+ isNeverSet: boolean;
1331
+ }, any>;
1541
1332
 
1542
1333
  export { IHoneySwapState, IUseContractWriteArgs, type LiquidityMismatchInfo, type ManagedValidatorRole, type OnChainPoolFragment, type Oracle, OracleMode, type RewardVault, type StakingVaultEntry, type TokenPriceInput, type TokenPriceMap, type TokenPriceOutput, USE_AGGREGATORS_QUOTES_QUERY_KEY, type UseBendDemultiply, type UseBendMultiply, type UseCappedGloballyResponse, type UseCappedRelativelyResponse, type UseCollateralWeightsResponse, UseContractWriteApi, type UseIsBadCollateralResponse, type UseMultipleTokenInformationResponse, type UsePollAllowancesArgs, type UsePollAllowancesResponse, type UsePollBalancesResponse, type UsePollMarketsResponse, type UsePollValidatorInfoResponse, type UsePollWalletBalancesArgs, type UseRewardVaultResponse, type UseStakingTokenInformationResponse, type UseTokenInformationArgs, type UseTokenInformationResponse, useAggregatorsQuotes, useAggregatorsRouterFeeBps, useAllUserPools, useAllUserPoolsQueryKey, useAllValidators, useAllValidatorsQueryKey, useApiEnrichedAllocation, useApiPool, useApiPoolQueryKey, useApiValidator, useApiValidatorQueryKey, useAutoclaimedIncentives, useAutoclaimedIncentivesTxHash, useBaselineRewardAllocation, useBendDemultiply, useBendMultiply, useBendZapSupply, useBendZapSupplyHelper, useBeraContractWrite, useBeraCurrentPrice, useBgtAprSimulation, useBgtIncentiveDistributorPaused, useBgtUnstakedBalance, useBlockToTimestamp, useCappedGlobally, useCappedRelatively, useClaimableFees, useCollateralWeights, useCreatePool, useDailyValidatorBlockStats, useDefaultRewardAllocation, useEnsoSwapBundle, useEnsoUserTokensWithBalances, useGetConvertToAssets, useGetVerifiedAbi, useGlobalLiquidityAndSwapVolume, useHighestVaultsAPR, useHistoryState, useHoney24hVolume, useHoneyAlerts, useHoneyBalances, useHoneyChartData, useHoneyVaultsBalance, useIsBadCollateralAsset, useIsBasketModeEnabled, useLiquidityMismatch, useLpPosition, useManagedValidatorRole, useMultipleTokenApprovalsWithSlippage, useMultipleTokenInformation, type useMultipleTokenInformationArgs, useOnChainPoolData, useOnChainPoolDataQueryKey, useOnChainValidator, usePollAllowances, usePollBalance, usePollGlobalData, usePollMarkets, usePollMarketsQueryKey, usePollPoolCreationRelayerApproval, usePollWalletBalances, usePool, usePoolEvents, usePoolHistoricalData, usePools, usePoolsQueryKey, usePrevious, usePriceImpact, usePythLatestPrices, usePythUpdateFee, useQueuedBeraUnlock, useRewardTokenToBeraRate, useRewardVault, useRewardVaultBalanceFromStakingToken, useRewardVaultFromToken, useRewardVaultIncentives, useRewardVaultQueryKey, useRewardVaultRewards, useRewardVaults, useRewardVaultsQueryKey, useSingleAggregatorQuote, useStakedAPR, useStakedData, useStakedSnapshots, useStakingPoolBatch, useStakingTokenInformation, type useStakingTokenInformationArgs, useStakingVaultsMetadata, useTokenCurrentPrice, useTokenCurrentPrices, useTokenInformation, useTokenPrice, useTokenPrices, useTokens, useTotalStakedAmount, useTotalSupply, useUserActiveValidators, useUserBoostsOnValidator, useUserClaimableIncentives, useUserStakingPositions, useUserVaultInfo, useUserVaults, useValidator, useValidatorAnalytics, useValidatorCommission, useValidatorEstimatedBgtPerYear, useValidatorIncentiveDistribution, useValidatorQueuedCommission, useValidatorQueuedOperatorAddress, useValidatorQueuedRewardAllocation, useValidatorRewardAllocation, useVaultAddress, useVaultHistory, useVaultValidators, useZapStakeBera };