@berachain/berajs 0.2.10 → 0.2.11
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/{HoneyConfigProvider-Dkj-_a5x.d.ts → HoneyConfigProvider-COOuDNra.d.ts} +1 -1
- package/dist/actions/clients/exports.mjs +1 -1
- package/dist/actions/exports.d.ts +67 -17
- package/dist/actions/exports.mjs +60 -19
- package/dist/actions/governance/exports.d.ts +3 -11
- package/dist/{chunk-P5WXXULM.mjs → chunk-MRQGHXAN.mjs} +1 -1
- package/dist/{chunk-WNBWX23Q.mjs → chunk-SXUNCX5E.mjs} +5 -4
- package/dist/chunk-UD5IUNCW.mjs +34 -0
- package/dist/{chunk-QBBOWFMH.mjs → chunk-VAA2FVPP.mjs} +58 -12
- package/dist/contexts/exports.d.ts +2 -2
- package/dist/contexts/exports.mjs +4 -2
- package/dist/enum/exports.d.ts +8 -2
- package/dist/getProposalVotes-DAUrdX2n.d.ts +12 -0
- package/dist/{getValidatorQueuedOperatorAddress-DphU3qhE.d.ts → getValidatorQueuedOperatorAddress-Cxt-DlL_.d.ts} +2 -2
- package/dist/{global.d-BuGDKh4k.d.ts → global.d-q_LQWQqs.d.ts} +2 -4
- package/dist/hooks/exports.d.ts +100 -149
- package/dist/hooks/exports.mjs +468 -484
- package/dist/hooks/governance/exports.d.ts +20 -15
- package/dist/hooks/governance/exports.mjs +39 -37
- package/dist/{pol.d-Dw5SQcRX.d.ts → pol.d-CeRgXBL8.d.ts} +18 -4
- package/dist/types/exports.d.ts +5 -5
- package/dist/{useHoneySwapState-vFmuFF0g.d.ts → useHoneySwapState-twi7NTaO.d.ts} +1 -1
- package/dist/utils/exports.d.ts +2 -2
- package/dist/utils/exports.mjs +4 -0
- package/package.json +8 -7
- package/src/actions/bend/getMaxDeposit.ts +28 -2
- package/src/actions/clients/fetchOpenApi.ts +6 -2
- package/src/actions/clients/fetchOpenApi.unit.test.ts +24 -2
- package/src/actions/exports.ts +1 -0
- package/src/actions/honey/getChartData.ts +53 -12
- package/src/actions/honey/getHoney24hVolume.ts +34 -6
- package/src/actions/honey/getHoneyTxns.ts +93 -0
- package/src/actions/validators/getValidatorIncentiveDistribution.ts +64 -12
- package/src/contexts/SwrFallback.tsx +2 -1
- package/src/data/contracts.ts +4 -0
- package/src/errors/getRevertReason.integration.test.ts +5 -1
- package/src/hooks/bend/useGetConvertToAssets.ts +2 -3
- package/src/hooks/dex/useAggregatorsQuotes.ts +10 -10
- package/src/hooks/dex/useAggregatorsRouterFeeBps.ts +1 -1
- package/src/hooks/dex/useAllUserPools.ts +7 -5
- package/src/hooks/dex/useApiPool.ts +1 -1
- package/src/hooks/dex/useGlobalLiquidityAndSwapVolume.ts +1 -1
- package/src/hooks/dex/useOnChainPoolData.ts +1 -1
- package/src/hooks/dex/usePollPoolCreationRelayerApproval.ts +2 -2
- package/src/hooks/dex/usePoolEvents.ts +1 -2
- package/src/hooks/dex/usePoolHistoricalData.ts +2 -3
- package/src/hooks/dex/usePools.ts +4 -2
- package/src/hooks/dex/useSingleAggregatorQuote.ts +6 -18
- package/src/hooks/enso/useBendDemultiply.ts +3 -4
- package/src/hooks/enso/useBendMultiply.ts +3 -4
- package/src/hooks/enso/useBendZapSupply.ts +3 -4
- package/src/hooks/enso/useEnsoSwapBundle.ts +1 -1
- package/src/hooks/enso/useEnsoUserTokensWithBalances.ts +3 -5
- package/src/hooks/enso/useEnsoWalletV2Address.ts +1 -1
- package/src/hooks/enso/useIsBendAuthorized.ts +1 -1
- package/src/hooks/enso/useZapStakeBera.ts +2 -2
- package/src/hooks/exports.ts +1 -0
- package/src/hooks/governance/useGetPastVotes.ts +1 -1
- package/src/hooks/governance/useHasVoted.ts +1 -1
- package/src/hooks/governance/useIsCanceller.ts +1 -1
- package/src/hooks/governance/usePollAllProposals.ts +13 -12
- package/src/hooks/governance/usePollProposal.ts +3 -3
- package/src/hooks/governance/usePollProposalThreshold.ts +1 -1
- package/src/hooks/governance/usePollProposalVotes.ts +23 -5
- package/src/hooks/governance/usePollUserDelegates.ts +3 -3
- package/src/hooks/governance/useProposalFromTx.ts +2 -1
- package/src/hooks/governance/useProposalSnapshot.ts +2 -3
- package/src/hooks/governance/useProposalState.ts +2 -2
- package/src/hooks/governance/useProposalTimelockState.ts +2 -1
- package/src/hooks/governance/useQuorum.ts +1 -2
- package/src/hooks/honey/useCappedGlobally.ts +3 -6
- package/src/hooks/honey/useCappedRelatively.ts +2 -2
- package/src/hooks/honey/useCollateralWeights.ts +3 -3
- package/src/hooks/honey/useHoney24hVolume.ts +1 -1
- package/src/hooks/honey/useHoneyBalances.ts +1 -1
- package/src/hooks/honey/useHoneyChartData.ts +1 -1
- package/src/hooks/honey/useHoneyVaultsBalance.ts +2 -3
- package/src/hooks/honey/useIsBadCollateralAsset.ts +4 -7
- package/src/hooks/honey/useIsBasketModeEnabled.ts +4 -7
- package/src/hooks/honey/usePythLatestPrices.ts +13 -9
- package/src/hooks/perps/usePythUpdateFee.ts +13 -11
- package/src/hooks/pol/useAutoclaimedIncentives.ts +1 -2
- package/src/hooks/pol/useAutoclaimedIncentivesTxHash.ts +1 -2
- package/src/hooks/pol/useBgtIncentiveDistributorPaused.ts +39 -0
- package/src/hooks/pol/useBgtUnstakedBalance.ts +2 -2
- package/src/hooks/pol/useClaimableFees.ts +1 -1
- package/src/hooks/pol/useHighestVaultsAPR.ts +4 -6
- package/src/hooks/pol/useOnChainRewardVault.ts +77 -72
- package/src/hooks/pol/usePollGlobalData.ts +2 -3
- package/src/hooks/pol/usePollMarkets.ts +2 -2
- package/src/hooks/pol/useQueuedBeraUnlock.ts +2 -2
- package/src/hooks/pol/useRewardTokenToBeraRate.ts +2 -2
- package/src/hooks/pol/useRewardVault.ts +7 -6
- package/src/hooks/pol/useRewardVaultBalanceFromStakingToken.ts +4 -4
- package/src/hooks/pol/useRewardVaultFromToken.ts +1 -1
- package/src/hooks/pol/useRewardVaultIncentives.ts +1 -1
- package/src/hooks/pol/useRewardVaultRewards.ts +2 -2
- package/src/hooks/pol/useRewardVaults.ts +3 -6
- package/src/hooks/pol/useStakedAPR.ts +1 -2
- package/src/hooks/pol/useStakedData.ts +90 -41
- package/src/hooks/pol/useStakedSnapshots.ts +1 -1
- package/src/hooks/pol/useStakingVaultsMetadata.ts +1 -1
- package/src/hooks/pol/useTotalStakedAmount.ts +1 -2
- package/src/hooks/pol/useUserVaultInfo.ts +2 -2
- package/src/hooks/pol/useUserVaults.ts +2 -3
- package/src/hooks/pol/useVaultAddress.ts +1 -1
- package/src/hooks/pol/useVaultHistory.ts +1 -2
- package/src/hooks/pol/useVaultValidators.ts +2 -2
- package/src/hooks/tokens/useMultipleTokenInformation.ts +2 -2
- package/src/hooks/tokens/usePollAllowances.ts +3 -4
- package/src/hooks/tokens/usePollBalance.ts +2 -2
- package/src/hooks/tokens/usePollWalletBalances.ts +2 -2
- package/src/hooks/tokens/useStakingTokenInformation.ts +2 -2
- package/src/hooks/tokens/useTokenCurrentPrices.ts +11 -13
- package/src/hooks/tokens/useTokenInformation.ts +2 -2
- package/src/hooks/tokens/useTokenPrice.ts +2 -1
- package/src/hooks/tokens/useTokenPrices.ts +3 -4
- package/src/hooks/tokens/useTotalSupply.ts +1 -1
- package/src/hooks/tokens/useUnderlyingAsset.ts +1 -2
- package/src/hooks/useBlockToTimestamp.ts +1 -2
- package/src/hooks/useGetVerifiedAbi.ts +2 -1
- package/src/hooks/validators/useAllValidators.ts +2 -3
- package/src/hooks/validators/useApiEnrichedAllocation.ts +1 -1
- package/src/hooks/validators/useApiValidator.ts +3 -6
- package/src/hooks/validators/useBaselineRewardAllocation.ts +1 -2
- package/src/hooks/validators/useDailyValidatorBlockStats.ts +1 -1
- package/src/hooks/validators/useDefaultRewardAllocation.ts +2 -3
- package/src/hooks/validators/useManagedValidatorRole.ts +2 -2
- package/src/hooks/validators/useOnChainValidator.ts +3 -3
- package/src/hooks/validators/useStakingPoolBatch.ts +3 -4
- package/src/hooks/validators/useUserActiveValidators.ts +2 -3
- package/src/hooks/validators/useUserBoostsOnValidator.ts +1 -1
- package/src/hooks/validators/useUserClaimableIncentives.ts +1 -1
- package/src/hooks/validators/useUserStakingPositions.ts +2 -1
- package/src/hooks/validators/useValidatorAnalytics.ts +1 -1
- package/src/hooks/validators/useValidatorCommission.ts +2 -2
- package/src/hooks/validators/useValidatorIncentiveDistribution.ts +3 -3
- package/src/hooks/validators/useValidatorQueuedCommission.ts +2 -2
- package/src/hooks/validators/useValidatorQueuedOperatorAddress.ts +2 -2
- package/src/hooks/validators/useValidatorQueuedRewardAllocation.ts +2 -2
- package/src/hooks/validators/useValidatorRewardAllocation.ts +2 -2
- package/src/types/global.d.ts +3 -4
- package/src/types/pol.d.ts +17 -3
- package/dist/polling-BKnyavLI.d.ts +0 -8
package/dist/hooks/exports.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import * as swr__internal from 'swr/_internal';
|
|
2
|
-
import * as
|
|
3
|
-
import { SWRResponse } from '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-
|
|
5
|
-
import { D as DefaultHookOptions, a as DefaultHookReturnType, b as IUseContractWriteArgs, U as UseContractWriteApi } from '../global.d-
|
|
6
|
-
export { T as TxnEventKeys } from '../global.d-
|
|
2
|
+
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';
|
|
7
7
|
import { S as SwapReferrer, A as Aggregators, a as PoolCreationStep } from '../dex-C_BB0b0O.js';
|
|
8
|
-
import * as viem from 'viem';
|
|
9
8
|
import { Address, Hex } from 'viem';
|
|
10
|
-
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,
|
|
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, w as TokenPriceInfo, B as BalanceToken, h as PythPriceFeedMap, P as PythLatestUpdates, a as TokenWithMetadata } from '../HoneyConfigProvider-COOuDNra.js';
|
|
11
10
|
import * as _berachain_graphql_dex_api from '@berachain/graphql/dex/api';
|
|
12
11
|
import { GetPoolsQueryVariables, MinimalPoolFragment, GqlPoolEventType, PoolHistoricalDataFragment, GqlRewardVaultDynamicData, GqlVaultSnapshotDataRange, GqlValidatorDynamicData } from '@berachain/graphql/dex/api';
|
|
13
12
|
export { u as useBexStatus } from '../BexStatusProvider-DRymVlQf.js';
|
|
14
13
|
import { PoolType } from '@berachain-foundation/berancer-sdk';
|
|
15
|
-
import { P as POLLING } from '../polling-BKnyavLI.js';
|
|
16
14
|
import { BendDemultiplyBundleResponse, BendMultiplyBundleResponse, GetZapTransactionResponse } from '../types/exports.js';
|
|
17
|
-
import { I as IHoneySwapState } from '../useHoneySwapState-
|
|
18
|
-
export { r as reducer, u as useHoneySwapState } from '../useHoneySwapState-
|
|
19
|
-
import * as
|
|
20
|
-
import {
|
|
15
|
+
import { I as IHoneySwapState } from '../useHoneySwapState-twi7NTaO.js';
|
|
16
|
+
export { r as reducer, u as useHoneySwapState } from '../useHoneySwapState-twi7NTaO.js';
|
|
17
|
+
import * as _berachain_graphql_beep from '@berachain/graphql/beep';
|
|
18
|
+
import { ValidatorIncentivesResponse } from '@berachain/graphql/beep';
|
|
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';
|
|
21
20
|
import * as _berachain_graphql_pol_api from '@berachain/graphql/pol/api';
|
|
22
21
|
import { GqlRewardVaultFilter, ApiVaultFragment, GetVaultsQueryVariables, GetVaultHistoryQuery, ApiValidatorFragment, GetValidatorsQueryVariables, GetValidatorsQuery, GqlChain, GetValidatorQuery, ApiValidatorMinimalFragment } from '@berachain/graphql/pol/api';
|
|
23
22
|
import { VaultStatsByDayResponse } from '@berachain/graphql/api';
|
|
24
23
|
import { Address as Address$1 } from '@berachain/config';
|
|
25
|
-
import
|
|
24
|
+
import * as swr from 'swr';
|
|
25
|
+
import { GetValidatorBlockStatsQuery, GetValidatorAnalyticsQuery } from '@berachain/graphql/pol/subgraph';
|
|
26
26
|
import '@berachain/config/internal';
|
|
27
27
|
import '@wagmi/core';
|
|
28
28
|
import '../txnEnum-ByI5dtDi.js';
|
|
@@ -42,7 +42,7 @@ declare const useGetConvertToAssets: ({ sharesAmount, vaultAddress, vaultChainId
|
|
|
42
42
|
formatted: string;
|
|
43
43
|
} | undefined;
|
|
44
44
|
error: any;
|
|
45
|
-
mutate:
|
|
45
|
+
mutate: _berachain_utils_pkg_swr.KeyedMutator<{
|
|
46
46
|
raw: bigint;
|
|
47
47
|
formatted: string;
|
|
48
48
|
}>;
|
|
@@ -74,10 +74,10 @@ declare function useAggregatorsQuotes(args: IUseAggregatorsQuotesArgs$1, options
|
|
|
74
74
|
};
|
|
75
75
|
|
|
76
76
|
declare const useAggregatorsRouterFeeBps: () => {
|
|
77
|
-
refresh:
|
|
77
|
+
refresh: _berachain_utils_pkg_swr.KeyedMutator<number>;
|
|
78
78
|
data: number | undefined;
|
|
79
79
|
error: any;
|
|
80
|
-
mutate:
|
|
80
|
+
mutate: _berachain_utils_pkg_swr.KeyedMutator<number>;
|
|
81
81
|
isValidating: boolean;
|
|
82
82
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
83
83
|
};
|
|
@@ -150,7 +150,7 @@ declare const useAllUserPools: (query: GetPoolsQueryVariables, options?: Default
|
|
|
150
150
|
count: number;
|
|
151
151
|
} | undefined;
|
|
152
152
|
error: any;
|
|
153
|
-
mutate:
|
|
153
|
+
mutate: _berachain_utils_pkg_swr.KeyedMutator<{
|
|
154
154
|
pools: {
|
|
155
155
|
__typename?: "GqlPoolMinimal";
|
|
156
156
|
id: string;
|
|
@@ -218,7 +218,7 @@ declare function useApiPool({ poolId, account, }: {
|
|
|
218
218
|
refresh: () => void;
|
|
219
219
|
data: MinimalPoolFragment | undefined;
|
|
220
220
|
error: any;
|
|
221
|
-
mutate:
|
|
221
|
+
mutate: _berachain_utils_pkg_swr.KeyedMutator<MinimalPoolFragment>;
|
|
222
222
|
isValidating: boolean;
|
|
223
223
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
224
224
|
};
|
|
@@ -259,7 +259,7 @@ declare const useGlobalLiquidityAndSwapVolume: () => {
|
|
|
259
259
|
};
|
|
260
260
|
refresh: () => Promise<_berachain_graphql_dex_api.GetGlobalLiquidityAndSwapVolumeQuery | undefined>;
|
|
261
261
|
error: any;
|
|
262
|
-
mutate:
|
|
262
|
+
mutate: _berachain_utils_pkg_swr.KeyedMutator<_berachain_graphql_dex_api.GetGlobalLiquidityAndSwapVolumeQuery>;
|
|
263
263
|
isValidating: boolean;
|
|
264
264
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
265
265
|
};
|
|
@@ -358,7 +358,7 @@ declare function useOnChainPoolData(poolId: string): {
|
|
|
358
358
|
data: OnChainPoolFragment | undefined;
|
|
359
359
|
error: any;
|
|
360
360
|
isLoading: boolean;
|
|
361
|
-
mutate:
|
|
361
|
+
mutate: _berachain_utils_pkg_swr.KeyedMutator<OnChainPool>;
|
|
362
362
|
refresh: () => Promise<OnChainPool | undefined>;
|
|
363
363
|
};
|
|
364
364
|
|
|
@@ -371,7 +371,7 @@ declare const usePollPoolCreationRelayerApproval: (options?: DefaultHookOptions)
|
|
|
371
371
|
refreshPoolCreationApproval: () => void;
|
|
372
372
|
data: boolean | undefined;
|
|
373
373
|
error: any;
|
|
374
|
-
mutate:
|
|
374
|
+
mutate: _berachain_utils_pkg_swr.KeyedMutator<boolean>;
|
|
375
375
|
isValidating: boolean;
|
|
376
376
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
377
377
|
};
|
|
@@ -388,9 +388,7 @@ declare function usePool({ poolId }: {
|
|
|
388
388
|
declare const usePoolEvents: ({ poolId, typeInArray, }: {
|
|
389
389
|
poolId: string | undefined;
|
|
390
390
|
typeInArray: GqlPoolEventType[];
|
|
391
|
-
}) =>
|
|
392
|
-
refreshInterval: POLLING;
|
|
393
|
-
}>;
|
|
391
|
+
}) => _berachain_utils_pkg_swr.SWRResponse<_berachain_graphql_dex_api.GetPoolEventsQuery, any, any>;
|
|
394
392
|
|
|
395
393
|
type UsePoolHistoricalDataArgs = {
|
|
396
394
|
poolId: string | undefined;
|
|
@@ -515,6 +513,7 @@ declare const usePools: (query: GetPoolsQueryVariables, options?: DefaultHookOpt
|
|
|
515
513
|
} | null;
|
|
516
514
|
}[];
|
|
517
515
|
isLoading: boolean;
|
|
516
|
+
error: any;
|
|
518
517
|
refresh: () => void;
|
|
519
518
|
pagination: {
|
|
520
519
|
page: number;
|
|
@@ -557,11 +556,7 @@ declare const USE_AGGREGATORS_QUOTES_QUERY_KEY = "useAggregatorsQuotes";
|
|
|
557
556
|
*/
|
|
558
557
|
declare function useSingleAggregatorQuote(args: IUseAggregatorsQuotesArgs & {
|
|
559
558
|
aggregator: BaseAggregator;
|
|
560
|
-
}, options?: DefaultHookOptions):
|
|
561
|
-
provider?: (cache: Readonly<swr.Cache>) => swr.Cache;
|
|
562
|
-
} & {
|
|
563
|
-
isEnabled?: boolean;
|
|
564
|
-
}) | undefined> | null;
|
|
559
|
+
}, options?: DefaultHookOptions): _berachain_utils_pkg_swr.SWRResponse<IRawAggregatorQuote | undefined, any, any> | null;
|
|
565
560
|
|
|
566
561
|
type UseBendDemultiply = {
|
|
567
562
|
collateralToken?: Token;
|
|
@@ -575,7 +570,7 @@ type UseBendDemultiply = {
|
|
|
575
570
|
currentCollateral?: string;
|
|
576
571
|
currentDebt?: string;
|
|
577
572
|
};
|
|
578
|
-
declare function useBendDemultiply({ collateralToken, loanToken, marketId, primaryAddress, repayAmount, slippage, chainId, collateralPriceInLoanAsset, currentCollateral, currentDebt, }: UseBendDemultiply, options?: DefaultHookOptions):
|
|
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>;
|
|
579
574
|
|
|
580
575
|
type UseBendMultiply = {
|
|
581
576
|
collateralToken?: Token;
|
|
@@ -590,7 +585,7 @@ type UseBendMultiply = {
|
|
|
590
585
|
chainId?: number;
|
|
591
586
|
formattedCollateralPriceInLoanAsset?: string;
|
|
592
587
|
};
|
|
593
|
-
declare function useBendMultiply({ collateralToken, loanToken, marketId, primaryAddress, formattedSupplyCollateralAmount, formattedCurrentCollateralAmount, formattedCurrentBorrowAmount, leverageMultiplier, slippage, chainId, formattedCollateralPriceInLoanAsset, }: UseBendMultiply, options?: DefaultHookOptions):
|
|
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>;
|
|
594
589
|
|
|
595
590
|
type UseBendZapSupplyArgs = {
|
|
596
591
|
tokenIn?: BalanceToken;
|
|
@@ -621,49 +616,13 @@ declare function useBendZapSupply({ tokenIn, loanToken, bendVault, rewardVault,
|
|
|
621
616
|
isCrossChain: boolean | 0 | undefined;
|
|
622
617
|
nativeFee: string | undefined;
|
|
623
618
|
refresh: () => void;
|
|
624
|
-
data:
|
|
619
|
+
data: any;
|
|
625
620
|
error: any;
|
|
626
|
-
mutate:
|
|
621
|
+
mutate: _berachain_utils_pkg_swr.KeyedMutator<any>;
|
|
627
622
|
isValidating: boolean;
|
|
628
623
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
629
624
|
};
|
|
630
|
-
declare function useBendZapSupplyHelper({ tokenIn, loanToken, bendVault, rewardVault, amount, slippage, }: UseBendZapSupplyArgs, options?: DefaultHookOptions):
|
|
631
|
-
refreshInterval: POLLING;
|
|
632
|
-
errorRetryInterval?: number | undefined;
|
|
633
|
-
errorRetryCount?: number;
|
|
634
|
-
loadingTimeout?: number | undefined;
|
|
635
|
-
focusThrottleInterval?: number | undefined;
|
|
636
|
-
dedupingInterval?: number | undefined;
|
|
637
|
-
refreshWhenHidden?: boolean;
|
|
638
|
-
refreshWhenOffline?: boolean;
|
|
639
|
-
revalidateOnFocus?: boolean | undefined;
|
|
640
|
-
revalidateOnReconnect?: boolean | undefined;
|
|
641
|
-
revalidateOnMount?: boolean;
|
|
642
|
-
revalidateIfStale?: boolean | undefined;
|
|
643
|
-
shouldRetryOnError?: boolean | ((err: any) => boolean) | undefined;
|
|
644
|
-
keepPreviousData?: boolean;
|
|
645
|
-
suspense?: boolean;
|
|
646
|
-
fallbackData?: any;
|
|
647
|
-
strictServerPrefetchWarning?: boolean;
|
|
648
|
-
fetcher?: swr.BareFetcher<any> | undefined;
|
|
649
|
-
use?: swr.Middleware[];
|
|
650
|
-
fallback?: {
|
|
651
|
-
[key: string]: any;
|
|
652
|
-
} | undefined;
|
|
653
|
-
isPaused?: (() => boolean) | undefined;
|
|
654
|
-
onLoadingSlow?: ((key: string, config: Readonly<swr__internal.PublicConfiguration<any, any, swr.BareFetcher<any>>>) => void) | undefined;
|
|
655
|
-
onSuccess?: ((data: any, key: string, config: Readonly<swr__internal.PublicConfiguration<any, any, swr.BareFetcher<any>>>) => void) | undefined;
|
|
656
|
-
onError?: ((err: any, key: string, config: Readonly<swr__internal.PublicConfiguration<any, any, swr.BareFetcher<any>>>) => void) | undefined;
|
|
657
|
-
onErrorRetry?: ((err: any, key: string, config: Readonly<swr__internal.PublicConfiguration<any, any, swr.BareFetcher<any>>>, revalidate: swr.Revalidator, revalidateOpts: Required<swr.RevalidatorOptions>) => void) | undefined;
|
|
658
|
-
onDiscarded?: ((key: string) => void) | undefined;
|
|
659
|
-
compare?: ((a: any, b: any) => boolean) | undefined;
|
|
660
|
-
isOnline?: (() => boolean) | undefined;
|
|
661
|
-
isVisible?: (() => boolean) | undefined;
|
|
662
|
-
initFocus?: ((callback: () => void) => (() => void) | void) | undefined;
|
|
663
|
-
initReconnect?: ((callback: () => void) => (() => void) | void) | undefined;
|
|
664
|
-
provider?: (cache: Readonly<swr.Cache>) => swr.Cache;
|
|
665
|
-
isEnabled?: boolean;
|
|
666
|
-
}>;
|
|
625
|
+
declare function useBendZapSupplyHelper({ tokenIn, loanToken, bendVault, rewardVault, amount, slippage, }: UseBendZapSupplyArgs, options?: DefaultHookOptions): _berachain_utils_pkg_swr.SWRResponse<any, any, any>;
|
|
667
626
|
|
|
668
627
|
/**
|
|
669
628
|
* Get the swap bundle for swapping tokens using Enso.
|
|
@@ -685,7 +644,7 @@ declare function useEnsoSwapBundle({ tokenIn, tokenOut, amount, slippage, }: {
|
|
|
685
644
|
refresh: () => void;
|
|
686
645
|
data: GetZapTransactionResponse | undefined;
|
|
687
646
|
error: any;
|
|
688
|
-
mutate:
|
|
647
|
+
mutate: _berachain_utils_pkg_swr.KeyedMutator<GetZapTransactionResponse>;
|
|
689
648
|
isValidating: boolean;
|
|
690
649
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
691
650
|
};
|
|
@@ -696,7 +655,7 @@ declare function useEnsoUserTokensWithBalances({ chainId }?: {
|
|
|
696
655
|
refresh: () => Promise<BalanceToken[] | undefined>;
|
|
697
656
|
data: BalanceToken[] | undefined;
|
|
698
657
|
error: any;
|
|
699
|
-
mutate:
|
|
658
|
+
mutate: _berachain_utils_pkg_swr.KeyedMutator<BalanceToken[]>;
|
|
700
659
|
isValidating: boolean;
|
|
701
660
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
702
661
|
};
|
|
@@ -714,22 +673,10 @@ type UseZapStakeBeraArgs = {
|
|
|
714
673
|
* supports cross-chain zaps from any chain to berachain staking.
|
|
715
674
|
*/
|
|
716
675
|
declare function useZapStakeBera({ inputToken, amount, underlyingToken, slippage, tokenOut, }: UseZapStakeBeraArgs, options?: DefaultHookOptions): {
|
|
717
|
-
data:
|
|
718
|
-
priceImpactPercentage: number | null | undefined;
|
|
719
|
-
isCrossChain: boolean | undefined;
|
|
720
|
-
amountOut?: string | undefined;
|
|
721
|
-
amountIn?: string | undefined;
|
|
722
|
-
name?: any;
|
|
723
|
-
allowanceRequirements?: AllowanceQueryItem[] | undefined;
|
|
724
|
-
isNativeSwap?: boolean;
|
|
725
|
-
swapFeeBps?: number | undefined;
|
|
726
|
-
getCalldata?: ({ account }: {
|
|
727
|
-
account: viem.Address;
|
|
728
|
-
}) => Calldata;
|
|
729
|
-
};
|
|
676
|
+
data: any;
|
|
730
677
|
refresh: () => void;
|
|
731
678
|
error: any;
|
|
732
|
-
mutate:
|
|
679
|
+
mutate: _berachain_utils_pkg_swr.KeyedMutator<any>;
|
|
733
680
|
isValidating: boolean;
|
|
734
681
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
735
682
|
};
|
|
@@ -762,7 +709,7 @@ declare function useHoney24hVolume(): {
|
|
|
762
709
|
refresh: () => Promise<BigNumber | undefined>;
|
|
763
710
|
data: BigNumber | undefined;
|
|
764
711
|
error: any;
|
|
765
|
-
mutate:
|
|
712
|
+
mutate: _berachain_utils_pkg_swr.KeyedMutator<BigNumber | undefined>;
|
|
766
713
|
isValidating: boolean;
|
|
767
714
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
768
715
|
};
|
|
@@ -837,10 +784,28 @@ declare const useHoneyBalances: () => DefaultHookReturnType<Record<Address, Bala
|
|
|
837
784
|
declare function useHoneyChartData({ days }: {
|
|
838
785
|
days: number;
|
|
839
786
|
}): {
|
|
840
|
-
refresh: () => Promise<
|
|
841
|
-
|
|
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;
|
|
842
801
|
error: any;
|
|
843
|
-
mutate:
|
|
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
|
+
}[]>;
|
|
844
809
|
isValidating: boolean;
|
|
845
810
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
846
811
|
};
|
|
@@ -898,13 +863,20 @@ declare function useBgtAprSimulation(args: GetBgtAprSimulationArgs | undefined):
|
|
|
898
863
|
*/
|
|
899
864
|
| undefined;
|
|
900
865
|
|
|
866
|
+
/**
|
|
867
|
+
* Client hook around `getBgtIncentiveDistributorPaused`. When `paused()` is
|
|
868
|
+
* true, users can no longer self-claim incentives and the bot distributes them
|
|
869
|
+
* on their behalf. Fails closed (`false`) so a read error never blocks the UI.
|
|
870
|
+
*/
|
|
871
|
+
declare function useBgtIncentiveDistributorPaused(options?: DefaultHookOptions): DefaultHookReturnType<boolean>;
|
|
872
|
+
|
|
901
873
|
declare const useBgtUnstakedBalance: (options?: DefaultHookOptions) => DefaultHookReturnType<string | undefined>;
|
|
902
874
|
|
|
903
875
|
declare const useClaimableFees: () => {
|
|
904
876
|
refresh: () => Promise<string | undefined>;
|
|
905
877
|
data: string | undefined;
|
|
906
878
|
error: any;
|
|
907
|
-
mutate:
|
|
879
|
+
mutate: _berachain_utils_pkg_swr.KeyedMutator<string>;
|
|
908
880
|
isValidating: boolean;
|
|
909
881
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
910
882
|
};
|
|
@@ -947,50 +919,14 @@ declare function useQueuedBeraUnlock({ receiptTokenAddresses, account, version,
|
|
|
947
919
|
refresh: () => Promise<StakedBeraWithdrawal[] | undefined>;
|
|
948
920
|
data: StakedBeraWithdrawal[] | undefined;
|
|
949
921
|
error: any;
|
|
950
|
-
mutate:
|
|
922
|
+
mutate: _berachain_utils_pkg_swr.KeyedMutator<StakedBeraWithdrawal[]>;
|
|
951
923
|
isValidating: boolean;
|
|
952
924
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
953
925
|
};
|
|
954
926
|
|
|
955
927
|
declare const useRewardTokenToBeraRate: ({ address, }: {
|
|
956
928
|
address: Address | undefined;
|
|
957
|
-
}, opt?: DefaultHookOptions) =>
|
|
958
|
-
errorRetryInterval?: number | undefined;
|
|
959
|
-
errorRetryCount?: number;
|
|
960
|
-
loadingTimeout?: number | undefined;
|
|
961
|
-
focusThrottleInterval?: number | undefined;
|
|
962
|
-
dedupingInterval?: number | undefined;
|
|
963
|
-
refreshInterval?: number | ((latestData: any) => number) | undefined;
|
|
964
|
-
refreshWhenHidden?: boolean;
|
|
965
|
-
refreshWhenOffline?: boolean;
|
|
966
|
-
revalidateOnFocus?: boolean | undefined;
|
|
967
|
-
revalidateOnReconnect?: boolean | undefined;
|
|
968
|
-
revalidateOnMount?: boolean;
|
|
969
|
-
revalidateIfStale?: boolean | undefined;
|
|
970
|
-
shouldRetryOnError?: boolean | ((err: any) => boolean) | undefined;
|
|
971
|
-
keepPreviousData?: boolean;
|
|
972
|
-
suspense?: boolean;
|
|
973
|
-
fallbackData?: any;
|
|
974
|
-
strictServerPrefetchWarning?: boolean;
|
|
975
|
-
fetcher?: swr.BareFetcher<any> | undefined;
|
|
976
|
-
use?: swr.Middleware[];
|
|
977
|
-
fallback?: {
|
|
978
|
-
[key: string]: any;
|
|
979
|
-
} | undefined;
|
|
980
|
-
isPaused?: (() => boolean) | undefined;
|
|
981
|
-
onLoadingSlow?: ((key: string, config: Readonly<swr__internal.PublicConfiguration<any, any, swr.BareFetcher<any>>>) => void) | undefined;
|
|
982
|
-
onSuccess?: ((data: any, key: string, config: Readonly<swr__internal.PublicConfiguration<any, any, swr.BareFetcher<any>>>) => void) | undefined;
|
|
983
|
-
onError?: ((err: any, key: string, config: Readonly<swr__internal.PublicConfiguration<any, any, swr.BareFetcher<any>>>) => void) | undefined;
|
|
984
|
-
onErrorRetry?: ((err: any, key: string, config: Readonly<swr__internal.PublicConfiguration<any, any, swr.BareFetcher<any>>>, revalidate: swr.Revalidator, revalidateOpts: Required<swr.RevalidatorOptions>) => void) | undefined;
|
|
985
|
-
onDiscarded?: ((key: string) => void) | undefined;
|
|
986
|
-
compare?: ((a: any, b: any) => boolean) | undefined;
|
|
987
|
-
isOnline?: (() => boolean) | undefined;
|
|
988
|
-
isVisible?: (() => boolean) | undefined;
|
|
989
|
-
initFocus?: ((callback: () => void) => (() => void) | void) | undefined;
|
|
990
|
-
initReconnect?: ((callback: () => void) => (() => void) | void) | undefined;
|
|
991
|
-
provider?: (cache: Readonly<swr.Cache>) => swr.Cache;
|
|
992
|
-
isEnabled?: boolean;
|
|
993
|
-
}>;
|
|
929
|
+
}, opt?: DefaultHookOptions) => _berachain_utils_pkg_swr.SWRResponse<number, any, any>;
|
|
994
930
|
|
|
995
931
|
interface UseRewardVaultResponse extends DefaultHookReturnType<ApiVaultFragment> {
|
|
996
932
|
}
|
|
@@ -1008,7 +944,7 @@ declare const useRewardVaultBalanceFromStakingToken: ({ stakingToken, rewardVaul
|
|
|
1008
944
|
balance: bigint;
|
|
1009
945
|
} | undefined;
|
|
1010
946
|
error: any;
|
|
1011
|
-
mutate:
|
|
947
|
+
mutate: _berachain_utils_pkg_swr.KeyedMutator<{
|
|
1012
948
|
address: `0x${string}`;
|
|
1013
949
|
balance: bigint;
|
|
1014
950
|
}>;
|
|
@@ -1023,7 +959,7 @@ declare const useRewardVaultFromToken: ({ tokenAddress, }: {
|
|
|
1023
959
|
refresh: () => Promise<`0x${string}` | undefined>;
|
|
1024
960
|
data: `0x${string}` | undefined;
|
|
1025
961
|
error: any;
|
|
1026
|
-
mutate:
|
|
962
|
+
mutate: _berachain_utils_pkg_swr.KeyedMutator<`0x${string}` | undefined>;
|
|
1027
963
|
isValidating: boolean;
|
|
1028
964
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1029
965
|
};
|
|
@@ -1035,7 +971,7 @@ declare function useRewardVaultIncentives({ address, stakingToken, }: {
|
|
|
1035
971
|
refresh: () => Promise<RewardVaultIncentive[] | undefined>;
|
|
1036
972
|
data: RewardVaultIncentive[] | undefined;
|
|
1037
973
|
error: any;
|
|
1038
|
-
mutate:
|
|
974
|
+
mutate: _berachain_utils_pkg_swr.KeyedMutator<RewardVaultIncentive[]>;
|
|
1039
975
|
isValidating: boolean;
|
|
1040
976
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1041
977
|
};
|
|
@@ -1044,7 +980,7 @@ declare const useRewardVaultRewards: (address: Address, options?: DefaultHookOpt
|
|
|
1044
980
|
refresh: () => Promise<GetRewardVaultRewardsReturn | undefined>;
|
|
1045
981
|
data: GetRewardVaultRewardsReturn | undefined;
|
|
1046
982
|
error: any;
|
|
1047
|
-
mutate:
|
|
983
|
+
mutate: _berachain_utils_pkg_swr.KeyedMutator<GetRewardVaultRewardsReturn>;
|
|
1048
984
|
isValidating: boolean;
|
|
1049
985
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1050
986
|
};
|
|
@@ -1061,10 +997,10 @@ declare const useRewardVaults: (args: {
|
|
|
1061
997
|
filter?: GetVaultsQueryVariables;
|
|
1062
998
|
onChainIncentives?: boolean;
|
|
1063
999
|
}, options?: DefaultHookOptions) => {
|
|
1064
|
-
refresh:
|
|
1000
|
+
refresh: _berachain_utils_pkg_swr.KeyedMutator<GetGaugeData>;
|
|
1065
1001
|
data: GetGaugeData | undefined;
|
|
1066
1002
|
error: any;
|
|
1067
|
-
mutate:
|
|
1003
|
+
mutate: _berachain_utils_pkg_swr.KeyedMutator<GetGaugeData>;
|
|
1068
1004
|
isValidating: boolean;
|
|
1069
1005
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1070
1006
|
};
|
|
@@ -1099,6 +1035,21 @@ declare const useStakedData: (stakingConfigs: StakingConfig[]) => {
|
|
|
1099
1035
|
isLoadingBalances: boolean;
|
|
1100
1036
|
isLoadingPositions: boolean;
|
|
1101
1037
|
isValidatingPositions: boolean;
|
|
1038
|
+
/**
|
|
1039
|
+
* Hard error: the RPC fast-path could not produce staked balances (wallet
|
|
1040
|
+
* balances or exchange-rate reads failed). Price and earnings backend
|
|
1041
|
+
* failures are intentionally excluded — those degrade gracefully (USD/APR
|
|
1042
|
+
* render as "—", earnings stop loading) so RPC-derived amounts still show.
|
|
1043
|
+
*/
|
|
1044
|
+
error: any;
|
|
1045
|
+
/** Set when the earnings (slow path) request failed. */
|
|
1046
|
+
positionsError: any;
|
|
1047
|
+
/**
|
|
1048
|
+
* True once the earnings (slow path) request has settled — resolved or
|
|
1049
|
+
* errored. Consumers should stop showing an earnings loading state once
|
|
1050
|
+
* this is true, even if `data` never arrives (backend outage).
|
|
1051
|
+
*/
|
|
1052
|
+
earningsSettled: boolean;
|
|
1102
1053
|
};
|
|
1103
1054
|
|
|
1104
1055
|
type UseStakedBeraSnapshot = Record<Address, VaultStatsByDayResponse>;
|
|
@@ -1111,9 +1062,7 @@ type StakingVaultEntry = {
|
|
|
1111
1062
|
address: Address;
|
|
1112
1063
|
underlyingAsset: Address;
|
|
1113
1064
|
};
|
|
1114
|
-
declare const useStakingVaultsMetadata: (vaults?: StakingVaultEntry[]) =>
|
|
1115
|
-
refreshInterval: POLLING;
|
|
1116
|
-
}>;
|
|
1065
|
+
declare const useStakingVaultsMetadata: (vaults?: StakingVaultEntry[]) => _berachain_utils_pkg_swr.SWRResponse<VaultMetadata[], any, any>;
|
|
1117
1066
|
|
|
1118
1067
|
declare function useTotalStakedAmount({ vaultAddresses, }: {
|
|
1119
1068
|
vaultAddresses: Address$1[];
|
|
@@ -1129,7 +1078,7 @@ interface RewardVault {
|
|
|
1129
1078
|
stakeToken: Address;
|
|
1130
1079
|
address: Address;
|
|
1131
1080
|
}
|
|
1132
|
-
declare const useVaultAddress: (vaultAddress: Address) =>
|
|
1081
|
+
declare const useVaultAddress: (vaultAddress: Address) => _berachain_utils_pkg_swr.SWRResponse<{
|
|
1133
1082
|
stakeToken: `0x${string}`;
|
|
1134
1083
|
address: `0x${string}`;
|
|
1135
1084
|
}, any, any>;
|
|
@@ -1223,7 +1172,7 @@ declare function useTokenCurrentPrices({ addressIn, }?: {
|
|
|
1223
1172
|
[x: string]: TokenPriceInfo | undefined;
|
|
1224
1173
|
};
|
|
1225
1174
|
error: any;
|
|
1226
|
-
mutate:
|
|
1175
|
+
mutate: _berachain_utils_pkg_swr.KeyedMutator<TokenCurrentPriceMap>;
|
|
1227
1176
|
isValidating: boolean;
|
|
1228
1177
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1229
1178
|
};
|
|
@@ -1244,6 +1193,7 @@ declare function useTokenPrices({ tokens, }?: {
|
|
|
1244
1193
|
tokens?: TokenPriceInput[];
|
|
1245
1194
|
}, options?: DefaultHookOptions): {
|
|
1246
1195
|
isLoading: boolean;
|
|
1196
|
+
error: any;
|
|
1247
1197
|
data: TokenPriceOutput[];
|
|
1248
1198
|
priceMap: TokenPriceMap;
|
|
1249
1199
|
getTokenPrice: (token?: TokenPriceInput) => number | undefined;
|
|
@@ -1254,6 +1204,7 @@ declare function useTokenPrice({ token }: {
|
|
|
1254
1204
|
}, options?: DefaultHookOptions): {
|
|
1255
1205
|
data: number | undefined;
|
|
1256
1206
|
isLoading: boolean;
|
|
1207
|
+
error: any;
|
|
1257
1208
|
};
|
|
1258
1209
|
|
|
1259
1210
|
declare function useTokens(): {
|
|
@@ -1276,7 +1227,7 @@ declare function useTokens(): {
|
|
|
1276
1227
|
|
|
1277
1228
|
declare function useTotalSupply({ address }: {
|
|
1278
1229
|
address: Address | undefined;
|
|
1279
|
-
}):
|
|
1230
|
+
}): _berachain_utils_pkg_swr.SWRResponse<bigint, any, any>;
|
|
1280
1231
|
|
|
1281
1232
|
/**
|
|
1282
1233
|
*
|
|
@@ -1293,7 +1244,7 @@ declare function useBeraContractWrite({ onlyPermissionless, onSuccess, onError,
|
|
|
1293
1244
|
onlyPermissionless?: boolean;
|
|
1294
1245
|
}): UseContractWriteApi;
|
|
1295
1246
|
|
|
1296
|
-
declare const useGetVerifiedAbi: (address?: string) =>
|
|
1247
|
+
declare const useGetVerifiedAbi: (address?: string) => _berachain_utils_pkg_swr.SWRResponse<string, any, any>;
|
|
1297
1248
|
|
|
1298
1249
|
type UseHistoryStateOptions<T> = {
|
|
1299
1250
|
key: string;
|
|
@@ -1332,14 +1283,14 @@ declare const useAllValidators: (variables: GetValidatorsQueryVariables & BeraJS
|
|
|
1332
1283
|
|
|
1333
1284
|
declare function useApiEnrichedAllocation({ allocation, }: {
|
|
1334
1285
|
allocation: ValidatorRewardAllocation | undefined;
|
|
1335
|
-
}):
|
|
1286
|
+
}): _berachain_utils_pkg_swr.SWRResponse<_berachain_graphql_pol_api.ApiRewardAllocationWeightFragment[], any, any>;
|
|
1336
1287
|
|
|
1337
1288
|
interface UsePollValidatorInfoResponse extends DefaultHookReturnType<GetValidatorQuery> {
|
|
1338
1289
|
}
|
|
1339
1290
|
declare const useApiValidatorQueryKey: (id: Address) => readonly ["useApiValidator", `0x${string}`] | null;
|
|
1340
1291
|
declare const useApiValidator: (id: Address, options?: DefaultHookOptions) => UsePollValidatorInfoResponse;
|
|
1341
1292
|
|
|
1342
|
-
declare function useBaselineRewardAllocation():
|
|
1293
|
+
declare function useBaselineRewardAllocation(): _berachain_utils_pkg_swr.SWRResponse<ValidatorRewardAllocation, any, any>;
|
|
1343
1294
|
|
|
1344
1295
|
declare const useDailyValidatorBlockStats: ({ pubKey, first, }: {
|
|
1345
1296
|
pubKey: Address | undefined;
|
|
@@ -1350,7 +1301,7 @@ declare function useDefaultRewardAllocation(options?: DefaultHookOptions): {
|
|
|
1350
1301
|
refresh: () => Promise<ValidatorRewardAllocation | undefined>;
|
|
1351
1302
|
data: ValidatorRewardAllocation | undefined;
|
|
1352
1303
|
error: any;
|
|
1353
|
-
mutate:
|
|
1304
|
+
mutate: _berachain_utils_pkg_swr.KeyedMutator<ValidatorRewardAllocation | undefined>;
|
|
1354
1305
|
isValidating: boolean;
|
|
1355
1306
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1356
1307
|
};
|
|
@@ -1421,7 +1372,7 @@ declare const useUserStakingPositions: ({ account, validatorAddress, }: {
|
|
|
1421
1372
|
refresh: () => void;
|
|
1422
1373
|
data: UserStakingPoolPosition[] | undefined;
|
|
1423
1374
|
error: any;
|
|
1424
|
-
mutate:
|
|
1375
|
+
mutate: _berachain_utils_pkg_swr.KeyedMutator<UserStakingPoolPosition[]>;
|
|
1425
1376
|
isValidating: boolean;
|
|
1426
1377
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1427
1378
|
};
|
|
@@ -1556,7 +1507,7 @@ declare const useValidatorEstimatedBgtPerYear: (validator: ApiValidatorMinimalFr
|
|
|
1556
1507
|
declare function useValidatorIncentiveDistribution({ pubkey, dayRange, }: {
|
|
1557
1508
|
pubkey: Address | undefined;
|
|
1558
1509
|
dayRange: number;
|
|
1559
|
-
}): DefaultHookReturnType<
|
|
1510
|
+
}): DefaultHookReturnType<ValidatorIncentivesResponse>;
|
|
1560
1511
|
|
|
1561
1512
|
declare function useValidatorQueuedCommission(pubKey: Address, options?: DefaultHookOptions): DefaultHookReturnType<ValidatorQueuedCommission | undefined | null>;
|
|
1562
1513
|
|
|
@@ -1578,7 +1529,7 @@ declare function useValidatorRewardAllocation(pubKey: Address, options?: Default
|
|
|
1578
1529
|
isNeverSet: boolean;
|
|
1579
1530
|
} | undefined;
|
|
1580
1531
|
error: any;
|
|
1581
|
-
mutate:
|
|
1532
|
+
mutate: _berachain_utils_pkg_swr.KeyedMutator<{
|
|
1582
1533
|
activeRewardAllocation: ValidatorRewardAllocation;
|
|
1583
1534
|
setRewardAllocation: ValidatorRewardAllocation;
|
|
1584
1535
|
isBaseline: boolean;
|
|
@@ -1588,4 +1539,4 @@ declare function useValidatorRewardAllocation(pubKey: Address, options?: Default
|
|
|
1588
1539
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1589
1540
|
};
|
|
1590
1541
|
|
|
1591
|
-
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, 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 };
|
|
1542
|
+
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 };
|