@berachain/berajs 0.1.0-alpha.0 → 0.1.0-alpha.2

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.
Files changed (47) hide show
  1. package/dist/BeraError-CfcNTfpH.d.cts +69 -0
  2. package/dist/BexStatusProvider-nS3NcdxI.d.cts +70 -0
  3. package/dist/RequestError-BPxCeq0x.d.cts +57 -0
  4. package/dist/abi/index.cjs +1 -0
  5. package/dist/abi/index.d.cts +26765 -0
  6. package/dist/actions/index.cjs +1 -0
  7. package/dist/actions/index.d.cts +1649 -0
  8. package/dist/actions/index.d.ts +7 -7
  9. package/dist/aggregatorsRouter-Cny4B_MB.d.cts +593 -0
  10. package/dist/chunk-33CW5NUN.cjs +1 -0
  11. package/dist/chunk-6PL44I45.cjs +1 -0
  12. package/dist/chunk-IKAE7CQU.cjs +1 -0
  13. package/dist/chunk-ILYYJYGV.cjs +3 -0
  14. package/dist/chunk-KIA6GUIN.cjs +1 -0
  15. package/dist/chunk-LHFVY26H.cjs +2 -0
  16. package/dist/chunk-LX5CM4Y6.cjs +1 -0
  17. package/dist/chunk-MDA4YT6J.cjs +1 -0
  18. package/dist/chunk-NOV7UCGA.cjs +1 -0
  19. package/dist/chunk-SW47CI6T.cjs +1 -0
  20. package/dist/chunk-YKKMWJX5.cjs +1 -0
  21. package/dist/contexts/index.cjs +1 -0
  22. package/dist/contexts/index.d.cts +81 -0
  23. package/dist/contexts/index.d.ts +3 -3
  24. package/dist/defaultFlags-V-tJs2K8.d.cts +10 -0
  25. package/dist/{dex-DreiokgL.d.ts → dex-D9U93Ib-.d.cts} +3 -3
  26. package/dist/enum/index.cjs +1 -0
  27. package/dist/enum/index.d.cts +31 -0
  28. package/dist/enum/index.d.ts +1 -1
  29. package/dist/errors/index.cjs +1 -0
  30. package/dist/errors/index.d.cts +204 -0
  31. package/dist/errors/index.d.ts +1 -1
  32. package/dist/{getValidatorQueuedOperatorAddress-DK2Xv19c.d.ts → getValidatorQueuedOperatorAddress-BbyH7asf.d.cts} +2 -2
  33. package/dist/hooks/index.cjs +3 -0
  34. package/dist/hooks/index.d.cts +1703 -0
  35. package/dist/hooks/index.d.ts +7 -7
  36. package/dist/polling-BKnyavLI.d.cts +8 -0
  37. package/dist/pythWrapper-CBjsmmsK.d.cts +1958 -0
  38. package/dist/{staking-Cggi38So.d.ts → staking-DHCsSRru.d.cts} +1 -1
  39. package/dist/{txnEnum-BQKDfaeH.d.ts → txnEnum-Diichv9Z.d.cts} +0 -1
  40. package/dist/types/index.cjs +1 -0
  41. package/dist/types/index.d.cts +56 -0
  42. package/dist/types/index.d.ts +3 -3
  43. package/dist/{useHoneySwapState-Ci8_c2bT.d.ts → useHoneySwapState-A9cyIoOS.d.cts} +1 -1
  44. package/dist/utils/index.cjs +1 -0
  45. package/dist/utils/index.d.cts +349 -0
  46. package/dist/utils/index.d.ts +3 -3
  47. package/package.json +10 -4
@@ -1,8 +1,8 @@
1
1
  import * as swr from 'swr';
2
2
  import { SWRResponse } from 'swr';
3
- import { G as GetConvertToAssetsProps, O as OnChainPool, c as GetHoneyVaultsBalanceResponse, e as IsBadCollateralResponse, f as GetBgtAprSimulationArgs, h as GetBgtAprSimulationResult, k as GlobalData, m as GetMarkets, S as StakedBeraWithdrawal, R as RewardVaultIncentive, q as GetRewardVaultRewardsReturn, s as GetGaugeData, u as GetStakedBeraSnapshotsArgs, x as GetUserVaultsResponse, z as GetVaultHistoryArgs, V as ValidatorRewardAllocation, B as ValidatorWithUserBoost, D as UserBoostsOnValidator, F as UserStakingPoolPosition, J as ValidatorQueuedCommission, L as ValidatorQueuedOperatorAddress } from '../getValidatorQueuedOperatorAddress-DK2Xv19c.js';
4
- import { D as DefaultHookOptions, S as SwapReferrer, d as HoneyConfigContextReturn, I as IRawAggregatorQuote, A as Aggregators, a as Token, x as TokenInput, y as PoolCreationStep, k as TokenCurrentPriceMap, z as TokenWithAmount, E as DefaultHookReturnType, F as IUserPosition, l as AllowanceToken, G as BalanceTokenWithMetadata, B as BalanceToken, j as PythPriceFeedMap, P as PythLatestUpdates, b as TokenWithMetadata, J as TokenPriceInfo, K as IUseContractWriteArgs, U as UseContractWriteApi } from '../dex-DreiokgL.js';
5
- export { L as TxnEventKeys } from '../dex-DreiokgL.js';
3
+ import { G as GetConvertToAssetsProps, O as OnChainPool, c as GetHoneyVaultsBalanceResponse, e as IsBadCollateralResponse, f as GetBgtAprSimulationArgs, h as GetBgtAprSimulationResult, k as GlobalData, m as GetMarkets, S as StakedBeraWithdrawal, R as RewardVaultIncentive, q as GetRewardVaultRewardsReturn, s as GetGaugeData, u as GetStakedBeraSnapshotsArgs, x as GetUserVaultsResponse, z as GetVaultHistoryArgs, V as ValidatorRewardAllocation, B as ValidatorWithUserBoost, D as UserBoostsOnValidator, F as UserStakingPoolPosition, J as ValidatorQueuedCommission, L as ValidatorQueuedOperatorAddress } from '../getValidatorQueuedOperatorAddress--AXNo9IY.js';
4
+ import { D as DefaultHookOptions, S as SwapReferrer, d as HoneyConfigContextReturn, I as IRawAggregatorQuote, A as Aggregators, a as Token, x as TokenInput, y as PoolCreationStep, k as TokenCurrentPriceMap, z as TokenWithAmount, E as DefaultHookReturnType, F as IUserPosition, l as AllowanceToken, G as BalanceTokenWithMetadata, B as BalanceToken, j as PythPriceFeedMap, P as PythLatestUpdates, b as TokenWithMetadata, J as TokenPriceInfo, K as IUseContractWriteArgs, U as UseContractWriteApi } from '../dex-BD7Bq3pJ.js';
5
+ export { L as TxnEventKeys } from '../dex-BD7Bq3pJ.js';
6
6
  import { Address, Hex } from 'viem';
7
7
  import * as _berachain_graphql_dex_api from '@berachain/graphql/dex/api';
8
8
  import { GetPoolsQueryVariables, MinimalPoolFragment, GqlPoolEventType, PoolHistoricalDataFragment, GqlRewardVaultDynamicData, GqlValidatorDynamicData } from '@berachain/graphql/dex/api';
@@ -16,20 +16,20 @@ import * as _ensofinance_sdk from '@ensofinance/sdk';
16
16
  export { BundleData } from '@ensofinance/sdk';
17
17
  import * as react from 'react';
18
18
  import react__default from 'react';
19
- import { G as GovernanceTopic, c as CustomProposalErrors, C as CustomProposal, U as UserVaultInfo, B as BribeBoostRewardProof } from '../staking-Cggi38So.js';
19
+ import { G as GovernanceTopic, c as CustomProposalErrors, C as CustomProposal, U as UserVaultInfo, B as BribeBoostRewardProof } from '../staking-DYbVFigB.js';
20
20
  import * as swr_infinite from 'swr/infinite';
21
21
  import { SWRInfiniteResponse, SWRInfiniteKeyLoader } from 'swr/infinite';
22
22
  import * as _berachain_graphql_governance from '@berachain/graphql/governance';
23
23
  import { Proposal_Filter, Proposal_OrderBy, OrderDirection, ProposalStatus, ProposalSelectionFragment, ProposalWithVotesFragment, GetProposalVotesQueryVariables } from '@berachain/graphql/governance';
24
- import { I as IHoneySwapState } from '../useHoneySwapState-Ci8_c2bT.js';
25
- export { r as reducer, u as useHoneySwapState } from '../useHoneySwapState-Ci8_c2bT.js';
24
+ import { I as IHoneySwapState } from '../useHoneySwapState-CW49RVci.js';
25
+ export { r as reducer, u as useHoneySwapState } from '../useHoneySwapState-CW49RVci.js';
26
26
  import * as _berachain_graphql_honey from '@berachain/graphql/honey';
27
27
  import BigNumber from 'bignumber.js';
28
28
  import * as _berachain_graphql_pol_api from '@berachain/graphql/pol/api';
29
29
  import { GqlRewardVaultFilter, ApiVaultFragment, GetVaultsQueryVariables, GetSWberaVaultSnapshotsQuery, GetVaultHistoryQuery, ApiValidatorFragment, GetValidatorsQueryVariables, GqlChain, GetValidatorsQuery, GetValidatorQuery, ApiValidatorMinimalFragment } from '@berachain/graphql/pol/api';
30
30
  import * as react_jsx_runtime from 'react/jsx-runtime';
31
31
  import { Config } from '@wagmi/core';
32
- import { T as TransactionActionType } from '../txnEnum-BQKDfaeH.js';
32
+ import { T as TransactionActionType } from '../txnEnum-Diichv9Z.js';
33
33
  import * as _berachain_graphql_pol_subgraph from '@berachain/graphql/pol/subgraph';
34
34
  import { GetValidatorBlockStatsQuery, GetValidatorAnalyticsQuery } from '@berachain/graphql/pol/subgraph';
35
35
  import '../aggregatorsRouter-Cny4B_MB.js';
@@ -0,0 +1,8 @@
1
+ declare enum POLLING {
2
+ FAST = 10000,// 10 sec
3
+ NORMAL = 100000,// 100 sec
4
+ SLOW = 180000,// 3 min
5
+ REFRESH_BLOCK_INTERVAL = 10000
6
+ }
7
+
8
+ export { POLLING as P };