@berachain/config 0.1.20-beta.1 → 0.1.20-beta.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/dist/{chunk-NQ3UKQHW.mjs → chunk-EGAVWXNC.mjs} +2 -2
- package/dist/{chunk-6TL5ZQOM.cjs → chunk-UOFOM6N7.cjs} +2 -2
- package/dist/internal/edge-config/index.d.cts +60 -3
- package/dist/internal/edge-config/index.d.ts +60 -3
- package/dist/internal/nextjs/index.cjs +2 -2
- package/dist/internal/nextjs/index.mjs +1 -1
- package/dist/internal/sentry/index.cjs +2 -2
- package/dist/internal/sentry/index.mjs +1 -1
- package/package.json +2 -2
|
@@ -54,7 +54,7 @@ function withSentryConfig2(config) {
|
|
|
54
54
|
// // deleteSourcemapsAfterUpload: true,
|
|
55
55
|
// },
|
|
56
56
|
// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load)
|
|
57
|
-
tunnelRoute: "/monitoring-tunnel"
|
|
57
|
+
tunnelRoute: "/monitoring-tunnel"
|
|
58
58
|
// Hides source maps from generated client bundles
|
|
59
59
|
// hideSourceMaps: true,
|
|
60
60
|
// Automatically tree-shake Sentry logger statements to reduce bundle size
|
|
@@ -63,7 +63,7 @@ function withSentryConfig2(config) {
|
|
|
63
63
|
// See the following for more information:
|
|
64
64
|
// https://docs.sentry.io/product/crons/
|
|
65
65
|
// https://vercel.com/docs/cron-jobs
|
|
66
|
-
automaticVercelMonitors: true
|
|
66
|
+
// automaticVercelMonitors: true,
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
var onRequestError = Sentry.captureRequestError;
|
|
@@ -54,7 +54,7 @@ function withSentryConfig2(config) {
|
|
|
54
54
|
// // deleteSourcemapsAfterUpload: true,
|
|
55
55
|
// },
|
|
56
56
|
// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load)
|
|
57
|
-
tunnelRoute: "/monitoring-tunnel"
|
|
57
|
+
tunnelRoute: "/monitoring-tunnel"
|
|
58
58
|
// Hides source maps from generated client bundles
|
|
59
59
|
// hideSourceMaps: true,
|
|
60
60
|
// Automatically tree-shake Sentry logger statements to reduce bundle size
|
|
@@ -63,7 +63,7 @@ function withSentryConfig2(config) {
|
|
|
63
63
|
// See the following for more information:
|
|
64
64
|
// https://docs.sentry.io/product/crons/
|
|
65
65
|
// https://vercel.com/docs/cron-jobs
|
|
66
|
-
automaticVercelMonitors: true
|
|
66
|
+
// automaticVercelMonitors: true,
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
var onRequestError = Sentry.captureRequestError;
|
|
@@ -128,6 +128,9 @@ interface EdgeConfigSchema {
|
|
|
128
128
|
unboost?: BgtMigrationStep;
|
|
129
129
|
redeemBGT?: BgtMigrationStep;
|
|
130
130
|
stakeBERA?: BgtMigrationStep;
|
|
131
|
+
unstake?: BgtMigrationStep;
|
|
132
|
+
withdraw?: BgtMigrationStep;
|
|
133
|
+
redeem?: BgtMigrationStep;
|
|
131
134
|
};
|
|
132
135
|
/**
|
|
133
136
|
* Copy for the Incentives tab.
|
|
@@ -159,6 +162,19 @@ interface EdgeConfigSchema {
|
|
|
159
162
|
*/
|
|
160
163
|
bepolia?: BgtDerivative[];
|
|
161
164
|
};
|
|
165
|
+
/**
|
|
166
|
+
* Liquidity pools that use BGT-derivative tokens, listed in the 'BGT derivatives' tab (Withdraw step), configured per chain. When a chain has no entries, no LP positions are tracked for that chain. Omit a chain entirely to fall back to the in-code defaults for that chain.
|
|
167
|
+
*/
|
|
168
|
+
derivativePools?: {
|
|
169
|
+
/**
|
|
170
|
+
* Derivative pools for Berachain mainnet.
|
|
171
|
+
*/
|
|
172
|
+
mainnet?: DerivativePool[];
|
|
173
|
+
/**
|
|
174
|
+
* Derivative pools for the Bepolia testnet.
|
|
175
|
+
*/
|
|
176
|
+
bepolia?: DerivativePool[];
|
|
177
|
+
};
|
|
162
178
|
/**
|
|
163
179
|
* Copy for the site-wide nudge banner shown when a user has un-migrated BGT positions.
|
|
164
180
|
*/
|
|
@@ -243,18 +259,59 @@ interface BgtDerivative {
|
|
|
243
259
|
* Token symbol shown in the UI (e.g. 'iBGT').
|
|
244
260
|
*/
|
|
245
261
|
symbol: string;
|
|
262
|
+
/**
|
|
263
|
+
* Human-readable token name (e.g. 'Infrared BGT').
|
|
264
|
+
*/
|
|
265
|
+
tokenName?: string;
|
|
246
266
|
/**
|
|
247
267
|
* Human-readable source protocol (e.g. 'Infrared'), shown on the 'Unstake on {protocol}' link.
|
|
248
268
|
*/
|
|
249
269
|
protocol: string;
|
|
250
270
|
/**
|
|
251
|
-
* ERC20 address of the derivative token; the in-wallet (idle) balance is read from here.
|
|
271
|
+
* ERC20 address of the derivative token; the in-wallet (idle) balance is read from here, and native redemption to BERA/WBERA is called on it.
|
|
252
272
|
*/
|
|
253
273
|
tokenAddress: string;
|
|
254
274
|
/**
|
|
255
|
-
*
|
|
275
|
+
* The derivative's own single-asset staking contract; its staked balance surfaces an Unstake row. Omit when the derivative has no native staking.
|
|
276
|
+
*/
|
|
277
|
+
stakingContract?: string;
|
|
278
|
+
/**
|
|
279
|
+
* External page where the user unstakes this derivative from its own staking (Unstake step, derivative-staking rows).
|
|
256
280
|
*/
|
|
257
281
|
unstakeUrl: string;
|
|
282
|
+
/**
|
|
283
|
+
* External page where the user redeems this derivative for BERA (Redeem step). Falls back to `unstakeUrl` when omitted.
|
|
284
|
+
*/
|
|
285
|
+
redeemUrl?: string;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* A liquidity pool that uses a BGT-derivative token, surfaced in the migration widget's 'BGT derivatives' tab (Withdraw step). The user may hold the LP token idle, or have it staked in a reward vault and/or an Infrared vault. Addresses are chain-specific, so this list is configured per chain.
|
|
289
|
+
*/
|
|
290
|
+
interface DerivativePool {
|
|
291
|
+
/**
|
|
292
|
+
* Pool display name (e.g. 'osBGT / sWBERA').
|
|
293
|
+
*/
|
|
294
|
+
name: string;
|
|
295
|
+
/**
|
|
296
|
+
* Pool protocol — determines the withdraw mechanism.
|
|
297
|
+
*/
|
|
298
|
+
protocol: "Kodiak" | "HUB";
|
|
299
|
+
/**
|
|
300
|
+
* Pool / LP-token address; the idle LP balance is read from here and liquidity is withdrawn from it.
|
|
301
|
+
*/
|
|
302
|
+
poolAddress: string;
|
|
303
|
+
/**
|
|
304
|
+
* Berachain Hub/Kodiak/Bera reward vault that stakes this pool's LP token. Omit when the pool has none.
|
|
305
|
+
*/
|
|
306
|
+
rewardVault?: string;
|
|
307
|
+
/**
|
|
308
|
+
* Infrared vault that stakes this pool's LP token. Omit when the pool has none.
|
|
309
|
+
*/
|
|
310
|
+
infraredVault?: string;
|
|
311
|
+
/**
|
|
312
|
+
* Infrared reward-vault page for `infraredVault` (Infrared uses slug URLs, not address-based). Falls back to the Infrared vaults list when omitted.
|
|
313
|
+
*/
|
|
314
|
+
infraredUrl?: string;
|
|
258
315
|
}
|
|
259
316
|
interface BannerItemV2 {
|
|
260
317
|
text: string;
|
|
@@ -332,4 +389,4 @@ declare function safeGetConfig<T extends keyof EdgeConfigSchema>(flagName: T, {
|
|
|
332
389
|
onError?: (error: unknown) => void;
|
|
333
390
|
}): Promise<EdgeConfigSchema[T] | undefined>;
|
|
334
391
|
|
|
335
|
-
export { type Address, type AppName, type BannerItemV2, type BgtDerivative, type BgtMigrationStep, type DynamicEnabled, type EdgeConfigSchema, type LstStakingVaultItem, type MixedBannerItem, type StandardBannerItem, type TokenItem, type VaultItem, isFlagEnabled, safeGetAll, safeGetConfig };
|
|
392
|
+
export { type Address, type AppName, type BannerItemV2, type BgtDerivative, type BgtMigrationStep, type DerivativePool, type DynamicEnabled, type EdgeConfigSchema, type LstStakingVaultItem, type MixedBannerItem, type StandardBannerItem, type TokenItem, type VaultItem, isFlagEnabled, safeGetAll, safeGetConfig };
|
|
@@ -128,6 +128,9 @@ interface EdgeConfigSchema {
|
|
|
128
128
|
unboost?: BgtMigrationStep;
|
|
129
129
|
redeemBGT?: BgtMigrationStep;
|
|
130
130
|
stakeBERA?: BgtMigrationStep;
|
|
131
|
+
unstake?: BgtMigrationStep;
|
|
132
|
+
withdraw?: BgtMigrationStep;
|
|
133
|
+
redeem?: BgtMigrationStep;
|
|
131
134
|
};
|
|
132
135
|
/**
|
|
133
136
|
* Copy for the Incentives tab.
|
|
@@ -159,6 +162,19 @@ interface EdgeConfigSchema {
|
|
|
159
162
|
*/
|
|
160
163
|
bepolia?: BgtDerivative[];
|
|
161
164
|
};
|
|
165
|
+
/**
|
|
166
|
+
* Liquidity pools that use BGT-derivative tokens, listed in the 'BGT derivatives' tab (Withdraw step), configured per chain. When a chain has no entries, no LP positions are tracked for that chain. Omit a chain entirely to fall back to the in-code defaults for that chain.
|
|
167
|
+
*/
|
|
168
|
+
derivativePools?: {
|
|
169
|
+
/**
|
|
170
|
+
* Derivative pools for Berachain mainnet.
|
|
171
|
+
*/
|
|
172
|
+
mainnet?: DerivativePool[];
|
|
173
|
+
/**
|
|
174
|
+
* Derivative pools for the Bepolia testnet.
|
|
175
|
+
*/
|
|
176
|
+
bepolia?: DerivativePool[];
|
|
177
|
+
};
|
|
162
178
|
/**
|
|
163
179
|
* Copy for the site-wide nudge banner shown when a user has un-migrated BGT positions.
|
|
164
180
|
*/
|
|
@@ -243,18 +259,59 @@ interface BgtDerivative {
|
|
|
243
259
|
* Token symbol shown in the UI (e.g. 'iBGT').
|
|
244
260
|
*/
|
|
245
261
|
symbol: string;
|
|
262
|
+
/**
|
|
263
|
+
* Human-readable token name (e.g. 'Infrared BGT').
|
|
264
|
+
*/
|
|
265
|
+
tokenName?: string;
|
|
246
266
|
/**
|
|
247
267
|
* Human-readable source protocol (e.g. 'Infrared'), shown on the 'Unstake on {protocol}' link.
|
|
248
268
|
*/
|
|
249
269
|
protocol: string;
|
|
250
270
|
/**
|
|
251
|
-
* ERC20 address of the derivative token; the in-wallet (idle) balance is read from here.
|
|
271
|
+
* ERC20 address of the derivative token; the in-wallet (idle) balance is read from here, and native redemption to BERA/WBERA is called on it.
|
|
252
272
|
*/
|
|
253
273
|
tokenAddress: string;
|
|
254
274
|
/**
|
|
255
|
-
*
|
|
275
|
+
* The derivative's own single-asset staking contract; its staked balance surfaces an Unstake row. Omit when the derivative has no native staking.
|
|
276
|
+
*/
|
|
277
|
+
stakingContract?: string;
|
|
278
|
+
/**
|
|
279
|
+
* External page where the user unstakes this derivative from its own staking (Unstake step, derivative-staking rows).
|
|
256
280
|
*/
|
|
257
281
|
unstakeUrl: string;
|
|
282
|
+
/**
|
|
283
|
+
* External page where the user redeems this derivative for BERA (Redeem step). Falls back to `unstakeUrl` when omitted.
|
|
284
|
+
*/
|
|
285
|
+
redeemUrl?: string;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* A liquidity pool that uses a BGT-derivative token, surfaced in the migration widget's 'BGT derivatives' tab (Withdraw step). The user may hold the LP token idle, or have it staked in a reward vault and/or an Infrared vault. Addresses are chain-specific, so this list is configured per chain.
|
|
289
|
+
*/
|
|
290
|
+
interface DerivativePool {
|
|
291
|
+
/**
|
|
292
|
+
* Pool display name (e.g. 'osBGT / sWBERA').
|
|
293
|
+
*/
|
|
294
|
+
name: string;
|
|
295
|
+
/**
|
|
296
|
+
* Pool protocol — determines the withdraw mechanism.
|
|
297
|
+
*/
|
|
298
|
+
protocol: "Kodiak" | "HUB";
|
|
299
|
+
/**
|
|
300
|
+
* Pool / LP-token address; the idle LP balance is read from here and liquidity is withdrawn from it.
|
|
301
|
+
*/
|
|
302
|
+
poolAddress: string;
|
|
303
|
+
/**
|
|
304
|
+
* Berachain Hub/Kodiak/Bera reward vault that stakes this pool's LP token. Omit when the pool has none.
|
|
305
|
+
*/
|
|
306
|
+
rewardVault?: string;
|
|
307
|
+
/**
|
|
308
|
+
* Infrared vault that stakes this pool's LP token. Omit when the pool has none.
|
|
309
|
+
*/
|
|
310
|
+
infraredVault?: string;
|
|
311
|
+
/**
|
|
312
|
+
* Infrared reward-vault page for `infraredVault` (Infrared uses slug URLs, not address-based). Falls back to the Infrared vaults list when omitted.
|
|
313
|
+
*/
|
|
314
|
+
infraredUrl?: string;
|
|
258
315
|
}
|
|
259
316
|
interface BannerItemV2 {
|
|
260
317
|
text: string;
|
|
@@ -332,4 +389,4 @@ declare function safeGetConfig<T extends keyof EdgeConfigSchema>(flagName: T, {
|
|
|
332
389
|
onError?: (error: unknown) => void;
|
|
333
390
|
}): Promise<EdgeConfigSchema[T] | undefined>;
|
|
334
391
|
|
|
335
|
-
export { type Address, type AppName, type BannerItemV2, type BgtDerivative, type BgtMigrationStep, type DynamicEnabled, type EdgeConfigSchema, type LstStakingVaultItem, type MixedBannerItem, type StandardBannerItem, type TokenItem, type VaultItem, isFlagEnabled, safeGetAll, safeGetConfig };
|
|
392
|
+
export { type Address, type AppName, type BannerItemV2, type BgtDerivative, type BgtMigrationStep, type DerivativePool, type DynamicEnabled, type EdgeConfigSchema, type LstStakingVaultItem, type MixedBannerItem, type StandardBannerItem, type TokenItem, type VaultItem, isFlagEnabled, safeGetAll, safeGetConfig };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkUOFOM6N7cjs = require('../../chunk-UOFOM6N7.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkOA5M6XYFcjs = require('../../chunk-OA5M6XYF.cjs');
|
|
@@ -77,7 +77,7 @@ function withBeraConfig(config, {
|
|
|
77
77
|
nextConfig.env.NEXT_PUBLIC_PH_REVERSE_PROXY_PATH = "/ph";
|
|
78
78
|
nextConfig.skipTrailingSlashRedirect = true;
|
|
79
79
|
}
|
|
80
|
-
if (withSentry) return
|
|
80
|
+
if (withSentry) return _chunkUOFOM6N7cjs.withSentryConfig.call(void 0, nextConfig);
|
|
81
81
|
return nextConfig;
|
|
82
82
|
}
|
|
83
83
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkUOFOM6N7cjs = require('../../chunk-UOFOM6N7.cjs');
|
|
6
6
|
require('../../chunk-75ZPJI57.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.onRequestError =
|
|
11
|
+
exports.onRequestError = _chunkUOFOM6N7cjs.onRequestError; exports.registerSentry = _chunkUOFOM6N7cjs.registerSentry; exports.withSentryConfig = _chunkUOFOM6N7cjs.withSentryConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@berachain/config",
|
|
3
|
-
"version": "0.1.20-beta.
|
|
3
|
+
"version": "0.1.20-beta.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"tailwindcss-animate": "1.0.7",
|
|
22
22
|
"tsup": "8.5.1",
|
|
23
23
|
"typescript": "5.5.4",
|
|
24
|
-
"vitest": "3.2.
|
|
24
|
+
"vitest": "3.2.6"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@flags-sdk/edge-config": "0.1.0",
|