@berachain/config 0.0.1-alpha.2 → 0.0.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.
- package/README.md +1 -1
- package/dist/bepolia.cjs +1 -1
- package/dist/bepolia.d.cts +19 -14
- package/dist/bepolia.d.ts +19 -14
- package/dist/bepolia.js +1 -1
- package/dist/chunk-4VDLQK6F.cjs +1 -0
- package/dist/chunk-7P77HD6A.js +1 -0
- package/dist/chunk-AEEJBUVN.cjs +1 -0
- package/dist/chunk-C6MUJXOP.cjs +1 -0
- package/dist/chunk-DHNVZCPX.js +1 -0
- package/dist/chunk-DILGFNLD.js +1 -0
- package/dist/{chunk-XZQVP4AU.cjs → chunk-FFISDQSR.cjs} +1 -1
- package/dist/{chunk-G56N5MYU.js → chunk-KWQ2WHU4.js} +1 -1
- package/dist/{chunk-4ZIGP2PE.js → chunk-L2DF5H5Q.js} +1 -1
- package/dist/chunk-LI4NSLBM.js +1 -0
- package/dist/chunk-RJW7M2BA.cjs +1 -0
- package/dist/chunk-TB4XRJLK.js +1 -0
- package/dist/chunk-TQ3O2NSK.cjs +1 -0
- package/dist/chunk-V24JGYF7.cjs +1 -0
- package/dist/{chunk-RPCNZQO2.cjs → chunk-WCV4WTHG.cjs} +1 -1
- package/dist/chunk-WOT6VMZA.js +1 -0
- package/dist/chunk-YYLX4CBV.cjs +1 -0
- package/dist/chunk-ZBFETLTJ.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +13 -10
- package/dist/index.d.ts +13 -10
- package/dist/index.js +1 -1
- package/dist/internal/edge-config/index.cjs +1 -0
- package/dist/internal/edge-config/index.d.cts +134 -0
- package/dist/internal/edge-config/index.d.ts +134 -0
- package/dist/internal/edge-config/index.js +1 -0
- package/dist/internal/flags/index.cjs +1 -0
- package/dist/internal/flags/index.d.cts +28 -0
- package/dist/internal/flags/index.d.ts +28 -0
- package/dist/internal/flags/index.js +1 -0
- package/dist/internal/header-sources.cjs +8 -8
- package/dist/internal/header-sources.d.cts +1 -0
- package/dist/internal/header-sources.d.ts +1 -0
- package/dist/internal/header-sources.js +8 -8
- package/dist/internal/index.cjs +1 -1
- package/dist/internal/index.d.cts +221 -171
- package/dist/internal/index.d.ts +221 -171
- package/dist/internal/index.js +1 -1
- package/dist/internal/maintenance.cjs +1 -1
- package/dist/internal/maintenance.js +1 -1
- package/dist/internal/nextjs/index.cjs +1 -1
- package/dist/internal/nextjs/index.js +1 -1
- package/dist/internal/sentry/esbuild.plugin.cjs +1 -1
- package/dist/internal/sentry/esbuild.plugin.js +1 -1
- package/dist/internal/sentry/index.cjs +1 -1
- package/dist/internal/sentry/index.js +1 -1
- package/dist/internal/sentry/sentry.client.config.cjs +1 -1
- package/dist/internal/sentry/sentry.client.config.js +1 -1
- package/dist/internal/tailwind/index.cjs +1 -0
- package/dist/internal/tailwind/index.d.cts +247 -0
- package/dist/internal/tailwind/index.d.ts +247 -0
- package/dist/internal/tailwind/index.js +1 -0
- package/dist/internal/tsup/index.cjs +1 -1
- package/dist/internal/tsup/index.js +1 -1
- package/dist/mainnet.cjs +1 -1
- package/dist/mainnet.d.cts +23 -20
- package/dist/mainnet.d.ts +23 -20
- package/dist/mainnet.js +1 -1
- package/dist/sentry.edge.config-HYRGDPSL.cjs +1 -0
- package/dist/sentry.edge.config-MSL7GELX.js +1 -0
- package/dist/sentry.server.config-JQJQDRDO.cjs +1 -0
- package/dist/sentry.server.config-MN4FIAPC.js +1 -0
- package/package.json +35 -5
- package/dist/chunk-5F62JDHS.js +0 -1
- package/dist/chunk-CJ6TCEOL.js +0 -1
- package/dist/chunk-GQ2VIAGM.cjs +0 -1
- package/dist/chunk-J5ZJIOVM.cjs +0 -1
- package/dist/chunk-LJRHN532.js +0 -1
- package/dist/chunk-PWMV5FZC.cjs +0 -1
- package/dist/chunk-QQWAFQ4G.js +0 -1
- package/dist/chunk-WW7TSLXR.cjs +0 -1
- package/dist/sentry.edge.config-HELM2ESO.js +0 -1
- package/dist/sentry.edge.config-PX7MX352.cjs +0 -1
- package/dist/sentry.server.config-SLGLNXCE.cjs +0 -1
- package/dist/sentry.server.config-Y6L22PFM.js +0 -1
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { ChainId } from '../../index.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
5
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
6
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
7
|
+
*/
|
|
8
|
+
type DynamicEnabled = boolean | {
|
|
9
|
+
chain?: ("mainnet" | "bepolia")[];
|
|
10
|
+
/**
|
|
11
|
+
* If set, the flag will only be enabled on the specified branch. Otherwise, it will be enabled on all branches.
|
|
12
|
+
*
|
|
13
|
+
* @minItems 1
|
|
14
|
+
*/
|
|
15
|
+
branch?: ["production" | "staging" | "preview", ...("production" | "staging" | "preview")[]];
|
|
16
|
+
condition?: "AND" | "OR";
|
|
17
|
+
[k: string]: unknown;
|
|
18
|
+
};
|
|
19
|
+
type Address = string;
|
|
20
|
+
/**
|
|
21
|
+
* Edge config schema. Please update this in the @berachain/config package first and keep it stored there.
|
|
22
|
+
*/
|
|
23
|
+
interface EdgeConfigSchema {
|
|
24
|
+
flags?: {
|
|
25
|
+
[k: string]: DynamicEnabled;
|
|
26
|
+
};
|
|
27
|
+
pol?: {
|
|
28
|
+
/**
|
|
29
|
+
* @minItems 2
|
|
30
|
+
*/
|
|
31
|
+
featured?: [VaultItem, VaultItem, ...VaultItem[]];
|
|
32
|
+
/**
|
|
33
|
+
* Vault addresses in this list won't show the stake section. This is because stake/unstake is done thought a contract that holds the whole supply.
|
|
34
|
+
*/
|
|
35
|
+
singleHolderVaults?: {
|
|
36
|
+
address: Address;
|
|
37
|
+
_name?: string;
|
|
38
|
+
}[];
|
|
39
|
+
/**
|
|
40
|
+
* The APR for the staked wBera vault. This is used to display the APR in the APR banner.
|
|
41
|
+
*/
|
|
42
|
+
swberaApr?: number;
|
|
43
|
+
/**
|
|
44
|
+
* The version of the staked wBera vault.
|
|
45
|
+
*/
|
|
46
|
+
swberaMainnetVersion?: "V1" | "V2";
|
|
47
|
+
/**
|
|
48
|
+
* the window is DAY or WEEK, its the window for calculating the APR
|
|
49
|
+
*/
|
|
50
|
+
swberaAprWindow?: "DAY" | "WEEK";
|
|
51
|
+
};
|
|
52
|
+
dex?: {
|
|
53
|
+
/**
|
|
54
|
+
* An object of aggregators and their enabled status. The key is the aggregator name in lowercase and without spaces and must be in the Aggregators enum.
|
|
55
|
+
*/
|
|
56
|
+
aggregators?: {
|
|
57
|
+
[k: string]: DynamicEnabled;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
banners?: {
|
|
61
|
+
[k: string]: BannerItem;
|
|
62
|
+
};
|
|
63
|
+
maintenance?: {
|
|
64
|
+
/**
|
|
65
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
66
|
+
* via the `patternProperty` "^(hub|honey|bridge|boyco)$".
|
|
67
|
+
*/
|
|
68
|
+
[k: string]: {
|
|
69
|
+
enabled?: DynamicEnabled;
|
|
70
|
+
[k: string]: unknown;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
interface VaultItem {
|
|
75
|
+
address: Address;
|
|
76
|
+
enabled: DynamicEnabled;
|
|
77
|
+
_name?: string;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
81
|
+
* via the `patternProperty` "^(hub|honey|bridge|boyco)$".
|
|
82
|
+
*/
|
|
83
|
+
interface BannerItem {
|
|
84
|
+
text: string;
|
|
85
|
+
className: string;
|
|
86
|
+
enabled: DynamicEnabled;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Checks if a dynamic feature flag is enabled based on the provided chain and environment.
|
|
91
|
+
*
|
|
92
|
+
* @param flag - The dynamic flag value, which can be a boolean or an object specifying conditions.
|
|
93
|
+
* @param options - Optional parameters to override the default chain and environment.
|
|
94
|
+
* @param options.chain - The chain ID to check against (defaults to current chainId).
|
|
95
|
+
* @param options.environment - The environment to check against (defaults to process.env.VERCEL_TARGET_ENV).
|
|
96
|
+
* @returns True if the flag is enabled for the given chain and environment, false otherwise.
|
|
97
|
+
*/
|
|
98
|
+
declare function isFlagEnabled(flag: DynamicEnabled, { chain, environment, }?: {
|
|
99
|
+
chain?: ChainId;
|
|
100
|
+
environment?: string;
|
|
101
|
+
}): boolean;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Safely retrieves a value from the Vercel Edge Config by key.
|
|
105
|
+
*
|
|
106
|
+
* @template T - The key of the EdgeConfigSchema to retrieve.
|
|
107
|
+
* @param flagName - The name of the config flag to retrieve.
|
|
108
|
+
* @param options - Optional parameters.
|
|
109
|
+
* @param options.chain - The chain ID to check against (not currently used).
|
|
110
|
+
* @param options.environment - The environment to check against (not currently used).
|
|
111
|
+
* @param options.onError - Optional error handler callback.
|
|
112
|
+
* @returns A promise that resolves to the value of the config flag, or undefined if retrieval fails.
|
|
113
|
+
*/
|
|
114
|
+
declare function safeGetConfig<T extends keyof EdgeConfigSchema>(flagName: T, { onError, }?: {
|
|
115
|
+
chain?: ChainId;
|
|
116
|
+
environment?: string;
|
|
117
|
+
onError?: (error: unknown) => void;
|
|
118
|
+
}): Promise<EdgeConfigSchema[T] | undefined>;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Safely retrieves all values from the Vercel Edge Config.
|
|
122
|
+
*
|
|
123
|
+
* @template T - The type of the config schema to retrieve (defaults to EdgeConfigSchema).
|
|
124
|
+
* @param options - Optional parameters.
|
|
125
|
+
* @param options.chain - The chain ID to check against (not currently used).
|
|
126
|
+
* @param options.environment - The environment to check against (not currently used).
|
|
127
|
+
* @param options.onError - Optional error handler callback.
|
|
128
|
+
* @returns A promise that resolves to the config object, or undefined if retrieval fails.
|
|
129
|
+
*/
|
|
130
|
+
declare function safeGetAll<T = EdgeConfigSchema>({ onError, }?: {
|
|
131
|
+
onError?: (error: unknown) => void;
|
|
132
|
+
}): Promise<T | undefined>;
|
|
133
|
+
|
|
134
|
+
export { type Address, type BannerItem, type DynamicEnabled, type EdgeConfigSchema, type VaultItem, isFlagEnabled, safeGetAll, safeGetConfig };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as i}from"../../chunk-DHNVZCPX.js";import"../../chunk-7P77HD6A.js";import"../../chunk-E3O7UH5M.js";import"../../chunk-WOT6VMZA.js";import{get as n}from"@vercel/edge-config";async function m(e,{onError:r}={}){try{return await n(e)}catch(o){r?.(o);return}}import{getAll as t}from"@vercel/edge-config";async function g({onError:e}={}){try{return await t()}catch(r){e?.(r);return}}export{i as isFlagEnabled,g as safeGetAll,m as safeGetConfig};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYYLX4CBVcjs = require('../../chunk-YYLX4CBV.cjs');require('../../chunk-AEEJBUVN.cjs');require('../../chunk-3IPYHDYK.cjs');var _chunk4VDLQK6Fcjs = require('../../chunk-4VDLQK6F.cjs');var r={};_chunk4VDLQK6Fcjs.a.call(void 0, r,{enableEip5792:()=>c,hideStakeForSingleHolderVaults:()=>p,isBendLive:()=>b,isDefaultStakingPoolEnabled:()=>g,isGovernanceEnabled:()=>s,isRewardAllocatorRoleActive:()=>E,isVaultChartsEnabled:()=>f,proxyAggregatorsThroughVercel:()=>u});var _next = require('flags/next');var _edgeconfig = require('@flags-sdk/edge-config');function e(){let o=_edgeconfig.edgeConfigAdapter.call(void 0, );return{...o,async decide(l){let n=await o.decide(l);return _chunkYYLX4CBVcjs.a.call(void 0, n)}}}var s=_next.flag.call(void 0, {key:"isGovernanceEnabled",description:"Enable Governance proposals",defaultValue:!0,adapter:e()}),p=_next.flag.call(void 0, {key:"hideStakeForSingleHolderVaults",description:"Hide stake for single holder vaults",defaultValue:!0,adapter:e()}),c=_next.flag.call(void 0, {key:"enableEip5792",description:"Enable EIP-5792 to allow batch transactions if wallet supports it",defaultValue:!0,adapter:e()}),u=_next.flag.call(void 0, {key:"proxyAggregatorsThroughVercel",description:"Proxy aggregators quotes through Vercel instead of proxy gateway",defaultValue:!1,adapter:e()}),g=_next.flag.call(void 0, {key:"isDefaultStakingPoolEnabled",description:"Enable default staking pools",defaultValue:!0,adapter:e()}),f=_next.flag.call(void 0, {key:"isVaultChartsEnabled",description:"Enable vault historical tvl and apr charts",defaultValue:!0,adapter:e()}),b=_next.flag.call(void 0, {key:"isBendLive",description:"Enable Bend live",defaultValue:!0,adapter:e()}),E=_next.flag.call(void 0, {key:"isRewardAllocatorRoleActive",description:"Reward Allocator role is active on BeraChef contract or not",defaultValue:!0,adapter:e()});exports.flags = r;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as flags_next from 'flags/next';
|
|
2
|
+
|
|
3
|
+
declare const isGovernanceEnabled: flags_next.Flag<boolean, any>;
|
|
4
|
+
declare const hideStakeForSingleHolderVaults: flags_next.Flag<boolean, any>;
|
|
5
|
+
/**
|
|
6
|
+
* If false, EIP-5792 will be disabled.
|
|
7
|
+
* This is useful for testing purposes.
|
|
8
|
+
*/
|
|
9
|
+
declare const enableEip5792: flags_next.Flag<boolean, any>;
|
|
10
|
+
declare const proxyAggregatorsThroughVercel: flags_next.Flag<boolean, any>;
|
|
11
|
+
declare const isDefaultStakingPoolEnabled: flags_next.Flag<boolean, any>;
|
|
12
|
+
declare const isVaultChartsEnabled: flags_next.Flag<boolean, any>;
|
|
13
|
+
declare const isBendLive: flags_next.Flag<boolean, any>;
|
|
14
|
+
declare const isRewardAllocatorRoleActive: flags_next.Flag<boolean, any>;
|
|
15
|
+
|
|
16
|
+
declare const flags_enableEip5792: typeof enableEip5792;
|
|
17
|
+
declare const flags_hideStakeForSingleHolderVaults: typeof hideStakeForSingleHolderVaults;
|
|
18
|
+
declare const flags_isBendLive: typeof isBendLive;
|
|
19
|
+
declare const flags_isDefaultStakingPoolEnabled: typeof isDefaultStakingPoolEnabled;
|
|
20
|
+
declare const flags_isGovernanceEnabled: typeof isGovernanceEnabled;
|
|
21
|
+
declare const flags_isRewardAllocatorRoleActive: typeof isRewardAllocatorRoleActive;
|
|
22
|
+
declare const flags_isVaultChartsEnabled: typeof isVaultChartsEnabled;
|
|
23
|
+
declare const flags_proxyAggregatorsThroughVercel: typeof proxyAggregatorsThroughVercel;
|
|
24
|
+
declare namespace flags {
|
|
25
|
+
export { flags_enableEip5792 as enableEip5792, flags_hideStakeForSingleHolderVaults as hideStakeForSingleHolderVaults, flags_isBendLive as isBendLive, flags_isDefaultStakingPoolEnabled as isDefaultStakingPoolEnabled, flags_isGovernanceEnabled as isGovernanceEnabled, flags_isRewardAllocatorRoleActive as isRewardAllocatorRoleActive, flags_isVaultChartsEnabled as isVaultChartsEnabled, flags_proxyAggregatorsThroughVercel as proxyAggregatorsThroughVercel };
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { flags };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as flags_next from 'flags/next';
|
|
2
|
+
|
|
3
|
+
declare const isGovernanceEnabled: flags_next.Flag<boolean, any>;
|
|
4
|
+
declare const hideStakeForSingleHolderVaults: flags_next.Flag<boolean, any>;
|
|
5
|
+
/**
|
|
6
|
+
* If false, EIP-5792 will be disabled.
|
|
7
|
+
* This is useful for testing purposes.
|
|
8
|
+
*/
|
|
9
|
+
declare const enableEip5792: flags_next.Flag<boolean, any>;
|
|
10
|
+
declare const proxyAggregatorsThroughVercel: flags_next.Flag<boolean, any>;
|
|
11
|
+
declare const isDefaultStakingPoolEnabled: flags_next.Flag<boolean, any>;
|
|
12
|
+
declare const isVaultChartsEnabled: flags_next.Flag<boolean, any>;
|
|
13
|
+
declare const isBendLive: flags_next.Flag<boolean, any>;
|
|
14
|
+
declare const isRewardAllocatorRoleActive: flags_next.Flag<boolean, any>;
|
|
15
|
+
|
|
16
|
+
declare const flags_enableEip5792: typeof enableEip5792;
|
|
17
|
+
declare const flags_hideStakeForSingleHolderVaults: typeof hideStakeForSingleHolderVaults;
|
|
18
|
+
declare const flags_isBendLive: typeof isBendLive;
|
|
19
|
+
declare const flags_isDefaultStakingPoolEnabled: typeof isDefaultStakingPoolEnabled;
|
|
20
|
+
declare const flags_isGovernanceEnabled: typeof isGovernanceEnabled;
|
|
21
|
+
declare const flags_isRewardAllocatorRoleActive: typeof isRewardAllocatorRoleActive;
|
|
22
|
+
declare const flags_isVaultChartsEnabled: typeof isVaultChartsEnabled;
|
|
23
|
+
declare const flags_proxyAggregatorsThroughVercel: typeof proxyAggregatorsThroughVercel;
|
|
24
|
+
declare namespace flags {
|
|
25
|
+
export { flags_enableEip5792 as enableEip5792, flags_hideStakeForSingleHolderVaults as hideStakeForSingleHolderVaults, flags_isBendLive as isBendLive, flags_isDefaultStakingPoolEnabled as isDefaultStakingPoolEnabled, flags_isGovernanceEnabled as isGovernanceEnabled, flags_isRewardAllocatorRoleActive as isRewardAllocatorRoleActive, flags_isVaultChartsEnabled as isVaultChartsEnabled, flags_proxyAggregatorsThroughVercel as proxyAggregatorsThroughVercel };
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { flags };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"../../chunk-DHNVZCPX.js";import"../../chunk-7P77HD6A.js";import"../../chunk-E3O7UH5M.js";import{a as i}from"../../chunk-WOT6VMZA.js";var r={};i(r,{enableEip5792:()=>c,hideStakeForSingleHolderVaults:()=>p,isBendLive:()=>b,isDefaultStakingPoolEnabled:()=>g,isGovernanceEnabled:()=>s,isRewardAllocatorRoleActive:()=>E,isVaultChartsEnabled:()=>f,proxyAggregatorsThroughVercel:()=>u});import{flag as a}from"flags/next";import{edgeConfigAdapter as d}from"@flags-sdk/edge-config";function e(){let o=d();return{...o,async decide(l){let n=await o.decide(l);return t(n)}}}var s=a({key:"isGovernanceEnabled",description:"Enable Governance proposals",defaultValue:!0,adapter:e()}),p=a({key:"hideStakeForSingleHolderVaults",description:"Hide stake for single holder vaults",defaultValue:!0,adapter:e()}),c=a({key:"enableEip5792",description:"Enable EIP-5792 to allow batch transactions if wallet supports it",defaultValue:!0,adapter:e()}),u=a({key:"proxyAggregatorsThroughVercel",description:"Proxy aggregators quotes through Vercel instead of proxy gateway",defaultValue:!1,adapter:e()}),g=a({key:"isDefaultStakingPoolEnabled",description:"Enable default staking pools",defaultValue:!0,adapter:e()}),f=a({key:"isVaultChartsEnabled",description:"Enable vault historical tvl and apr charts",defaultValue:!0,adapter:e()}),b=a({key:"isBendLive",description:"Enable Bend live",defaultValue:!0,adapter:e()}),E=a({key:"isRewardAllocatorRoleActive",description:"Reward Allocator role is active on BeraChef contract or not",defaultValue:!0,adapter:e()});export{r as flags};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkV24JGYF7cjs = require('../chunk-V24JGYF7.cjs');var _chunkRJW7M2BAcjs = require('../chunk-RJW7M2BA.cjs');require('../chunk-C6MUJXOP.cjs');require('../chunk-TQ3O2NSK.cjs');require('../chunk-AEEJBUVN.cjs');require('../chunk-3IPYHDYK.cjs');require('../chunk-4VDLQK6F.cjs');function b({isDevelopment:r,nonce:a,...e}){let i=["https://*.berachain.com/","https://*.berachain-staging.com/","wss://www.walletlink.org/rpc",`https://*.dynamicauth.com/api/v0/sdk/${_chunkV24JGYF7cjs.a.apiKeys.public.dynamicWallet}/`,`https://logs.dynamicauth.com/api/v1/${_chunkV24JGYF7cjs.a.apiKeys.public.dynamicWallet}`,"https://dynamic-static-assets.com/wallet-book/v1/stable/wallet-book.json","https://raw.githubusercontent.com/berachain/metadata/","https://*.bera-network.quiknode.pro","https://*.bepolia-network.quiknode.pro",_chunkV24JGYF7cjs.a.governance.subgraph,_chunkV24JGYF7cjs.a.honey.subgraph,_chunkV24JGYF7cjs.a.pol.subgraph,_chunkV24JGYF7cjs.a.pol.bribeBoostApi,_chunkV24JGYF7cjs.a.bex.subgraph,_chunkV24JGYF7cjs.a.api,_chunkV24JGYF7cjs.a.blocksSubgraph,_chunkRJW7M2BAcjs.c,_chunkRJW7M2BAcjs.b,_chunkRJW7M2BAcjs.d,_chunkV24JGYF7cjs.a.urls.postHogApiHost,"https://open-api.openocean.finance/","https://api.haiku.trade/","https://api.magpiefi.xyz/",`${_chunkV24JGYF7cjs.a.bex.aggregatorsProxyUrl}/`,"wss://relay.walletconnect.com/","wss://relay.walletconnect.org/","https://api.routescan.io/v2/network/","wss://metamask-sdk.api.cx.metamask.io/socket.io/","https://vercel.live","wss://ws-us3.pusher.com","https://cdn.markfi.xyz/scripts/analytics/","https://a.markfi.xyz/"].concat(_nullishCoalesce(e.connectionSources, () => ([]))).filter((s,h)=>!s||s.trim()===""?(process.env.NODE_ENV==="production"&&console.warn("One of connectionSources is empty or undefined. Idx:",h),!1):!0),p=["https://res.cloudinary.com/duv0g402y/","https://raw.githubusercontent.com/berachain/default-lists/","https://raw.githubusercontent.com/berachain/metadata/","https://assets.coingecko.com/coins/images/","https://coin-images.coingecko.com/coins/images/","https://iconic.dynamic-static-assets.com/","https://beranames-assets-berachain.s3.eu-central-003.backblazeb2.com/","https://icons.llama.fi/","https://icons.llamao.fi/","https://cdn.whisk.so/","https://cdn.morpho.org/","https://raw.githubusercontent.com/trustwallet/assets/","https://vercel.live","https://vercel.com"].concat(_nullishCoalesce(e.pictureSources, () => ([]))).filter(s=>!s||s.trim()===""?(process.env.NODE_ENV==="production"&&console.warn("One of pictureSources is empty or undefined"),!1):!0),l=["https://verify.walletconnect.com/","https://verify.walletconnect.org/","https://vercel.live/"].concat(_nullishCoalesce(e.frameSources, () => ([]))),u=["https://cdn.jsdelivr.net/npm/@fontsource/","https://vercel.live","https://assets.vercel.com"].concat(_nullishCoalesce(e.fontSources, () => ([]))),m=["https://vercel.live"].concat(_nullishCoalesce(e.styleSources, () => ([])));return`
|
|
2
2
|
default-src 'self';
|
|
3
3
|
base-uri 'self';
|
|
4
|
-
frame-src 'self' ${
|
|
4
|
+
frame-src 'self' ${l.join(" ")};
|
|
5
5
|
frame-ancestors 'self';
|
|
6
|
-
script-src 'self' 'sha256-k2HGvaYkGyYZxOwKGxgE1mr06tZEDcEXNZ5mdcldK0o=' 'nonce-${
|
|
7
|
-
font-src 'self' ${
|
|
8
|
-
style-src 'self' 'unsafe-inline';
|
|
9
|
-
img-src 'self' data: ${
|
|
10
|
-
connect-src 'self' ${
|
|
11
|
-
`.replace(/\s{2,}/g," ").trim()}exports.getContentSecurityPolicy =
|
|
6
|
+
script-src 'self' 'sha256-k2HGvaYkGyYZxOwKGxgE1mr06tZEDcEXNZ5mdcldK0o=' 'nonce-${a}' 'strict-dynamic' ${r?"'unsafe-eval'":""};
|
|
7
|
+
font-src 'self' ${u.join(" ")};
|
|
8
|
+
style-src 'self' ${m.join(" ")} 'unsafe-inline';
|
|
9
|
+
img-src 'self' data: ${p.join(" ")};
|
|
10
|
+
connect-src 'self' ${i.join(" ")};
|
|
11
|
+
`.replace(/\s{2,}/g," ").trim()}exports.getContentSecurityPolicy = b;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{a as t
|
|
1
|
+
import{a as t}from"../chunk-ZBFETLTJ.js";import{b as c,c as o,d as n}from"../chunk-TB4XRJLK.js";import"../chunk-LI4NSLBM.js";import"../chunk-DILGFNLD.js";import"../chunk-7P77HD6A.js";import"../chunk-E3O7UH5M.js";import"../chunk-WOT6VMZA.js";function b({isDevelopment:r,nonce:a,...e}){let i=["https://*.berachain.com/","https://*.berachain-staging.com/","wss://www.walletlink.org/rpc",`https://*.dynamicauth.com/api/v0/sdk/${t.apiKeys.public.dynamicWallet}/`,`https://logs.dynamicauth.com/api/v1/${t.apiKeys.public.dynamicWallet}`,"https://dynamic-static-assets.com/wallet-book/v1/stable/wallet-book.json","https://raw.githubusercontent.com/berachain/metadata/","https://*.bera-network.quiknode.pro","https://*.bepolia-network.quiknode.pro",t.governance.subgraph,t.honey.subgraph,t.pol.subgraph,t.pol.bribeBoostApi,t.bex.subgraph,t.api,t.blocksSubgraph,o,c,n,t.urls.postHogApiHost,"https://open-api.openocean.finance/","https://api.haiku.trade/","https://api.magpiefi.xyz/",`${t.bex.aggregatorsProxyUrl}/`,"wss://relay.walletconnect.com/","wss://relay.walletconnect.org/","https://api.routescan.io/v2/network/","wss://metamask-sdk.api.cx.metamask.io/socket.io/","https://vercel.live","wss://ws-us3.pusher.com","https://cdn.markfi.xyz/scripts/analytics/","https://a.markfi.xyz/"].concat(e.connectionSources??[]).filter((s,h)=>!s||s.trim()===""?(process.env.NODE_ENV==="production"&&console.warn("One of connectionSources is empty or undefined. Idx:",h),!1):!0),p=["https://res.cloudinary.com/duv0g402y/","https://raw.githubusercontent.com/berachain/default-lists/","https://raw.githubusercontent.com/berachain/metadata/","https://assets.coingecko.com/coins/images/","https://coin-images.coingecko.com/coins/images/","https://iconic.dynamic-static-assets.com/","https://beranames-assets-berachain.s3.eu-central-003.backblazeb2.com/","https://icons.llama.fi/","https://icons.llamao.fi/","https://cdn.whisk.so/","https://cdn.morpho.org/","https://raw.githubusercontent.com/trustwallet/assets/","https://vercel.live","https://vercel.com"].concat(e.pictureSources??[]).filter(s=>!s||s.trim()===""?(process.env.NODE_ENV==="production"&&console.warn("One of pictureSources is empty or undefined"),!1):!0),l=["https://verify.walletconnect.com/","https://verify.walletconnect.org/","https://vercel.live/"].concat(e.frameSources??[]),u=["https://cdn.jsdelivr.net/npm/@fontsource/","https://vercel.live","https://assets.vercel.com"].concat(e.fontSources??[]),m=["https://vercel.live"].concat(e.styleSources??[]);return`
|
|
2
2
|
default-src 'self';
|
|
3
3
|
base-uri 'self';
|
|
4
|
-
frame-src 'self' ${
|
|
4
|
+
frame-src 'self' ${l.join(" ")};
|
|
5
5
|
frame-ancestors 'self';
|
|
6
|
-
script-src 'self' 'sha256-k2HGvaYkGyYZxOwKGxgE1mr06tZEDcEXNZ5mdcldK0o=' 'nonce-${
|
|
7
|
-
font-src 'self' ${
|
|
8
|
-
style-src 'self' 'unsafe-inline';
|
|
9
|
-
img-src 'self' data: ${
|
|
10
|
-
connect-src 'self' ${
|
|
11
|
-
`.replace(/\s{2,}/g," ").trim()}export{
|
|
6
|
+
script-src 'self' 'sha256-k2HGvaYkGyYZxOwKGxgE1mr06tZEDcEXNZ5mdcldK0o=' 'nonce-${a}' 'strict-dynamic' ${r?"'unsafe-eval'":""};
|
|
7
|
+
font-src 'self' ${u.join(" ")};
|
|
8
|
+
style-src 'self' ${m.join(" ")} 'unsafe-inline';
|
|
9
|
+
img-src 'self' data: ${p.join(" ")};
|
|
10
|
+
connect-src 'self' ${i.join(" ")};
|
|
11
|
+
`.replace(/\s{2,}/g," ").trim()}export{b as getContentSecurityPolicy};
|
package/dist/internal/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 _chunkV24JGYF7cjs = require('../chunk-V24JGYF7.cjs');var _chunkRJW7M2BAcjs = require('../chunk-RJW7M2BA.cjs');require('../chunk-C6MUJXOP.cjs');require('../chunk-TQ3O2NSK.cjs');var _chunkAEEJBUVNcjs = require('../chunk-AEEJBUVN.cjs');var _chunk3IPYHDYKcjs = require('../chunk-3IPYHDYK.cjs');require('../chunk-4VDLQK6F.cjs');exports.ChainId = _chunk3IPYHDYKcjs.a; exports.alchemyJsonRpcUrl = _chunkRJW7M2BAcjs.d; exports.chainId = _chunkAEEJBUVNcjs.a; exports.config = _chunkV24JGYF7cjs.a; exports.getRpcUrls = _chunkRJW7M2BAcjs.a; exports.jsonRpcUrl = _chunkRJW7M2BAcjs.c; exports.privateRcpUrl = _chunkRJW7M2BAcjs.e; exports.publicJsonRpcUrl = _chunkRJW7M2BAcjs.b;
|