@berachain/berajs 0.2.2 → 0.2.3
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/actions/exports.d.cts +3 -3
- package/dist/actions/exports.d.ts +3 -3
- package/dist/{getValidatorQueuedOperatorAddress-Dstyaomr.d.cts → getValidatorQueuedOperatorAddress-D_LEt3vv.d.cts} +1 -1
- package/dist/{getValidatorQueuedOperatorAddress-RW4OMcD1.d.ts → getValidatorQueuedOperatorAddress-NrjpnEn8.d.ts} +1 -1
- package/dist/{global.d-CN6l2b9E.d.cts → global.d-DLRtrPG5.d.cts} +1 -0
- package/dist/{global.d-wYu8G8IQ.d.ts → global.d-X3cqpCEB.d.ts} +1 -0
- package/dist/hooks/exports.cjs +3 -3
- package/dist/hooks/exports.cjs.map +1 -1
- package/dist/hooks/exports.d.cts +26 -4
- package/dist/hooks/exports.d.ts +26 -4
- package/dist/hooks/exports.mjs +3 -3
- package/dist/hooks/exports.mjs.map +1 -1
- package/dist/types/exports.d.cts +1 -1
- package/dist/types/exports.d.ts +1 -1
- package/package.json +3 -3
- package/src/hooks/pol/useStakedData.ts +169 -92
- package/src/types/pol.d.ts +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as ValidatorRewardAllocation } from '../getValidatorQueuedOperatorAddress-
|
|
2
|
-
export { B as BaseAggregator, f as GetBgtAprSimulationArgs, h as GetBgtAprSimulationResult, G as GetConvertToAssetsProps, s as GetGaugeData, c as GetHoneyVaultsBalanceResponse, m as GetMarkets, q as GetRewardVaultRewardsReturn, x as GetUserVaultsResponse, z as GetVaultHistoryArgs, k as GlobalData, I as IsBadCollateralArgs, e as IsBadCollateralResponse, O as OnChainPool, P as PoolStatus, p as RewardVaultDistributionMode, R as RewardVaultIncentive, S as StakedBeraWithdrawal, E as UserBoostsOnValidator, H as UserStakingPoolPosition, U as UserVault, K as ValidatorQueuedCommission, M as ValidatorQueuedOperatorAddress, Q as ValidatorRewardAllocationRaw, T as ValidatorRewardAllocationUpdate, W as ValidatorRewardAllocationUpdateWithExpiration, C as ValidatorWithUserBoost, u as VaultMetadata, X as formatValidatorRewardAllocation, j as getBgtAprSimulation, g as getConvertToAssets, l as getGlobalData, d as getHoneyVaultsBalance, n as getMarkets, a as getOnChainPool, b as getPoolPausedState, o as getRewardVaultIncentives, r as getRewardVaultRewards, t as getRewardVaults, v as getSWBeraVaultMetadata, w as getSWBeraWithdrawal, D as getUserActiveValidators, F as getUserBoostsOnValidator, J as getUserStakingPositions, y as getUserVaults, L as getValidatorQueuedCommission, N as getValidatorQueuedOperatorAddress, Z as getValidatorRewardAllocation, A as getVaultHistory, i as isBadCollateralAsset, Y as isSameRewardAllocation } from '../getValidatorQueuedOperatorAddress-
|
|
1
|
+
import { V as ValidatorRewardAllocation } from '../getValidatorQueuedOperatorAddress-D_LEt3vv.cjs';
|
|
2
|
+
export { B as BaseAggregator, f as GetBgtAprSimulationArgs, h as GetBgtAprSimulationResult, G as GetConvertToAssetsProps, s as GetGaugeData, c as GetHoneyVaultsBalanceResponse, m as GetMarkets, q as GetRewardVaultRewardsReturn, x as GetUserVaultsResponse, z as GetVaultHistoryArgs, k as GlobalData, I as IsBadCollateralArgs, e as IsBadCollateralResponse, O as OnChainPool, P as PoolStatus, p as RewardVaultDistributionMode, R as RewardVaultIncentive, S as StakedBeraWithdrawal, E as UserBoostsOnValidator, H as UserStakingPoolPosition, U as UserVault, K as ValidatorQueuedCommission, M as ValidatorQueuedOperatorAddress, Q as ValidatorRewardAllocationRaw, T as ValidatorRewardAllocationUpdate, W as ValidatorRewardAllocationUpdateWithExpiration, C as ValidatorWithUserBoost, u as VaultMetadata, X as formatValidatorRewardAllocation, j as getBgtAprSimulation, g as getConvertToAssets, l as getGlobalData, d as getHoneyVaultsBalance, n as getMarkets, a as getOnChainPool, b as getPoolPausedState, o as getRewardVaultIncentives, r as getRewardVaultRewards, t as getRewardVaults, v as getSWBeraVaultMetadata, w as getSWBeraWithdrawal, D as getUserActiveValidators, F as getUserBoostsOnValidator, J as getUserStakingPositions, y as getUserVaults, L as getValidatorQueuedCommission, N as getValidatorQueuedOperatorAddress, Z as getValidatorRewardAllocation, A as getVaultHistory, i as isBadCollateralAsset, Y as isSameRewardAllocation } from '../getValidatorQueuedOperatorAddress-D_LEt3vv.cjs';
|
|
3
3
|
import { Address, PublicClient, AbiParameter, AbiFunction, TransactionReceipt, Abi, ContractFunctionArgs, ContractFunctionName, WalletCallReceipt } from 'viem';
|
|
4
4
|
import { ApolloClient, OperationVariables, FetchPolicy } from '@apollo/client';
|
|
5
5
|
export { gql } from '@apollo/client';
|
|
@@ -11,7 +11,7 @@ import { GetPoolsQueryVariables, GetGlobalLiquidityAndSwapVolumeQuery, GetPoolEv
|
|
|
11
11
|
import { GqlPoolEventType, GqlChain as GqlChain$1, ApiVaultFragment, GqlVaultSnapshotDataRange, GetSWberaVaultSnapshotsQuery, ApiValidatorFragment, GetValidatorsQueryVariables, GetValidatorsQuery, ApiRewardAllocationWeightFragment, GetValidatorQuery, ApiValidatorMinimalFragment } from '@berachain/graphql/pol/api';
|
|
12
12
|
import { a as ProposalErrorCodes, P as ProposalState } from '../txnEnum-BlBYhNRl.cjs';
|
|
13
13
|
import { ProposalStatus, ProposalSelectionFragment, Proposal_Filter, Proposal_OrderBy, OrderDirection, ProposalWithVotesFragment, GetProposalVotesQueryVariables, GetProposalVotesQuery } from '@berachain/graphql/governance';
|
|
14
|
-
import { C as CustomProposal, G as GovernanceTopic, a as CustomProposalErrors, S as StakingConfig, B as BribeBoostRewardProof, b as BribeBoostRewardItem, U as UserVaultInfo, I as IContractWrite } from '../global.d-
|
|
14
|
+
import { C as CustomProposal, G as GovernanceTopic, a as CustomProposalErrors, S as StakingConfig, B as BribeBoostRewardProof, b as BribeBoostRewardItem, U as UserVaultInfo, I as IContractWrite } from '../global.d-DLRtrPG5.cjs';
|
|
15
15
|
import graymatter from 'gray-matter';
|
|
16
16
|
import { GetChartDataQuery, GetGlobalDataQuery } from '@berachain/graphql/honey';
|
|
17
17
|
import { b as Token, P as PythLatestUpdates, a as TokenWithMetadata, T as TokenWithOrder, h as PythPriceFeedMap, i as TokenCurrentPriceMap, A as AllowanceQueryItem, j as AllowanceToken, M as MinimalERC20, B as BalanceToken } from '../HoneyConfigProvider-Ca3ouozs.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as ValidatorRewardAllocation } from '../getValidatorQueuedOperatorAddress-
|
|
2
|
-
export { B as BaseAggregator, f as GetBgtAprSimulationArgs, h as GetBgtAprSimulationResult, G as GetConvertToAssetsProps, s as GetGaugeData, c as GetHoneyVaultsBalanceResponse, m as GetMarkets, q as GetRewardVaultRewardsReturn, x as GetUserVaultsResponse, z as GetVaultHistoryArgs, k as GlobalData, I as IsBadCollateralArgs, e as IsBadCollateralResponse, O as OnChainPool, P as PoolStatus, p as RewardVaultDistributionMode, R as RewardVaultIncentive, S as StakedBeraWithdrawal, E as UserBoostsOnValidator, H as UserStakingPoolPosition, U as UserVault, K as ValidatorQueuedCommission, M as ValidatorQueuedOperatorAddress, Q as ValidatorRewardAllocationRaw, T as ValidatorRewardAllocationUpdate, W as ValidatorRewardAllocationUpdateWithExpiration, C as ValidatorWithUserBoost, u as VaultMetadata, X as formatValidatorRewardAllocation, j as getBgtAprSimulation, g as getConvertToAssets, l as getGlobalData, d as getHoneyVaultsBalance, n as getMarkets, a as getOnChainPool, b as getPoolPausedState, o as getRewardVaultIncentives, r as getRewardVaultRewards, t as getRewardVaults, v as getSWBeraVaultMetadata, w as getSWBeraWithdrawal, D as getUserActiveValidators, F as getUserBoostsOnValidator, J as getUserStakingPositions, y as getUserVaults, L as getValidatorQueuedCommission, N as getValidatorQueuedOperatorAddress, Z as getValidatorRewardAllocation, A as getVaultHistory, i as isBadCollateralAsset, Y as isSameRewardAllocation } from '../getValidatorQueuedOperatorAddress-
|
|
1
|
+
import { V as ValidatorRewardAllocation } from '../getValidatorQueuedOperatorAddress-NrjpnEn8.js';
|
|
2
|
+
export { B as BaseAggregator, f as GetBgtAprSimulationArgs, h as GetBgtAprSimulationResult, G as GetConvertToAssetsProps, s as GetGaugeData, c as GetHoneyVaultsBalanceResponse, m as GetMarkets, q as GetRewardVaultRewardsReturn, x as GetUserVaultsResponse, z as GetVaultHistoryArgs, k as GlobalData, I as IsBadCollateralArgs, e as IsBadCollateralResponse, O as OnChainPool, P as PoolStatus, p as RewardVaultDistributionMode, R as RewardVaultIncentive, S as StakedBeraWithdrawal, E as UserBoostsOnValidator, H as UserStakingPoolPosition, U as UserVault, K as ValidatorQueuedCommission, M as ValidatorQueuedOperatorAddress, Q as ValidatorRewardAllocationRaw, T as ValidatorRewardAllocationUpdate, W as ValidatorRewardAllocationUpdateWithExpiration, C as ValidatorWithUserBoost, u as VaultMetadata, X as formatValidatorRewardAllocation, j as getBgtAprSimulation, g as getConvertToAssets, l as getGlobalData, d as getHoneyVaultsBalance, n as getMarkets, a as getOnChainPool, b as getPoolPausedState, o as getRewardVaultIncentives, r as getRewardVaultRewards, t as getRewardVaults, v as getSWBeraVaultMetadata, w as getSWBeraWithdrawal, D as getUserActiveValidators, F as getUserBoostsOnValidator, J as getUserStakingPositions, y as getUserVaults, L as getValidatorQueuedCommission, N as getValidatorQueuedOperatorAddress, Z as getValidatorRewardAllocation, A as getVaultHistory, i as isBadCollateralAsset, Y as isSameRewardAllocation } from '../getValidatorQueuedOperatorAddress-NrjpnEn8.js';
|
|
3
3
|
import { Address, PublicClient, AbiParameter, AbiFunction, TransactionReceipt, Abi, ContractFunctionArgs, ContractFunctionName, WalletCallReceipt } from 'viem';
|
|
4
4
|
import { ApolloClient, OperationVariables, FetchPolicy } from '@apollo/client';
|
|
5
5
|
export { gql } from '@apollo/client';
|
|
@@ -11,7 +11,7 @@ import { GetPoolsQueryVariables, GetGlobalLiquidityAndSwapVolumeQuery, GetPoolEv
|
|
|
11
11
|
import { GqlPoolEventType, GqlChain as GqlChain$1, ApiVaultFragment, GqlVaultSnapshotDataRange, GetSWberaVaultSnapshotsQuery, ApiValidatorFragment, GetValidatorsQueryVariables, GetValidatorsQuery, ApiRewardAllocationWeightFragment, GetValidatorQuery, ApiValidatorMinimalFragment } from '@berachain/graphql/pol/api';
|
|
12
12
|
import { a as ProposalErrorCodes, P as ProposalState } from '../txnEnum-BlBYhNRl.js';
|
|
13
13
|
import { ProposalStatus, ProposalSelectionFragment, Proposal_Filter, Proposal_OrderBy, OrderDirection, ProposalWithVotesFragment, GetProposalVotesQueryVariables, GetProposalVotesQuery } from '@berachain/graphql/governance';
|
|
14
|
-
import { C as CustomProposal, G as GovernanceTopic, a as CustomProposalErrors, S as StakingConfig, B as BribeBoostRewardProof, b as BribeBoostRewardItem, U as UserVaultInfo, I as IContractWrite } from '../global.d-
|
|
14
|
+
import { C as CustomProposal, G as GovernanceTopic, a as CustomProposalErrors, S as StakingConfig, B as BribeBoostRewardProof, b as BribeBoostRewardItem, U as UserVaultInfo, I as IContractWrite } from '../global.d-X3cqpCEB.js';
|
|
15
15
|
import graymatter from 'gray-matter';
|
|
16
16
|
import { GetChartDataQuery, GetGlobalDataQuery } from '@berachain/graphql/honey';
|
|
17
17
|
import { b as Token, P as PythLatestUpdates, a as TokenWithMetadata, T as TokenWithOrder, h as PythPriceFeedMap, i as TokenCurrentPriceMap, A as AllowanceQueryItem, j as AllowanceToken, M as MinimalERC20, B as BalanceToken } from '../HoneyConfigProvider-CK6mOKFH.js';
|
|
@@ -3,7 +3,7 @@ import { BeraConfig, ChainId } from '@berachain/config/internal';
|
|
|
3
3
|
import { I as IAggregatorArgs, g as IRawAggregatorQuote, b as Token, d as HoneyConfigContextReturn, B as BalanceToken, P as PythLatestUpdates } from './HoneyConfigProvider-Ca3ouozs.cjs';
|
|
4
4
|
import { A as Aggregators } from './dex-C_BB0b0O.cjs';
|
|
5
5
|
import { GqlPoolType, GlobalDataQuery, ApiVaultFragment, GetVaultsQueryVariables, GqlChain, GetVaultHistoryQueryVariables, GetVaultHistoryQuery, ApiValidatorFragment } from '@berachain/graphql/pol/api';
|
|
6
|
-
import { P as ProtocolMetadata } from './global.d-
|
|
6
|
+
import { P as ProtocolMetadata } from './global.d-DLRtrPG5.cjs';
|
|
7
7
|
|
|
8
8
|
interface GetConvertToAssetsProps {
|
|
9
9
|
sharesAmount: bigint;
|
|
@@ -3,7 +3,7 @@ import { BeraConfig, ChainId } from '@berachain/config/internal';
|
|
|
3
3
|
import { I as IAggregatorArgs, g as IRawAggregatorQuote, b as Token, d as HoneyConfigContextReturn, B as BalanceToken, P as PythLatestUpdates } from './HoneyConfigProvider-CK6mOKFH.js';
|
|
4
4
|
import { A as Aggregators } from './dex-C_BB0b0O.js';
|
|
5
5
|
import { GqlPoolType, GlobalDataQuery, ApiVaultFragment, GetVaultsQueryVariables, GqlChain, GetVaultHistoryQueryVariables, GetVaultHistoryQuery, ApiValidatorFragment } from '@berachain/graphql/pol/api';
|
|
6
|
-
import { P as ProtocolMetadata } from './global.d-
|
|
6
|
+
import { P as ProtocolMetadata } from './global.d-X3cqpCEB.js';
|
|
7
7
|
|
|
8
8
|
interface GetConvertToAssetsProps {
|
|
9
9
|
sharesAmount: bigint;
|