@berachain/berajs 0.1.0-alpha.3 → 0.1.0-alpha.5
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/{dex-D9U93Ib-.d.cts → HoneyConfigProvider-B7pZiyOD.d.cts} +171 -171
- package/dist/{dex-BD7Bq3pJ.d.ts → HoneyConfigProvider-DJ5cZbB5.d.ts} +171 -171
- package/dist/actions/index.cjs +1 -1
- package/dist/actions/index.d.cts +7 -7
- package/dist/actions/index.d.ts +7 -7
- package/dist/actions/index.mjs +1 -1
- package/dist/{chunk-JQDPAEK2.mjs → chunk-5N57PBAR.mjs} +2 -2
- package/dist/chunk-7DPUKGDT.cjs +1 -0
- package/dist/{chunk-SMZ3PG6A.mjs → chunk-7SDDMT3W.mjs} +1 -1
- package/dist/{chunk-ILYYJYGV.cjs → chunk-D375ZI2L.cjs} +2 -2
- package/dist/{chunk-RNESAHY2.mjs → chunk-FAF7V4O6.mjs} +2 -2
- package/dist/chunk-HOCEXCQJ.mjs +1 -0
- package/dist/{chunk-LHFVY26H.cjs → chunk-QIWSS7FQ.cjs} +2 -2
- package/dist/{chunk-SW47CI6T.cjs → chunk-TYTNDYXV.cjs} +1 -1
- package/dist/contexts/index.cjs +1 -1
- package/dist/contexts/index.d.cts +3 -3
- package/dist/contexts/index.d.ts +3 -3
- package/dist/contexts/index.mjs +1 -1
- package/dist/{getValidatorQueuedOperatorAddress-BbyH7asf.d.cts → getValidatorQueuedOperatorAddress-C2w750UQ.d.ts} +2 -2
- package/dist/{getValidatorQueuedOperatorAddress--AXNo9IY.d.ts → getValidatorQueuedOperatorAddress-CfiY8nIA.d.cts} +2 -2
- package/dist/hooks/index.cjs +2 -2
- package/dist/hooks/index.d.cts +6 -6
- package/dist/hooks/index.d.ts +6 -6
- package/dist/hooks/index.mjs +2 -2
- package/dist/{staking-DHCsSRru.d.cts → staking-CimqAVL0.d.ts} +1 -1
- package/dist/{staking-DYbVFigB.d.ts → staking-DbIi5eSK.d.cts} +1 -1
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/dist/{useHoneySwapState-A9cyIoOS.d.cts → useHoneySwapState-BA96cjbO.d.ts} +1 -1
- package/dist/{useHoneySwapState-CW49RVci.d.ts → useHoneySwapState-BRU2LVkE.d.cts} +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.cts +4 -4
- package/dist/utils/index.d.ts +4 -4
- package/dist/utils/index.mjs +1 -1
- package/package.json +4 -4
- package/dist/chunk-XX77QPIR.mjs +0 -1
- package/dist/chunk-YKKMWJX5.cjs +0 -1
package/dist/contexts/index.mjs
CHANGED
|
@@ -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-
|
|
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-5N57PBAR.mjs";import"../chunk-HOCEXCQJ.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,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 './
|
|
4
|
-
import { P as ProtocolMetadata } from './staking-
|
|
3
|
+
import { h as TokenBalance, a as Token, P as PythLatestUpdates } from './HoneyConfigProvider-DJ5cZbB5.js';
|
|
4
|
+
import { P as ProtocolMetadata } from './staking-CimqAVL0.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 './
|
|
4
|
-
import { P as ProtocolMetadata } from './staking-
|
|
3
|
+
import { h as TokenBalance, a as Token, P as PythLatestUpdates } from './HoneyConfigProvider-B7pZiyOD.cjs';
|
|
4
|
+
import { P as ProtocolMetadata } from './staking-DbIi5eSK.cjs';
|
|
5
5
|
import { GetPublicClientReturnType } from '@wagmi/core';
|
|
6
6
|
|
|
7
7
|
interface GetConvertToAssetsProps {
|