@berachain/berajs 0.2.8-beta.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BeraError-_mQdkanr.d.cts → BeraError-7-A5JYy_.d.ts} +31 -2
- package/dist/{HoneyConfigProvider-DVP_9KZn.d.ts → HoneyConfigProvider-Dkj-_a5x.d.ts} +1 -1
- package/dist/RequestError-DBOIV65x.d.ts +144 -0
- package/dist/abi/exports.mjs +3 -4
- package/dist/actions/clients/exports.d.ts +2 -0
- package/dist/actions/clients/exports.mjs +12 -0
- package/dist/actions/exports.d.ts +108 -187
- package/dist/actions/exports.mjs +97 -158
- package/dist/actions/governance/exports.d.ts +140 -0
- package/dist/actions/governance/exports.mjs +226 -0
- package/dist/actions/server/exports.d.ts +13 -0
- package/dist/actions/server/exports.mjs +27 -0
- package/dist/{chunk-VA3BQ34H.mjs → chunk-3EARVV7K.mjs} +20 -9
- package/dist/chunk-4Z4AK6SH.mjs +211 -0
- package/dist/chunk-75M6TF7M.mjs +25 -0
- package/dist/chunk-AFN4CVD3.mjs +326 -0
- package/dist/{chunk-7TFV6UKF.mjs → chunk-BGMRHTBQ.mjs} +0 -1
- package/dist/{chunk-3M47ZRXT.mjs → chunk-CDFWPU2R.mjs} +73 -17
- package/dist/{chunk-GWSTVITN.mjs → chunk-CDK4YV3D.mjs} +0 -1
- package/dist/{chunk-KL6YZ5VR.mjs → chunk-DKMAIU74.mjs} +0 -1
- package/dist/chunk-EXIUPSFN.mjs +86 -0
- package/dist/{chunk-VA5L5FDG.mjs → chunk-FFB5LFDW.mjs} +2 -3
- package/dist/{chunk-ZCEFC2TK.mjs → chunk-HQCOU6GY.mjs} +0 -1
- package/dist/{chunk-SGZP4O6R.mjs → chunk-HSSJKHZ4.mjs} +11 -11
- package/dist/{chunk-7QKRRIHI.mjs → chunk-J5I45WGQ.mjs} +77 -152
- package/dist/chunk-KQUMKB66.mjs +89 -0
- package/dist/{chunk-JA4DHMTG.mjs → chunk-NBYLMO2L.mjs} +0 -1
- package/dist/{chunk-4GFN4LEP.mjs → chunk-NPBQLVL3.mjs} +4 -21
- package/dist/{chunk-I3FTWD6I.mjs → chunk-O2NQFKJK.mjs} +1 -1
- package/dist/{chunk-2R73G2PO.mjs → chunk-QJIXTYTZ.mjs} +121 -765
- package/dist/{chunk-GLWPRM33.mjs → chunk-SGIJVHZO.mjs} +0 -1
- package/dist/chunk-SZ5C44L5.mjs +35 -0
- package/dist/{chunk-5NMATIH4.mjs → chunk-WXXOISTU.mjs} +1 -35
- package/dist/chunk-XIYN6AL6.mjs +160 -0
- package/dist/contexts/exports.d.ts +2 -2
- package/dist/contexts/exports.mjs +11 -9
- package/dist/enum/exports.d.ts +1 -1
- package/dist/enum/exports.mjs +3 -16
- package/dist/enum/governance/exports.d.ts +60 -0
- package/dist/enum/governance/exports.mjs +14 -0
- package/dist/errors/exports.d.ts +5 -90
- package/dist/errors/exports.mjs +19 -10
- package/dist/exports-BcUTGFUb.d.ts +40 -0
- package/dist/{getValidatorQueuedOperatorAddress-BcyxE9uw.d.ts → getValidatorQueuedOperatorAddress-Dw5KN5sh.d.ts} +2 -2
- package/dist/{global.d-5w_lvl2J.d.ts → global.d-BuGDKh4k.d.ts} +4 -240
- package/dist/hooks/exports.d.ts +80 -236
- package/dist/hooks/exports.mjs +609 -1508
- package/dist/hooks/governance/exports.d.ts +181 -0
- package/dist/hooks/governance/exports.mjs +888 -0
- package/dist/pol.d-CqPA9K6m.d.ts +142 -0
- package/dist/{txnEnum-7_o92X3N.d.cts → txnEnum-ByI5dtDi.d.ts} +2 -60
- package/dist/types/exports.d.ts +9 -9
- package/dist/types/exports.mjs +0 -1
- package/dist/types/governance/exports.d.ts +109 -0
- package/dist/types/governance/exports.mjs +0 -0
- package/dist/{useHoneySwapState-B494PQDl.d.ts → useHoneySwapState-vFmuFF0g.d.ts} +1 -1
- package/dist/utils/exports.d.ts +24 -7
- package/dist/utils/exports.mjs +49 -11
- package/package.json +60 -13
- package/src/actions/__test/transports.ts +61 -0
- package/src/actions/clients/BeraApolloClient.ts +9 -0
- package/src/actions/clients/exports.ts +4 -0
- package/src/actions/clients/getApolloClient.ts +70 -25
- package/src/actions/clients/getEnsoClient.ts +20 -9
- package/src/actions/dex/aggregators/base.ts +1 -1
- package/src/actions/dex/aggregators/enso/enso.ts +27 -17
- package/src/actions/dex/aggregators/enso/ensoErc4626.ts +2 -2
- package/src/actions/dex/aggregators/kyberswap.ts +18 -23
- package/src/actions/enso/__tests__/getEnsoUserTokensWithBalances.debug.test.ts +3 -6
- package/src/actions/exports.ts +5 -10
- package/src/actions/governance/exports.ts +9 -0
- package/src/actions/governance/getAllProposals.ts +10 -65
- package/src/actions/governance/getProposalDetails.ts +6 -33
- package/src/actions/governance/getProposalVotes.ts +8 -15
- package/src/actions/honey/getChartData.ts +27 -21
- package/src/actions/honey/getHoney24hVolume.ts +27 -0
- package/src/actions/pol/getAutoclaimedIncentives.ts +30 -0
- package/src/actions/pol/getBeraTokenTotalSupply.ts +45 -0
- package/src/actions/pol/getBgtIncentiveDistributorPaused.ts +35 -0
- package/src/actions/pol/getEarnedStakedBeraVault.ts +15 -9
- package/src/actions/pol/getGlobalData.ts +1 -0
- package/src/actions/pol/getHeroEarnVaults.ts +62 -0
- package/src/actions/pol/getIncentiveFeeClaimStats.ts +19 -38
- package/src/actions/pol/getSWBeraVaultMetadata.ts +1 -1
- package/src/actions/pol/getStakingDailyAssets.ts +11 -8
- package/src/actions/server/exports.ts +1 -0
- package/src/actions/server/getDailyValidatorBlockStats.ts +33 -0
- package/src/actions/tokens/getWalletBalances.integration.test.ts +3 -6
- package/src/actions/transactions/beraWriteContract.integration.test.ts +3 -6
- package/src/actions/validators/getDailyValidatorBlockStats.ts +25 -24
- package/src/actions/validators/getValidatorAnalytics.ts +20 -21
- package/src/actions/validators/getValidatorIncentiveDistribution.ts +33 -0
- package/src/data/contracts.ts +5 -0
- package/src/enum/contracts.ts +1 -0
- package/src/enum/exports.ts +0 -1
- package/src/enum/governance/exports.ts +1 -0
- package/src/errors/BeraError.ts +47 -7
- package/src/errors/BeraTracing.unit.test.ts +65 -0
- package/src/errors/RequestError.ts +15 -2
- package/src/errors/exports.ts +5 -0
- package/src/errors/getRevertReason.integration.test.ts +3 -3
- package/src/errors/spanStatus.ts +78 -0
- package/src/errors/spanStatus.unit.test.ts +62 -0
- package/src/hooks/dex/useCreatePool.ts +1 -88
- package/src/hooks/dex/useOnChainPoolData.ts +27 -2
- package/src/hooks/dex/usePriceImpact.ts +12 -5
- package/src/hooks/enso/useBendDemultiply.ts +9 -1
- package/src/hooks/enso/useBendMultiply.ts +9 -1
- package/src/hooks/enso/useBendZapSupply.ts +26 -7
- package/src/hooks/enso/useEnsoSwapBundle.ts +17 -3
- package/src/hooks/enso/useEnsoUserTokensWithBalances.ts +13 -2
- package/src/hooks/exports.ts +3 -16
- package/src/hooks/governance/exports.ts +14 -0
- package/src/hooks/honey/useHoney24hVolume.ts +16 -0
- package/src/hooks/pol/useAutoclaimedIncentives.ts +49 -0
- package/src/hooks/pol/useStakedAPR.ts +2 -2
- package/src/hooks/pol/useStakedSnapshots.ts +5 -9
- package/src/hooks/validators/useValidator.ts +2 -0
- package/src/hooks/validators/useValidatorIncentiveDistribution.ts +39 -0
- package/src/types/bribe-boost.d.ts +8 -0
- package/src/types/exports.ts +0 -1
- package/src/types/governance/exports.ts +1 -0
- package/src/utils/beraFetch.ts +76 -15
- package/src/utils/exports.ts +1 -0
- package/src/utils/getServerSideClient.ts +4 -2
- package/src/utils/sanitizeRpcUrl.ts +22 -0
- package/src/utils/tracedTransport.ts +35 -0
- package/dist/BeraError-_mQdkanr.d.ts +0 -94
- package/dist/BexStatusProvider-DRymVlQf.d.cts +0 -70
- package/dist/HoneyConfigProvider-DfkjmzEf.d.cts +0 -390
- package/dist/RequestError-A8XJ6QR9.d.cts +0 -57
- package/dist/RequestError-Dk97z8rm.d.ts +0 -57
- package/dist/abi/exports.cjs +0 -4453
- package/dist/abi/exports.cjs.map +0 -1
- package/dist/abi/exports.d.cts +0 -6574
- package/dist/abi/exports.mjs.map +0 -1
- package/dist/actions/exports.cjs +0 -914
- package/dist/actions/exports.cjs.map +0 -1
- package/dist/actions/exports.d.cts +0 -1644
- package/dist/actions/exports.mjs.map +0 -1
- package/dist/chunk-2R73G2PO.mjs.map +0 -1
- package/dist/chunk-3M47ZRXT.mjs.map +0 -1
- package/dist/chunk-4GFN4LEP.mjs.map +0 -1
- package/dist/chunk-5N7QQS55.cjs +0 -130
- package/dist/chunk-5N7QQS55.cjs.map +0 -1
- package/dist/chunk-5NMATIH4.mjs.map +0 -1
- package/dist/chunk-7QKRRIHI.mjs.map +0 -1
- package/dist/chunk-7TFV6UKF.mjs.map +0 -1
- package/dist/chunk-A4FPM7U3.cjs +0 -63
- package/dist/chunk-A4FPM7U3.cjs.map +0 -1
- package/dist/chunk-BDHINMWQ.cjs +0 -417
- package/dist/chunk-BDHINMWQ.cjs.map +0 -1
- package/dist/chunk-BEHP54S3.cjs +0 -24
- package/dist/chunk-BEHP54S3.cjs.map +0 -1
- package/dist/chunk-EGDXV2PT.cjs +0 -36
- package/dist/chunk-EGDXV2PT.cjs.map +0 -1
- package/dist/chunk-EWBKSMPG.cjs +0 -13
- package/dist/chunk-EWBKSMPG.cjs.map +0 -1
- package/dist/chunk-F6ZW7ZDD.cjs +0 -403
- package/dist/chunk-F6ZW7ZDD.cjs.map +0 -1
- package/dist/chunk-FTXTRUYT.cjs +0 -170
- package/dist/chunk-FTXTRUYT.cjs.map +0 -1
- package/dist/chunk-GLWPRM33.mjs.map +0 -1
- package/dist/chunk-GWSTVITN.mjs.map +0 -1
- package/dist/chunk-H3Z37RYU.cjs +0 -15
- package/dist/chunk-H3Z37RYU.cjs.map +0 -1
- package/dist/chunk-I3FTWD6I.mjs.map +0 -1
- package/dist/chunk-JA4DHMTG.mjs.map +0 -1
- package/dist/chunk-KL6YZ5VR.mjs.map +0 -1
- package/dist/chunk-MXWPP6MS.cjs +0 -572
- package/dist/chunk-MXWPP6MS.cjs.map +0 -1
- package/dist/chunk-SGZP4O6R.mjs.map +0 -1
- package/dist/chunk-TDW5SPXR.cjs +0 -244
- package/dist/chunk-TDW5SPXR.cjs.map +0 -1
- package/dist/chunk-TGK3IXDN.cjs +0 -169
- package/dist/chunk-TGK3IXDN.cjs.map +0 -1
- package/dist/chunk-TJEW6YCJ.cjs +0 -97
- package/dist/chunk-TJEW6YCJ.cjs.map +0 -1
- package/dist/chunk-VA3BQ34H.mjs.map +0 -1
- package/dist/chunk-VA5L5FDG.mjs.map +0 -1
- package/dist/chunk-XSGCRLSD.cjs +0 -1844
- package/dist/chunk-XSGCRLSD.cjs.map +0 -1
- package/dist/chunk-XV3GG3HC.cjs +0 -135
- package/dist/chunk-XV3GG3HC.cjs.map +0 -1
- package/dist/chunk-Y5B224UX.cjs +0 -4698
- package/dist/chunk-Y5B224UX.cjs.map +0 -1
- package/dist/chunk-ZBTRKBSI.mjs +0 -169
- package/dist/chunk-ZBTRKBSI.mjs.map +0 -1
- package/dist/chunk-ZCEFC2TK.mjs.map +0 -1
- package/dist/contexts/exports.cjs +0 -83
- package/dist/contexts/exports.cjs.map +0 -1
- package/dist/contexts/exports.d.cts +0 -66
- package/dist/contexts/exports.mjs.map +0 -1
- package/dist/defaultFlags-D6KfkTZx.d.cts +0 -10
- package/dist/dex-C_BB0b0O.d.cts +0 -37
- package/dist/enum/exports.cjs +0 -59
- package/dist/enum/exports.cjs.map +0 -1
- package/dist/enum/exports.d.cts +0 -23
- package/dist/enum/exports.mjs.map +0 -1
- package/dist/errors/exports.cjs +0 -39
- package/dist/errors/exports.cjs.map +0 -1
- package/dist/errors/exports.d.cts +0 -413
- package/dist/errors/exports.mjs.map +0 -1
- package/dist/getValidatorQueuedOperatorAddress-Cql_D50j.d.cts +0 -562
- package/dist/global.d-B7IeayVX.d.cts +0 -474
- package/dist/honey-CYm0RWf4.d.cts +0 -14
- package/dist/hooks/exports.cjs +0 -8333
- package/dist/hooks/exports.cjs.map +0 -1
- package/dist/hooks/exports.d.cts +0 -1748
- package/dist/hooks/exports.mjs.map +0 -1
- package/dist/polling-BKnyavLI.d.cts +0 -8
- package/dist/txnEnum-7_o92X3N.d.ts +0 -164
- package/dist/types/exports.cjs +0 -1
- package/dist/types/exports.cjs.map +0 -1
- package/dist/types/exports.d.cts +0 -90
- package/dist/types/exports.mjs.map +0 -1
- package/dist/useHoneySwapState-D6vpv19r.d.cts +0 -32
- package/dist/utils/exports.cjs +0 -787
- package/dist/utils/exports.cjs.map +0 -1
- package/dist/utils/exports.d.cts +0 -412
- package/dist/utils/exports.mjs.map +0 -1
- package/src/actions/dex/getIsTokenExploited.ts +0 -63
- package/src/actions/honey/getHoneyGlobalData.ts +0 -21
- package/src/hooks/dex/useExploitedTokens.ts +0 -57
- package/src/hooks/honey/useHoneyGlobalData.ts +0 -23
package/dist/hooks/exports.d.ts
CHANGED
|
@@ -1,38 +1,34 @@
|
|
|
1
1
|
import * as swr__internal from 'swr/_internal';
|
|
2
2
|
import * as swr from 'swr';
|
|
3
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,
|
|
6
|
-
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-Dw5KN5sh.js';
|
|
5
|
+
import { D as DefaultHookOptions, a as DefaultHookReturnType, b as IUseContractWriteArgs, U as UseContractWriteApi } from '../global.d-BuGDKh4k.js';
|
|
6
|
+
export { T as TxnEventKeys } from '../global.d-BuGDKh4k.js';
|
|
7
7
|
import { S as SwapReferrer, A as Aggregators, a as PoolCreationStep } from '../dex-C_BB0b0O.js';
|
|
8
8
|
import * as viem from 'viem';
|
|
9
9
|
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, B as BalanceToken,
|
|
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, x as Calldata, h as PythPriceFeedMap, P as PythLatestUpdates, a as TokenWithMetadata } from '../HoneyConfigProvider-Dkj-_a5x.js';
|
|
11
11
|
import * as _berachain_graphql_dex_api from '@berachain/graphql/dex/api';
|
|
12
12
|
import { GetPoolsQueryVariables, MinimalPoolFragment, GqlPoolEventType, PoolHistoricalDataFragment, GqlRewardVaultDynamicData, GqlVaultSnapshotDataRange, GqlValidatorDynamicData } from '@berachain/graphql/dex/api';
|
|
13
13
|
export { u as useBexStatus } from '../BexStatusProvider-DRymVlQf.js';
|
|
14
14
|
import { PoolType } from '@berachain-foundation/berancer-sdk';
|
|
15
|
-
import { SubgraphPoolFragment } from '@berachain/graphql/dex/subgraph';
|
|
16
15
|
import { P as POLLING } from '../polling-BKnyavLI.js';
|
|
17
16
|
import { BendDemultiplyBundleResponse, BendMultiplyBundleResponse, GetZapTransactionResponse } from '../types/exports.js';
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
import { SWRInfiniteResponse, SWRInfiniteKeyLoader } from 'swr/infinite';
|
|
21
|
-
import * as _berachain_graphql_governance from '@berachain/graphql/governance';
|
|
22
|
-
import { Proposal_Filter, Proposal_OrderBy, OrderDirection, ProposalStatus, ProposalSelectionFragment, ProposalWithVotesFragment, GetProposalVotesQueryVariables } from '@berachain/graphql/governance';
|
|
23
|
-
import { I as IHoneySwapState } from '../useHoneySwapState-B494PQDl.js';
|
|
24
|
-
export { r as reducer, u as useHoneySwapState } from '../useHoneySwapState-B494PQDl.js';
|
|
17
|
+
import { I as IHoneySwapState } from '../useHoneySwapState-vFmuFF0g.js';
|
|
18
|
+
export { r as reducer, u as useHoneySwapState } from '../useHoneySwapState-vFmuFF0g.js';
|
|
25
19
|
import * as _berachain_graphql_honey from '@berachain/graphql/honey';
|
|
26
|
-
import
|
|
20
|
+
import { A as AutoclaimedIncentivesResponse, S as StakingConfig, b as StakedBeraAsset, U as UserVaultInfo, B as BribeBoostRewardProof } from '../pol.d-CqPA9K6m.js';
|
|
27
21
|
import * as _berachain_graphql_pol_api from '@berachain/graphql/pol/api';
|
|
28
22
|
import { GqlRewardVaultFilter, ApiVaultFragment, GetVaultsQueryVariables, GetVaultHistoryQuery, ApiValidatorFragment, GetValidatorsQueryVariables, GetValidatorsQuery, GqlChain, GetValidatorQuery, ApiValidatorMinimalFragment } from '@berachain/graphql/pol/api';
|
|
23
|
+
import { VaultStatsByDayResponse } from '@berachain/graphql/api';
|
|
29
24
|
import { Address as Address$1 } from '@berachain/config';
|
|
30
|
-
import { GetValidatorBlockStatsQuery, GetValidatorAnalyticsQuery } from '@berachain/graphql/pol/subgraph';
|
|
25
|
+
import { GetValidatorBlockStatsQuery, GetValidatorAnalyticsQuery, GetValidatorIncentiveDistributionQuery } from '@berachain/graphql/pol/subgraph';
|
|
31
26
|
import '@berachain/config/internal';
|
|
32
|
-
import '../txnEnum-7_o92X3N.js';
|
|
33
27
|
import '@wagmi/core';
|
|
34
|
-
import '../
|
|
28
|
+
import '../txnEnum-ByI5dtDi.js';
|
|
29
|
+
import '../BeraError-7-A5JYy_.js';
|
|
35
30
|
import 'react/jsx-runtime';
|
|
31
|
+
import 'react';
|
|
36
32
|
import '../honey-CYm0RWf4.js';
|
|
37
33
|
import '@berachain/config/internal/edge-config';
|
|
38
34
|
import '@ensofinance/sdk';
|
|
@@ -239,17 +235,12 @@ interface UseCreatePoolProps extends BeraJS.BaseFunctionArgs {
|
|
|
239
235
|
poolSymbol: string;
|
|
240
236
|
poolName: string;
|
|
241
237
|
amplification: number;
|
|
242
|
-
weightsDuplicationThreshold?: number;
|
|
243
238
|
oracles: Oracle[];
|
|
244
239
|
}
|
|
245
240
|
interface UseCreatePoolReturn {
|
|
246
241
|
generatedPoolName: string;
|
|
247
242
|
generatedPoolSymbol: string;
|
|
248
|
-
isDupePool: boolean;
|
|
249
|
-
dupePool?: SubgraphPoolFragment | null;
|
|
250
243
|
createPoolArgs: any;
|
|
251
|
-
isLoadingPools: boolean;
|
|
252
|
-
errorLoadingPools: boolean;
|
|
253
244
|
}
|
|
254
245
|
declare enum OracleMode {
|
|
255
246
|
None = "None",
|
|
@@ -261,25 +252,7 @@ interface Oracle {
|
|
|
261
252
|
tokenAddress: string;
|
|
262
253
|
cacheDuration: number;
|
|
263
254
|
}
|
|
264
|
-
declare const useCreatePool: ({ poolCreateTokens, initialLiquidityTokens, normalizedWeights, poolType, poolName, poolSymbol, swapFee, owner, amplification, oracles,
|
|
265
|
-
|
|
266
|
-
declare const useExploitedTokensQueryKey: (tokens: Token[] | undefined) => readonly ["useExploitedTokens", Token[]] | null;
|
|
267
|
-
/**
|
|
268
|
-
* This hook checks if any of provided tokens might have been exploited by frontrunning its deployment.
|
|
269
|
-
*
|
|
270
|
-
* @see {@link getIsTokenExploited} for more details
|
|
271
|
-
* @returns a record of tokens and whether they might have been exploited
|
|
272
|
-
*/
|
|
273
|
-
declare const useExploitedTokens: ({ tokens, }: {
|
|
274
|
-
tokens: Token[] | undefined;
|
|
275
|
-
}) => {
|
|
276
|
-
refresh: () => Promise<Record<`0x${string}`, boolean> | undefined>;
|
|
277
|
-
data: Record<`0x${string}`, boolean> | undefined;
|
|
278
|
-
error: any;
|
|
279
|
-
mutate: swr.KeyedMutator<Record<`0x${string}`, boolean>>;
|
|
280
|
-
isValidating: boolean;
|
|
281
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
282
|
-
};
|
|
255
|
+
declare const useCreatePool: ({ poolCreateTokens, initialLiquidityTokens, normalizedWeights, poolType, poolName, poolSymbol, swapFee, owner, amplification, oracles, ...baseArgs }: UseCreatePoolProps) => UseCreatePoolReturn;
|
|
283
256
|
|
|
284
257
|
declare const useGlobalLiquidityAndSwapVolume: () => {
|
|
285
258
|
data: {
|
|
@@ -349,7 +322,36 @@ declare function useOnChainPoolDataQueryKey(args: {
|
|
|
349
322
|
} | {
|
|
350
323
|
address: Address;
|
|
351
324
|
}): readonly ["useOnChainPoolData", `0x${string}`] | null;
|
|
352
|
-
interface
|
|
325
|
+
interface OnChainPoolToken {
|
|
326
|
+
address: Address;
|
|
327
|
+
name: string;
|
|
328
|
+
decimals: number;
|
|
329
|
+
symbol: string;
|
|
330
|
+
index: number;
|
|
331
|
+
weight?: string;
|
|
332
|
+
balance: string;
|
|
333
|
+
token: {
|
|
334
|
+
__typename: "Token";
|
|
335
|
+
token: {
|
|
336
|
+
address: Address;
|
|
337
|
+
name: string;
|
|
338
|
+
decimals: number;
|
|
339
|
+
symbol: string;
|
|
340
|
+
};
|
|
341
|
+
latestUSDPrice: TokenPriceInfo | undefined;
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
interface OnChainPoolFragment {
|
|
345
|
+
id: string;
|
|
346
|
+
name: string;
|
|
347
|
+
address: Address;
|
|
348
|
+
factory: Address;
|
|
349
|
+
swapFee: string;
|
|
350
|
+
totalShares: string;
|
|
351
|
+
totalLiquidity: string;
|
|
352
|
+
createTime: number;
|
|
353
|
+
type: string;
|
|
354
|
+
tokens: OnChainPoolToken[];
|
|
353
355
|
amplificationParameter: {
|
|
354
356
|
currentFormattedValue: number | undefined;
|
|
355
357
|
} | undefined;
|
|
@@ -577,7 +579,7 @@ type UseBendDemultiply = {
|
|
|
577
579
|
currentCollateral?: string;
|
|
578
580
|
currentDebt?: string;
|
|
579
581
|
};
|
|
580
|
-
declare function useBendDemultiply({ collateralToken, loanToken, marketId, primaryAddress, repayAmount, slippage, chainId, collateralPriceInLoanAsset, currentCollateral, currentDebt, }: UseBendDemultiply, options?: DefaultHookOptions): swr.SWRResponse<BendDemultiplyBundleResponse, unknown, swr.SWRConfiguration<BendDemultiplyBundleResponse, unknown, (arg: readonly ["useBendDemultiply", `0x${string}`, Token, Token, `0x${string}`, `0x${string}`, number, string, number, string, string, string, `0x${string}`, boolean]) => swr__internal.FetcherResponse<BendDemultiplyBundleResponse>> | undefined>;
|
|
582
|
+
declare function useBendDemultiply({ collateralToken, loanToken, marketId, primaryAddress, repayAmount, slippage, chainId, collateralPriceInLoanAsset, currentCollateral, currentDebt, }: UseBendDemultiply, options?: DefaultHookOptions): swr.SWRResponse<BendDemultiplyBundleResponse, unknown, swr.SWRConfiguration<BendDemultiplyBundleResponse, unknown, (arg: readonly ["useBendDemultiply", `0x${string}`, Token, Token, `0x${string}`, `0x${string}`, number, string, number, string, string, string, `0x${string}`, boolean, boolean]) => swr__internal.FetcherResponse<BendDemultiplyBundleResponse>> | undefined>;
|
|
581
583
|
|
|
582
584
|
type UseBendMultiply = {
|
|
583
585
|
collateralToken?: Token;
|
|
@@ -592,7 +594,7 @@ type UseBendMultiply = {
|
|
|
592
594
|
chainId?: number;
|
|
593
595
|
formattedCollateralPriceInLoanAsset?: string;
|
|
594
596
|
};
|
|
595
|
-
declare function useBendMultiply({ collateralToken, loanToken, marketId, primaryAddress, formattedSupplyCollateralAmount, formattedCurrentCollateralAmount, formattedCurrentBorrowAmount, leverageMultiplier, slippage, chainId, formattedCollateralPriceInLoanAsset, }: UseBendMultiply, options?: DefaultHookOptions): swr.SWRResponse<BendMultiplyBundleResponse, unknown, swr.SWRConfiguration<BendMultiplyBundleResponse, unknown, (arg: readonly ["useBendMultiply", `0x${string}`, Token, Token, `0x${string}`, `0x${string}`, number, string, string, string, number, number, string, `0x${string}`, boolean]) => swr__internal.FetcherResponse<BendMultiplyBundleResponse>> | undefined>;
|
|
597
|
+
declare function useBendMultiply({ collateralToken, loanToken, marketId, primaryAddress, formattedSupplyCollateralAmount, formattedCurrentCollateralAmount, formattedCurrentBorrowAmount, leverageMultiplier, slippage, chainId, formattedCollateralPriceInLoanAsset, }: UseBendMultiply, options?: DefaultHookOptions): swr.SWRResponse<BendMultiplyBundleResponse, unknown, swr.SWRConfiguration<BendMultiplyBundleResponse, unknown, (arg: readonly ["useBendMultiply", `0x${string}`, Token, Token, `0x${string}`, `0x${string}`, number, string, string, string, number, number, string, `0x${string}`, boolean, boolean]) => swr__internal.FetcherResponse<BendMultiplyBundleResponse>> | undefined>;
|
|
596
598
|
|
|
597
599
|
type UseBendZapSupplyArgs = {
|
|
598
600
|
tokenIn?: BalanceToken;
|
|
@@ -615,7 +617,10 @@ declare function useBendZapSupply({ tokenIn, loanToken, bendVault, rewardVault,
|
|
|
615
617
|
raw: bigint;
|
|
616
618
|
formatted: string;
|
|
617
619
|
} | undefined;
|
|
620
|
+
zapSupplyAmountError: any;
|
|
621
|
+
isZapSupplyAmountLoading: boolean;
|
|
618
622
|
priceImpact: number | null | undefined;
|
|
623
|
+
isPriceImpactLoading: boolean;
|
|
619
624
|
hasInsufficientNativeBalance: boolean | 0 | undefined;
|
|
620
625
|
isCrossChain: boolean | 0 | undefined;
|
|
621
626
|
nativeFee: string | undefined;
|
|
@@ -733,168 +738,6 @@ declare function useZapStakeBera({ inputToken, amount, underlyingToken, slippage
|
|
|
733
738
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
734
739
|
};
|
|
735
740
|
|
|
736
|
-
declare const useCreateProposal: ({ initialData, currentTopic, onError, }: {
|
|
737
|
-
initialData?: any;
|
|
738
|
-
currentTopic: GovernanceTopic;
|
|
739
|
-
onError: (e: CustomProposalErrors) => void;
|
|
740
|
-
}) => {
|
|
741
|
-
proposal: CustomProposal;
|
|
742
|
-
setProposal: react.Dispatch<react.SetStateAction<CustomProposal>>;
|
|
743
|
-
addProposalAction: () => void;
|
|
744
|
-
removeProposalAction: (idx: number) => void;
|
|
745
|
-
computeParamsAndErrors: () => readonly [`0x${string}`[], bigint[], `0x${string}`[], string] | undefined;
|
|
746
|
-
};
|
|
747
|
-
|
|
748
|
-
/**
|
|
749
|
-
* Returns the amount of voting power that a wallet had when the voting period began.
|
|
750
|
-
* {@link https://docs.openzeppelin.com/contracts/5.x/api/governance#Votes-getPastVotes-address-uint256-}
|
|
751
|
-
*/
|
|
752
|
-
declare const useGetPastVotes: (args: {
|
|
753
|
-
wallet?: Address;
|
|
754
|
-
} & ({
|
|
755
|
-
proposalId?: bigint;
|
|
756
|
-
timepoint: number | bigint;
|
|
757
|
-
} | {
|
|
758
|
-
proposalId: bigint;
|
|
759
|
-
timepoint?: number | bigint;
|
|
760
|
-
})) => swr.SWRResponse<string, any, any>;
|
|
761
|
-
|
|
762
|
-
declare const useHasVoted: ({ proposalId, wallet, }: {
|
|
763
|
-
proposalId: string;
|
|
764
|
-
wallet?: Address;
|
|
765
|
-
}) => swr.SWRResponse<boolean, any, any>;
|
|
766
|
-
|
|
767
|
-
declare const useIsCanceller: ({ account, ...baseArgs }: {
|
|
768
|
-
account: Address | undefined;
|
|
769
|
-
} & BeraJS.BaseFunctionArgs) => swr.SWRResponse<boolean, any, {
|
|
770
|
-
refreshInterval: POLLING;
|
|
771
|
-
revalidateOnFocus: false;
|
|
772
|
-
}>;
|
|
773
|
-
|
|
774
|
-
type UsePollAllProposalsArgs = {
|
|
775
|
-
topic: string;
|
|
776
|
-
where?: Proposal_Filter;
|
|
777
|
-
perPage?: number;
|
|
778
|
-
orderBy?: Proposal_OrderBy;
|
|
779
|
-
orderDirection?: OrderDirection;
|
|
780
|
-
status_in?: ProposalStatus[];
|
|
781
|
-
text?: string;
|
|
782
|
-
autoRefreshProposals?: boolean;
|
|
783
|
-
};
|
|
784
|
-
type ProposalResult = {
|
|
785
|
-
data: ProposalSelectionFragment[][];
|
|
786
|
-
hasMore: boolean;
|
|
787
|
-
} & Omit<SWRInfiniteResponse<ProposalSelectionFragment[]>, "data">;
|
|
788
|
-
type PollAllProposalsKey = [
|
|
789
|
-
"usePollAllProposals",
|
|
790
|
-
number,
|
|
791
|
-
string,
|
|
792
|
-
Proposal_Filter | undefined,
|
|
793
|
-
ProposalStatus[] | undefined,
|
|
794
|
-
Proposal_OrderBy | undefined,
|
|
795
|
-
OrderDirection | undefined,
|
|
796
|
-
number,
|
|
797
|
-
string | undefined
|
|
798
|
-
] | null;
|
|
799
|
-
declare function usePollAllProposalsQueryKey(topic: string, args?: Partial<UsePollAllProposalsArgs>): (pageIndex: number, previousPageData?: ProposalSelectionFragment[]) => PollAllProposalsKey;
|
|
800
|
-
/**
|
|
801
|
-
* Fetch all proposals for a given topic
|
|
802
|
-
*/
|
|
803
|
-
declare function usePollAllProposals(args: UsePollAllProposalsArgs, options?: DefaultHookOptions & {
|
|
804
|
-
autoRefresh?: boolean;
|
|
805
|
-
}): ProposalResult;
|
|
806
|
-
|
|
807
|
-
interface UsePollProposalResponse extends DefaultHookReturnType<ProposalWithVotesFragment> {
|
|
808
|
-
}
|
|
809
|
-
/**
|
|
810
|
-
* Polls a proposal and returns the proposal details.
|
|
811
|
-
* Pulls data from the subgraph and onchain.
|
|
812
|
-
*
|
|
813
|
-
* @param proposalId - The ID of the proposal to poll
|
|
814
|
-
* @param options - Optional configuration options
|
|
815
|
-
* @param options.autoRefresh - If true, the data will be refreshed automatically based on the block number and status threshold
|
|
816
|
-
* @returns {UsePollProposalResponse} Object containing:
|
|
817
|
-
* - data: ProposalWithVotesFragment | undefined - The proposal data if successful
|
|
818
|
-
* - error: Error | undefined - Error object if request failed
|
|
819
|
-
* - isLoading: boolean - True while data is being fetched
|
|
820
|
-
* - isValidating: boolean - True while data is being revalidated
|
|
821
|
-
* - mutate: () => Promise<ProposalWithVotesFragment | undefined> - Function to manually refresh the data
|
|
822
|
-
* - refresh: () => Promise<void> - Function to manually refresh the data
|
|
823
|
-
*/
|
|
824
|
-
declare const usePollProposal: (proposalId: string, options?: DefaultHookOptions & {
|
|
825
|
-
autoRefresh?: boolean;
|
|
826
|
-
}) => UsePollProposalResponse;
|
|
827
|
-
|
|
828
|
-
declare const usePollProposalThreshold: (governorAddress: Address) => DefaultHookReturnType<{
|
|
829
|
-
votesThreshold: string;
|
|
830
|
-
}>;
|
|
831
|
-
|
|
832
|
-
type UsePollProposalVotesArgs = Omit<GetProposalVotesQueryVariables, "offset" | "limit">;
|
|
833
|
-
/**
|
|
834
|
-
* Fetches all the votes for a proposal from the Subgraph
|
|
835
|
-
* @param args - The arguments to pass to the query
|
|
836
|
-
* @param total - The total amount of pages of votes to fetch
|
|
837
|
-
*/
|
|
838
|
-
declare const usePollProposalVotes: (args: UsePollProposalVotesArgs, total: number) => swr_infinite.SWRInfiniteResponse<{
|
|
839
|
-
data: _berachain_graphql_governance.GetProposalVotesQuery;
|
|
840
|
-
}, any>;
|
|
841
|
-
declare const usePollProposalVotesQueryKey: ({ ...args }: UsePollProposalVotesArgs, total: number) => SWRInfiniteKeyLoader;
|
|
842
|
-
|
|
843
|
-
declare const usePollUserDelegates: (options?: DefaultHookOptions) => DefaultHookReturnType<{
|
|
844
|
-
delegate: Address;
|
|
845
|
-
currentVotes: string | undefined;
|
|
846
|
-
}>;
|
|
847
|
-
|
|
848
|
-
declare const useProposalFromTx: (txHash?: Address) => SWRResponse<ProposalWithVotesFragment | null>;
|
|
849
|
-
|
|
850
|
-
/**
|
|
851
|
-
* Timepoint used to retrieve user’s votes and quorum. If using block
|
|
852
|
-
* number (as per Compound’s Comp), the snapshot is performed at
|
|
853
|
-
* the end of this block. Hence, voting for this proposal starts at the beginning of the following block.
|
|
854
|
-
*
|
|
855
|
-
* {@link https://docs.openzeppelin.com/contracts/5.x/api/governance#IGovernor-proposalSnapshot-uint256-}
|
|
856
|
-
*/
|
|
857
|
-
declare const useProposalSnapshot: ({ proposalId, }: {
|
|
858
|
-
proposalId: number | bigint | string | undefined;
|
|
859
|
-
}) => SWRResponse<string>;
|
|
860
|
-
|
|
861
|
-
declare const useProposalState: ({ proposalId, governorAddress, }: {
|
|
862
|
-
proposalId: number | bigint | string | undefined;
|
|
863
|
-
governorAddress: Address;
|
|
864
|
-
}) => SWRResponse<string>;
|
|
865
|
-
|
|
866
|
-
declare const TimelockOperationState: {
|
|
867
|
-
readonly 0: "unset";
|
|
868
|
-
readonly 1: "waiting";
|
|
869
|
-
readonly 2: "ready";
|
|
870
|
-
readonly 3: "done";
|
|
871
|
-
};
|
|
872
|
-
/**
|
|
873
|
-
* Fetches the state of a proposal timelock
|
|
874
|
-
* @returns state of the proposal timelock (unset, waiting, ready, done)
|
|
875
|
-
*/
|
|
876
|
-
declare function useProposalTimelockState({ proposalTimelockId, timelockAddress, }: {
|
|
877
|
-
proposalTimelockId: Address | undefined;
|
|
878
|
-
timelockAddress: Address;
|
|
879
|
-
}): SWRResponse<(typeof TimelockOperationState)[keyof typeof TimelockOperationState]>;
|
|
880
|
-
|
|
881
|
-
/**
|
|
882
|
-
* Queries the quorum for a given timestamp.
|
|
883
|
-
*
|
|
884
|
-
* @returns current quorum if timestamp is in the future.
|
|
885
|
-
*/
|
|
886
|
-
declare function useQuorum({ at }: {
|
|
887
|
-
at: number | string;
|
|
888
|
-
}, { isEnabled, }: {
|
|
889
|
-
isEnabled?: boolean;
|
|
890
|
-
}): {
|
|
891
|
-
data: number | undefined;
|
|
892
|
-
error: any;
|
|
893
|
-
mutate: swr.KeyedMutator<string>;
|
|
894
|
-
isValidating: boolean;
|
|
895
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
896
|
-
};
|
|
897
|
-
|
|
898
741
|
interface UseCappedGloballyResponse extends DefaultHookReturnType<boolean | undefined> {
|
|
899
742
|
}
|
|
900
743
|
declare const useCappedGlobally: ({ asset, amount, isMint, isBasketModeEnabled, }: {
|
|
@@ -919,6 +762,15 @@ declare const useCollateralWeights: ({ collateralList, }: {
|
|
|
919
762
|
collateralList: Token[] | undefined;
|
|
920
763
|
}, options?: DefaultHookOptions) => UseCollateralWeightsResponse;
|
|
921
764
|
|
|
765
|
+
declare function useHoney24hVolume(): {
|
|
766
|
+
refresh: () => Promise<BigNumber | undefined>;
|
|
767
|
+
data: BigNumber | undefined;
|
|
768
|
+
error: any;
|
|
769
|
+
mutate: swr.KeyedMutator<BigNumber | undefined>;
|
|
770
|
+
isValidating: boolean;
|
|
771
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
772
|
+
};
|
|
773
|
+
|
|
922
774
|
/**
|
|
923
775
|
* Interface defining the state props that we need without the entire IHoneySwapState
|
|
924
776
|
*/
|
|
@@ -989,32 +841,10 @@ declare const useHoneyBalances: () => DefaultHookReturnType<Record<Address, Bala
|
|
|
989
841
|
declare function useHoneyChartData({ days }: {
|
|
990
842
|
days: number;
|
|
991
843
|
}): {
|
|
992
|
-
refresh: () => Promise<_berachain_graphql_honey.
|
|
993
|
-
data: _berachain_graphql_honey.
|
|
844
|
+
refresh: () => Promise<_berachain_graphql_honey.GetSnapshotsQuery | undefined>;
|
|
845
|
+
data: _berachain_graphql_honey.GetSnapshotsQuery | undefined;
|
|
994
846
|
error: any;
|
|
995
|
-
mutate: swr.KeyedMutator<_berachain_graphql_honey.
|
|
996
|
-
isValidating: boolean;
|
|
997
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
998
|
-
};
|
|
999
|
-
|
|
1000
|
-
declare function useHoneyGlobalData(): {
|
|
1001
|
-
data: {
|
|
1002
|
-
dailyVolume: BigNumber | undefined;
|
|
1003
|
-
__typename?: "Query";
|
|
1004
|
-
honeySnapshots?: {
|
|
1005
|
-
__typename?: "HoneySnapshot";
|
|
1006
|
-
id: string;
|
|
1007
|
-
allTimeVolume: string;
|
|
1008
|
-
totalVolume: string;
|
|
1009
|
-
timestamp: string;
|
|
1010
|
-
totalSupply: string;
|
|
1011
|
-
mintVolume: string;
|
|
1012
|
-
redeemVolume: string;
|
|
1013
|
-
}[] | undefined;
|
|
1014
|
-
};
|
|
1015
|
-
refresh: () => Promise<_berachain_graphql_honey.GetGlobalDataQuery | undefined>;
|
|
1016
|
-
error: any;
|
|
1017
|
-
mutate: swr.KeyedMutator<_berachain_graphql_honey.GetGlobalDataQuery>;
|
|
847
|
+
mutate: swr.KeyedMutator<_berachain_graphql_honey.GetSnapshotsQuery>;
|
|
1018
848
|
isValidating: boolean;
|
|
1019
849
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1020
850
|
};
|
|
@@ -1056,6 +886,11 @@ declare const usePythUpdateFee: ({ pythPriceFeedCalldata, tokenListLength, }: {
|
|
|
1056
886
|
isLoading: boolean;
|
|
1057
887
|
};
|
|
1058
888
|
|
|
889
|
+
interface UseAutoclaimedIncentivesArgs {
|
|
890
|
+
enabled: boolean;
|
|
891
|
+
}
|
|
892
|
+
declare function useAutoclaimedIncentives({ enabled, }: UseAutoclaimedIncentivesArgs): DefaultHookReturnType<AutoclaimedIncentivesResponse | null>;
|
|
893
|
+
|
|
1059
894
|
declare function useBgtAprSimulation(args: GetBgtAprSimulationArgs | undefined): GetBgtAprSimulationResult
|
|
1060
895
|
/**
|
|
1061
896
|
* Returns undefined if still loading
|
|
@@ -1234,7 +1069,7 @@ declare const useRewardVaults: (args: {
|
|
|
1234
1069
|
};
|
|
1235
1070
|
|
|
1236
1071
|
type UseStakedAPR = {
|
|
1237
|
-
|
|
1072
|
+
timestamp: number;
|
|
1238
1073
|
apr: string;
|
|
1239
1074
|
}[];
|
|
1240
1075
|
declare function useStakedAPR({ range, }: {
|
|
@@ -1265,10 +1100,7 @@ declare const useStakedData: (stakingConfigs: StakingConfig[]) => {
|
|
|
1265
1100
|
isValidatingPositions: boolean;
|
|
1266
1101
|
};
|
|
1267
1102
|
|
|
1268
|
-
type UseStakedBeraSnapshot = Record<Address,
|
|
1269
|
-
_timestamp: number;
|
|
1270
|
-
total_assets: string;
|
|
1271
|
-
}[]>;
|
|
1103
|
+
type UseStakedBeraSnapshot = Record<Address, VaultStatsByDayResponse>;
|
|
1272
1104
|
declare function useStakedSnapshots({ range, addresses, }: {
|
|
1273
1105
|
addresses: Address[];
|
|
1274
1106
|
range: 30 | 60 | 90;
|
|
@@ -1616,6 +1448,7 @@ declare function useValidator({ pubkey }: {
|
|
|
1616
1448
|
rewardRate: string;
|
|
1617
1449
|
stakedBeraAmount: string;
|
|
1618
1450
|
lastDayDistributedBGTAmount: string;
|
|
1451
|
+
lastDayProposedBlockCount: number;
|
|
1619
1452
|
activeBoostAmountRank: number;
|
|
1620
1453
|
boostApr: GqlValidatorDynamicData["boostApr"];
|
|
1621
1454
|
commissionOnIncentives: number;
|
|
@@ -1715,6 +1548,17 @@ declare const useValidatorEstimatedBgtPerYear: (validator: ApiValidatorMinimalFr
|
|
|
1715
1548
|
isLoading: boolean;
|
|
1716
1549
|
};
|
|
1717
1550
|
|
|
1551
|
+
/**
|
|
1552
|
+
* Historical per-validator incentive distribution. Split from
|
|
1553
|
+
* `useValidatorAnalytics` so the IncentivesEarned chart can switch data
|
|
1554
|
+
* sources independently of the other charts that still consume the umbrella
|
|
1555
|
+
* `GetValidatorAnalytics` query.
|
|
1556
|
+
*/
|
|
1557
|
+
declare function useValidatorIncentiveDistribution({ pubkey, dayRange, }: {
|
|
1558
|
+
pubkey: Address | undefined;
|
|
1559
|
+
dayRange: number;
|
|
1560
|
+
}): DefaultHookReturnType<GetValidatorIncentiveDistributionQuery>;
|
|
1561
|
+
|
|
1718
1562
|
declare function useValidatorQueuedCommission(pubKey: Address, options?: DefaultHookOptions): DefaultHookReturnType<ValidatorQueuedCommission | undefined | null>;
|
|
1719
1563
|
|
|
1720
1564
|
declare const useValidatorQueuedOperatorAddress: (pubKey: Address, options?: DefaultHookOptions) => DefaultHookReturnType<ValidatorQueuedOperatorAddress | undefined>;
|
|
@@ -1745,4 +1589,4 @@ declare function useValidatorRewardAllocation(pubKey: Address, options?: Default
|
|
|
1745
1589
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1746
1590
|
};
|
|
1747
1591
|
|
|
1748
|
-
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
|
|
1592
|
+
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, 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 };
|