@berachain/berajs 0.2.3 → 0.2.4
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/.claude/skills/berajs/SKILL.md +222 -0
- package/.claude/skills/berajs/references/dex.md +235 -0
- package/.claude/skills/berajs/references/pol.md +194 -0
- package/.claude/skills/berajs/references/staking.md +198 -0
- package/.claude/skills/berajs/references/tokens.md +170 -0
- package/dist/{BexStatusProvider-nS3NcdxI.d.cts → BexStatusProvider-DRymVlQf.d.cts} +1 -1
- package/dist/{BexStatusProvider-nS3NcdxI.d.ts → BexStatusProvider-DRymVlQf.d.ts} +1 -1
- package/dist/{HoneyConfigProvider-CK6mOKFH.d.ts → HoneyConfigProvider-DVP_9KZn.d.ts} +1 -1
- package/dist/{HoneyConfigProvider-Ca3ouozs.d.cts → HoneyConfigProvider-DfkjmzEf.d.cts} +1 -1
- package/dist/abi/exports.cjs +1 -1
- package/dist/abi/exports.cjs.map +1 -1
- package/dist/abi/exports.d.cts +1893 -25347
- package/dist/abi/exports.d.ts +1893 -25347
- package/dist/abi/exports.mjs +1 -1
- package/dist/abi/exports.mjs.map +1 -1
- package/dist/actions/exports.cjs +1 -1
- package/dist/actions/exports.cjs.map +1 -1
- package/dist/actions/exports.d.cts +10 -9
- package/dist/actions/exports.d.ts +10 -9
- package/dist/actions/exports.mjs +1 -1
- package/dist/actions/exports.mjs.map +1 -1
- package/dist/chunk-4GU2O2OW.cjs +4 -0
- package/dist/chunk-4GU2O2OW.cjs.map +1 -0
- package/dist/chunk-5XWELBWR.mjs +2 -0
- package/dist/chunk-5XWELBWR.mjs.map +1 -0
- package/dist/chunk-BS6K7HGH.cjs +2 -0
- package/dist/chunk-BS6K7HGH.cjs.map +1 -0
- package/dist/chunk-NLVWRMGD.mjs +2 -0
- package/dist/chunk-NLVWRMGD.mjs.map +1 -0
- package/dist/chunk-OUD27MU7.cjs +2 -0
- package/dist/chunk-OUD27MU7.cjs.map +1 -0
- package/dist/chunk-RW3JFPED.mjs +4 -0
- package/dist/chunk-RW3JFPED.mjs.map +1 -0
- package/dist/chunk-S3EAKCVM.cjs +2 -0
- package/dist/{chunk-PKXAW6MO.cjs.map → chunk-S3EAKCVM.cjs.map} +1 -1
- package/dist/chunk-YNO7BCCM.mjs +2 -0
- package/dist/{chunk-3YXSUBA5.mjs.map → chunk-YNO7BCCM.mjs.map} +1 -1
- package/dist/contexts/exports.d.cts +3 -3
- package/dist/contexts/exports.d.ts +3 -3
- package/dist/enum/exports.d.cts +1 -1
- package/dist/enum/exports.d.ts +1 -1
- package/dist/errors/exports.d.cts +1 -1
- package/dist/errors/exports.d.ts +1 -1
- package/dist/{getValidatorQueuedOperatorAddress-NrjpnEn8.d.ts → getValidatorQueuedOperatorAddress-CqR6cyqC.d.ts} +3 -3
- package/dist/{getValidatorQueuedOperatorAddress-D_LEt3vv.d.cts → getValidatorQueuedOperatorAddress-DZgrPmZ2.d.cts} +3 -3
- package/dist/{global.d-X3cqpCEB.d.ts → global.d-BeYWDreg.d.ts} +4 -4
- package/dist/{global.d-DLRtrPG5.d.cts → global.d-DghRxpHd.d.cts} +4 -4
- package/dist/hooks/exports.cjs +3 -3
- package/dist/hooks/exports.cjs.map +1 -1
- package/dist/hooks/exports.d.cts +40 -38
- package/dist/hooks/exports.d.ts +40 -38
- package/dist/hooks/exports.mjs +3 -3
- package/dist/hooks/exports.mjs.map +1 -1
- package/dist/{txnEnum-BlBYhNRl.d.cts → txnEnum-DxPRHSJt.d.cts} +1 -1
- package/dist/{txnEnum-BlBYhNRl.d.ts → txnEnum-DxPRHSJt.d.ts} +1 -1
- package/dist/types/exports.d.cts +3 -3
- package/dist/types/exports.d.ts +3 -3
- package/dist/{useHoneySwapState-D1DKG_Of.d.ts → useHoneySwapState-B494PQDl.d.ts} +1 -1
- package/dist/{useHoneySwapState-B-vmIP1b.d.cts → useHoneySwapState-D6vpv19r.d.cts} +1 -1
- package/dist/utils/exports.cjs +1 -1
- package/dist/utils/exports.cjs.map +1 -1
- package/dist/utils/exports.d.cts +2 -2
- package/dist/utils/exports.d.ts +2 -2
- package/dist/utils/exports.mjs +1 -1
- package/dist/utils/exports.mjs.map +1 -1
- package/package.json +8 -9
- package/src/abi/exports.ts +0 -27
- package/src/actions/bend/getConvertToAssets.ts +1 -1
- package/src/actions/bend/getMaxDeposit.ts +1 -1
- package/src/actions/dex/aggregators/bex.ts +2 -1
- package/src/actions/dex/aggregators/enso/enso.ts +3 -2
- package/src/actions/dex/aggregators/enso/ensoErc4626.debug.test.ts +2 -3
- package/src/actions/dex/aggregators/erc4626.ts +2 -1
- package/src/actions/dex/aggregators/fly.ts +2 -1
- package/src/actions/dex/aggregators/haiku.ts +2 -1
- package/src/actions/dex/aggregators/kyberswap.ts +2 -2
- package/src/actions/dex/aggregators/oogabooga.ts +2 -1
- package/src/actions/dex/aggregators/openOcean.ts +2 -1
- package/src/actions/dex/aggregators/wbera.ts +2 -1
- package/src/actions/dex/getVaultPausedState.ts +2 -1
- package/src/actions/enso/getEnsoUserTokensWithBalances.debug.test.ts +1 -1
- package/src/actions/governance/__tests__/checkProposalField.unit.test.ts +2 -1
- package/src/actions/governance/__tests__/getDecodedFunctionData.integration.test.ts +66 -78
- package/src/actions/governance/__tests__/getQuorum.integration.test.ts +6 -7
- package/src/actions/governance/getDecodedFunctionData.ts +2 -2
- package/src/actions/governance/getProposalFromTx.ts +2 -1
- package/src/actions/governance/getProposalParams.ts +3 -2
- package/src/actions/governance/getQuorum.ts +2 -1
- package/src/actions/honey/getCollateralWeights.ts +2 -1
- package/src/actions/honey/getGlobalCapLimit.ts +2 -1
- package/src/actions/honey/getHoneyCollaterals.ts +2 -1
- package/src/actions/honey/getHoneyFees.ts +2 -1
- package/src/actions/honey/getHoneyPausedState.ts +2 -1
- package/src/actions/honey/getHoneyPreview.ts +2 -1
- package/src/actions/honey/getHoneyPythPriceOracle.ts +1 -1
- package/src/actions/honey/getHoneyRootPriceOracle.ts +2 -1
- package/src/actions/honey/getHoneyVaultsBalance.ts +3 -2
- package/src/actions/honey/getRelativeCapLimit.ts +2 -1
- package/src/actions/honey/getSharesWithoutFees.ts +3 -2
- package/src/actions/honey/getSwapPayload.ts +3 -2
- package/src/actions/honey/isBadCollateralAsset.ts +3 -2
- package/src/actions/honey/isBasketModeEnabled.ts +3 -2
- package/src/actions/pol/getBgtTokenTotalBoosts.ts +2 -1
- package/src/actions/pol/getLSTStakeConfig.ts +2 -1
- package/src/actions/pol/getRewardTokenToBeraRate.ts +2 -1
- package/src/actions/pol/getRewardVaultBeaconImplementation.ts +2 -1
- package/src/actions/pol/getRewardVaultDurationConstants.ts +2 -1
- package/src/actions/pol/getRewardVaultFromToken.ts +2 -1
- package/src/actions/pol/getRewardVaultIncentives.ts +2 -1
- package/src/actions/pol/getRewardVaultRewards.ts +2 -1
- package/src/actions/pol/getRewardVaultStakingToken.ts +1 -1
- package/src/actions/pol/getRewardVaults.ts +2 -1
- package/src/actions/pol/getSWBeraVaultMetadata.ts +2 -1
- package/src/actions/pol/getSWBeraWithdrawal.ts +2 -1
- package/src/actions/pol/getStakeWithdrawalCooldown.ts +1 -1
- package/src/actions/pol/getTotalStakedAmount.ts +2 -1
- package/src/actions/pol/getUserVaults.ts +2 -1
- package/src/actions/pol/getUserVaultsBalance.ts +2 -1
- package/src/actions/pol/getUserVaultsReward.ts +1 -1
- package/src/actions/pol/getVaultsSupply.ts +1 -1
- package/src/actions/pyth/getHoneyPythFeeds.ts +2 -1
- package/src/actions/transactions/beraWriteContract.integration.test.ts +48 -51
- package/src/actions/validators/getActiveBoostAndCommissionChangeDelay.ts +3 -2
- package/src/actions/validators/getBaselineRewardAllocation.ts +2 -1
- package/src/actions/validators/getDefaultRewardAllocation.ts +2 -1
- package/src/actions/validators/getUserBoostsOnValidator.ts +2 -1
- package/src/actions/validators/getValidatorCommission.ts +2 -1
- package/src/actions/validators/getValidatorOperatorAddress.ts +2 -1
- package/src/actions/validators/getValidatorQueuedCommission.ts +2 -1
- package/src/actions/validators/getValidatorQueuedOperatorAddress.ts +2 -1
- package/src/actions/validators/getValidatorQueuedRewardAllocation.ts +2 -1
- package/src/actions/validators/getValidatorRewardAllocation.ts +2 -1
- package/src/actions/validators/getValidatorRewardAllocatorAddress.ts +2 -1
- package/src/actions/validators/utils/__tests__/validatorUtils.integration.test.ts +10 -11
- package/src/errors/getRevertReason.integration.test.ts +115 -107
- package/src/hooks/dex/useAggregatorsRouterFeeBps.ts +2 -1
- package/src/hooks/dex/useCreatePool.ts +2 -1
- package/src/hooks/dex/usePollPoolCreationRelayerApproval.ts +2 -1
- package/src/hooks/governance/useGetPastVotes.ts +2 -1
- package/src/hooks/governance/useHasVoted.ts +2 -1
- package/src/hooks/governance/useIsCanceller.ts +2 -1
- package/src/hooks/governance/usePollProposalThreshold.ts +2 -1
- package/src/hooks/governance/usePollUserDelegates.ts +2 -1
- package/src/hooks/governance/useProposalSnapshot.ts +2 -1
- package/src/hooks/governance/useProposalState.ts +2 -1
- package/src/hooks/governance/useProposalTimelockState.ts +5 -4
- package/src/hooks/pol/useBgtUnstakedBalance.ts +2 -1
- package/src/hooks/pol/useOnChainRewardVault.ts +2 -1
- package/src/hooks/pol/useRewardVaultBalanceFromStakingToken.ts +2 -1
- package/src/hooks/pol/useRewardVaultFromToken.ts +2 -1
- package/src/hooks/validators/useOnChainValidator.ts +4 -3
- package/dist/chunk-3YXSUBA5.mjs +0 -2
- package/dist/chunk-A4UDYSB6.mjs +0 -4
- package/dist/chunk-A4UDYSB6.mjs.map +0 -1
- package/dist/chunk-CYKCYPFR.cjs +0 -2
- package/dist/chunk-CYKCYPFR.cjs.map +0 -1
- package/dist/chunk-ECRMUMTA.mjs +0 -2
- package/dist/chunk-ECRMUMTA.mjs.map +0 -1
- package/dist/chunk-F4BKSBEM.mjs +0 -2
- package/dist/chunk-F4BKSBEM.mjs.map +0 -1
- package/dist/chunk-FL2N3XHK.cjs +0 -2
- package/dist/chunk-FL2N3XHK.cjs.map +0 -1
- package/dist/chunk-MUCEYO3E.cjs +0 -4
- package/dist/chunk-MUCEYO3E.cjs.map +0 -1
- package/dist/chunk-P2Q7CMUD.cjs +0 -2
- package/dist/chunk-P2Q7CMUD.cjs.map +0 -1
- package/dist/chunk-PKXAW6MO.cjs +0 -2
- package/dist/chunk-Q3SCM6WL.mjs +0 -2
- package/dist/chunk-Q3SCM6WL.mjs.map +0 -1
- package/dist/chunk-TEBJWAVU.mjs +0 -2
- package/dist/chunk-TEBJWAVU.mjs.map +0 -1
- package/dist/chunk-VP7XUOSI.cjs +0 -2
- package/dist/chunk-VP7XUOSI.cjs.map +0 -1
- package/dist/pythWrapper-CBjsmmsK.d.cts +0 -1958
- package/dist/pythWrapper-CBjsmmsK.d.ts +0 -1958
- package/src/abi/bend/metaMorpho.ts +0 -2584
- package/src/abi/bend/morpho.ts +0 -444
- package/src/abi/bex/aggregatorsRouter.ts +0 -492
- package/src/abi/bex/balancerComposableStablePoolFactoryV6.ts +0 -283
- package/src/abi/bex/balancerPoolCreationHelper.ts +0 -267
- package/src/abi/bex/balancerVault.ts +0 -757
- package/src/abi/governance/governance.ts +0 -1016
- package/src/abi/governance/governanceTimelock.ts +0 -589
- package/src/abi/honey/collateralVault.ts +0 -1144
- package/src/abi/honey/honey.ts +0 -563
- package/src/abi/honey/honeyFactory.ts +0 -1270
- package/src/abi/honey/honeyFactoryReader.ts +0 -894
- package/src/abi/honey/honeyRootOracle.ts +0 -492
- package/src/abi/honey/pythPriceOracle.ts +0 -619
- package/src/abi/honey/pythWrapper.ts +0 -446
- package/src/abi/pol/LSTStakerVault.ts +0 -2032
- package/src/abi/pol/beaconDeposit.ts +0 -595
- package/src/abi/pol/beraChef.ts +0 -1019
- package/src/abi/pol/bgt.ts +0 -1008
- package/src/abi/pol/bgtIncentiveDistributor.ts +0 -640
- package/src/abi/pol/bgtStaker.ts +0 -1034
- package/src/abi/pol/rewardAllocationFactory.ts +0 -408
- package/src/abi/pol/rewardVault.ts +0 -1928
- package/src/abi/pol/rewardVaultFactory.ts +0 -586
- package/src/abi/pol/rewardVaultHelper.ts +0 -882
- package/src/abi/pol/stakeBeraVault.ts +0 -1116
- package/src/abi/pol/stakeBeraVaultWithdrawalRequest.ts +0 -618
- package/src/abi/pol/wbera.ts +0 -366
package/dist/hooks/exports.d.ts
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
+
import * as swr__internal from 'swr/_internal';
|
|
1
2
|
import * as swr from 'swr';
|
|
2
3
|
import { SWRResponse } from 'swr';
|
|
3
|
-
import {
|
|
4
|
-
import { D as DefaultHookOptions, c as DefaultHookReturnType, G as GovernanceTopic, a as CustomProposalErrors, C as CustomProposal, S as StakingConfig, d as StakedBeraAsset, U as UserVaultInfo, e as IUseContractWriteArgs, f as UseContractWriteApi, B as BribeBoostRewardProof } from '../global.d-
|
|
5
|
-
export { T as TxnEventKeys } from '../global.d-
|
|
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-CqR6cyqC.js';
|
|
5
|
+
import { D as DefaultHookOptions, c as DefaultHookReturnType, G as GovernanceTopic, a as CustomProposalErrors, C as CustomProposal, S as StakingConfig, d as StakedBeraAsset, U as UserVaultInfo, e as IUseContractWriteArgs, f as UseContractWriteApi, B as BribeBoostRewardProof } from '../global.d-BeYWDreg.js';
|
|
6
|
+
export { T as TxnEventKeys } from '../global.d-BeYWDreg.js';
|
|
6
7
|
import { S as SwapReferrer, A as Aggregators, a as PoolCreationStep } from '../dex-C_BB0b0O.js';
|
|
7
8
|
import * as viem from 'viem';
|
|
8
9
|
import { Address, Hex } from 'viem';
|
|
9
|
-
import { M as MinimalERC20, d as HoneyConfigContextReturn, g as IRawAggregatorQuote, b as Token, t as TokenWithAmount, i as TokenCurrentPriceMap, v as IUserPosition, A as AllowanceQueryItem, j as AllowanceToken, B as BalanceToken, w as Calldata, h as PythPriceFeedMap, P as PythLatestUpdates, x as TokenPriceInfo, a as TokenWithMetadata } from '../HoneyConfigProvider-
|
|
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, B as BalanceToken, w as Calldata, h as PythPriceFeedMap, P as PythLatestUpdates, x as TokenPriceInfo, a as TokenWithMetadata } from '../HoneyConfigProvider-DVP_9KZn.js';
|
|
10
11
|
import * as _berachain_graphql_dex_api from '@berachain/graphql/dex/api';
|
|
11
12
|
import { GetPoolsQueryVariables, MinimalPoolFragment, GqlPoolEventType, PoolHistoricalDataFragment, GqlRewardVaultDynamicData, GqlVaultSnapshotDataRange, GqlValidatorDynamicData } from '@berachain/graphql/dex/api';
|
|
12
|
-
export { u as useBexStatus } from '../BexStatusProvider-
|
|
13
|
+
export { u as useBexStatus } from '../BexStatusProvider-DRymVlQf.js';
|
|
13
14
|
import { PoolType } from '@berachain-foundation/berancer-sdk';
|
|
14
15
|
import { SubgraphPoolFragment } from '@berachain/graphql/dex/subgraph';
|
|
15
16
|
import { P as POLLING } from '../polling-BKnyavLI.js';
|
|
16
|
-
import * as swr__internal from 'swr/_internal';
|
|
17
17
|
import { GetZapTransactionResponse } from '../types/exports.js';
|
|
18
18
|
import * as react from 'react';
|
|
19
19
|
import * as swr_infinite from 'swr/infinite';
|
|
20
20
|
import { SWRInfiniteResponse, SWRInfiniteKeyLoader } from 'swr/infinite';
|
|
21
21
|
import * as _berachain_graphql_governance from '@berachain/graphql/governance';
|
|
22
22
|
import { Proposal_Filter, Proposal_OrderBy, OrderDirection, ProposalStatus, ProposalSelectionFragment, ProposalWithVotesFragment, GetProposalVotesQueryVariables } from '@berachain/graphql/governance';
|
|
23
|
-
import { I as IHoneySwapState } from '../useHoneySwapState-
|
|
24
|
-
export { r as reducer, u as useHoneySwapState } from '../useHoneySwapState-
|
|
23
|
+
import { I as IHoneySwapState } from '../useHoneySwapState-B494PQDl.js';
|
|
24
|
+
export { r as reducer, u as useHoneySwapState } from '../useHoneySwapState-B494PQDl.js';
|
|
25
25
|
import * as _berachain_graphql_honey from '@berachain/graphql/honey';
|
|
26
26
|
import BigNumber from '@berachain/utils/pkg/bignumber.js';
|
|
27
27
|
import * as _berachain_graphql_pol_api from '@berachain/graphql/pol/api';
|
|
28
|
-
import { GqlRewardVaultFilter, ApiVaultFragment, GetVaultsQueryVariables, GetVaultHistoryQuery, ApiValidatorFragment, GetValidatorsQueryVariables,
|
|
28
|
+
import { GqlRewardVaultFilter, ApiVaultFragment, GetVaultsQueryVariables, GetVaultHistoryQuery, ApiValidatorFragment, GetValidatorsQueryVariables, GetValidatorsQuery, GqlChain, GetValidatorQuery, ApiValidatorMinimalFragment } from '@berachain/graphql/pol/api';
|
|
29
29
|
import { Address as Address$1 } from '@berachain/config';
|
|
30
30
|
import * as _berachain_graphql_pol_subgraph from '@berachain/graphql/pol/subgraph';
|
|
31
31
|
import { GetValidatorBlockStatsQuery, GetValidatorAnalyticsQuery } from '@berachain/graphql/pol/subgraph';
|
|
32
32
|
import '@berachain/config/internal';
|
|
33
|
-
import '../txnEnum-
|
|
33
|
+
import '../txnEnum-DxPRHSJt.js';
|
|
34
34
|
import '@wagmi/core';
|
|
35
35
|
import '../BeraError-_mQdkanr.js';
|
|
36
36
|
import 'react/jsx-runtime';
|
|
@@ -52,7 +52,7 @@ declare const useGetConvertToAssets: ({ sharesAmount, vaultAddress, vaultChainId
|
|
|
52
52
|
formatted: string;
|
|
53
53
|
}>;
|
|
54
54
|
isValidating: boolean;
|
|
55
|
-
isLoading:
|
|
55
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
type IUseAggregatorsQuotesArgs$1 = BeraJS.BaseFunctionArgs & {
|
|
@@ -84,7 +84,7 @@ declare const useAggregatorsRouterFeeBps: () => {
|
|
|
84
84
|
error: any;
|
|
85
85
|
mutate: swr.KeyedMutator<number>;
|
|
86
86
|
isValidating: boolean;
|
|
87
|
-
isLoading:
|
|
87
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
88
88
|
};
|
|
89
89
|
|
|
90
90
|
declare const useAllUserPoolsQueryKey: ({ query, }?: {
|
|
@@ -211,7 +211,7 @@ declare const useAllUserPools: (query: GetPoolsQueryVariables, options?: Default
|
|
|
211
211
|
count: number;
|
|
212
212
|
}>;
|
|
213
213
|
isValidating: boolean;
|
|
214
|
-
isLoading:
|
|
214
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
215
215
|
};
|
|
216
216
|
|
|
217
217
|
declare const useApiPoolQueryKey: ({ poolId, account, }: {
|
|
@@ -227,7 +227,7 @@ declare function useApiPool({ poolId, account, }: {
|
|
|
227
227
|
error: any;
|
|
228
228
|
mutate: swr.KeyedMutator<MinimalPoolFragment>;
|
|
229
229
|
isValidating: boolean;
|
|
230
|
-
isLoading:
|
|
230
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
231
231
|
};
|
|
232
232
|
|
|
233
233
|
interface UseCreatePoolProps extends BeraJS.BaseFunctionArgs {
|
|
@@ -279,7 +279,7 @@ declare const useExploitedTokens: ({ tokens, }: {
|
|
|
279
279
|
error: any;
|
|
280
280
|
mutate: swr.KeyedMutator<Record<`0x${string}`, boolean>>;
|
|
281
281
|
isValidating: boolean;
|
|
282
|
-
isLoading:
|
|
282
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
283
283
|
};
|
|
284
284
|
|
|
285
285
|
declare const useGlobalLiquidityAndSwapVolume: () => {
|
|
@@ -291,7 +291,7 @@ declare const useGlobalLiquidityAndSwapVolume: () => {
|
|
|
291
291
|
error: any;
|
|
292
292
|
mutate: swr.KeyedMutator<_berachain_graphql_dex_api.GetGlobalLiquidityAndSwapVolumeQuery>;
|
|
293
293
|
isValidating: boolean;
|
|
294
|
-
isLoading:
|
|
294
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
295
295
|
};
|
|
296
296
|
|
|
297
297
|
type LiquidityMismatchInfo = {
|
|
@@ -374,7 +374,7 @@ declare const usePollPoolCreationRelayerApproval: (options?: DefaultHookOptions)
|
|
|
374
374
|
error: any;
|
|
375
375
|
mutate: swr.KeyedMutator<boolean>;
|
|
376
376
|
isValidating: boolean;
|
|
377
|
-
isLoading:
|
|
377
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
378
378
|
};
|
|
379
379
|
|
|
380
380
|
declare function useSubgraphPoolQueryKey({ poolId }: {
|
|
@@ -621,7 +621,7 @@ declare function useBendZapSupply({ tokenIn, loanToken, bendVault, rewardVault,
|
|
|
621
621
|
error: any;
|
|
622
622
|
mutate: swr.KeyedMutator<IRawAggregatorQuote>;
|
|
623
623
|
isValidating: boolean;
|
|
624
|
-
isLoading:
|
|
624
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
625
625
|
};
|
|
626
626
|
declare function useBendZapSupplyHelper({ tokenIn, loanToken, bendVault, rewardVault, amount, slippage, }: UseBendZapSupplyArgs, options?: DefaultHookOptions): swr.SWRResponse<IRawAggregatorQuote, any, {
|
|
627
627
|
refreshInterval: POLLING;
|
|
@@ -640,6 +640,7 @@ declare function useBendZapSupplyHelper({ tokenIn, loanToken, bendVault, rewardV
|
|
|
640
640
|
keepPreviousData?: boolean;
|
|
641
641
|
suspense?: boolean;
|
|
642
642
|
fallbackData?: any;
|
|
643
|
+
strictServerPrefetchWarning?: boolean;
|
|
643
644
|
fetcher?: swr.BareFetcher<any> | undefined;
|
|
644
645
|
use?: swr.Middleware[];
|
|
645
646
|
fallback?: {
|
|
@@ -682,7 +683,7 @@ declare function useEnsoSwapBundle({ tokenIn, tokenOut, amount, slippage, }: {
|
|
|
682
683
|
error: any;
|
|
683
684
|
mutate: swr.KeyedMutator<GetZapTransactionResponse>;
|
|
684
685
|
isValidating: boolean;
|
|
685
|
-
isLoading:
|
|
686
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
686
687
|
};
|
|
687
688
|
|
|
688
689
|
type UseZapStakeBeraArgs = {
|
|
@@ -715,7 +716,7 @@ declare function useZapStakeBera({ inputToken, amount, underlyingToken, slippage
|
|
|
715
716
|
error: any;
|
|
716
717
|
mutate: swr.KeyedMutator<IRawAggregatorQuote>;
|
|
717
718
|
isValidating: boolean;
|
|
718
|
-
isLoading:
|
|
719
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
719
720
|
};
|
|
720
721
|
|
|
721
722
|
declare const useCreateProposal: ({ initialData, currentTopic, onError, }: {
|
|
@@ -858,10 +859,10 @@ declare const TimelockOperationState: {
|
|
|
858
859
|
* Fetches the state of a proposal timelock
|
|
859
860
|
* @returns state of the proposal timelock (unset, waiting, ready, done)
|
|
860
861
|
*/
|
|
861
|
-
declare
|
|
862
|
+
declare function useProposalTimelockState({ proposalTimelockId, timelockAddress, }: {
|
|
862
863
|
proposalTimelockId: Address | undefined;
|
|
863
864
|
timelockAddress: Address;
|
|
864
|
-
})
|
|
865
|
+
}): SWRResponse<(typeof TimelockOperationState)[keyof typeof TimelockOperationState]>;
|
|
865
866
|
|
|
866
867
|
/**
|
|
867
868
|
* Queries the quorum for a given timestamp.
|
|
@@ -877,7 +878,7 @@ declare function useQuorum({ at }: {
|
|
|
877
878
|
error: any;
|
|
878
879
|
mutate: swr.KeyedMutator<string>;
|
|
879
880
|
isValidating: boolean;
|
|
880
|
-
isLoading:
|
|
881
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
881
882
|
};
|
|
882
883
|
|
|
883
884
|
interface UseCappedGloballyResponse extends DefaultHookReturnType<boolean | undefined> {
|
|
@@ -979,7 +980,7 @@ declare function useHoneyChartData({ days }: {
|
|
|
979
980
|
error: any;
|
|
980
981
|
mutate: swr.KeyedMutator<_berachain_graphql_honey.GetChartDataQuery>;
|
|
981
982
|
isValidating: boolean;
|
|
982
|
-
isLoading:
|
|
983
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
983
984
|
};
|
|
984
985
|
|
|
985
986
|
declare function useHoneyGlobalData(): {
|
|
@@ -1001,7 +1002,7 @@ declare function useHoneyGlobalData(): {
|
|
|
1001
1002
|
error: any;
|
|
1002
1003
|
mutate: swr.KeyedMutator<_berachain_graphql_honey.GetGlobalDataQuery>;
|
|
1003
1004
|
isValidating: boolean;
|
|
1004
|
-
isLoading:
|
|
1005
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1005
1006
|
};
|
|
1006
1007
|
|
|
1007
1008
|
declare const useHoneyVaultsBalance: (options?: DefaultHookOptions) => DefaultHookReturnType<GetHoneyVaultsBalanceResponse[]>;
|
|
@@ -1055,7 +1056,7 @@ declare const useClaimableFees: () => {
|
|
|
1055
1056
|
error: any;
|
|
1056
1057
|
mutate: swr.KeyedMutator<string>;
|
|
1057
1058
|
isValidating: boolean;
|
|
1058
|
-
isLoading:
|
|
1059
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1059
1060
|
};
|
|
1060
1061
|
|
|
1061
1062
|
/**
|
|
@@ -1098,7 +1099,7 @@ declare function useQueuedBeraUnlock({ receiptTokenAddresses, account, version,
|
|
|
1098
1099
|
error: any;
|
|
1099
1100
|
mutate: swr.KeyedMutator<StakedBeraWithdrawal[]>;
|
|
1100
1101
|
isValidating: boolean;
|
|
1101
|
-
isLoading:
|
|
1102
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1102
1103
|
};
|
|
1103
1104
|
|
|
1104
1105
|
declare const useRewardTokenToBeraRate: ({ address, }: {
|
|
@@ -1120,6 +1121,7 @@ declare const useRewardTokenToBeraRate: ({ address, }: {
|
|
|
1120
1121
|
keepPreviousData?: boolean;
|
|
1121
1122
|
suspense?: boolean;
|
|
1122
1123
|
fallbackData?: any;
|
|
1124
|
+
strictServerPrefetchWarning?: boolean;
|
|
1123
1125
|
fetcher?: swr.BareFetcher<any> | undefined;
|
|
1124
1126
|
use?: swr.Middleware[];
|
|
1125
1127
|
fallback?: {
|
|
@@ -1173,7 +1175,7 @@ declare const useRewardVaultFromToken: ({ tokenAddress, }: {
|
|
|
1173
1175
|
error: any;
|
|
1174
1176
|
mutate: swr.KeyedMutator<`0x${string}` | undefined>;
|
|
1175
1177
|
isValidating: boolean;
|
|
1176
|
-
isLoading:
|
|
1178
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1177
1179
|
};
|
|
1178
1180
|
|
|
1179
1181
|
declare function useRewardVaultIncentives({ address, stakingToken, }: {
|
|
@@ -1185,7 +1187,7 @@ declare function useRewardVaultIncentives({ address, stakingToken, }: {
|
|
|
1185
1187
|
error: any;
|
|
1186
1188
|
mutate: swr.KeyedMutator<RewardVaultIncentive[]>;
|
|
1187
1189
|
isValidating: boolean;
|
|
1188
|
-
isLoading:
|
|
1190
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1189
1191
|
};
|
|
1190
1192
|
|
|
1191
1193
|
declare const useRewardVaultRewards: (address: Address, options?: DefaultHookOptions) => {
|
|
@@ -1194,7 +1196,7 @@ declare const useRewardVaultRewards: (address: Address, options?: DefaultHookOpt
|
|
|
1194
1196
|
error: any;
|
|
1195
1197
|
mutate: swr.KeyedMutator<GetRewardVaultRewardsReturn>;
|
|
1196
1198
|
isValidating: boolean;
|
|
1197
|
-
isLoading:
|
|
1199
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1198
1200
|
};
|
|
1199
1201
|
|
|
1200
1202
|
declare const useRewardVaultsQueryKey: (filter?: GetVaultsQueryVariables, onChainIncentives?: boolean) => readonly ["useRewardVaults", _berachain_graphql_pol_api.Exact<{
|
|
@@ -1214,7 +1216,7 @@ declare const useRewardVaults: (args: {
|
|
|
1214
1216
|
error: any;
|
|
1215
1217
|
mutate: swr.KeyedMutator<GetGaugeData>;
|
|
1216
1218
|
isValidating: boolean;
|
|
1217
|
-
isLoading:
|
|
1219
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1218
1220
|
};
|
|
1219
1221
|
|
|
1220
1222
|
type UseStakedAPR = {
|
|
@@ -1296,7 +1298,7 @@ declare function useBeraCurrentPrice(opts?: DefaultHookOptions): {
|
|
|
1296
1298
|
error: any;
|
|
1297
1299
|
mutate: swr.KeyedMutator<TokenCurrentPriceMap>;
|
|
1298
1300
|
isValidating: boolean;
|
|
1299
|
-
isLoading:
|
|
1301
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1300
1302
|
};
|
|
1301
1303
|
|
|
1302
1304
|
type UseMultipleTokenInformationResponse = DefaultHookReturnType<Token[]>;
|
|
@@ -1357,7 +1359,7 @@ declare function useTokenCurrentPrice({ address }: {
|
|
|
1357
1359
|
error: any;
|
|
1358
1360
|
mutate: swr.KeyedMutator<TokenCurrentPriceMap>;
|
|
1359
1361
|
isValidating: boolean;
|
|
1360
|
-
isLoading:
|
|
1362
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1361
1363
|
};
|
|
1362
1364
|
|
|
1363
1365
|
/**
|
|
@@ -1372,7 +1374,7 @@ declare function useTokenCurrentPrices({ addressIn, }?: {
|
|
|
1372
1374
|
error: any;
|
|
1373
1375
|
mutate: swr.KeyedMutator<TokenCurrentPriceMap>;
|
|
1374
1376
|
isValidating: boolean;
|
|
1375
|
-
isLoading:
|
|
1377
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1376
1378
|
};
|
|
1377
1379
|
|
|
1378
1380
|
type UseTokenInformationResponse = DefaultHookReturnType<Token | undefined>;
|
|
@@ -1499,7 +1501,7 @@ declare function useDefaultRewardAllocation(options?: DefaultHookOptions): {
|
|
|
1499
1501
|
error: any;
|
|
1500
1502
|
mutate: swr.KeyedMutator<ValidatorRewardAllocation | undefined>;
|
|
1501
1503
|
isValidating: boolean;
|
|
1502
|
-
isLoading:
|
|
1504
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1503
1505
|
};
|
|
1504
1506
|
|
|
1505
1507
|
/**
|
|
@@ -1519,7 +1521,7 @@ declare const useManagedValidatorByAccount: ({ account }: {
|
|
|
1519
1521
|
error: any;
|
|
1520
1522
|
mutate: swr.KeyedMutator<_berachain_graphql_pol_subgraph.GetValidatorByAccountQuery | undefined>;
|
|
1521
1523
|
isValidating: boolean;
|
|
1522
|
-
isLoading:
|
|
1524
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1523
1525
|
};
|
|
1524
1526
|
|
|
1525
1527
|
type ManagedValidatorRole = {
|
|
@@ -1609,7 +1611,7 @@ declare const useUserStakingPositions: ({ account, validatorAddress, }: {
|
|
|
1609
1611
|
error: any;
|
|
1610
1612
|
mutate: swr.KeyedMutator<UserStakingPoolPosition[]>;
|
|
1611
1613
|
isValidating: boolean;
|
|
1612
|
-
isLoading:
|
|
1614
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1613
1615
|
};
|
|
1614
1616
|
|
|
1615
1617
|
declare function useValidator({ pubkey }: {
|
|
@@ -1761,7 +1763,7 @@ declare function useValidatorRewardAllocation(pubKey: Address, options?: Default
|
|
|
1761
1763
|
isNeverSet: boolean;
|
|
1762
1764
|
}>;
|
|
1763
1765
|
isValidating: boolean;
|
|
1764
|
-
isLoading:
|
|
1766
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1765
1767
|
};
|
|
1766
1768
|
|
|
1767
1769
|
export { IHoneySwapState, IUseContractWriteArgs, type LiquidityMismatchInfo, type ManagedValidatorRole, type OnChainPoolFragment, type Oracle, OracleMode, type RewardVault, type TokenPriceInput, type TokenPriceMap, type TokenPriceOutput, USE_AGGREGATORS_QUOTES_QUERY_KEY, type UseCappedGloballyResponse, type UseCappedRelativelyResponse, type UseCollateralWeightsResponse, UseContractWriteApi, type UseIsBadCollateralResponse, type UseMultipleTokenInformationResponse, type UsePollAllowancesArgs, type UsePollAllowancesResponse, type UsePollBalancesResponse, type UsePollMarketsResponse, type UsePollProposalResponse, type UsePollValidatorInfoResponse, type UsePollWalletBalancesArgs, type UseRewardVaultResponse, type UseStakingTokenInformationResponse, type UseTokenInformationArgs, type UseTokenInformationResponse, useAggregatorsQuotes, useAggregatorsRouterFeeBps, useAllUserPools, useAllUserPoolsQueryKey, useAllValidators, useAllValidatorsQueryKey, useApiEnrichedAllocation, useApiPool, useApiPoolQueryKey, useApiValidator, useApiValidatorQueryKey, useBaselineRewardAllocation, useBendZapSupply, useBendZapSupplyHelper, useBeraContractWrite, useBeraCurrentPrice, useBgtAprSimulation, useBgtUnstakedBalance, useBlockToTimestamp, useCappedGlobally, useCappedRelatively, useClaimableFees, useCollateralWeights, useCreatePool, useCreateProposal, useDailyValidatorBlockStats, useDefaultRewardAllocation, useEnsoSwapBundle, useExploitedTokens, useExploitedTokensQueryKey, useGetConvertToAssets, useGetPastVotes, useGetVerifiedAbi, useGlobalLiquidityAndSwapVolume, useHasVoted, useHighestVaultsAPR, useHistoryState, useHoneyAlerts, useHoneyBalances, useHoneyChartData, useHoneyGlobalData, useHoneyVaultsBalance, useIsBadCollateralAsset, useIsBasketModeEnabled, useIsCanceller, useLiquidityMismatch, useLpPosition, useManagedValidatorByAccount, useManagedValidatorRole, useMultipleTokenApprovalsWithSlippage, useMultipleTokenInformation, type useMultipleTokenInformationArgs, useOnChainPoolData, useOnChainPoolDataQueryKey, useOnChainValidator, usePollAllProposals, usePollAllProposalsQueryKey, usePollAllowances, usePollBalance, usePollGlobalData, usePollMarkets, usePollMarketsQueryKey, usePollPoolCreationRelayerApproval, usePollProposal, usePollProposalThreshold, usePollProposalVotes, usePollProposalVotesQueryKey, usePollUserDelegates, usePollWalletBalances, usePool, usePoolEvents, usePoolHistoricalData, usePools, usePoolsQueryKey, usePrevious, usePriceImpact, useProposalFromTx, useProposalSnapshot, useProposalState, useProposalTimelockState, usePythLatestPrices, usePythUpdateFee, useQueuedBeraUnlock, useQuorum, useRewardTokenToBeraRate, useRewardVault, useRewardVaultBalanceFromStakingToken, useRewardVaultFromToken, useRewardVaultIncentives, useRewardVaultQueryKey, useRewardVaultRewards, useRewardVaults, useRewardVaultsQueryKey, useSWBeraVaultMetadata, useSingleAggregatorQuote, useStakedAPR, useStakedData, useStakedSnapshots, useStakingPoolBatch, useStakingTokenInformation, type useStakingTokenInformationArgs, useSubgraphPoolQueryKey, useSubgraphUserValidators, useTokenCurrentPrice, useTokenCurrentPrices, useTokenInformation, useTokenPrice, useTokenPrices, useTokens, useTotalStakedAmount, useTotalSupply, useUserActiveValidators, useUserBoostsOnValidator, useUserClaimableIncentives, useUserStakingPositions, useUserVaultInfo, useUserVaults, useValidator, useValidatorAnalytics, useValidatorCommission, useValidatorEstimatedBgtPerYear, useValidatorQueuedCommission, useValidatorQueuedOperatorAddress, useValidatorQueuedRewardAllocation, useValidatorRewardAllocation, useVaultAddress, useVaultHistory, useVaultValidators, useZapStakeBera };
|