@berachain/berajs 0.1.0-alpha.0 → 0.1.0-alpha.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.
Files changed (67) hide show
  1. package/README.md +8 -0
  2. package/dist/{BeraError-CfcNTfpH.d.ts → BeraError-D1HS_rbb.d.cts} +3 -3
  3. package/dist/BeraError-D1HS_rbb.d.ts +69 -0
  4. package/dist/BexStatusProvider-nS3NcdxI.d.cts +70 -0
  5. package/dist/RequestError-D8AE6xnI.d.cts +57 -0
  6. package/dist/{RequestError-CtJLUaAc.d.ts → RequestError-m4jxyM7D.d.ts} +1 -1
  7. package/dist/abi/index.cjs +1 -0
  8. package/dist/abi/index.d.cts +26765 -0
  9. package/dist/actions/index.cjs +1 -0
  10. package/dist/actions/index.d.cts +1650 -0
  11. package/dist/actions/index.d.ts +10 -9
  12. package/dist/actions/index.mjs +1 -1
  13. package/dist/aggregatorsRouter-Cny4B_MB.d.cts +593 -0
  14. package/dist/{chunk-YKNKCICU.mjs → chunk-2422CKAT.mjs} +1 -1
  15. package/dist/{chunk-JQDPAEK2.mjs → chunk-3V2MGZRD.mjs} +1 -1
  16. package/dist/chunk-4E5JGLUM.cjs +1 -0
  17. package/dist/chunk-4GY57XKG.cjs +1 -0
  18. package/dist/{chunk-5GPS724E.mjs → chunk-ASRHUDAH.mjs} +1 -1
  19. package/dist/chunk-B47PDJZM.cjs +1 -0
  20. package/dist/{chunk-SMZ3PG6A.mjs → chunk-ELUMRVNE.mjs} +1 -1
  21. package/dist/chunk-IKAE7CQU.cjs +1 -0
  22. package/dist/{chunk-XX77QPIR.mjs → chunk-JHCSZSJS.mjs} +1 -1
  23. package/dist/chunk-K2FCHQHA.cjs +1 -0
  24. package/dist/chunk-KIA6GUIN.cjs +1 -0
  25. package/dist/chunk-LX5CM4Y6.cjs +1 -0
  26. package/dist/chunk-LZPBQLKP.mjs +3 -0
  27. package/dist/chunk-M5BKM52U.cjs +1 -0
  28. package/dist/chunk-NOV7UCGA.cjs +1 -0
  29. package/dist/{chunk-5UFI7X4U.mjs → chunk-VA37UBED.mjs} +1 -1
  30. package/dist/chunk-WDFIETJS.cjs +2 -0
  31. package/dist/chunk-WZLPSG5R.cjs +3 -0
  32. package/dist/contexts/index.cjs +1 -0
  33. package/dist/contexts/index.d.cts +81 -0
  34. package/dist/contexts/index.d.ts +4 -4
  35. package/dist/contexts/index.mjs +1 -1
  36. package/dist/defaultFlags-V-tJs2K8.d.cts +10 -0
  37. package/dist/{dex-BD7Bq3pJ.d.ts → dex-CxzGqVLe.d.ts} +1 -1
  38. package/dist/{dex-DreiokgL.d.ts → dex-jD95agMv.d.cts} +3 -3
  39. package/dist/enum/index.cjs +1 -0
  40. package/dist/enum/index.d.cts +31 -0
  41. package/dist/enum/index.d.ts +1 -1
  42. package/dist/errors/index.cjs +1 -0
  43. package/dist/errors/index.d.cts +204 -0
  44. package/dist/errors/index.d.ts +3 -3
  45. package/dist/errors/index.mjs +1 -1
  46. package/dist/{getValidatorQueuedOperatorAddress-DK2Xv19c.d.ts → getValidatorQueuedOperatorAddress-9jSXlAse.d.ts} +2 -2
  47. package/dist/{getValidatorQueuedOperatorAddress--AXNo9IY.d.ts → getValidatorQueuedOperatorAddress-BCYlvah3.d.cts} +2 -2
  48. package/dist/hooks/index.cjs +3 -0
  49. package/dist/hooks/index.d.cts +1703 -0
  50. package/dist/hooks/index.d.ts +8 -8
  51. package/dist/hooks/index.mjs +2 -2
  52. package/dist/polling-BKnyavLI.d.cts +8 -0
  53. package/dist/pythWrapper-CBjsmmsK.d.cts +1958 -0
  54. package/dist/{staking-Cggi38So.d.ts → staking-Bw46L2PT.d.ts} +1 -1
  55. package/dist/{staking-DYbVFigB.d.ts → staking-BxYDlMtj.d.cts} +1 -1
  56. package/dist/{txnEnum-BQKDfaeH.d.ts → txnEnum-Diichv9Z.d.cts} +0 -1
  57. package/dist/types/index.cjs +1 -0
  58. package/dist/types/index.d.cts +56 -0
  59. package/dist/types/index.d.ts +4 -4
  60. package/dist/{useHoneySwapState-CW49RVci.d.ts → useHoneySwapState-CD8v6y1k.d.ts} +1 -1
  61. package/dist/{useHoneySwapState-Ci8_c2bT.d.ts → useHoneySwapState-YfMSTWY3.d.cts} +1 -1
  62. package/dist/utils/index.cjs +1 -0
  63. package/dist/utils/index.d.cts +349 -0
  64. package/dist/utils/index.d.ts +5 -5
  65. package/dist/utils/index.mjs +1 -1
  66. package/package.json +20 -8
  67. package/dist/chunk-RNESAHY2.mjs +0 -3
@@ -1 +1 @@
1
- "use client";import{a as u,b as p,c as l,d as W,e as b,f as v,l as s,n as w,o as E,p as F,q as I,r as A,s as T,t as N,u as k}from"../chunk-JQDPAEK2.mjs";import"../chunk-XX77QPIR.mjs";import"../chunk-5GPS724E.mjs";import{createContext as d,useEffect as m,useMemo as c,useState as x}from"react";import B from"bignumber.js";import{useBeraAccount as R,useBeraWagmi as S}from"@berachain/wagmi/hooks";import{jsx as i}from"react/jsx-runtime";B.config({EXPONENTIAL_AT:1e9});var n=d(void 0);function X({children:e}){let[r,t]=x(!1),{walletClient:o}=S(),{wallet:a}=R();return m(()=>t(!0),[]),i(n.Provider,{value:{isReady:c(()=>!!a?.address&&r,[a?.address,r,o])},children:i(s,{children:e})})}import{useContext as g}from"react";function y(){let e=g(n);if(e===void 0)throw new Error("bera js context undefined");return e}var C=y;import{useEffect as P}from"react";import*as f from"@sentry/nextjs";import{SWRConfig as h}from"swr";import{jsx as J}from"react/jsx-runtime";function Y({fallback:e,children:r}){return P(()=>{Object.entries(e).some(([t,o])=>t?!1:(console.warn("SWRFallback",t,o),f.captureException("Empty key in SWRFallback. This will lead to wrong query returns when key is null. Should be reported to SWR."),!0))},[e]),J(h,{value:{fallback:e},children:r})}export{u as BeraFlagsProvider,n as BeraJsContext,X as BeraJsProvider,W as BexStateContext,v as BexStatusProvider,E as BlockTimeContext,F as BlockTimeProvider,I as HoneyConfigContext,A as HoneyConfigProvider,Y as SWRFallback,N as TokenContext,k as TokensProvider,l as useBeraFlag,p as useBeraFlags,C as useBeraJs,b as useBexStatus,w as useBlockTime,T as useHoneyConfig};
1
+ "use client";import{a as u,b as p,c as l,d as W,e as b,f as v,l as s,n as w,o as E,p as F,q as I,r as A,s as T,t as N,u as k}from"../chunk-3V2MGZRD.mjs";import"../chunk-JHCSZSJS.mjs";import"../chunk-ASRHUDAH.mjs";import{createContext as d,useEffect as m,useMemo as c,useState as x}from"react";import B from"bignumber.js";import{useBeraAccount as R,useBeraWagmi as S}from"@berachain/wagmi/hooks";import{jsx as i}from"react/jsx-runtime";B.config({EXPONENTIAL_AT:1e9});var n=d(void 0);function X({children:e}){let[r,t]=x(!1),{walletClient:o}=S(),{wallet:a}=R();return m(()=>t(!0),[]),i(n.Provider,{value:{isReady:c(()=>!!a?.address&&r,[a?.address,r,o])},children:i(s,{children:e})})}import{useContext as g}from"react";function y(){let e=g(n);if(e===void 0)throw new Error("bera js context undefined");return e}var C=y;import{useEffect as P}from"react";import*as f from"@sentry/nextjs";import{SWRConfig as h}from"swr";import{jsx as J}from"react/jsx-runtime";function Y({fallback:e,children:r}){return P(()=>{Object.entries(e).some(([t,o])=>t?!1:(console.warn("SWRFallback",t,o),f.captureException("Empty key in SWRFallback. This will lead to wrong query returns when key is null. Should be reported to SWR."),!0))},[e]),J(h,{value:{fallback:e},children:r})}export{u as BeraFlagsProvider,n as BeraJsContext,X as BeraJsProvider,W as BexStateContext,v as BexStatusProvider,E as BlockTimeContext,F as BlockTimeProvider,I as HoneyConfigContext,A as HoneyConfigProvider,Y as SWRFallback,N as TokenContext,k as TokensProvider,l as useBeraFlag,p as useBeraFlags,C as useBeraJs,b as useBexStatus,w as useBlockTime,T as useHoneyConfig};
@@ -0,0 +1,10 @@
1
+ import { flags } from '@berachain/config/internal/flags';
2
+
3
+ type ClientSideFlags = keyof typeof flags;
4
+ type BeraFlags = Record<Extract<ClientSideFlags, "isGovernanceEnabled" | "enableEip5792" | "proxyAggregatorsThroughVercel" | "isEmbeddedWalletsEnabled" | "enableSimulateCalls" | "isBendVaultDataHourly" | "isMultiChainZapBendEnabled" | "mockValidatorOperator" | "mockValidatorRewardAllocator" | "mockRewardDurationManager" | "mockIncentiveManager" | "isHoneyPythWrapperEnabled">, boolean | undefined>;
5
+ /**
6
+ * @private
7
+ */
8
+ declare const defaultFlags: BeraFlags;
9
+
10
+ export { type BeraFlags as B, defaultFlags as d };
@@ -8,7 +8,7 @@ import { Config, GetWalletClientReturnType } from '@wagmi/core';
8
8
  import { SWRConfiguration, SWRResponse } from 'swr';
9
9
  import { ChainId, BeraConfig } from '@berachain/config';
10
10
  import { T as TransactionActionType } from './txnEnum-Diichv9Z.js';
11
- import { B as BeraError } from './BeraError-CfcNTfpH.js';
11
+ import { B as BeraError } from './BeraError-D1HS_rbb.js';
12
12
 
13
13
  interface CollateralRates {
14
14
  mintFee: number;
@@ -1,14 +1,14 @@
1
1
  import { SwapKind } from '@berachain-foundation/berancer-sdk';
2
2
  import { Address, PublicClient, Hex, Abi, ContractFunctionName, ContractFunctionArgs, TransactionReceipt, WalletCallReceipt, Account } from 'viem';
3
- import { a as aggregatorsRouterAbi } from './aggregatorsRouter-Cny4B_MB.js';
3
+ import { a as aggregatorsRouterAbi } from './aggregatorsRouter-Cny4B_MB.cjs';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import * as react from 'react';
6
6
  import { Token as Token$1 } from '@berachain/graphql/pol/api';
7
7
  import { Config, GetWalletClientReturnType } from '@wagmi/core';
8
8
  import { SWRConfiguration, SWRResponse } from 'swr';
9
9
  import { ChainId, BeraConfig } from '@berachain/config';
10
- import { T as TransactionActionType } from './txnEnum-BQKDfaeH.js';
11
- import { B as BeraError } from './BeraError-CfcNTfpH.js';
10
+ import { T as TransactionActionType } from './txnEnum-Diichv9Z.cjs';
11
+ import { B as BeraError } from './BeraError-D1HS_rbb.cjs';
12
12
 
13
13
  interface CollateralRates {
14
14
  mintFee: number;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLX5CM4Y6cjs = require('../chunk-LX5CM4Y6.cjs');exports.DEFAULT_DEADLINE = _chunkLX5CM4Y6cjs.f; exports.DEFAULT_SLIPPAGE = _chunkLX5CM4Y6cjs.d; exports.OwnershipType = _chunkLX5CM4Y6cjs.a; exports.POLLING = _chunkLX5CM4Y6cjs.c; exports.ParameterPreset = _chunkLX5CM4Y6cjs.b; exports.SLIPPAGE_DEGEN_VALUE = _chunkLX5CM4Y6cjs.e; exports.SLIPPAGE_MODE = _chunkLX5CM4Y6cjs.g; exports.TRANSACTION_MODE = _chunkLX5CM4Y6cjs.h; exports.TransactionActionType = _chunkLX5CM4Y6cjs.i;
@@ -0,0 +1,31 @@
1
+ export { P as POLLING } from '../polling-BKnyavLI.cjs';
2
+ export { T as TransactionActionType } from '../txnEnum-Diichv9Z.cjs';
3
+
4
+ declare enum OwnershipType {
5
+ Governance = "Governance",
6
+ Fixed = "Fixed",
7
+ Custom = "Custom"
8
+ }
9
+ declare enum ParameterPreset {
10
+ USDBACKED = "USD-Backed Stablecoin",
11
+ ALGORITHMIC = "Algorithmic Stablecoin"
12
+ }
13
+
14
+ declare const DEFAULT_SLIPPAGE: 0.5;
15
+ declare const SLIPPAGE_DEGEN_VALUE: 25;
16
+ /**
17
+ * Default
18
+ */
19
+ declare const DEFAULT_DEADLINE: 60;
20
+ declare enum SLIPPAGE_MODE {
21
+ AUTO = "auto",
22
+ CUSTOM = "custom",
23
+ DEGEN = "degen"
24
+ }
25
+ declare enum TRANSACTION_MODE {
26
+ AUTO = "auto",
27
+ CUSTOM = "custom",
28
+ INFINITY = "infinity"
29
+ }
30
+
31
+ export { DEFAULT_DEADLINE, DEFAULT_SLIPPAGE, OwnershipType, ParameterPreset, SLIPPAGE_DEGEN_VALUE, SLIPPAGE_MODE, TRANSACTION_MODE };
@@ -1,5 +1,5 @@
1
1
  export { P as POLLING } from '../polling-BKnyavLI.js';
2
- export { T as TransactionActionType } from '../txnEnum-BQKDfaeH.js';
2
+ export { T as TransactionActionType } from '../txnEnum-Diichv9Z.js';
3
3
 
4
4
  declare enum OwnershipType {
5
5
  Governance = "Governance",
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkK2FCHQHAcjs = require('../chunk-K2FCHQHA.cjs');var _chunkB47PDJZMcjs = require('../chunk-B47PDJZM.cjs');var _chunk4GY57XKGcjs = require('../chunk-4GY57XKG.cjs');exports.BeraError = _chunk4GY57XKGcjs.f; exports.InvalidArgumentError = _chunk4GY57XKGcjs.g; exports.NotFoundError = _chunkK2FCHQHAcjs.f; exports.RequestError = _chunkB47PDJZMcjs.a; exports.TransactionFailedError = _chunkK2FCHQHAcjs.g; exports.assertAddress = _chunkK2FCHQHAcjs.d; exports.assertAmount = _chunkK2FCHQHAcjs.e; exports.assertDefined = _chunkK2FCHQHAcjs.b; exports.assertPublicClient = _chunkK2FCHQHAcjs.c; exports.getErrorMessage = _chunk4GY57XKGcjs.b; exports.initBeraError = _chunkK2FCHQHAcjs.a;
@@ -0,0 +1,204 @@
1
+ import { PublicClient, Address, TransactionReceipt } from 'viem';
2
+ import { I as IBeraErrorArgs, B as BeraError } from '../BeraError-D1HS_rbb.cjs';
3
+ export { R as RequestError } from '../RequestError-D8AE6xnI.cjs';
4
+ import { Hex } from '@berachain-foundation/berancer-sdk';
5
+ import '@sentry/nextjs';
6
+ import '@apollo/client';
7
+
8
+ /**
9
+ * Asserts that a value is defined.
10
+ * @throws An InvalidArgumentError if the value is undefined or null.
11
+ */
12
+ declare function assertDefined<T>(
13
+ /**
14
+ * The value to assert.
15
+ */
16
+ value: T,
17
+ /**
18
+ * The property name.
19
+ */
20
+ property: string): asserts value is NonNullable<T>;
21
+ /**
22
+ * Asserts that a value is a PublicClient.
23
+ * @throws An InvalidArgumentError if the value is undefined or not a PublicClient.
24
+ */
25
+ declare function assertPublicClient(
26
+ /**
27
+ * The value to assert.
28
+ */
29
+ value: PublicClient | undefined,
30
+ /**
31
+ * The property name.
32
+ */
33
+ property?: string): asserts value is PublicClient;
34
+ /**
35
+ * Asserts that a value is an address (20 bytes).
36
+ * @throws An InvalidArgumentError if the value is undefined, null, not a string, or not an address.
37
+ */
38
+ declare function assertAddress(
39
+ /**
40
+ * The value to assert.
41
+ */
42
+ value: unknown,
43
+ /**
44
+ * The property name.
45
+ */
46
+ property: string): asserts value is Address;
47
+ /**
48
+ * Asserts that a value is a number greater than 0.
49
+ * @throws An InvalidArgumentError if the value is undefined, null, not a string or number, or not a number greater than 0.
50
+ */
51
+ declare function assertAmount(
52
+ /**
53
+ * The value to assert.
54
+ */
55
+ value: unknown,
56
+ /**
57
+ * The property name.
58
+ */
59
+ property: string): asserts value is string | number;
60
+
61
+ declare function getErrorMessage({ reason, message, }: {
62
+ reason?: string | null;
63
+ message?: string;
64
+ }): string;
65
+
66
+ interface IInvalidArgumentErrorArgs extends IBeraErrorArgs {
67
+ /**
68
+ * The name of the argument that is invalid.
69
+ */
70
+ property: string;
71
+ /**
72
+ * The value of the argument that is invalid.
73
+ */
74
+ value: unknown;
75
+ /**
76
+ * The expected type of the value as a string, eg. string, number, boolean, etc.
77
+ */
78
+ expected: string;
79
+ }
80
+ /**
81
+ * Error thrown when argument validation fails. (e.g. an argument is missing or invalid)
82
+ *
83
+ * Default level is "warning".
84
+ *
85
+ * @example ```ts
86
+ * if (!publicClient) {
87
+ * throw new InvalidArgumentError({
88
+ * property: "publicClient",
89
+ * value: publicClient,
90
+ * expected: "PublicClient",
91
+ * });
92
+ * }
93
+ * if (!address || !isAddress(address)) {
94
+ * throw new InvalidArgumentError({
95
+ * property: "address",
96
+ * value: address,
97
+ * expected: "Address",
98
+ * });
99
+ * }
100
+ * ```
101
+ *
102
+ */
103
+ declare class InvalidArgumentError extends BeraError {
104
+ /**
105
+ * The name of the argument that is invalid.
106
+ */
107
+ property: string;
108
+ /**
109
+ * The value of the argument that is invalid.
110
+ */
111
+ value: unknown;
112
+ /**
113
+ * The expected value of the argument.
114
+ */
115
+ expected: string;
116
+ constructor(args: IInvalidArgumentErrorArgs);
117
+ get isMissing(): boolean;
118
+ /**
119
+ * Whether the argument is defined but invalid.
120
+ */
121
+ get isInvalid(): boolean;
122
+ }
123
+
124
+ /**
125
+ * Initialize a BeraError from an error.
126
+ *
127
+ * If the error is already a BeraError, it will be returned as is.
128
+ * Otherwise, a new BeraError will be created with the error as the cause.
129
+ */
130
+ declare function initBeraError({ cause: error }: {
131
+ cause: unknown;
132
+ }): BeraError;
133
+
134
+ interface INotFoundErrorArgs extends IBeraErrorArgs {
135
+ resource: string;
136
+ id: string;
137
+ chainId: number;
138
+ }
139
+ /**
140
+ * Error thrown when a resource is not found.
141
+ */
142
+ declare class NotFoundError extends BeraError {
143
+ /**
144
+ * The name of the resource that was not found.
145
+ *
146
+ * @example "Reward vault"
147
+ */
148
+ resource: string;
149
+ /**
150
+ * The id of the resource that was not found.
151
+ *
152
+ * @example "0x1234567890123456789012345678901234567890"
153
+ */
154
+ id: string;
155
+ constructor(args: INotFoundErrorArgs);
156
+ }
157
+
158
+ /**
159
+ * This error is generally thrown by beraWriteContract when a transaction or simulation fails.
160
+ */
161
+ declare class TransactionFailedError extends BeraError {
162
+ /**
163
+ * The hash of the transaction that failed.
164
+ *
165
+ * Null if the error is due to a simulation failure.
166
+ */
167
+ txHash: string | null;
168
+ /**
169
+ * The receipt of the transaction that failed.
170
+ *
171
+ * Null if the error is due to a simulation failure.
172
+ */
173
+ receipt: TransactionReceipt | null;
174
+ /**
175
+ * The address of the contract that was called.
176
+ */
177
+ to: Address | undefined;
178
+ /**
179
+ * The data of the transaction that failed.
180
+ */
181
+ callData: Hex | undefined;
182
+ /**
183
+ * The block number of the transaction that failed.
184
+ */
185
+ blockNumber: bigint | null;
186
+ /**
187
+ * The input of the transaction that failed.
188
+ */
189
+ input: object;
190
+ /**
191
+ * The function name of the transaction that failed.
192
+ */
193
+ functionName: string | undefined;
194
+ constructor(args: IBeraErrorArgs & {
195
+ txHash?: string;
196
+ receipt?: TransactionReceipt;
197
+ to?: Address;
198
+ blockNumber?: bigint;
199
+ functionName?: string;
200
+ input: object;
201
+ });
202
+ }
203
+
204
+ export { BeraError, IBeraErrorArgs, type IInvalidArgumentErrorArgs, type INotFoundErrorArgs, InvalidArgumentError, NotFoundError, TransactionFailedError, assertAddress, assertAmount, assertDefined, assertPublicClient, getErrorMessage, initBeraError };
@@ -1,6 +1,6 @@
1
1
  import { PublicClient, Address, TransactionReceipt } from 'viem';
2
- import { I as IBeraErrorArgs, B as BeraError } from '../BeraError-CfcNTfpH.js';
3
- export { R as RequestError } from '../RequestError-CtJLUaAc.js';
2
+ import { I as IBeraErrorArgs, B as BeraError } from '../BeraError-D1HS_rbb.js';
3
+ export { R as RequestError } from '../RequestError-m4jxyM7D.js';
4
4
  import { Hex } from '@berachain-foundation/berancer-sdk';
5
5
  import '@sentry/nextjs';
6
6
  import '@apollo/client';
@@ -39,7 +39,7 @@ declare function assertAddress(
39
39
  /**
40
40
  * The value to assert.
41
41
  */
42
- value: string | undefined,
42
+ value: unknown,
43
43
  /**
44
44
  * The property name.
45
45
  */
@@ -1 +1 @@
1
- import{a as e,b as f,c as g,d as h,e as i,f as j,g as k}from"../chunk-YKNKCICU.mjs";import{a as d}from"../chunk-5UFI7X4U.mjs";import{b as a,f as b,g as c}from"../chunk-5GPS724E.mjs";export{b as BeraError,c as InvalidArgumentError,j as NotFoundError,d as RequestError,k as TransactionFailedError,h as assertAddress,i as assertAmount,f as assertDefined,g as assertPublicClient,a as getErrorMessage,e as initBeraError};
1
+ import{a as e,b as f,c as g,d as h,e as i,f as j,g as k}from"../chunk-2422CKAT.mjs";import{a as d}from"../chunk-VA37UBED.mjs";import{b as a,f as b,g as c}from"../chunk-ASRHUDAH.mjs";export{b as BeraError,c as InvalidArgumentError,j as NotFoundError,d as RequestError,k as TransactionFailedError,h as assertAddress,i as assertAmount,f as assertDefined,g as assertPublicClient,a as getErrorMessage,e as initBeraError};
@@ -1,7 +1,7 @@
1
1
  import { Address, PublicClient, Hex } from 'viem';
2
2
  import { GqlPoolType, GlobalDataQuery, ApiVaultFragment, GetVaultsQueryVariables, GqlChain, GqlVaultSnapshotDataRange, GetSWberaVaultSnapshotsQuery, GetVaultHistoryQueryVariables, GetVaultHistoryQuery, ApiValidatorFragment } from '@berachain/graphql/pol/api';
3
- import { h as TokenBalance, a as Token, P as PythLatestUpdates } from './dex-DreiokgL.js';
4
- import { P as ProtocolMetadata } from './staking-Cggi38So.js';
3
+ import { h as TokenBalance, a as Token, P as PythLatestUpdates } from './dex-CxzGqVLe.js';
4
+ import { P as ProtocolMetadata } from './staking-Bw46L2PT.js';
5
5
  import { GetPublicClientReturnType } from '@wagmi/core';
6
6
 
7
7
  interface GetConvertToAssetsProps {
@@ -1,7 +1,7 @@
1
1
  import { Address, PublicClient, Hex } from 'viem';
2
2
  import { GqlPoolType, GlobalDataQuery, ApiVaultFragment, GetVaultsQueryVariables, GqlChain, GqlVaultSnapshotDataRange, GetSWberaVaultSnapshotsQuery, GetVaultHistoryQueryVariables, GetVaultHistoryQuery, ApiValidatorFragment } from '@berachain/graphql/pol/api';
3
- import { h as TokenBalance, a as Token, P as PythLatestUpdates } from './dex-BD7Bq3pJ.js';
4
- import { P as ProtocolMetadata } from './staking-DYbVFigB.js';
3
+ import { h as TokenBalance, a as Token, P as PythLatestUpdates } from './dex-jD95agMv.cjs';
4
+ import { P as ProtocolMetadata } from './staking-BxYDlMtj.cjs';
5
5
  import { GetPublicClientReturnType } from '@wagmi/core';
6
6
 
7
7
  interface GetConvertToAssetsProps {