@berachain/berajs 0.1.0-alpha.6 → 0.1.0-alpha.7
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/index.cjs +1 -1
- package/dist/actions/index.d.cts +9 -8
- package/dist/actions/index.d.ts +9 -8
- package/dist/actions/index.mjs +1 -1
- package/dist/{chunk-7SDDMT3W.mjs → chunk-B4M3O4CT.mjs} +1 -1
- package/dist/{chunk-5N57PBAR.mjs → chunk-JQDPAEK2.mjs} +2 -2
- package/dist/{chunk-TYTNDYXV.cjs → chunk-KBW7JTEI.cjs} +1 -1
- package/dist/{chunk-QIWSS7FQ.cjs → chunk-LHFVY26H.cjs} +2 -2
- package/dist/{chunk-BI76GRHX.mjs → chunk-OA6KI7XK.mjs} +3 -3
- package/dist/{chunk-FVT7BKWY.cjs → chunk-SDYUAOO3.cjs} +3 -3
- package/dist/chunk-XX77QPIR.mjs +1 -0
- package/dist/chunk-YKKMWJX5.cjs +1 -0
- 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/{HoneyConfigProvider-DJ5cZbB5.d.ts → dex-BD7Bq3pJ.d.ts} +171 -171
- package/dist/{HoneyConfigProvider-B7pZiyOD.d.cts → dex-D9U93Ib-.d.cts} +171 -171
- package/dist/{getValidatorQueuedOperatorAddress-C2w750UQ.d.ts → getValidatorQueuedOperatorAddress--AXNo9IY.d.ts} +2 -2
- package/dist/{getValidatorQueuedOperatorAddress-CfiY8nIA.d.cts → getValidatorQueuedOperatorAddress-BbyH7asf.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-CimqAVL0.d.ts → staking-DHCsSRru.d.cts} +1 -1
- package/dist/{staking-DbIi5eSK.d.cts → staking-DYbVFigB.d.ts} +1 -1
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/dist/{useHoneySwapState-BA96cjbO.d.ts → useHoneySwapState-A9cyIoOS.d.cts} +1 -1
- package/dist/{useHoneySwapState-BRU2LVkE.d.cts → useHoneySwapState-CW49RVci.d.ts} +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 +11 -4
- package/dist/chunk-7DPUKGDT.cjs +0 -1
- package/dist/chunk-HOCEXCQJ.mjs +0 -1
package/dist/types/index.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { A as AggregatedTokenTotals, e as BribeBoostReward, d as BribeBoostRewardItem, B as BribeBoostRewardProof, f as BribeBoostValidatorApr, r as ClaimedIncentives, s as ClaimedIncentivesLocalState, C as CustomProposal, m as CustomProposalActionErrors, c as CustomProposalErrors, G as GovernanceTopic, I as IncentiveReward, q as IncentiveRewardChunksWithValidatorData, l as PROPOSAL_GENRE, g as Proposal, o as ProposalAction, a as ProposalErrorCodes, b as ProposalState, n as ProposalTypeEnum, i as ProposalVotes, P as ProtocolMetadata, S as SafeProposalAction, U as UserVaultInfo, p as VerifiedAbi, V as Vote, j as VoteColorMap, k as VoteEnum, h as Voter } from '../staking-
|
|
2
|
-
export { A as Aggregators, l as AllowanceToken, B as BalanceToken, G as BalanceTokenWithMetadata, O as BexStatus, R as ContractName, D as DefaultHookOptions, E as DefaultHookReturnType, V as HoneySwapAction, H as HoneySwapActions, i as IAggregatorArgs, g as IAggregatorQuote, m as IContractWrite, Q as IContractWriteFn, I as IRawAggregatorQuote, F as IUserPosition, M as MinimalERC20, y as PoolCreationStep, j as PythPriceFeedMap, S as SwapReferrer, N as SwapRequest, a as Token, h as TokenBalance, k as TokenCurrentPriceMap, x as TokenInput, J as TokenPriceInfo, z as TokenWithAmount, b as TokenWithMetadata } from '../
|
|
1
|
+
export { A as AggregatedTokenTotals, e as BribeBoostReward, d as BribeBoostRewardItem, B as BribeBoostRewardProof, f as BribeBoostValidatorApr, r as ClaimedIncentives, s as ClaimedIncentivesLocalState, C as CustomProposal, m as CustomProposalActionErrors, c as CustomProposalErrors, G as GovernanceTopic, I as IncentiveReward, q as IncentiveRewardChunksWithValidatorData, l as PROPOSAL_GENRE, g as Proposal, o as ProposalAction, a as ProposalErrorCodes, b as ProposalState, n as ProposalTypeEnum, i as ProposalVotes, P as ProtocolMetadata, S as SafeProposalAction, U as UserVaultInfo, p as VerifiedAbi, V as Vote, j as VoteColorMap, k as VoteEnum, h as Voter } from '../staking-DHCsSRru.cjs';
|
|
2
|
+
export { A as Aggregators, l as AllowanceToken, B as BalanceToken, G as BalanceTokenWithMetadata, O as BexStatus, R as ContractName, D as DefaultHookOptions, E as DefaultHookReturnType, V as HoneySwapAction, H as HoneySwapActions, i as IAggregatorArgs, g as IAggregatorQuote, m as IContractWrite, Q as IContractWriteFn, I as IRawAggregatorQuote, F as IUserPosition, M as MinimalERC20, y as PoolCreationStep, j as PythPriceFeedMap, S as SwapReferrer, N as SwapRequest, a as Token, h as TokenBalance, k as TokenCurrentPriceMap, x as TokenInput, J as TokenPriceInfo, z as TokenWithAmount, b as TokenWithMetadata } from '../dex-D9U93Ib-.cjs';
|
|
3
3
|
import { BundleData, EnsoClient } from '@ensofinance/sdk';
|
|
4
4
|
import { TransactionRequest, Address, Hex, PublicClient } from 'viem';
|
|
5
5
|
import '@berachain/graphql/governance';
|
|
6
6
|
import '@berachain/graphql/pol/api';
|
|
7
|
-
import 'react/jsx-runtime';
|
|
8
|
-
import 'react';
|
|
9
7
|
import '@berachain-foundation/berancer-sdk';
|
|
10
8
|
import '../aggregatorsRouter-Cny4B_MB.cjs';
|
|
9
|
+
import 'react/jsx-runtime';
|
|
10
|
+
import 'react';
|
|
11
11
|
import '@wagmi/core';
|
|
12
12
|
import 'swr';
|
|
13
13
|
import '@berachain/config';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { A as AggregatedTokenTotals, e as BribeBoostReward, d as BribeBoostRewardItem, B as BribeBoostRewardProof, f as BribeBoostValidatorApr, r as ClaimedIncentives, s as ClaimedIncentivesLocalState, C as CustomProposal, m as CustomProposalActionErrors, c as CustomProposalErrors, G as GovernanceTopic, I as IncentiveReward, q as IncentiveRewardChunksWithValidatorData, l as PROPOSAL_GENRE, g as Proposal, o as ProposalAction, a as ProposalErrorCodes, b as ProposalState, n as ProposalTypeEnum, i as ProposalVotes, P as ProtocolMetadata, S as SafeProposalAction, U as UserVaultInfo, p as VerifiedAbi, V as Vote, j as VoteColorMap, k as VoteEnum, h as Voter } from '../staking-
|
|
2
|
-
export { A as Aggregators, l as AllowanceToken, B as BalanceToken, G as BalanceTokenWithMetadata, O as BexStatus, R as ContractName, D as DefaultHookOptions, E as DefaultHookReturnType, V as HoneySwapAction, H as HoneySwapActions, i as IAggregatorArgs, g as IAggregatorQuote, m as IContractWrite, Q as IContractWriteFn, I as IRawAggregatorQuote, F as IUserPosition, M as MinimalERC20, y as PoolCreationStep, j as PythPriceFeedMap, S as SwapReferrer, N as SwapRequest, a as Token, h as TokenBalance, k as TokenCurrentPriceMap, x as TokenInput, J as TokenPriceInfo, z as TokenWithAmount, b as TokenWithMetadata } from '../
|
|
1
|
+
export { A as AggregatedTokenTotals, e as BribeBoostReward, d as BribeBoostRewardItem, B as BribeBoostRewardProof, f as BribeBoostValidatorApr, r as ClaimedIncentives, s as ClaimedIncentivesLocalState, C as CustomProposal, m as CustomProposalActionErrors, c as CustomProposalErrors, G as GovernanceTopic, I as IncentiveReward, q as IncentiveRewardChunksWithValidatorData, l as PROPOSAL_GENRE, g as Proposal, o as ProposalAction, a as ProposalErrorCodes, b as ProposalState, n as ProposalTypeEnum, i as ProposalVotes, P as ProtocolMetadata, S as SafeProposalAction, U as UserVaultInfo, p as VerifiedAbi, V as Vote, j as VoteColorMap, k as VoteEnum, h as Voter } from '../staking-DYbVFigB.js';
|
|
2
|
+
export { A as Aggregators, l as AllowanceToken, B as BalanceToken, G as BalanceTokenWithMetadata, O as BexStatus, R as ContractName, D as DefaultHookOptions, E as DefaultHookReturnType, V as HoneySwapAction, H as HoneySwapActions, i as IAggregatorArgs, g as IAggregatorQuote, m as IContractWrite, Q as IContractWriteFn, I as IRawAggregatorQuote, F as IUserPosition, M as MinimalERC20, y as PoolCreationStep, j as PythPriceFeedMap, S as SwapReferrer, N as SwapRequest, a as Token, h as TokenBalance, k as TokenCurrentPriceMap, x as TokenInput, J as TokenPriceInfo, z as TokenWithAmount, b as TokenWithMetadata } from '../dex-BD7Bq3pJ.js';
|
|
3
3
|
import { BundleData, EnsoClient } from '@ensofinance/sdk';
|
|
4
4
|
import { TransactionRequest, Address, Hex, PublicClient } from 'viem';
|
|
5
5
|
import '@berachain/graphql/governance';
|
|
6
6
|
import '@berachain/graphql/pol/api';
|
|
7
|
-
import 'react/jsx-runtime';
|
|
8
|
-
import 'react';
|
|
9
7
|
import '@berachain-foundation/berancer-sdk';
|
|
10
8
|
import '../aggregatorsRouter-Cny4B_MB.js';
|
|
9
|
+
import 'react/jsx-runtime';
|
|
10
|
+
import 'react';
|
|
11
11
|
import '@wagmi/core';
|
|
12
12
|
import 'swr';
|
|
13
13
|
import '@berachain/config';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { T as TokenWithOrder, H as HoneySwapActions } from './
|
|
2
|
+
import { T as TokenWithOrder, H as HoneySwapActions } from './dex-D9U93Ib-.cjs';
|
|
3
3
|
|
|
4
4
|
interface IHoneySwapState {
|
|
5
5
|
actionType: "mint" | "redeem";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { T as TokenWithOrder, H as HoneySwapActions } from './
|
|
2
|
+
import { T as TokenWithOrder, H as HoneySwapActions } from './dex-BD7Bq3pJ.js';
|
|
3
3
|
|
|
4
4
|
interface IHoneySwapState {
|
|
5
5
|
actionType: "mint" | "redeem";
|
package/dist/utils/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKBW7JTEIcjs = require('../chunk-KBW7JTEI.cjs');var _chunkYKKMWJX5cjs = require('../chunk-YKKMWJX5.cjs');require('../chunk-MDA4YT6J.cjs');require('../chunk-33CW5NUN.cjs');exports.CAP_LIMIT_BUFFER = _chunkKBW7JTEIcjs.r; exports.DEFAULT_METAMASK_GAS_LIMIT = _chunkKBW7JTEIcjs.w; exports.MAX_CUSTOM_DEADLINE = _chunkKBW7JTEIcjs.s; exports.MAX_CUSTOM_SLIPPAGE = _chunkKBW7JTEIcjs.v; exports.MIN_CUSTOM_DEADLINE = _chunkKBW7JTEIcjs.t; exports.MIN_CUSTOM_SLIPPAGE = _chunkKBW7JTEIcjs.u; exports.beraFetch = _chunkKBW7JTEIcjs.b; exports.beraFetchJson = _chunkKBW7JTEIcjs.c; exports.calculateTimestampFromDays = _chunkKBW7JTEIcjs.E; exports.days = _chunkKBW7JTEIcjs.j; exports.daysInSeconds = _chunkKBW7JTEIcjs.k; exports.defaultBeraFlags = _chunkYKKMWJX5cjs.f; exports.formatAggregatorsQuotes = _chunkKBW7JTEIcjs.z; exports.formatInputTokenValue = _chunkKBW7JTEIcjs.A; exports.formatNumber = _chunkKBW7JTEIcjs.B; exports.formatTimeLeft = _chunkKBW7JTEIcjs.G; exports.formatUnixTimestamp = _chunkKBW7JTEIcjs.F; exports.formatUsd = _chunkKBW7JTEIcjs.H; exports.getContractName = _chunkKBW7JTEIcjs.I; exports.getHoneySwapMessage = _chunkKBW7JTEIcjs.J; exports.getHoneyToken = _chunkYKKMWJX5cjs.d; exports.getPythDefaultUpdateFee = _chunkKBW7JTEIcjs.x; exports.getSafeNumber = _chunkKBW7JTEIcjs.C; exports.getServerSidePublicClient = _chunkKBW7JTEIcjs.K; exports.getTestClient = _chunkKBW7JTEIcjs.L; exports.hours = _chunkKBW7JTEIcjs.h; exports.hoursInSeconds = _chunkKBW7JTEIcjs.i; exports.internal_beraToken = _chunkYKKMWJX5cjs.b; exports.internal_wBeraToken = _chunkYKKMWJX5cjs.c; exports.isDifferenceExceedingThreshold = _chunkKBW7JTEIcjs.M; exports.isSubgraphStale = _chunkKBW7JTEIcjs.N; exports.isToken = _chunkYKKMWJX5cjs.e; exports.isValidatorProposer = _chunkKBW7JTEIcjs.S; exports.isValidatorSigner = _chunkKBW7JTEIcjs.T; exports.minutes = _chunkKBW7JTEIcjs.f; exports.minutesInSeconds = _chunkKBW7JTEIcjs.g; exports.months = _chunkKBW7JTEIcjs.n; exports.monthsInSeconds = _chunkKBW7JTEIcjs.o; exports.msToSeconds = _chunkKBW7JTEIcjs.d; exports.parseBaseArgs = _chunkYKKMWJX5cjs.a; exports.seconds = _chunkKBW7JTEIcjs.e; exports.sentryBeforeSend = _chunkKBW7JTEIcjs.O; exports.truncateDecimal = _chunkKBW7JTEIcjs.D; exports.truncateHash = _chunkKBW7JTEIcjs.R; exports.weeks = _chunkKBW7JTEIcjs.l; exports.weeksInSeconds = _chunkKBW7JTEIcjs.m; exports.wrapNativeToken = _chunkKBW7JTEIcjs.P; exports.wrapNativeTokens = _chunkKBW7JTEIcjs.Q; exports.years = _chunkKBW7JTEIcjs.p; exports.yearsInSeconds = _chunkKBW7JTEIcjs.q;
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export { d as defaultBeraFlags } from '../defaultFlags-V-tJs2K8.cjs';
|
|
2
2
|
import { R as RequestError } from '../RequestError-BPxCeq0x.cjs';
|
|
3
|
-
import { I as IRawAggregatorQuote, a as Token, g as IAggregatorQuote } from '../
|
|
3
|
+
import { I as IRawAggregatorQuote, a as Token, g as IAggregatorQuote } from '../dex-D9U93Ib-.cjs';
|
|
4
4
|
import * as viem from 'viem';
|
|
5
5
|
import { Address, PublicClient } from 'viem';
|
|
6
6
|
import * as _berachain_config_internal from '@berachain/config/internal';
|
|
7
7
|
import { ChainId, BeraConfig } from '@berachain/config/internal';
|
|
8
|
-
import { I as IHoneySwapState } from '../useHoneySwapState-
|
|
8
|
+
import { I as IHoneySwapState } from '../useHoneySwapState-A9cyIoOS.cjs';
|
|
9
9
|
import * as SentryType from '@sentry/nextjs';
|
|
10
10
|
import { GqlValidatorBlockUptimeStatus } from '@berachain/graphql/pol/api';
|
|
11
11
|
import '@berachain/config/internal/flags';
|
|
12
12
|
import '@apollo/client';
|
|
13
13
|
import '../BeraError-CfcNTfpH.cjs';
|
|
14
|
-
import 'react/jsx-runtime';
|
|
15
|
-
import 'react';
|
|
16
14
|
import '@berachain-foundation/berancer-sdk';
|
|
17
15
|
import '../aggregatorsRouter-Cny4B_MB.cjs';
|
|
16
|
+
import 'react/jsx-runtime';
|
|
17
|
+
import 'react';
|
|
18
18
|
import '@wagmi/core';
|
|
19
19
|
import 'swr';
|
|
20
20
|
import '@berachain/config';
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export { d as defaultBeraFlags } from '../defaultFlags-V-tJs2K8.js';
|
|
2
2
|
import { R as RequestError } from '../RequestError-CtJLUaAc.js';
|
|
3
|
-
import { I as IRawAggregatorQuote, a as Token, g as IAggregatorQuote } from '../
|
|
3
|
+
import { I as IRawAggregatorQuote, a as Token, g as IAggregatorQuote } from '../dex-BD7Bq3pJ.js';
|
|
4
4
|
import * as viem from 'viem';
|
|
5
5
|
import { Address, PublicClient } from 'viem';
|
|
6
6
|
import * as _berachain_config_internal from '@berachain/config/internal';
|
|
7
7
|
import { ChainId, BeraConfig } from '@berachain/config/internal';
|
|
8
|
-
import { I as IHoneySwapState } from '../useHoneySwapState-
|
|
8
|
+
import { I as IHoneySwapState } from '../useHoneySwapState-CW49RVci.js';
|
|
9
9
|
import * as SentryType from '@sentry/nextjs';
|
|
10
10
|
import { GqlValidatorBlockUptimeStatus } from '@berachain/graphql/pol/api';
|
|
11
11
|
import '@berachain/config/internal/flags';
|
|
12
12
|
import '@apollo/client';
|
|
13
13
|
import '../BeraError-CfcNTfpH.js';
|
|
14
|
-
import 'react/jsx-runtime';
|
|
15
|
-
import 'react';
|
|
16
14
|
import '@berachain-foundation/berancer-sdk';
|
|
17
15
|
import '../aggregatorsRouter-Cny4B_MB.js';
|
|
16
|
+
import 'react/jsx-runtime';
|
|
17
|
+
import 'react';
|
|
18
18
|
import '@wagmi/core';
|
|
19
19
|
import 'swr';
|
|
20
20
|
import '@berachain/config';
|
package/dist/utils/index.mjs
CHANGED
|
@@ -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,H as L,I as M,J as N,K as O,L as P,M as Q,N as R,O as S,P as T,Q as U,R as V,S as W,T as X,b
|
|
1
|
+
import{A as E,B as F,C as G,D as H,E as I,F as J,G as K,H as L,I as M,J as N,K as O,L as P,M as Q,N as R,O as S,P as T,Q as U,R as V,S as W,T as X,b,c,d as h,e as i,f as j,g as k,h as l,i as m,j as n,k as o,l as p,m as q,n as r,o as s,p as t,q as u,r as v,s as w,t as x,u as y,v as z,w as A,x as B,z as D}from"../chunk-B4M3O4CT.mjs";import{a,b as d,c as e,d as f,e as g,f as C}from"../chunk-XX77QPIR.mjs";import"../chunk-5UFI7X4U.mjs";import"../chunk-5GPS724E.mjs";export{v as CAP_LIMIT_BUFFER,A as DEFAULT_METAMASK_GAS_LIMIT,w as MAX_CUSTOM_DEADLINE,z as MAX_CUSTOM_SLIPPAGE,x as MIN_CUSTOM_DEADLINE,y as MIN_CUSTOM_SLIPPAGE,b as beraFetch,c as beraFetchJson,I as calculateTimestampFromDays,n as days,o as daysInSeconds,C as defaultBeraFlags,D as formatAggregatorsQuotes,E as formatInputTokenValue,F as formatNumber,K as formatTimeLeft,J as formatUnixTimestamp,L as formatUsd,M as getContractName,N as getHoneySwapMessage,f as getHoneyToken,B as getPythDefaultUpdateFee,G as getSafeNumber,O as getServerSidePublicClient,P as getTestClient,l as hours,m as hoursInSeconds,d as internal_beraToken,e as internal_wBeraToken,Q as isDifferenceExceedingThreshold,R as isSubgraphStale,g as isToken,W as isValidatorProposer,X as isValidatorSigner,j as minutes,k as minutesInSeconds,r as months,s as monthsInSeconds,h as msToSeconds,a as parseBaseArgs,i as seconds,S as sentryBeforeSend,H as truncateDecimal,V as truncateHash,p as weeks,q as weeksInSeconds,T as wrapNativeToken,U as wrapNativeTokens,t as years,u as yearsInSeconds};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@berachain/berajs",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.7",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
"gray-matter": "4.0.3",
|
|
21
21
|
"lodash": "4.17.21",
|
|
22
22
|
"swr": "2.3.3",
|
|
23
|
-
"viem": "2.41.2",
|
|
24
23
|
"@berachain/config": "0.0.6"
|
|
25
24
|
},
|
|
26
25
|
"devDependencies": {
|
|
@@ -30,8 +29,9 @@
|
|
|
30
29
|
"@types/react": "19.1.8",
|
|
31
30
|
"tsup": "8.4.0",
|
|
32
31
|
"typescript": "5.5.4",
|
|
32
|
+
"viem": "2.41.2",
|
|
33
33
|
"vitest": "3.2.4",
|
|
34
|
-
"@berachain/wagmi": "0.1.0-alpha.
|
|
34
|
+
"@berachain/wagmi": "0.1.0-alpha.3"
|
|
35
35
|
},
|
|
36
36
|
"exports": {
|
|
37
37
|
"./*": {
|
|
@@ -52,7 +52,14 @@
|
|
|
52
52
|
"@sentry/nextjs": "10.27.0",
|
|
53
53
|
"react": "^19.1",
|
|
54
54
|
"react-dom": "^19.1",
|
|
55
|
-
"
|
|
55
|
+
"viem": "^2.41.2",
|
|
56
|
+
"wagmi": "^2.19.5",
|
|
57
|
+
"@berachain/wagmi": "0.1.0-alpha.3"
|
|
58
|
+
},
|
|
59
|
+
"peerDependenciesMeta": {
|
|
60
|
+
"wagmi": {
|
|
61
|
+
"optional": true
|
|
62
|
+
}
|
|
56
63
|
},
|
|
57
64
|
"scripts": {
|
|
58
65
|
"build": "tsup",
|
package/dist/chunk-7DPUKGDT.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunk33CW5NUNcjs = require('./chunk-33CW5NUN.cjs');var k={isGovernanceEnabled:!0,enableEip5792:!1,proxyAggregatorsThroughVercel:!1,isEmbeddedWalletsEnabled:!0,enableSimulateCalls:!1,isBendVaultDataHourly:!0,isMultiChainZapBendEnabled:!1,mockValidatorOperator:!1,mockValidatorRewardAllocator:!1,mockRewardDurationManager:!1,mockIncentiveManager:!1,isHoneyPythWrapperEnabled:!0};var _internal = require('@berachain/config/internal');function i(o){let a=_nullishCoalesce(o.chainId, () => (_internal.defaultChainId)),e=_nullishCoalesce(o.config, () => (_internal.chainConfigs[a]));if(o.chainId&&o.chainId!==e.chainId)throw new (0, _chunk33CW5NUNcjs.g)({property:"chainId",value:a,expected:`config.chainId: ${e.chainId}`});return{config:e,chainId:e.chainId}}var _viem = require('viem');var _mainnet = require('@berachain/config/mainnet'); var _mainnet2 = _interopRequireDefault(_mainnet);var I={address:_viem.zeroAddress,decimals:18,name:"Bera",symbol:"BERA",logoURI:"https://res.cloudinary.com/duv0g402y/image/upload/v1738720154/brand/berachain-chain-logo.png.png"},R= exports.d ={address:_mainnet2.default.tokens.wbera,decimals:18,name:"WBera",symbol:"WBERA"};function C(o){let{config:a}=i(o);return{address:a.honey.token,symbol:"HONEY",name:"Honey",decimals:18}}function W(...o){let[a,e,t]=o;if(a===void 0)return!1;let n=typeof a=="string"?a:a.address;if(typeof e=="string"&&!_viem.isAddress.call(void 0, e)){if(e==="BERA")return n.toLowerCase()===_viem.zeroAddress;if(e==="WBERA")return n.toLowerCase()===_mainnet2.default.tokens.wbera;if(e==="ETH")return n.toLowerCase()===_viem.ethAddress;if(t===void 0)throw new (0, _chunk33CW5NUNcjs.g)({property:"baseArgs",value:t,expected:"BeraJS.BaseFunctionArgs",message:"baseArgs is required when compared to a known token different than BERA or WBERA"});let{config:s}=i(t),d={BGT:s.tokens.bgt,HONEY:s.honey.token,SWBERA:s.tokens.swbera,ETH:_viem.ethAddress};if(e in d)return n.toLowerCase()===d[e].toLowerCase()}let f=typeof e=="object"?e.address:e;return n.toLowerCase()===f.toLowerCase()}exports.a = k; exports.b = i; exports.c = I; exports.d = R; exports.e = C; exports.f = W;
|
package/dist/chunk-HOCEXCQJ.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as r}from"./chunk-5GPS724E.mjs";var k={isGovernanceEnabled:!0,enableEip5792:!1,proxyAggregatorsThroughVercel:!1,isEmbeddedWalletsEnabled:!0,enableSimulateCalls:!1,isBendVaultDataHourly:!0,isMultiChainZapBendEnabled:!1,mockValidatorOperator:!1,mockValidatorRewardAllocator:!1,mockRewardDurationManager:!1,mockIncentiveManager:!1,isHoneyPythWrapperEnabled:!0};import{chainConfigs as g,defaultChainId as m}from"@berachain/config/internal";function i(o){let a=o.chainId??m,e=o.config??g[a];if(o.chainId&&o.chainId!==e.chainId)throw new r({property:"chainId",value:a,expected:`config.chainId: ${e.chainId}`});return{config:e,chainId:e.chainId}}import{ethAddress as l,isAddress as u,zeroAddress as c}from"viem";import p from"@berachain/config/mainnet";var I={address:c,decimals:18,name:"Bera",symbol:"BERA",logoURI:"https://res.cloudinary.com/duv0g402y/image/upload/v1738720154/brand/berachain-chain-logo.png.png"},R={address:p.tokens.wbera,decimals:18,name:"WBera",symbol:"WBERA"};function C(o){let{config:a}=i(o);return{address:a.honey.token,symbol:"HONEY",name:"Honey",decimals:18}}function W(...o){let[a,e,t]=o;if(a===void 0)return!1;let n=typeof a=="string"?a:a.address;if(typeof e=="string"&&!u(e)){if(e==="BERA")return n.toLowerCase()===c;if(e==="WBERA")return n.toLowerCase()===p.tokens.wbera;if(e==="ETH")return n.toLowerCase()===l;if(t===void 0)throw new r({property:"baseArgs",value:t,expected:"BeraJS.BaseFunctionArgs",message:"baseArgs is required when compared to a known token different than BERA or WBERA"});let{config:s}=i(t),d={BGT:s.tokens.bgt,HONEY:s.honey.token,SWBERA:s.tokens.swbera,ETH:l};if(e in d)return n.toLowerCase()===d[e].toLowerCase()}let f=typeof e=="object"?e.address:e;return n.toLowerCase()===f.toLowerCase()}export{k as a,i as b,I as c,R as d,C as e,W as f};
|