@berachain/berajs 0.2.8-beta.9 → 0.2.10
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-BRIiJgHk.d.ts → RequestError-DBOIV65x.d.ts} +1 -1
- package/dist/abi/exports.mjs +4452 -2
- package/dist/actions/clients/exports.d.ts +78 -0
- package/dist/actions/clients/exports.mjs +21 -0
- package/dist/actions/exports.d.ts +154 -207
- package/dist/actions/exports.mjs +853 -2
- 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-3JJLQ2JX.mjs +211 -0
- package/dist/chunk-7YVNSDXG.mjs +86 -0
- package/dist/chunk-AUOPN6NK.mjs +96 -0
- package/dist/chunk-BGMRHTBQ.mjs +23 -0
- package/dist/chunk-CDK4YV3D.mjs +571 -0
- package/dist/chunk-DKMAIU74.mjs +62 -0
- package/dist/chunk-DQRH5VE3.mjs +25 -0
- package/dist/chunk-E7YFXBBQ.mjs +349 -0
- package/dist/chunk-GUURQAME.mjs +326 -0
- package/dist/chunk-GY6B3PD5.mjs +89 -0
- package/dist/chunk-HQCOU6GY.mjs +243 -0
- package/dist/chunk-HYDP32P6.mjs +135 -0
- package/dist/chunk-IXIBY5FP.mjs +80 -0
- package/dist/chunk-KHXJDYA4.mjs +1776 -0
- package/dist/chunk-NBYLMO2L.mjs +14 -0
- package/dist/chunk-O2NQFKJK.mjs +170 -0
- package/dist/chunk-P5WXXULM.mjs +54 -0
- package/dist/chunk-QBBOWFMH.mjs +4129 -0
- package/dist/chunk-QVHEM4BG.mjs +35 -0
- package/dist/chunk-SGIJVHZO.mjs +12 -0
- package/dist/chunk-SZ5C44L5.mjs +35 -0
- package/dist/chunk-WNBWX23Q.mjs +426 -0
- package/dist/chunk-Y6THHG77.mjs +126 -0
- package/dist/chunk-ZLTMIFCZ.mjs +165 -0
- package/dist/contexts/exports.d.ts +2 -2
- package/dist/contexts/exports.mjs +85 -2
- package/dist/enum/exports.d.ts +1 -1
- package/dist/enum/exports.mjs +46 -2
- package/dist/enum/governance/exports.d.ts +60 -0
- package/dist/enum/governance/exports.mjs +14 -0
- package/dist/errors/exports.d.ts +4 -3
- package/dist/errors/exports.mjs +48 -2
- package/dist/getApolloClient-BcUTGFUb.d.ts +40 -0
- package/dist/{getValidatorQueuedOperatorAddress-BcyxE9uw.d.ts → getValidatorQueuedOperatorAddress-DphU3qhE.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 +83 -226
- package/dist/hooks/exports.mjs +7463 -4
- package/dist/hooks/governance/exports.d.ts +181 -0
- package/dist/hooks/governance/exports.mjs +888 -0
- package/dist/pol.d-Dw5SQcRX.d.ts +153 -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 +15 -6
- package/dist/utils/exports.mjs +827 -2
- package/package.json +49 -13
- package/src/actions/__test/transports.ts +61 -0
- package/src/actions/clients/exports.ts +7 -0
- package/src/actions/clients/fetchBeep.ts +34 -0
- package/src/actions/clients/fetchOpenApi.ts +93 -0
- package/src/actions/clients/fetchOpenApi.unit.test.ts +223 -0
- package/src/actions/clients/fetchRailwayBackend.ts +34 -0
- package/src/actions/clients/getApolloClient.ts +58 -23
- package/src/actions/clients/getEnsoClient.ts +20 -9
- 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/enso/getEnsoUserTokensWithBalances.ts +18 -0
- package/src/actions/exports.ts +5 -9
- 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 +19 -22
- package/src/actions/honey/getPythLatestPrices.ts +7 -0
- package/src/actions/pol/__tests__/rewardVaults.integration.test.ts +1 -1
- package/src/actions/pol/getAutoclaimedIncentives.ts +41 -0
- package/src/actions/pol/getAutoclaimedIncentivesTxHash.ts +41 -0
- package/src/actions/pol/getBeraTokenTotalSupply.ts +45 -0
- package/src/actions/pol/getBgtIncentiveDistributorPaused.ts +28 -0
- package/src/actions/pol/getEarnedStakedBeraVault.ts +20 -20
- 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/getRewardVaults.ts +4 -4
- package/src/actions/pol/getSWBeraVaultMetadata.ts +1 -1
- package/src/actions/pol/getStakingDailyAssets.ts +18 -17
- 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/actions/validators/utils/getValidatorBoostApy.ts +1 -1
- 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 +25 -4
- package/src/errors/RequestError.unit.test.ts +55 -0
- package/src/errors/errorMap.ts +8 -0
- 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 -15
- package/src/hooks/governance/exports.ts +14 -0
- package/src/hooks/pol/useAutoclaimedIncentives.ts +40 -0
- package/src/hooks/pol/useAutoclaimedIncentivesTxHash.ts +45 -0
- package/src/hooks/pol/useStakedAPR.ts +2 -2
- package/src/hooks/pol/useStakedSnapshots.ts +5 -9
- package/src/hooks/validators/useValidator.ts +6 -8
- package/src/hooks/validators/useValidatorIncentiveDistribution.ts +39 -0
- package/src/types/bribe-boost.d.ts +19 -0
- package/src/types/exports.ts +0 -1
- package/src/types/governance/exports.ts +1 -0
- package/src/utils/beraFetch.ts +9 -3
- package/src/utils/exports.ts +1 -0
- package/src/utils/getServerSideClient.ts +4 -2
- package/src/utils/polyfillAbortSignalAny.ts +53 -0
- package/src/utils/polyfillAbortSignalAny.unit.test.ts +81 -0
- 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-DSUzJ1Iy.d.cts +0 -144
- package/dist/abi/exports.cjs +0 -2
- 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 -2
- package/dist/actions/exports.cjs.map +0 -1
- package/dist/actions/exports.d.cts +0 -1650
- package/dist/actions/exports.mjs.map +0 -1
- package/dist/chunk-45HIEVNI.cjs +0 -4
- package/dist/chunk-45HIEVNI.cjs.map +0 -1
- package/dist/chunk-47ILYVHC.mjs +0 -2
- package/dist/chunk-47ILYVHC.mjs.map +0 -1
- package/dist/chunk-575OK77P.mjs +0 -2
- package/dist/chunk-575OK77P.mjs.map +0 -1
- package/dist/chunk-5NVZG5N6.mjs +0 -2
- package/dist/chunk-5NVZG5N6.mjs.map +0 -1
- package/dist/chunk-6DIA6PXV.cjs +0 -2
- package/dist/chunk-6DIA6PXV.cjs.map +0 -1
- package/dist/chunk-6JJIZCVY.cjs +0 -2
- package/dist/chunk-6JJIZCVY.cjs.map +0 -1
- package/dist/chunk-7F72ZH4Q.mjs +0 -2
- package/dist/chunk-7F72ZH4Q.mjs.map +0 -1
- package/dist/chunk-AUA42YIG.mjs +0 -4
- package/dist/chunk-AUA42YIG.mjs.map +0 -1
- package/dist/chunk-BC2WX6O6.cjs +0 -2
- package/dist/chunk-BC2WX6O6.cjs.map +0 -1
- package/dist/chunk-CJOZC5Z2.cjs +0 -2
- package/dist/chunk-CJOZC5Z2.cjs.map +0 -1
- package/dist/chunk-D6L7LTA2.cjs +0 -2
- package/dist/chunk-D6L7LTA2.cjs.map +0 -1
- package/dist/chunk-DDEQFR3M.cjs +0 -2
- package/dist/chunk-DDEQFR3M.cjs.map +0 -1
- package/dist/chunk-GXV2JA36.mjs +0 -2
- package/dist/chunk-GXV2JA36.mjs.map +0 -1
- package/dist/chunk-ISYNEDET.mjs +0 -2
- package/dist/chunk-ISYNEDET.mjs.map +0 -1
- package/dist/chunk-JDDRTHFG.mjs +0 -2
- package/dist/chunk-JDDRTHFG.mjs.map +0 -1
- package/dist/chunk-JDZGYU5T.mjs +0 -2
- package/dist/chunk-JDZGYU5T.mjs.map +0 -1
- package/dist/chunk-LVOXBZMA.cjs +0 -2
- package/dist/chunk-LVOXBZMA.cjs.map +0 -1
- package/dist/chunk-MK5NS5B5.mjs +0 -2
- package/dist/chunk-MK5NS5B5.mjs.map +0 -1
- package/dist/chunk-NAXAZJJY.mjs +0 -2
- package/dist/chunk-NAXAZJJY.mjs.map +0 -1
- package/dist/chunk-NLVWRMGD.mjs +0 -2
- package/dist/chunk-NLVWRMGD.mjs.map +0 -1
- package/dist/chunk-OGBD5YOG.mjs +0 -2
- package/dist/chunk-OGBD5YOG.mjs.map +0 -1
- package/dist/chunk-OGJMSGB2.mjs +0 -2
- package/dist/chunk-OGJMSGB2.mjs.map +0 -1
- package/dist/chunk-OIYXOKTT.cjs +0 -2
- package/dist/chunk-OIYXOKTT.cjs.map +0 -1
- package/dist/chunk-OUD27MU7.cjs +0 -2
- package/dist/chunk-OUD27MU7.cjs.map +0 -1
- package/dist/chunk-PRLVZIKD.mjs +0 -2
- package/dist/chunk-PRLVZIKD.mjs.map +0 -1
- package/dist/chunk-Q2SNRLW3.cjs +0 -2
- package/dist/chunk-Q2SNRLW3.cjs.map +0 -1
- package/dist/chunk-REWME3FY.cjs +0 -2
- package/dist/chunk-REWME3FY.cjs.map +0 -1
- package/dist/chunk-RJN36GBU.mjs +0 -2
- package/dist/chunk-RJN36GBU.mjs.map +0 -1
- package/dist/chunk-RWOICHRW.cjs +0 -2
- package/dist/chunk-RWOICHRW.cjs.map +0 -1
- package/dist/chunk-S4CDSVLK.cjs +0 -2
- package/dist/chunk-S4CDSVLK.cjs.map +0 -1
- package/dist/chunk-SFEULGSX.cjs +0 -2
- package/dist/chunk-SFEULGSX.cjs.map +0 -1
- package/dist/chunk-WBTS6KFG.mjs +0 -2
- package/dist/chunk-WBTS6KFG.mjs.map +0 -1
- package/dist/chunk-WRFDB3QJ.cjs +0 -2
- package/dist/chunk-WRFDB3QJ.cjs.map +0 -1
- package/dist/chunk-XNJLSA6P.cjs +0 -2
- package/dist/chunk-XNJLSA6P.cjs.map +0 -1
- package/dist/contexts/exports.cjs +0 -2
- 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 -2
- 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 -2
- package/dist/errors/exports.cjs.map +0 -1
- package/dist/errors/exports.d.cts +0 -327
- 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 -4
- package/dist/hooks/exports.cjs.map +0 -1
- package/dist/hooks/exports.d.cts +0 -1734
- 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 -2
- package/dist/utils/exports.cjs.map +0 -1
- package/dist/utils/exports.d.cts +0 -420
- package/dist/utils/exports.mjs.map +0 -1
- package/src/actions/dex/getIsTokenExploited.ts +0 -63
- package/src/hooks/dex/useExploitedTokens.ts +0 -57
package/dist/hooks/exports.d.ts
CHANGED
|
@@ -1,37 +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-DphU3qhE.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';
|
|
20
|
+
import { A as AutoclaimedIncentivesResponse, a as AutoclaimedIncentivesTxHashResponse, S as StakingConfig, c as StakedBeraAsset, U as UserVaultInfo, B as BribeBoostRewardProof } from '../pol.d-Dw5SQcRX.js';
|
|
26
21
|
import * as _berachain_graphql_pol_api from '@berachain/graphql/pol/api';
|
|
27
22
|
import { GqlRewardVaultFilter, ApiVaultFragment, GetVaultsQueryVariables, GetVaultHistoryQuery, ApiValidatorFragment, GetValidatorsQueryVariables, GetValidatorsQuery, GqlChain, GetValidatorQuery, ApiValidatorMinimalFragment } from '@berachain/graphql/pol/api';
|
|
23
|
+
import { VaultStatsByDayResponse } from '@berachain/graphql/api';
|
|
28
24
|
import { Address as Address$1 } from '@berachain/config';
|
|
29
|
-
import { GetValidatorBlockStatsQuery, GetValidatorAnalyticsQuery } from '@berachain/graphql/pol/subgraph';
|
|
25
|
+
import { GetValidatorBlockStatsQuery, GetValidatorAnalyticsQuery, GetValidatorIncentiveDistributionQuery } from '@berachain/graphql/pol/subgraph';
|
|
30
26
|
import '@berachain/config/internal';
|
|
31
|
-
import '../txnEnum-7_o92X3N.js';
|
|
32
27
|
import '@wagmi/core';
|
|
33
|
-
import '../
|
|
28
|
+
import '../txnEnum-ByI5dtDi.js';
|
|
29
|
+
import '../BeraError-7-A5JYy_.js';
|
|
34
30
|
import 'react/jsx-runtime';
|
|
31
|
+
import 'react';
|
|
35
32
|
import '../honey-CYm0RWf4.js';
|
|
36
33
|
import '@berachain/config/internal/edge-config';
|
|
37
34
|
import '@ensofinance/sdk';
|
|
@@ -146,8 +143,7 @@ declare const useAllUserPools: (query: GetPoolsQueryVariables, options?: Default
|
|
|
146
143
|
__typename?: "GqlRewardVaultDynamicData";
|
|
147
144
|
activeIncentivesValueUsd: string;
|
|
148
145
|
apr?: number | null;
|
|
149
|
-
|
|
150
|
-
allTimeReceivedBGTAmount: string;
|
|
146
|
+
rewardCapturePercentage: number;
|
|
151
147
|
} | null;
|
|
152
148
|
} | null;
|
|
153
149
|
}[];
|
|
@@ -201,8 +197,7 @@ declare const useAllUserPools: (query: GetPoolsQueryVariables, options?: Default
|
|
|
201
197
|
__typename?: "GqlRewardVaultDynamicData";
|
|
202
198
|
activeIncentivesValueUsd: string;
|
|
203
199
|
apr?: number | null;
|
|
204
|
-
|
|
205
|
-
allTimeReceivedBGTAmount: string;
|
|
200
|
+
rewardCapturePercentage: number;
|
|
206
201
|
} | null;
|
|
207
202
|
} | null;
|
|
208
203
|
}[];
|
|
@@ -238,17 +233,12 @@ interface UseCreatePoolProps extends BeraJS.BaseFunctionArgs {
|
|
|
238
233
|
poolSymbol: string;
|
|
239
234
|
poolName: string;
|
|
240
235
|
amplification: number;
|
|
241
|
-
weightsDuplicationThreshold?: number;
|
|
242
236
|
oracles: Oracle[];
|
|
243
237
|
}
|
|
244
238
|
interface UseCreatePoolReturn {
|
|
245
239
|
generatedPoolName: string;
|
|
246
240
|
generatedPoolSymbol: string;
|
|
247
|
-
isDupePool: boolean;
|
|
248
|
-
dupePool?: SubgraphPoolFragment | null;
|
|
249
241
|
createPoolArgs: any;
|
|
250
|
-
isLoadingPools: boolean;
|
|
251
|
-
errorLoadingPools: boolean;
|
|
252
242
|
}
|
|
253
243
|
declare enum OracleMode {
|
|
254
244
|
None = "None",
|
|
@@ -260,25 +250,7 @@ interface Oracle {
|
|
|
260
250
|
tokenAddress: string;
|
|
261
251
|
cacheDuration: number;
|
|
262
252
|
}
|
|
263
|
-
declare const useCreatePool: ({ poolCreateTokens, initialLiquidityTokens, normalizedWeights, poolType, poolName, poolSymbol, swapFee, owner, amplification, oracles,
|
|
264
|
-
|
|
265
|
-
declare const useExploitedTokensQueryKey: (tokens: Token[] | undefined) => readonly ["useExploitedTokens", Token[]] | null;
|
|
266
|
-
/**
|
|
267
|
-
* This hook checks if any of provided tokens might have been exploited by frontrunning its deployment.
|
|
268
|
-
*
|
|
269
|
-
* @see {@link getIsTokenExploited} for more details
|
|
270
|
-
* @returns a record of tokens and whether they might have been exploited
|
|
271
|
-
*/
|
|
272
|
-
declare const useExploitedTokens: ({ tokens, }: {
|
|
273
|
-
tokens: Token[] | undefined;
|
|
274
|
-
}) => {
|
|
275
|
-
refresh: () => Promise<Record<`0x${string}`, boolean> | undefined>;
|
|
276
|
-
data: Record<`0x${string}`, boolean> | undefined;
|
|
277
|
-
error: any;
|
|
278
|
-
mutate: swr.KeyedMutator<Record<`0x${string}`, boolean>>;
|
|
279
|
-
isValidating: boolean;
|
|
280
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
281
|
-
};
|
|
253
|
+
declare const useCreatePool: ({ poolCreateTokens, initialLiquidityTokens, normalizedWeights, poolType, poolName, poolSymbol, swapFee, owner, amplification, oracles, ...baseArgs }: UseCreatePoolProps) => UseCreatePoolReturn;
|
|
282
254
|
|
|
283
255
|
declare const useGlobalLiquidityAndSwapVolume: () => {
|
|
284
256
|
data: {
|
|
@@ -348,7 +320,36 @@ declare function useOnChainPoolDataQueryKey(args: {
|
|
|
348
320
|
} | {
|
|
349
321
|
address: Address;
|
|
350
322
|
}): readonly ["useOnChainPoolData", `0x${string}`] | null;
|
|
351
|
-
interface
|
|
323
|
+
interface OnChainPoolToken {
|
|
324
|
+
address: Address;
|
|
325
|
+
name: string;
|
|
326
|
+
decimals: number;
|
|
327
|
+
symbol: string;
|
|
328
|
+
index: number;
|
|
329
|
+
weight?: string;
|
|
330
|
+
balance: string;
|
|
331
|
+
token: {
|
|
332
|
+
__typename: "Token";
|
|
333
|
+
token: {
|
|
334
|
+
address: Address;
|
|
335
|
+
name: string;
|
|
336
|
+
decimals: number;
|
|
337
|
+
symbol: string;
|
|
338
|
+
};
|
|
339
|
+
latestUSDPrice: TokenPriceInfo | undefined;
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
interface OnChainPoolFragment {
|
|
343
|
+
id: string;
|
|
344
|
+
name: string;
|
|
345
|
+
address: Address;
|
|
346
|
+
factory: Address;
|
|
347
|
+
swapFee: string;
|
|
348
|
+
totalShares: string;
|
|
349
|
+
totalLiquidity: string;
|
|
350
|
+
createTime: number;
|
|
351
|
+
type: string;
|
|
352
|
+
tokens: OnChainPoolToken[];
|
|
352
353
|
amplificationParameter: {
|
|
353
354
|
currentFormattedValue: number | undefined;
|
|
354
355
|
} | undefined;
|
|
@@ -459,8 +460,7 @@ declare const usePools: (query: GetPoolsQueryVariables, options?: DefaultHookOpt
|
|
|
459
460
|
__typename?: "GqlRewardVaultDynamicData";
|
|
460
461
|
activeIncentivesValueUsd: string;
|
|
461
462
|
apr?: number | null;
|
|
462
|
-
|
|
463
|
-
allTimeReceivedBGTAmount: string;
|
|
463
|
+
rewardCapturePercentage: number;
|
|
464
464
|
} | null;
|
|
465
465
|
} | null;
|
|
466
466
|
}[];
|
|
@@ -510,8 +510,7 @@ declare const usePools: (query: GetPoolsQueryVariables, options?: DefaultHookOpt
|
|
|
510
510
|
__typename?: "GqlRewardVaultDynamicData";
|
|
511
511
|
activeIncentivesValueUsd: string;
|
|
512
512
|
apr?: number | null;
|
|
513
|
-
|
|
514
|
-
allTimeReceivedBGTAmount: string;
|
|
513
|
+
rewardCapturePercentage: number;
|
|
515
514
|
} | null;
|
|
516
515
|
} | null;
|
|
517
516
|
}[];
|
|
@@ -576,7 +575,7 @@ type UseBendDemultiply = {
|
|
|
576
575
|
currentCollateral?: string;
|
|
577
576
|
currentDebt?: string;
|
|
578
577
|
};
|
|
579
|
-
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>;
|
|
578
|
+
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>;
|
|
580
579
|
|
|
581
580
|
type UseBendMultiply = {
|
|
582
581
|
collateralToken?: Token;
|
|
@@ -591,7 +590,7 @@ type UseBendMultiply = {
|
|
|
591
590
|
chainId?: number;
|
|
592
591
|
formattedCollateralPriceInLoanAsset?: string;
|
|
593
592
|
};
|
|
594
|
-
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>;
|
|
593
|
+
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>;
|
|
595
594
|
|
|
596
595
|
type UseBendZapSupplyArgs = {
|
|
597
596
|
tokenIn?: BalanceToken;
|
|
@@ -614,7 +613,10 @@ declare function useBendZapSupply({ tokenIn, loanToken, bendVault, rewardVault,
|
|
|
614
613
|
raw: bigint;
|
|
615
614
|
formatted: string;
|
|
616
615
|
} | undefined;
|
|
616
|
+
zapSupplyAmountError: any;
|
|
617
|
+
isZapSupplyAmountLoading: boolean;
|
|
617
618
|
priceImpact: number | null | undefined;
|
|
619
|
+
isPriceImpactLoading: boolean;
|
|
618
620
|
hasInsufficientNativeBalance: boolean | 0 | undefined;
|
|
619
621
|
isCrossChain: boolean | 0 | undefined;
|
|
620
622
|
nativeFee: string | undefined;
|
|
@@ -732,168 +734,6 @@ declare function useZapStakeBera({ inputToken, amount, underlyingToken, slippage
|
|
|
732
734
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
733
735
|
};
|
|
734
736
|
|
|
735
|
-
declare const useCreateProposal: ({ initialData, currentTopic, onError, }: {
|
|
736
|
-
initialData?: any;
|
|
737
|
-
currentTopic: GovernanceTopic;
|
|
738
|
-
onError: (e: CustomProposalErrors) => void;
|
|
739
|
-
}) => {
|
|
740
|
-
proposal: CustomProposal;
|
|
741
|
-
setProposal: react.Dispatch<react.SetStateAction<CustomProposal>>;
|
|
742
|
-
addProposalAction: () => void;
|
|
743
|
-
removeProposalAction: (idx: number) => void;
|
|
744
|
-
computeParamsAndErrors: () => readonly [`0x${string}`[], bigint[], `0x${string}`[], string] | undefined;
|
|
745
|
-
};
|
|
746
|
-
|
|
747
|
-
/**
|
|
748
|
-
* Returns the amount of voting power that a wallet had when the voting period began.
|
|
749
|
-
* {@link https://docs.openzeppelin.com/contracts/5.x/api/governance#Votes-getPastVotes-address-uint256-}
|
|
750
|
-
*/
|
|
751
|
-
declare const useGetPastVotes: (args: {
|
|
752
|
-
wallet?: Address;
|
|
753
|
-
} & ({
|
|
754
|
-
proposalId?: bigint;
|
|
755
|
-
timepoint: number | bigint;
|
|
756
|
-
} | {
|
|
757
|
-
proposalId: bigint;
|
|
758
|
-
timepoint?: number | bigint;
|
|
759
|
-
})) => swr.SWRResponse<string, any, any>;
|
|
760
|
-
|
|
761
|
-
declare const useHasVoted: ({ proposalId, wallet, }: {
|
|
762
|
-
proposalId: string;
|
|
763
|
-
wallet?: Address;
|
|
764
|
-
}) => swr.SWRResponse<boolean, any, any>;
|
|
765
|
-
|
|
766
|
-
declare const useIsCanceller: ({ account, ...baseArgs }: {
|
|
767
|
-
account: Address | undefined;
|
|
768
|
-
} & BeraJS.BaseFunctionArgs) => swr.SWRResponse<boolean, any, {
|
|
769
|
-
refreshInterval: POLLING;
|
|
770
|
-
revalidateOnFocus: false;
|
|
771
|
-
}>;
|
|
772
|
-
|
|
773
|
-
type UsePollAllProposalsArgs = {
|
|
774
|
-
topic: string;
|
|
775
|
-
where?: Proposal_Filter;
|
|
776
|
-
perPage?: number;
|
|
777
|
-
orderBy?: Proposal_OrderBy;
|
|
778
|
-
orderDirection?: OrderDirection;
|
|
779
|
-
status_in?: ProposalStatus[];
|
|
780
|
-
text?: string;
|
|
781
|
-
autoRefreshProposals?: boolean;
|
|
782
|
-
};
|
|
783
|
-
type ProposalResult = {
|
|
784
|
-
data: ProposalSelectionFragment[][];
|
|
785
|
-
hasMore: boolean;
|
|
786
|
-
} & Omit<SWRInfiniteResponse<ProposalSelectionFragment[]>, "data">;
|
|
787
|
-
type PollAllProposalsKey = [
|
|
788
|
-
"usePollAllProposals",
|
|
789
|
-
number,
|
|
790
|
-
string,
|
|
791
|
-
Proposal_Filter | undefined,
|
|
792
|
-
ProposalStatus[] | undefined,
|
|
793
|
-
Proposal_OrderBy | undefined,
|
|
794
|
-
OrderDirection | undefined,
|
|
795
|
-
number,
|
|
796
|
-
string | undefined
|
|
797
|
-
] | null;
|
|
798
|
-
declare function usePollAllProposalsQueryKey(topic: string, args?: Partial<UsePollAllProposalsArgs>): (pageIndex: number, previousPageData?: ProposalSelectionFragment[]) => PollAllProposalsKey;
|
|
799
|
-
/**
|
|
800
|
-
* Fetch all proposals for a given topic
|
|
801
|
-
*/
|
|
802
|
-
declare function usePollAllProposals(args: UsePollAllProposalsArgs, options?: DefaultHookOptions & {
|
|
803
|
-
autoRefresh?: boolean;
|
|
804
|
-
}): ProposalResult;
|
|
805
|
-
|
|
806
|
-
interface UsePollProposalResponse extends DefaultHookReturnType<ProposalWithVotesFragment> {
|
|
807
|
-
}
|
|
808
|
-
/**
|
|
809
|
-
* Polls a proposal and returns the proposal details.
|
|
810
|
-
* Pulls data from the subgraph and onchain.
|
|
811
|
-
*
|
|
812
|
-
* @param proposalId - The ID of the proposal to poll
|
|
813
|
-
* @param options - Optional configuration options
|
|
814
|
-
* @param options.autoRefresh - If true, the data will be refreshed automatically based on the block number and status threshold
|
|
815
|
-
* @returns {UsePollProposalResponse} Object containing:
|
|
816
|
-
* - data: ProposalWithVotesFragment | undefined - The proposal data if successful
|
|
817
|
-
* - error: Error | undefined - Error object if request failed
|
|
818
|
-
* - isLoading: boolean - True while data is being fetched
|
|
819
|
-
* - isValidating: boolean - True while data is being revalidated
|
|
820
|
-
* - mutate: () => Promise<ProposalWithVotesFragment | undefined> - Function to manually refresh the data
|
|
821
|
-
* - refresh: () => Promise<void> - Function to manually refresh the data
|
|
822
|
-
*/
|
|
823
|
-
declare const usePollProposal: (proposalId: string, options?: DefaultHookOptions & {
|
|
824
|
-
autoRefresh?: boolean;
|
|
825
|
-
}) => UsePollProposalResponse;
|
|
826
|
-
|
|
827
|
-
declare const usePollProposalThreshold: (governorAddress: Address) => DefaultHookReturnType<{
|
|
828
|
-
votesThreshold: string;
|
|
829
|
-
}>;
|
|
830
|
-
|
|
831
|
-
type UsePollProposalVotesArgs = Omit<GetProposalVotesQueryVariables, "offset" | "limit">;
|
|
832
|
-
/**
|
|
833
|
-
* Fetches all the votes for a proposal from the Subgraph
|
|
834
|
-
* @param args - The arguments to pass to the query
|
|
835
|
-
* @param total - The total amount of pages of votes to fetch
|
|
836
|
-
*/
|
|
837
|
-
declare const usePollProposalVotes: (args: UsePollProposalVotesArgs, total: number) => swr_infinite.SWRInfiniteResponse<{
|
|
838
|
-
data: _berachain_graphql_governance.GetProposalVotesQuery;
|
|
839
|
-
}, any>;
|
|
840
|
-
declare const usePollProposalVotesQueryKey: ({ ...args }: UsePollProposalVotesArgs, total: number) => SWRInfiniteKeyLoader;
|
|
841
|
-
|
|
842
|
-
declare const usePollUserDelegates: (options?: DefaultHookOptions) => DefaultHookReturnType<{
|
|
843
|
-
delegate: Address;
|
|
844
|
-
currentVotes: string | undefined;
|
|
845
|
-
}>;
|
|
846
|
-
|
|
847
|
-
declare const useProposalFromTx: (txHash?: Address) => SWRResponse<ProposalWithVotesFragment | null>;
|
|
848
|
-
|
|
849
|
-
/**
|
|
850
|
-
* Timepoint used to retrieve user’s votes and quorum. If using block
|
|
851
|
-
* number (as per Compound’s Comp), the snapshot is performed at
|
|
852
|
-
* the end of this block. Hence, voting for this proposal starts at the beginning of the following block.
|
|
853
|
-
*
|
|
854
|
-
* {@link https://docs.openzeppelin.com/contracts/5.x/api/governance#IGovernor-proposalSnapshot-uint256-}
|
|
855
|
-
*/
|
|
856
|
-
declare const useProposalSnapshot: ({ proposalId, }: {
|
|
857
|
-
proposalId: number | bigint | string | undefined;
|
|
858
|
-
}) => SWRResponse<string>;
|
|
859
|
-
|
|
860
|
-
declare const useProposalState: ({ proposalId, governorAddress, }: {
|
|
861
|
-
proposalId: number | bigint | string | undefined;
|
|
862
|
-
governorAddress: Address;
|
|
863
|
-
}) => SWRResponse<string>;
|
|
864
|
-
|
|
865
|
-
declare const TimelockOperationState: {
|
|
866
|
-
readonly 0: "unset";
|
|
867
|
-
readonly 1: "waiting";
|
|
868
|
-
readonly 2: "ready";
|
|
869
|
-
readonly 3: "done";
|
|
870
|
-
};
|
|
871
|
-
/**
|
|
872
|
-
* Fetches the state of a proposal timelock
|
|
873
|
-
* @returns state of the proposal timelock (unset, waiting, ready, done)
|
|
874
|
-
*/
|
|
875
|
-
declare function useProposalTimelockState({ proposalTimelockId, timelockAddress, }: {
|
|
876
|
-
proposalTimelockId: Address | undefined;
|
|
877
|
-
timelockAddress: Address;
|
|
878
|
-
}): SWRResponse<(typeof TimelockOperationState)[keyof typeof TimelockOperationState]>;
|
|
879
|
-
|
|
880
|
-
/**
|
|
881
|
-
* Queries the quorum for a given timestamp.
|
|
882
|
-
*
|
|
883
|
-
* @returns current quorum if timestamp is in the future.
|
|
884
|
-
*/
|
|
885
|
-
declare function useQuorum({ at }: {
|
|
886
|
-
at: number | string;
|
|
887
|
-
}, { isEnabled, }: {
|
|
888
|
-
isEnabled?: boolean;
|
|
889
|
-
}): {
|
|
890
|
-
data: number | undefined;
|
|
891
|
-
error: any;
|
|
892
|
-
mutate: swr.KeyedMutator<string>;
|
|
893
|
-
isValidating: boolean;
|
|
894
|
-
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
895
|
-
};
|
|
896
|
-
|
|
897
737
|
interface UseCappedGloballyResponse extends DefaultHookReturnType<boolean | undefined> {
|
|
898
738
|
}
|
|
899
739
|
declare const useCappedGlobally: ({ asset, amount, isMint, isBasketModeEnabled, }: {
|
|
@@ -922,7 +762,7 @@ declare function useHoney24hVolume(): {
|
|
|
922
762
|
refresh: () => Promise<BigNumber | undefined>;
|
|
923
763
|
data: BigNumber | undefined;
|
|
924
764
|
error: any;
|
|
925
|
-
mutate: swr.KeyedMutator<BigNumber>;
|
|
765
|
+
mutate: swr.KeyedMutator<BigNumber | undefined>;
|
|
926
766
|
isValidating: boolean;
|
|
927
767
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
928
768
|
};
|
|
@@ -1042,6 +882,16 @@ declare const usePythUpdateFee: ({ pythPriceFeedCalldata, tokenListLength, }: {
|
|
|
1042
882
|
isLoading: boolean;
|
|
1043
883
|
};
|
|
1044
884
|
|
|
885
|
+
interface UseAutoclaimedIncentivesArgs {
|
|
886
|
+
enabled: boolean;
|
|
887
|
+
}
|
|
888
|
+
declare function useAutoclaimedIncentives({ enabled, }: UseAutoclaimedIncentivesArgs): DefaultHookReturnType<AutoclaimedIncentivesResponse | null>;
|
|
889
|
+
|
|
890
|
+
interface UseAutoclaimedIncentivesTxHashArgs {
|
|
891
|
+
enabled: boolean;
|
|
892
|
+
}
|
|
893
|
+
declare function useAutoclaimedIncentivesTxHash({ enabled, }: UseAutoclaimedIncentivesTxHashArgs): DefaultHookReturnType<AutoclaimedIncentivesTxHashResponse | null>;
|
|
894
|
+
|
|
1045
895
|
declare function useBgtAprSimulation(args: GetBgtAprSimulationArgs | undefined): GetBgtAprSimulationResult
|
|
1046
896
|
/**
|
|
1047
897
|
* Returns undefined if still loading
|
|
@@ -1220,7 +1070,7 @@ declare const useRewardVaults: (args: {
|
|
|
1220
1070
|
};
|
|
1221
1071
|
|
|
1222
1072
|
type UseStakedAPR = {
|
|
1223
|
-
|
|
1073
|
+
timestamp: number;
|
|
1224
1074
|
apr: string;
|
|
1225
1075
|
}[];
|
|
1226
1076
|
declare function useStakedAPR({ range, }: {
|
|
@@ -1251,10 +1101,7 @@ declare const useStakedData: (stakingConfigs: StakingConfig[]) => {
|
|
|
1251
1101
|
isValidatingPositions: boolean;
|
|
1252
1102
|
};
|
|
1253
1103
|
|
|
1254
|
-
type UseStakedBeraSnapshot = Record<Address,
|
|
1255
|
-
_timestamp: number;
|
|
1256
|
-
total_assets: string;
|
|
1257
|
-
}[]>;
|
|
1104
|
+
type UseStakedBeraSnapshot = Record<Address, VaultStatsByDayResponse>;
|
|
1258
1105
|
declare function useStakedSnapshots({ range, addresses, }: {
|
|
1259
1106
|
addresses: Address[];
|
|
1260
1107
|
range: 30 | 60 | 90;
|
|
@@ -1596,12 +1443,11 @@ declare function useValidator({ pubkey }: {
|
|
|
1596
1443
|
dynamicData: {
|
|
1597
1444
|
activeBoostAmount: string;
|
|
1598
1445
|
queuedBoostAmount: string;
|
|
1599
|
-
|
|
1600
|
-
usersQueuedBoostCount: number;
|
|
1601
|
-
allTimeDistributedBGTAmount: string;
|
|
1446
|
+
allTimeDistributedRewards: string;
|
|
1602
1447
|
rewardRate: string;
|
|
1603
1448
|
stakedBeraAmount: string;
|
|
1604
|
-
|
|
1449
|
+
lastDayDistributedRewards: string;
|
|
1450
|
+
lastDayProposedBlockCount: number;
|
|
1605
1451
|
activeBoostAmountRank: number;
|
|
1606
1452
|
boostApr: GqlValidatorDynamicData["boostApr"];
|
|
1607
1453
|
commissionOnIncentives: number;
|
|
@@ -1629,10 +1475,10 @@ declare function useValidator({ pubkey }: {
|
|
|
1629
1475
|
address: `0x${string}`;
|
|
1630
1476
|
dynamicData?: {
|
|
1631
1477
|
__typename?: "GqlRewardVaultDynamicData";
|
|
1632
|
-
|
|
1478
|
+
allTimeRewards: string;
|
|
1633
1479
|
apr?: number | null;
|
|
1634
|
-
|
|
1635
|
-
|
|
1480
|
+
rewardCapturePercentage: number;
|
|
1481
|
+
rewardCapturePerBlock: number;
|
|
1636
1482
|
activeIncentivesValueUsd: string;
|
|
1637
1483
|
activeIncentivesRateUsd: string;
|
|
1638
1484
|
tvl?: number | null;
|
|
@@ -1701,6 +1547,17 @@ declare const useValidatorEstimatedBgtPerYear: (validator: ApiValidatorMinimalFr
|
|
|
1701
1547
|
isLoading: boolean;
|
|
1702
1548
|
};
|
|
1703
1549
|
|
|
1550
|
+
/**
|
|
1551
|
+
* Historical per-validator incentive distribution. Split from
|
|
1552
|
+
* `useValidatorAnalytics` so the IncentivesEarned chart can switch data
|
|
1553
|
+
* sources independently of the other charts that still consume the umbrella
|
|
1554
|
+
* `GetValidatorAnalytics` query.
|
|
1555
|
+
*/
|
|
1556
|
+
declare function useValidatorIncentiveDistribution({ pubkey, dayRange, }: {
|
|
1557
|
+
pubkey: Address | undefined;
|
|
1558
|
+
dayRange: number;
|
|
1559
|
+
}): DefaultHookReturnType<GetValidatorIncentiveDistributionQuery>;
|
|
1560
|
+
|
|
1704
1561
|
declare function useValidatorQueuedCommission(pubKey: Address, options?: DefaultHookOptions): DefaultHookReturnType<ValidatorQueuedCommission | undefined | null>;
|
|
1705
1562
|
|
|
1706
1563
|
declare const useValidatorQueuedOperatorAddress: (pubKey: Address, options?: DefaultHookOptions) => DefaultHookReturnType<ValidatorQueuedOperatorAddress | undefined>;
|
|
@@ -1731,4 +1588,4 @@ declare function useValidatorRewardAllocation(pubKey: Address, options?: Default
|
|
|
1731
1588
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1732
1589
|
};
|
|
1733
1590
|
|
|
1734
|
-
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
|
|
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 };
|