@berachain/config 0.0.4 → 0.0.6
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/bepolia.cjs +1 -1
- package/dist/bepolia.d.cts +36 -11
- package/dist/bepolia.d.ts +36 -11
- package/dist/bepolia.mjs +1 -1
- package/dist/{chunk-5Q5FZIMO.cjs → chunk-3KQLFIHT.cjs} +1 -1
- package/dist/{chunk-ZYHYMHGN.cjs → chunk-DFPDQR4M.cjs} +1 -1
- package/dist/chunk-DL645PXT.mjs +1 -0
- package/dist/chunk-DTPRW4VP.mjs +1 -0
- package/dist/chunk-DUO7UEQD.cjs +1 -0
- package/dist/chunk-DVULZ7ID.cjs +1 -0
- package/dist/{chunk-LJCOMNTL.cjs → chunk-EJBC2CPD.cjs} +1 -1
- package/dist/chunk-FVNATITS.mjs +1 -0
- package/dist/chunk-GAUBQIRH.cjs +1 -0
- package/dist/chunk-JYSZ2GU3.cjs +1 -0
- package/dist/chunk-KB66GOT2.cjs +1 -0
- package/dist/chunk-O243TIHY.mjs +1 -0
- package/dist/{chunk-YUUHPTW6.mjs → chunk-O5LUKC6Z.mjs} +1 -1
- package/dist/chunk-PGBQCBTM.mjs +1 -0
- package/dist/{chunk-CM7FGHYU.mjs → chunk-S2A3Z34I.mjs} +1 -1
- package/dist/{chunk-CENF5RZA.mjs → chunk-TLFLY32O.mjs} +1 -1
- package/dist/chunk-V2GJ33GF.mjs +1 -0
- package/dist/chunk-ZJDKWYPH.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +5 -157
- package/dist/index.d.ts +5 -157
- package/dist/index.mjs +1 -1
- package/dist/internal/edge-config/index.cjs +1 -1
- package/dist/internal/edge-config/index.d.cts +31 -19
- package/dist/internal/edge-config/index.d.ts +31 -19
- package/dist/internal/edge-config/index.mjs +1 -1
- package/dist/internal/flags/index.cjs +1 -1
- package/dist/internal/flags/index.d.cts +11 -1
- package/dist/internal/flags/index.d.ts +11 -1
- package/dist/internal/flags/index.mjs +1 -1
- package/dist/internal/header-sources.cjs +10 -10
- package/dist/internal/header-sources.mjs +10 -10
- package/dist/internal/index.cjs +1 -1
- package/dist/internal/index.d.cts +131 -312
- package/dist/internal/index.d.ts +131 -312
- package/dist/internal/index.mjs +1 -1
- package/dist/internal/nextjs/index.cjs +1 -1
- package/dist/internal/nextjs/index.d.cts +1 -1
- package/dist/internal/nextjs/index.d.ts +1 -1
- package/dist/internal/nextjs/index.mjs +1 -1
- package/dist/internal/nextjs/utils/index.cjs +1 -1
- package/dist/internal/nextjs/utils/index.mjs +1 -1
- package/dist/internal/sentry/index.cjs +1 -1
- package/dist/internal/sentry/index.mjs +1 -1
- package/dist/internal/sentry/sentry.client.config.cjs +1 -1
- package/dist/internal/sentry/sentry.client.config.mjs +1 -1
- package/dist/mainnet.cjs +1 -1
- package/dist/mainnet.d.cts +21 -10
- package/dist/mainnet.d.ts +21 -10
- package/dist/mainnet.mjs +1 -1
- package/dist/sentry.edge.config-34TBZ2J6.cjs +1 -0
- package/dist/{sentry.edge.config-XKXCGZO7.mjs → sentry.edge.config-3QO3DLYV.mjs} +1 -1
- package/dist/{sentry.server.config-HGGCJWT2.mjs → sentry.server.config-S53O6JTA.mjs} +1 -1
- package/dist/sentry.server.config-WQX4KCNG.cjs +1 -0
- package/dist/types-ChwOSOu9.d.cts +198 -0
- package/dist/types-ChwOSOu9.d.ts +198 -0
- package/package.json +3 -3
- package/dist/chunk-3LFM4QG6.cjs +0 -1
- package/dist/chunk-6CMG5CBG.cjs +0 -1
- package/dist/chunk-BQFHWAJZ.mjs +0 -1
- package/dist/chunk-D2FG64PF.mjs +0 -1
- package/dist/chunk-DMFHUBNY.cjs +0 -1
- package/dist/chunk-FFCLEC63.mjs +0 -1
- package/dist/chunk-G2LROWQ2.mjs +0 -1
- package/dist/chunk-G3P5QJ2Y.cjs +0 -1
- package/dist/chunk-IV4GOAZB.cjs +0 -1
- package/dist/chunk-XTBMK2TL.mjs +0 -1
- package/dist/sentry.edge.config-M3L3XSD6.cjs +0 -1
- package/dist/sentry.server.config-535N36OR.cjs +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,158 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* List of app names in monobera. For a broader list of project names, see ProjectNames.
|
|
4
|
-
*
|
|
5
|
-
* All of these projects have a nextjs set up with `withBeraConfig` and have access to edge config.
|
|
6
|
-
*/
|
|
7
|
-
type AppName = "BeraHub" | "Honey" | "Bend";
|
|
8
|
-
/**
|
|
9
|
-
* List of projects.
|
|
10
|
-
*/
|
|
11
|
-
type ProjectName = AppName | "BeraBridge" | "BeraBridge NFT" | "Berachain Foundation" | "Explore" | "Berascan";
|
|
12
|
-
/**
|
|
13
|
-
* A shared interface for all projects.
|
|
14
|
-
*/
|
|
15
|
-
type Project = {
|
|
16
|
-
/**
|
|
17
|
-
* The name of the project.
|
|
18
|
-
*/
|
|
19
|
-
name: ProjectName;
|
|
20
|
-
/**
|
|
21
|
-
* The URL of the project.
|
|
22
|
-
*/
|
|
23
|
-
url: string;
|
|
24
|
-
};
|
|
25
|
-
type BendAddresses = {
|
|
26
|
-
morpho: Address | null;
|
|
27
|
-
adaptiveCurveIrm: Address | null;
|
|
28
|
-
metaMorphoFactory: Address | null;
|
|
29
|
-
publicAllocator: Address | null;
|
|
30
|
-
bundler3: Address | null;
|
|
31
|
-
generalAdapter1: Address | null;
|
|
32
|
-
supportedVaults: Array<Address>;
|
|
33
|
-
};
|
|
34
|
-
interface BeraConfig {
|
|
35
|
-
/**
|
|
36
|
-
* Some common token addresses available on the chain.
|
|
37
|
-
*/
|
|
38
|
-
tokens: {
|
|
39
|
-
wbera: Address;
|
|
40
|
-
swbera: Address;
|
|
41
|
-
bgt: Address;
|
|
42
|
-
wbtc: Address;
|
|
43
|
-
weth: Address;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* The API endpoint for the chain. Used to fetch prices, bex, pol and validators' data.
|
|
47
|
-
*/
|
|
48
|
-
api: string;
|
|
49
|
-
/**
|
|
50
|
-
* The subgraph endpoint for the chain. Mainly used to fetch last 24h average block time.
|
|
51
|
-
*/
|
|
52
|
-
blocksSubgraph: string;
|
|
53
|
-
/**
|
|
54
|
-
* The address of the deposit contract for the chain.
|
|
55
|
-
*/
|
|
56
|
-
depositContract: Address;
|
|
57
|
-
/**
|
|
58
|
-
* The addresses of the metadata lists.
|
|
59
|
-
*
|
|
60
|
-
* @see https://github.com/berachain/metadata
|
|
61
|
-
*/
|
|
62
|
-
lists: {
|
|
63
|
-
tokenList: string;
|
|
64
|
-
validatorList: string;
|
|
65
|
-
rewardVaultList: string;
|
|
66
|
-
};
|
|
67
|
-
/**
|
|
68
|
-
* Contract addresses and endpoints for the Bex protocol, part of BeraHub.
|
|
69
|
-
*/
|
|
70
|
-
bex: {
|
|
71
|
-
vault: Address;
|
|
72
|
-
helper: Address;
|
|
73
|
-
queries: Address;
|
|
74
|
-
relayer: Address;
|
|
75
|
-
factories: {
|
|
76
|
-
composableStable: Address;
|
|
77
|
-
weighted: Address;
|
|
78
|
-
};
|
|
79
|
-
poolCreationHelper: Address;
|
|
80
|
-
subgraph: string;
|
|
81
|
-
chainName: string;
|
|
82
|
-
aggregatorsRouter: Address;
|
|
83
|
-
aggregatorsRouterExecutor: Address;
|
|
84
|
-
/**
|
|
85
|
-
* The aggregators proxy URL for the chain. Used to proxy requests to various aggregator APIs.
|
|
86
|
-
* Added here to keep ReadmeGenerator script clean while having this endpoint in the dependency
|
|
87
|
-
*/
|
|
88
|
-
aggregatorsProxyUrl: string;
|
|
89
|
-
recoverFundsApi: string;
|
|
90
|
-
recoverFundsContract: Address;
|
|
91
|
-
};
|
|
92
|
-
pol: {
|
|
93
|
-
factory: Address;
|
|
94
|
-
staker: Address;
|
|
95
|
-
beraChef: Address;
|
|
96
|
-
subgraph: string;
|
|
97
|
-
bribeBoostApi: string;
|
|
98
|
-
rewardVaultHelper: Address;
|
|
99
|
-
/**
|
|
100
|
-
* If an API key is provided, no rate limit will be applied to requests.
|
|
101
|
-
*/
|
|
102
|
-
bribeBoostApiKey?: string;
|
|
103
|
-
bgtIncentiveDistributor: Address;
|
|
104
|
-
};
|
|
105
|
-
honey: Project & {
|
|
106
|
-
factory: Address;
|
|
107
|
-
reader: Address;
|
|
108
|
-
pythWrapper: Address;
|
|
109
|
-
/**
|
|
110
|
-
* The contract that proxies pyth prices for Honey factory.
|
|
111
|
-
*/
|
|
112
|
-
pythOracle: Address;
|
|
113
|
-
token: Address;
|
|
114
|
-
subgraph: string;
|
|
115
|
-
};
|
|
116
|
-
governance: {
|
|
117
|
-
timelock: Address;
|
|
118
|
-
governor: Address;
|
|
119
|
-
subgraph: string;
|
|
120
|
-
};
|
|
121
|
-
bridge: Project & {
|
|
122
|
-
nft: Project & {
|
|
123
|
-
eth: {
|
|
124
|
-
subgraph: string;
|
|
125
|
-
};
|
|
126
|
-
berachain: {
|
|
127
|
-
subgraph: string;
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
external: {
|
|
132
|
-
pyth: Address;
|
|
133
|
-
};
|
|
134
|
-
foundation: Project;
|
|
135
|
-
hub: Project;
|
|
136
|
-
bend: Project & {
|
|
137
|
-
whiskApiUrl: string | null;
|
|
138
|
-
whiskApiKey: string | null;
|
|
139
|
-
production: BendAddresses;
|
|
140
|
-
staging: BendAddresses;
|
|
141
|
-
};
|
|
142
|
-
explore: Project;
|
|
143
|
-
explorer: Project;
|
|
144
|
-
averageBlockTime: number;
|
|
145
|
-
beApiKey: string;
|
|
146
|
-
chain: {
|
|
147
|
-
/**
|
|
148
|
-
* This will be used by wallet providers to display the chain name
|
|
149
|
-
*/
|
|
150
|
-
name: string;
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
declare enum ChainId {
|
|
154
|
-
MAINNET = 80094,
|
|
155
|
-
BEPOLIA = 80069
|
|
156
|
-
}
|
|
1
|
+
import { H as HttpLink } from './types-ChwOSOu9.js';
|
|
2
|
+
export { A as Address, a as AppName, B as BeraConfig, C as ChainId, P as ProjectName } from './types-ChwOSOu9.js';
|
|
157
3
|
|
|
158
|
-
|
|
4
|
+
declare function getUriFromLink(link: HttpLink): string;
|
|
5
|
+
|
|
6
|
+
export { HttpLink, getUriFromLink };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"./chunk-MS6UGFXI.mjs";import"./chunk-JZXLCA2E.mjs";export{o as ChainId};
|
|
1
|
+
import{a as r}from"./chunk-O243TIHY.mjs";import{a as o}from"./chunk-MS6UGFXI.mjs";import"./chunk-JZXLCA2E.mjs";export{o as ChainId,r as getUriFromLink};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkDVULZ7IDcjs = require('../../chunk-DVULZ7ID.cjs');require('../../chunk-3KQLFIHT.cjs');require('../../chunk-2OLL4MUY.cjs');require('../../chunk-4VDLQK6F.cjs');var _edgeconfig = require('@vercel/edge-config');async function d({onError:e}={}){try{return await _edgeconfig.getAll.call(void 0, )}catch(o){_optionalChain([e, 'optionalCall', _ => _(o)]);return}}async function a(e,{onError:o}={}){try{return await _edgeconfig.get.call(void 0, e)}catch(r){_optionalChain([o, 'optionalCall', _2 => _2(r)]);return}}exports.isFlagEnabled = _chunkDVULZ7IDcjs.a; exports.safeGetAll = d; exports.safeGetConfig = a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChainId,
|
|
1
|
+
import { C as ChainId, a as AppName$1 } from '../../types-ChwOSOu9.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* This file was automatically generated by json-schema-to-typescript.
|
|
@@ -30,10 +30,17 @@ type MixedBannerItem = BannerItemV2 | StandardBannerItem;
|
|
|
30
30
|
* Edge config schema. Please update this in the @berachain/config package first and keep it stored there.
|
|
31
31
|
*/
|
|
32
32
|
interface EdgeConfigSchema {
|
|
33
|
+
$schema?: string;
|
|
33
34
|
flags: {
|
|
34
35
|
[k: string]: DynamicEnabled;
|
|
35
36
|
};
|
|
36
|
-
bex
|
|
37
|
+
bex: {
|
|
38
|
+
/**
|
|
39
|
+
* 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.
|
|
40
|
+
*/
|
|
41
|
+
aggregators?: {
|
|
42
|
+
[k: string]: DynamicEnabled;
|
|
43
|
+
};
|
|
37
44
|
/**
|
|
38
45
|
* Labels for the emergency messages and banners. (e.g. pool or vaults are paused)
|
|
39
46
|
*/
|
|
@@ -48,7 +55,10 @@ interface EdgeConfigSchema {
|
|
|
48
55
|
banner?: string;
|
|
49
56
|
};
|
|
50
57
|
};
|
|
51
|
-
|
|
58
|
+
/**
|
|
59
|
+
* If true, weighted pool creation will be disabled.
|
|
60
|
+
*/
|
|
61
|
+
disableWeightedPoolCreation?: boolean;
|
|
52
62
|
};
|
|
53
63
|
pol: {
|
|
54
64
|
/**
|
|
@@ -74,13 +84,9 @@ interface EdgeConfigSchema {
|
|
|
74
84
|
* the window is DAY or WEEK, its the window for calculating the APR
|
|
75
85
|
*/
|
|
76
86
|
swberaAprWindow?: "DAY" | "WEEK";
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
* 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.
|
|
81
|
-
*/
|
|
82
|
-
aggregators?: {
|
|
83
|
-
[k: string]: DynamicEnabled;
|
|
87
|
+
automatedRewardAllocation: {
|
|
88
|
+
blockDelayLabel: string;
|
|
89
|
+
hoursToWarnInAdvance: number;
|
|
84
90
|
};
|
|
85
91
|
};
|
|
86
92
|
honey: {
|
|
@@ -97,8 +103,12 @@ interface EdgeConfigSchema {
|
|
|
97
103
|
_label?: string;
|
|
98
104
|
}[];
|
|
99
105
|
};
|
|
106
|
+
/**
|
|
107
|
+
* The label for the Honey protocol paused message.
|
|
108
|
+
*/
|
|
109
|
+
pausedBannerLabel?: string;
|
|
100
110
|
};
|
|
101
|
-
|
|
111
|
+
banners: MixedBannerItem[];
|
|
102
112
|
maintenance?: {
|
|
103
113
|
/**
|
|
104
114
|
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
@@ -109,14 +119,16 @@ interface EdgeConfigSchema {
|
|
|
109
119
|
[k: string]: unknown;
|
|
110
120
|
};
|
|
111
121
|
};
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
122
|
+
wagmi: {
|
|
123
|
+
/**
|
|
124
|
+
* The list of external chains that are approved for multi chain zapping.
|
|
125
|
+
*/
|
|
126
|
+
externalChainList: {
|
|
127
|
+
chainId: number;
|
|
128
|
+
_name?: string;
|
|
129
|
+
enabled: DynamicEnabled;
|
|
130
|
+
}[];
|
|
131
|
+
};
|
|
120
132
|
}
|
|
121
133
|
interface VaultItem {
|
|
122
134
|
address: Address;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChainId,
|
|
1
|
+
import { C as ChainId, a as AppName$1 } from '../../types-ChwOSOu9.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* This file was automatically generated by json-schema-to-typescript.
|
|
@@ -30,10 +30,17 @@ type MixedBannerItem = BannerItemV2 | StandardBannerItem;
|
|
|
30
30
|
* Edge config schema. Please update this in the @berachain/config package first and keep it stored there.
|
|
31
31
|
*/
|
|
32
32
|
interface EdgeConfigSchema {
|
|
33
|
+
$schema?: string;
|
|
33
34
|
flags: {
|
|
34
35
|
[k: string]: DynamicEnabled;
|
|
35
36
|
};
|
|
36
|
-
bex
|
|
37
|
+
bex: {
|
|
38
|
+
/**
|
|
39
|
+
* 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.
|
|
40
|
+
*/
|
|
41
|
+
aggregators?: {
|
|
42
|
+
[k: string]: DynamicEnabled;
|
|
43
|
+
};
|
|
37
44
|
/**
|
|
38
45
|
* Labels for the emergency messages and banners. (e.g. pool or vaults are paused)
|
|
39
46
|
*/
|
|
@@ -48,7 +55,10 @@ interface EdgeConfigSchema {
|
|
|
48
55
|
banner?: string;
|
|
49
56
|
};
|
|
50
57
|
};
|
|
51
|
-
|
|
58
|
+
/**
|
|
59
|
+
* If true, weighted pool creation will be disabled.
|
|
60
|
+
*/
|
|
61
|
+
disableWeightedPoolCreation?: boolean;
|
|
52
62
|
};
|
|
53
63
|
pol: {
|
|
54
64
|
/**
|
|
@@ -74,13 +84,9 @@ interface EdgeConfigSchema {
|
|
|
74
84
|
* the window is DAY or WEEK, its the window for calculating the APR
|
|
75
85
|
*/
|
|
76
86
|
swberaAprWindow?: "DAY" | "WEEK";
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
* 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.
|
|
81
|
-
*/
|
|
82
|
-
aggregators?: {
|
|
83
|
-
[k: string]: DynamicEnabled;
|
|
87
|
+
automatedRewardAllocation: {
|
|
88
|
+
blockDelayLabel: string;
|
|
89
|
+
hoursToWarnInAdvance: number;
|
|
84
90
|
};
|
|
85
91
|
};
|
|
86
92
|
honey: {
|
|
@@ -97,8 +103,12 @@ interface EdgeConfigSchema {
|
|
|
97
103
|
_label?: string;
|
|
98
104
|
}[];
|
|
99
105
|
};
|
|
106
|
+
/**
|
|
107
|
+
* The label for the Honey protocol paused message.
|
|
108
|
+
*/
|
|
109
|
+
pausedBannerLabel?: string;
|
|
100
110
|
};
|
|
101
|
-
|
|
111
|
+
banners: MixedBannerItem[];
|
|
102
112
|
maintenance?: {
|
|
103
113
|
/**
|
|
104
114
|
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
@@ -109,14 +119,16 @@ interface EdgeConfigSchema {
|
|
|
109
119
|
[k: string]: unknown;
|
|
110
120
|
};
|
|
111
121
|
};
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
122
|
+
wagmi: {
|
|
123
|
+
/**
|
|
124
|
+
* The list of external chains that are approved for multi chain zapping.
|
|
125
|
+
*/
|
|
126
|
+
externalChainList: {
|
|
127
|
+
chainId: number;
|
|
128
|
+
_name?: string;
|
|
129
|
+
enabled: DynamicEnabled;
|
|
130
|
+
}[];
|
|
131
|
+
};
|
|
120
132
|
}
|
|
121
133
|
interface VaultItem {
|
|
122
134
|
address: Address;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"../../chunk-
|
|
1
|
+
import{a as i}from"../../chunk-FVNATITS.mjs";import"../../chunk-S2A3Z34I.mjs";import"../../chunk-MS6UGFXI.mjs";import"../../chunk-JZXLCA2E.mjs";import{getAll as n}from"@vercel/edge-config";async function d({onError:e}={}){try{return await n()}catch(o){e?.(o);return}}import{get as t}from"@vercel/edge-config";async function a(e,{onError:o}={}){try{return await t(e)}catch(r){o?.(r);return}}export{i as isFlagEnabled,d as safeGetAll,a as safeGetConfig};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDVULZ7IDcjs = require('../../chunk-DVULZ7ID.cjs');var _chunk3KQLFIHTcjs = require('../../chunk-3KQLFIHT.cjs');require('../../chunk-2OLL4MUY.cjs');var _chunk4VDLQK6Fcjs = require('../../chunk-4VDLQK6F.cjs');var n={};_chunk4VDLQK6Fcjs.a.call(void 0, n,{enableBexFundsRecovery:()=>f,enableEip5792:()=>m,enableSimulateCalls:()=>c,hideStakeForSingleHolderVaults:()=>u,isBendNew:()=>V,isBendVaultDataHourly:()=>E,isDefaultStakingPoolEnabled:()=>y,isEmbeddedWalletsEnabled:()=>g,isGovernanceEnabled:()=>p,isHoneyPythWrapperEnabled:()=>h,isMultiChainZapBendEnabled:()=>w,isPoolsMerged:()=>x,isRefundInExplorer:()=>b,mockIncentiveManager:()=>M,mockRewardDurationManager:()=>S,mockValidatorOperator:()=>v,mockValidatorRewardAllocator:()=>C,proxyAggregatorsThroughVercel:()=>k});var _next = require('flags/next');var _edgeconfig = require('@flags-sdk/edge-config');function e({adapter:o}={adapter:_edgeconfig.edgeConfigAdapter.call(void 0, )}){return{...o,async decide(t){if(_chunk3KQLFIHTcjs.b&&t.key.startsWith("mock"))return!1;let d=await o.decide(t);return _chunkDVULZ7IDcjs.a.call(void 0, d)}}}var p=_next.flag.call(void 0, {key:"isGovernanceEnabled",description:"Enable Governance proposals",defaultValue:!0,adapter:e()}),u=_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:"enableSimulateCalls",description:"Controls the support of eth_simulateV1 from bera-reth/bera-geth",defaultValue:!1,adapter:e()}),f=_next.flag.call(void 0, {key:"enableBexFundsRecovery",description:"Enable BEX funds recovery",defaultValue:!0,adapter:e()}),b=_next.flag.call(void 0, {key:"isRefundInExplorer",description:"Show Refund link in the Explorer dropdown",defaultValue:!1,adapter:e()}),g=_next.flag.call(void 0, {key:"isEmbeddedWalletsEnabled",description:"Enable embedded wallets",defaultValue:!0,adapter:e()}),m=_next.flag.call(void 0, {key:"enableEip5792",description:"Enable EIP-5792 to allow batch transactions if wallet supports it",defaultValue:!0,adapter:e()}),k=_next.flag.call(void 0, {key:"proxyAggregatorsThroughVercel",description:"Proxy aggregators quotes through Vercel instead of proxy gateway",defaultValue:!1,adapter:e()}),y=_next.flag.call(void 0, {key:"isDefaultStakingPoolEnabled",description:"Enable default staking pools",defaultValue:!0,adapter:e()}),E=_next.flag.call(void 0, {key:"isBendVaultDataHourly",description:"Enable bend vault data to be fetched hourly",defaultValue:!0,adapter:e()}),h=_next.flag.call(void 0, {key:"isHoneyPythWrapperEnabled",description:"Update pyth prices when minting or redeeming Honey",defaultValue:!1,adapter:e()}),V=_next.flag.call(void 0, {key:"isBendNew",description:"Enable Bend live",defaultValue:!1,adapter:e()}),x=_next.flag.call(void 0, {key:"isPoolsMerged",description:"Enable Pools merged",defaultValue:!0,adapter:e()}),w=_next.flag.call(void 0, {key:"isMultiChainZapBendEnabled",description:"Enable multi chain zap for Bend",defaultValue:!1,adapter:e()}),v=_next.flag.call(void 0, {key:"mockValidatorOperator",description:"Mock validator role",defaultValue:!1,adapter:e()}),C=_next.flag.call(void 0, {key:"mockValidatorRewardAllocator",description:"Mock validator reward allocator",defaultValue:!1,adapter:e()}),S=_next.flag.call(void 0, {key:"mockRewardDurationManager",description:"Mock reward duration manager",defaultValue:!1,adapter:e()}),M=_next.flag.call(void 0, {key:"mockIncentiveManager",description:"Mock incentive manager",defaultValue:!1,adapter:e()});exports.flags = n;
|
|
@@ -17,6 +17,11 @@ declare const isBendVaultDataHourly: flags_next.Flag<boolean, any>;
|
|
|
17
17
|
declare const isHoneyPythWrapperEnabled: flags_next.Flag<boolean, any>;
|
|
18
18
|
declare const isBendNew: flags_next.Flag<boolean, any>;
|
|
19
19
|
declare const isPoolsMerged: flags_next.Flag<boolean, any>;
|
|
20
|
+
declare const isMultiChainZapBendEnabled: flags_next.Flag<boolean, any>;
|
|
21
|
+
declare const mockValidatorOperator: flags_next.Flag<boolean, any>;
|
|
22
|
+
declare const mockValidatorRewardAllocator: flags_next.Flag<boolean, any>;
|
|
23
|
+
declare const mockRewardDurationManager: flags_next.Flag<boolean, any>;
|
|
24
|
+
declare const mockIncentiveManager: flags_next.Flag<boolean, any>;
|
|
20
25
|
|
|
21
26
|
declare const flags_enableBexFundsRecovery: typeof enableBexFundsRecovery;
|
|
22
27
|
declare const flags_enableEip5792: typeof enableEip5792;
|
|
@@ -28,11 +33,16 @@ declare const flags_isDefaultStakingPoolEnabled: typeof isDefaultStakingPoolEnab
|
|
|
28
33
|
declare const flags_isEmbeddedWalletsEnabled: typeof isEmbeddedWalletsEnabled;
|
|
29
34
|
declare const flags_isGovernanceEnabled: typeof isGovernanceEnabled;
|
|
30
35
|
declare const flags_isHoneyPythWrapperEnabled: typeof isHoneyPythWrapperEnabled;
|
|
36
|
+
declare const flags_isMultiChainZapBendEnabled: typeof isMultiChainZapBendEnabled;
|
|
31
37
|
declare const flags_isPoolsMerged: typeof isPoolsMerged;
|
|
32
38
|
declare const flags_isRefundInExplorer: typeof isRefundInExplorer;
|
|
39
|
+
declare const flags_mockIncentiveManager: typeof mockIncentiveManager;
|
|
40
|
+
declare const flags_mockRewardDurationManager: typeof mockRewardDurationManager;
|
|
41
|
+
declare const flags_mockValidatorOperator: typeof mockValidatorOperator;
|
|
42
|
+
declare const flags_mockValidatorRewardAllocator: typeof mockValidatorRewardAllocator;
|
|
33
43
|
declare const flags_proxyAggregatorsThroughVercel: typeof proxyAggregatorsThroughVercel;
|
|
34
44
|
declare namespace flags {
|
|
35
|
-
export { flags_enableBexFundsRecovery as enableBexFundsRecovery, flags_enableEip5792 as enableEip5792, flags_enableSimulateCalls as enableSimulateCalls, flags_hideStakeForSingleHolderVaults as hideStakeForSingleHolderVaults, flags_isBendNew as isBendNew, flags_isBendVaultDataHourly as isBendVaultDataHourly, flags_isDefaultStakingPoolEnabled as isDefaultStakingPoolEnabled, flags_isEmbeddedWalletsEnabled as isEmbeddedWalletsEnabled, flags_isGovernanceEnabled as isGovernanceEnabled, flags_isHoneyPythWrapperEnabled as isHoneyPythWrapperEnabled, flags_isPoolsMerged as isPoolsMerged, flags_isRefundInExplorer as isRefundInExplorer, flags_proxyAggregatorsThroughVercel as proxyAggregatorsThroughVercel };
|
|
45
|
+
export { flags_enableBexFundsRecovery as enableBexFundsRecovery, flags_enableEip5792 as enableEip5792, flags_enableSimulateCalls as enableSimulateCalls, flags_hideStakeForSingleHolderVaults as hideStakeForSingleHolderVaults, flags_isBendNew as isBendNew, flags_isBendVaultDataHourly as isBendVaultDataHourly, flags_isDefaultStakingPoolEnabled as isDefaultStakingPoolEnabled, flags_isEmbeddedWalletsEnabled as isEmbeddedWalletsEnabled, flags_isGovernanceEnabled as isGovernanceEnabled, flags_isHoneyPythWrapperEnabled as isHoneyPythWrapperEnabled, flags_isMultiChainZapBendEnabled as isMultiChainZapBendEnabled, flags_isPoolsMerged as isPoolsMerged, flags_isRefundInExplorer as isRefundInExplorer, flags_mockIncentiveManager as mockIncentiveManager, flags_mockRewardDurationManager as mockRewardDurationManager, flags_mockValidatorOperator as mockValidatorOperator, flags_mockValidatorRewardAllocator as mockValidatorRewardAllocator, flags_proxyAggregatorsThroughVercel as proxyAggregatorsThroughVercel };
|
|
36
46
|
}
|
|
37
47
|
|
|
38
48
|
export { flags };
|
|
@@ -17,6 +17,11 @@ declare const isBendVaultDataHourly: flags_next.Flag<boolean, any>;
|
|
|
17
17
|
declare const isHoneyPythWrapperEnabled: flags_next.Flag<boolean, any>;
|
|
18
18
|
declare const isBendNew: flags_next.Flag<boolean, any>;
|
|
19
19
|
declare const isPoolsMerged: flags_next.Flag<boolean, any>;
|
|
20
|
+
declare const isMultiChainZapBendEnabled: flags_next.Flag<boolean, any>;
|
|
21
|
+
declare const mockValidatorOperator: flags_next.Flag<boolean, any>;
|
|
22
|
+
declare const mockValidatorRewardAllocator: flags_next.Flag<boolean, any>;
|
|
23
|
+
declare const mockRewardDurationManager: flags_next.Flag<boolean, any>;
|
|
24
|
+
declare const mockIncentiveManager: flags_next.Flag<boolean, any>;
|
|
20
25
|
|
|
21
26
|
declare const flags_enableBexFundsRecovery: typeof enableBexFundsRecovery;
|
|
22
27
|
declare const flags_enableEip5792: typeof enableEip5792;
|
|
@@ -28,11 +33,16 @@ declare const flags_isDefaultStakingPoolEnabled: typeof isDefaultStakingPoolEnab
|
|
|
28
33
|
declare const flags_isEmbeddedWalletsEnabled: typeof isEmbeddedWalletsEnabled;
|
|
29
34
|
declare const flags_isGovernanceEnabled: typeof isGovernanceEnabled;
|
|
30
35
|
declare const flags_isHoneyPythWrapperEnabled: typeof isHoneyPythWrapperEnabled;
|
|
36
|
+
declare const flags_isMultiChainZapBendEnabled: typeof isMultiChainZapBendEnabled;
|
|
31
37
|
declare const flags_isPoolsMerged: typeof isPoolsMerged;
|
|
32
38
|
declare const flags_isRefundInExplorer: typeof isRefundInExplorer;
|
|
39
|
+
declare const flags_mockIncentiveManager: typeof mockIncentiveManager;
|
|
40
|
+
declare const flags_mockRewardDurationManager: typeof mockRewardDurationManager;
|
|
41
|
+
declare const flags_mockValidatorOperator: typeof mockValidatorOperator;
|
|
42
|
+
declare const flags_mockValidatorRewardAllocator: typeof mockValidatorRewardAllocator;
|
|
33
43
|
declare const flags_proxyAggregatorsThroughVercel: typeof proxyAggregatorsThroughVercel;
|
|
34
44
|
declare namespace flags {
|
|
35
|
-
export { flags_enableBexFundsRecovery as enableBexFundsRecovery, flags_enableEip5792 as enableEip5792, flags_enableSimulateCalls as enableSimulateCalls, flags_hideStakeForSingleHolderVaults as hideStakeForSingleHolderVaults, flags_isBendNew as isBendNew, flags_isBendVaultDataHourly as isBendVaultDataHourly, flags_isDefaultStakingPoolEnabled as isDefaultStakingPoolEnabled, flags_isEmbeddedWalletsEnabled as isEmbeddedWalletsEnabled, flags_isGovernanceEnabled as isGovernanceEnabled, flags_isHoneyPythWrapperEnabled as isHoneyPythWrapperEnabled, flags_isPoolsMerged as isPoolsMerged, flags_isRefundInExplorer as isRefundInExplorer, flags_proxyAggregatorsThroughVercel as proxyAggregatorsThroughVercel };
|
|
45
|
+
export { flags_enableBexFundsRecovery as enableBexFundsRecovery, flags_enableEip5792 as enableEip5792, flags_enableSimulateCalls as enableSimulateCalls, flags_hideStakeForSingleHolderVaults as hideStakeForSingleHolderVaults, flags_isBendNew as isBendNew, flags_isBendVaultDataHourly as isBendVaultDataHourly, flags_isDefaultStakingPoolEnabled as isDefaultStakingPoolEnabled, flags_isEmbeddedWalletsEnabled as isEmbeddedWalletsEnabled, flags_isGovernanceEnabled as isGovernanceEnabled, flags_isHoneyPythWrapperEnabled as isHoneyPythWrapperEnabled, flags_isMultiChainZapBendEnabled as isMultiChainZapBendEnabled, flags_isPoolsMerged as isPoolsMerged, flags_isRefundInExplorer as isRefundInExplorer, flags_mockIncentiveManager as mockIncentiveManager, flags_mockRewardDurationManager as mockRewardDurationManager, flags_mockValidatorOperator as mockValidatorOperator, flags_mockValidatorRewardAllocator as mockValidatorRewardAllocator, flags_proxyAggregatorsThroughVercel as proxyAggregatorsThroughVercel };
|
|
36
46
|
}
|
|
37
47
|
|
|
38
48
|
export { flags };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as l}from"../../chunk-FVNATITS.mjs";import{b as r}from"../../chunk-S2A3Z34I.mjs";import"../../chunk-MS6UGFXI.mjs";import{a as i}from"../../chunk-JZXLCA2E.mjs";var n={};i(n,{enableBexFundsRecovery:()=>f,enableEip5792:()=>m,enableSimulateCalls:()=>c,hideStakeForSingleHolderVaults:()=>u,isBendNew:()=>V,isBendVaultDataHourly:()=>E,isDefaultStakingPoolEnabled:()=>y,isEmbeddedWalletsEnabled:()=>g,isGovernanceEnabled:()=>p,isHoneyPythWrapperEnabled:()=>h,isMultiChainZapBendEnabled:()=>w,isPoolsMerged:()=>x,isRefundInExplorer:()=>b,mockIncentiveManager:()=>M,mockRewardDurationManager:()=>S,mockValidatorOperator:()=>v,mockValidatorRewardAllocator:()=>C,proxyAggregatorsThroughVercel:()=>k});import{flag as a}from"flags/next";import{edgeConfigAdapter as s}from"@flags-sdk/edge-config";function e({adapter:o}={adapter:s()}){return{...o,async decide(t){if(r&&t.key.startsWith("mock"))return!1;let d=await o.decide(t);return l(d)}}}var p=a({key:"isGovernanceEnabled",description:"Enable Governance proposals",defaultValue:!0,adapter:e()}),u=a({key:"hideStakeForSingleHolderVaults",description:"Hide stake for single holder vaults",defaultValue:!0,adapter:e()}),c=a({key:"enableSimulateCalls",description:"Controls the support of eth_simulateV1 from bera-reth/bera-geth",defaultValue:!1,adapter:e()}),f=a({key:"enableBexFundsRecovery",description:"Enable BEX funds recovery",defaultValue:!0,adapter:e()}),b=a({key:"isRefundInExplorer",description:"Show Refund link in the Explorer dropdown",defaultValue:!1,adapter:e()}),g=a({key:"isEmbeddedWalletsEnabled",description:"Enable embedded wallets",defaultValue:!0,adapter:e()}),m=a({key:"enableEip5792",description:"Enable EIP-5792 to allow batch transactions if wallet supports it",defaultValue:!0,adapter:e()}),k=a({key:"proxyAggregatorsThroughVercel",description:"Proxy aggregators quotes through Vercel instead of proxy gateway",defaultValue:!1,adapter:e()}),y=a({key:"isDefaultStakingPoolEnabled",description:"Enable default staking pools",defaultValue:!0,adapter:e()}),E=a({key:"isBendVaultDataHourly",description:"Enable bend vault data to be fetched hourly",defaultValue:!0,adapter:e()}),h=a({key:"isHoneyPythWrapperEnabled",description:"Update pyth prices when minting or redeeming Honey",defaultValue:!1,adapter:e()}),V=a({key:"isBendNew",description:"Enable Bend live",defaultValue:!1,adapter:e()}),x=a({key:"isPoolsMerged",description:"Enable Pools merged",defaultValue:!0,adapter:e()}),w=a({key:"isMultiChainZapBendEnabled",description:"Enable multi chain zap for Bend",defaultValue:!1,adapter:e()}),v=a({key:"mockValidatorOperator",description:"Mock validator role",defaultValue:!1,adapter:e()}),C=a({key:"mockValidatorRewardAllocator",description:"Mock validator reward allocator",defaultValue:!1,adapter:e()}),S=a({key:"mockRewardDurationManager",description:"Mock reward duration manager",defaultValue:!1,adapter:e()}),M=a({key:"mockIncentiveManager",description:"Mock incentive manager",defaultValue:!1,adapter:e()});export{n as flags};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var
|
|
2
|
-
default-src 'self' ${
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkJYSZ2GU3cjs = require('../chunk-JYSZ2GU3.cjs');var _chunkDUO7UEQDcjs = require('../chunk-DUO7UEQD.cjs');var _chunkZJDKWYPHcjs = require('../chunk-ZJDKWYPH.cjs');require('../chunk-KB66GOT2.cjs');require('../chunk-GAUBQIRH.cjs');var _chunkDFPDQR4Mcjs = require('../chunk-DFPDQR4M.cjs');var _chunk3KQLFIHTcjs = require('../chunk-3KQLFIHT.cjs');require('../chunk-2OLL4MUY.cjs');require('../chunk-4VDLQK6F.cjs');function v({dsn:e=process.env.NEXT_PUBLIC_SENTRY_DSN}={}){if(!e)return;let r=/^(?:https:\/\/)([A-z0-9]{32})(?::{0,1})([A-z0-9]*)(?:@)(o[a-z0-9]+)(?:\.ingest\.us\.sentry\.io)\/([0-9]{16})/i,s=_optionalChain([e, 'optionalAccess', _ => _.match, 'call', _2 => _2(r)]);if(!s)return;let[,o,n,t,i]=s,c=new URL(`https://${t}.ingest.us.sentry.io/api/${i}/security/?sentry_key=${o}`);return c.searchParams.set("sentry_key",o),c.searchParams.set("sentry_env",_chunkJYSZ2GU3cjs.a),c.searchParams.set("sentry_release",_chunkJYSZ2GU3cjs.c),{dsn:s[0],projectId:i,deprecatedSecret:n||void 0,cspEndpoint:c,org:t,publicKey:s[1]}}function E({isDevelopment:e,nonce:r,cspReporting:s,...o}){let n=[],t=_chunkZJDKWYPHcjs.a[_chunk3KQLFIHTcjs.a],i=["https://*.sentry.io/","https://*.berachain.com/","https://*.berachain-staging.com/","wss://www.walletlink.org/rpc","https://*.thirdweb.com/","https://raw.githubusercontent.com/berachain/metadata/",_chunkDFPDQR4Mcjs.a,"https://*.quiknode.pro","https://beranames-assets-berachain.s3.eu-central-003.backblazeb2.com/",_chunkDFPDQR4Mcjs.b,t.governance.subgraph,t.honey.subgraph,t.pol.subgraph,t.pol.bribeBoostApi,t.bex.subgraph,t.api,t.blocksSubgraph,_chunkDFPDQR4Mcjs.e,_chunkDFPDQR4Mcjs.d,_chunkDFPDQR4Mcjs.f,"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://verify.walletconnect.org/v3/public-key","https://api.routescan.io/v2/network/","wss://metamask-sdk.api.cx.metamask.io/socket.io/","https://metamask-sdk.api.cx.metamask.io","https://app.dynamicauth.com/api","https://www.walletlink.org/events","https://api.trongrid.io/","https://api-mainnet.layerzero-scan.com/","https://api-testnet.layerzero-scan.com/","https://chain-proxy.wallet.coinbase.com/","https://wallet.binance.com/tonbridge/","https://*.thirdweb.com/","https://eth.merkle.io/","https://cdn.whisk.so/","https://*.posthog.com","https://vercel.live","wss://ws-us3.pusher.com","https://cdn.markfi.xyz/scripts/analytics/","https://a.markfi.xyz/","https://hermes.pyth.network/v2/","https://rpc.porto.sh","https://api.avax.network/ext/bc/C/rpc","https://polygon-rpc.com","https://mainnet.optimism.io/","https://arb1.arbitrum.io/rpc","wss://www.walletlink.org/rpc","https://eth.merkle.io","https://mainnet.base.org/","https://api.enso.finance/","wss://www.walletlink.org/rpc"].concat(_nullishCoalesce(o.connectionSources, () => ([]))).filter(a=>{if(!a)return!1;let p=_chunkDUO7UEQDcjs.a.call(void 0, a);return!(!p||p.trim()===""||p.startsWith(_chunkDFPDQR4Mcjs.b)&&p!==_chunkDFPDQR4Mcjs.b)}),c=[_chunkDFPDQR4Mcjs.a,"https://raw.githubusercontent.com/berachain/metadata/","https://assets.coingecko.com/coins/images/","https://coin-images.coingecko.com/coins/images/","https://beranames-assets-berachain.s3.eu-central-003.backblazeb2.com/","https://icons.llama.fi/","https://icons.llamao.fi/","https://static.debank.com/","https://cdn.whisk.so/","https://cdn.morpho.org/","https://raw.githubusercontent.com/trustwallet/assets/","https://pelaguswallet.io/docs/img","https://*.posthog.com","https://vercel.live","https://vercel.com"].concat(_nullishCoalesce(o.pictureSources, () => ([]))).filter(a=>!(!a||a.trim()==="")),S=["https://verify.walletconnect.com/","https://verify.walletconnect.org/","https://embedded-wallet.thirdweb.com/","https://*.posthog.com","https://vercel.live/","https://id.porto.sh"].concat(_nullishCoalesce(o.frameSources, () => ([]))),x=["https://cdn.jsdelivr.net/npm/@fontsource/","https://*.posthog.com","https://vercel.live","https://assets.vercel.com","https://fonts.gstatic.com","https://use.typekit.net/"].concat(_nullishCoalesce(o.fontSources, () => ([]))),$=["https://*.posthog.com","https://vercel.live"].concat(_nullishCoalesce(o.styleSources, () => ([]))),m=`
|
|
2
|
+
default-src 'self' ${n.join(" ")};
|
|
3
3
|
base-uri 'self';
|
|
4
|
-
frame-src 'self' ${
|
|
4
|
+
frame-src 'self' ${S.join(" ")};
|
|
5
5
|
frame-ancestors 'self' https://*.posthog.com;
|
|
6
|
-
script-src 'self' 'sha256-k2HGvaYkGyYZxOwKGxgE1mr06tZEDcEXNZ5mdcldK0o=' 'nonce-${
|
|
6
|
+
script-src 'self' 'sha256-k2HGvaYkGyYZxOwKGxgE1mr06tZEDcEXNZ5mdcldK0o=' 'nonce-${r}' https://*.posthog.com 'strict-dynamic' ${e?"'unsafe-eval'":""};
|
|
7
7
|
worker-src 'self' blob: data:;
|
|
8
|
-
font-src 'self' ${
|
|
9
|
-
style-src 'self' ${
|
|
10
|
-
img-src 'self' data: ${
|
|
11
|
-
connect-src 'self' ${
|
|
8
|
+
font-src 'self' ${x.join(" ")};
|
|
9
|
+
style-src 'self' ${$.join(" ")} 'unsafe-inline';
|
|
10
|
+
img-src 'self' data: ${c.join(" ")};
|
|
11
|
+
connect-src 'self' ${i.join(" ")};
|
|
12
12
|
media-src https://*.posthog.com;
|
|
13
|
-
`;return s&&(
|
|
13
|
+
`;return s&&(m+=`
|
|
14
14
|
report-uri ${s};
|
|
15
15
|
report-to csp-endpoint;
|
|
16
|
-
`),
|
|
16
|
+
`),m.replace(/\s{2,}/g," ").trim()}var C=[_chunkDFPDQR4Mcjs.a,"https://raw.githubusercontent.com/berachain/metadata/","https://assets.coingecko.com/coins/images/","https://berachain.ghost.io/content/images/"].filter(e=>!(!e||e.trim()===""));function P({response:e}){let r=_optionalChain([v, 'call', _3 => _3(), 'optionalAccess', _4 => _4.cspEndpoint]),s=Buffer.from(crypto.randomUUID()).toString("base64"),o=process.env.NODE_ENV==="development",n=[{key:"Content-Security-Policy",value:E({isDevelopment:o,cspReporting:_optionalChain([r, 'optionalAccess', _5 => _5.toString, 'call', _6 => _6()]),nonce:s})},{key:"X-Frame-Options",value:"DENY"},{key:"X-Content-Type-Options",value:"nosniff"},{key:"X-Nonce",value:s}];r&&(n.push({key:"Reporting-To",value:`{"group":"csp-endpoint","max_age":10886400,"endpoints":[{"url":"${r}"}],"include_subdomains":true}"`}),n.push({key:"Reporting-Endpoints",value:`csp-endpoint="${r}"`}));for(let t of n)e.headers.set(t.key,t.value);return e}exports.cspMiddleware = P; exports.getContentSecurityPolicy = E; exports.staticPictureSources = C;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
default-src 'self' ${
|
|
1
|
+
import{a as w,c as k}from"../chunk-DL645PXT.mjs";import{a as y}from"../chunk-O243TIHY.mjs";import{a as b}from"../chunk-DTPRW4VP.mjs";import"../chunk-V2GJ33GF.mjs";import"../chunk-PGBQCBTM.mjs";import{a as h,b as l,d as f,e as g,f as d}from"../chunk-O5LUKC6Z.mjs";import{a as u}from"../chunk-S2A3Z34I.mjs";import"../chunk-MS6UGFXI.mjs";import"../chunk-JZXLCA2E.mjs";function v({dsn:e=process.env.NEXT_PUBLIC_SENTRY_DSN}={}){if(!e)return;let r=/^(?:https:\/\/)([A-z0-9]{32})(?::{0,1})([A-z0-9]*)(?:@)(o[a-z0-9]+)(?:\.ingest\.us\.sentry\.io)\/([0-9]{16})/i,s=e?.match(r);if(!s)return;let[,o,n,t,i]=s,c=new URL(`https://${t}.ingest.us.sentry.io/api/${i}/security/?sentry_key=${o}`);return c.searchParams.set("sentry_key",o),c.searchParams.set("sentry_env",w),c.searchParams.set("sentry_release",k),{dsn:s[0],projectId:i,deprecatedSecret:n||void 0,cspEndpoint:c,org:t,publicKey:s[1]}}function E({isDevelopment:e,nonce:r,cspReporting:s,...o}){let n=[],t=b[u],i=["https://*.sentry.io/","https://*.berachain.com/","https://*.berachain-staging.com/","wss://www.walletlink.org/rpc","https://*.thirdweb.com/","https://raw.githubusercontent.com/berachain/metadata/",h,"https://*.quiknode.pro","https://beranames-assets-berachain.s3.eu-central-003.backblazeb2.com/",l,t.governance.subgraph,t.honey.subgraph,t.pol.subgraph,t.pol.bribeBoostApi,t.bex.subgraph,t.api,t.blocksSubgraph,g,f,d,"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://verify.walletconnect.org/v3/public-key","https://api.routescan.io/v2/network/","wss://metamask-sdk.api.cx.metamask.io/socket.io/","https://metamask-sdk.api.cx.metamask.io","https://app.dynamicauth.com/api","https://www.walletlink.org/events","https://api.trongrid.io/","https://api-mainnet.layerzero-scan.com/","https://api-testnet.layerzero-scan.com/","https://chain-proxy.wallet.coinbase.com/","https://wallet.binance.com/tonbridge/","https://*.thirdweb.com/","https://eth.merkle.io/","https://cdn.whisk.so/","https://*.posthog.com","https://vercel.live","wss://ws-us3.pusher.com","https://cdn.markfi.xyz/scripts/analytics/","https://a.markfi.xyz/","https://hermes.pyth.network/v2/","https://rpc.porto.sh","https://api.avax.network/ext/bc/C/rpc","https://polygon-rpc.com","https://mainnet.optimism.io/","https://arb1.arbitrum.io/rpc","wss://www.walletlink.org/rpc","https://eth.merkle.io","https://mainnet.base.org/","https://api.enso.finance/","wss://www.walletlink.org/rpc"].concat(o.connectionSources??[]).filter(a=>{if(!a)return!1;let p=y(a);return!(!p||p.trim()===""||p.startsWith(l)&&p!==l)}),c=[h,"https://raw.githubusercontent.com/berachain/metadata/","https://assets.coingecko.com/coins/images/","https://coin-images.coingecko.com/coins/images/","https://beranames-assets-berachain.s3.eu-central-003.backblazeb2.com/","https://icons.llama.fi/","https://icons.llamao.fi/","https://static.debank.com/","https://cdn.whisk.so/","https://cdn.morpho.org/","https://raw.githubusercontent.com/trustwallet/assets/","https://pelaguswallet.io/docs/img","https://*.posthog.com","https://vercel.live","https://vercel.com"].concat(o.pictureSources??[]).filter(a=>!(!a||a.trim()==="")),S=["https://verify.walletconnect.com/","https://verify.walletconnect.org/","https://embedded-wallet.thirdweb.com/","https://*.posthog.com","https://vercel.live/","https://id.porto.sh"].concat(o.frameSources??[]),x=["https://cdn.jsdelivr.net/npm/@fontsource/","https://*.posthog.com","https://vercel.live","https://assets.vercel.com","https://fonts.gstatic.com","https://use.typekit.net/"].concat(o.fontSources??[]),$=["https://*.posthog.com","https://vercel.live"].concat(o.styleSources??[]),m=`
|
|
2
|
+
default-src 'self' ${n.join(" ")};
|
|
3
3
|
base-uri 'self';
|
|
4
|
-
frame-src 'self' ${
|
|
4
|
+
frame-src 'self' ${S.join(" ")};
|
|
5
5
|
frame-ancestors 'self' https://*.posthog.com;
|
|
6
|
-
script-src 'self' 'sha256-k2HGvaYkGyYZxOwKGxgE1mr06tZEDcEXNZ5mdcldK0o=' 'nonce-${
|
|
6
|
+
script-src 'self' 'sha256-k2HGvaYkGyYZxOwKGxgE1mr06tZEDcEXNZ5mdcldK0o=' 'nonce-${r}' https://*.posthog.com 'strict-dynamic' ${e?"'unsafe-eval'":""};
|
|
7
7
|
worker-src 'self' blob: data:;
|
|
8
|
-
font-src 'self' ${
|
|
9
|
-
style-src 'self' ${
|
|
10
|
-
img-src 'self' data: ${
|
|
11
|
-
connect-src 'self' ${
|
|
8
|
+
font-src 'self' ${x.join(" ")};
|
|
9
|
+
style-src 'self' ${$.join(" ")} 'unsafe-inline';
|
|
10
|
+
img-src 'self' data: ${c.join(" ")};
|
|
11
|
+
connect-src 'self' ${i.join(" ")};
|
|
12
12
|
media-src https://*.posthog.com;
|
|
13
|
-
`;return s&&(
|
|
13
|
+
`;return s&&(m+=`
|
|
14
14
|
report-uri ${s};
|
|
15
15
|
report-to csp-endpoint;
|
|
16
|
-
`),
|
|
16
|
+
`),m.replace(/\s{2,}/g," ").trim()}var C=[h,"https://raw.githubusercontent.com/berachain/metadata/","https://assets.coingecko.com/coins/images/","https://berachain.ghost.io/content/images/"].filter(e=>!(!e||e.trim()===""));function P({response:e}){let r=v()?.cspEndpoint,s=Buffer.from(crypto.randomUUID()).toString("base64"),o=process.env.NODE_ENV==="development",n=[{key:"Content-Security-Policy",value:E({isDevelopment:o,cspReporting:r?.toString(),nonce:s})},{key:"X-Frame-Options",value:"DENY"},{key:"X-Content-Type-Options",value:"nosniff"},{key:"X-Nonce",value:s}];r&&(n.push({key:"Reporting-To",value:`{"group":"csp-endpoint","max_age":10886400,"endpoints":[{"url":"${r}"}],"include_subdomains":true}"`}),n.push({key:"Reporting-Endpoints",value:`csp-endpoint="${r}"`}));for(let t of n)e.headers.set(t.key,t.value);return e}export{P as cspMiddleware,E as getContentSecurityPolicy,C as staticPictureSources};
|
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 _chunkZJDKWYPHcjs = require('../chunk-ZJDKWYPH.cjs');require('../chunk-KB66GOT2.cjs');require('../chunk-GAUBQIRH.cjs');var _chunkDFPDQR4Mcjs = require('../chunk-DFPDQR4M.cjs');var _chunk3KQLFIHTcjs = require('../chunk-3KQLFIHT.cjs');var _chunk2OLL4MUYcjs = require('../chunk-2OLL4MUY.cjs');require('../chunk-4VDLQK6F.cjs');exports.ChainId = _chunk2OLL4MUYcjs.a; exports.alchemyJsonRpcUrl = _chunkDFPDQR4Mcjs.f; exports.appConfig = _chunkZJDKWYPHcjs.b; exports.chainConfigs = _chunkZJDKWYPHcjs.a; exports.chainId = _chunk3KQLFIHTcjs.a; exports.cloudinaryBaseUrl = _chunkDFPDQR4Mcjs.a; exports.config = _chunkZJDKWYPHcjs.c; exports.currentDapp = _chunk3KQLFIHTcjs.f; exports.defaultChainId = _chunk3KQLFIHTcjs.a; exports.getRpcUrls = _chunkDFPDQR4Mcjs.c; exports.goldskyBaseUrl = _chunkDFPDQR4Mcjs.b; exports.jsonRpcUrl = _chunkDFPDQR4Mcjs.e; exports.privateRcpUrl = _chunkDFPDQR4Mcjs.g; exports.publicJsonRpcUrl = _chunkDFPDQR4Mcjs.d;
|