@berachain/config 0.1.20-beta.0 → 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.
@@ -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.
@@ -146,6 +149,32 @@ interface EdgeConfigSchema {
146
149
  description?: string;
147
150
  convertCta?: string;
148
151
  };
152
+ /**
153
+ * BGT-derivative tokens listed in the 'BGT derivatives' tab, configured per chain (addresses differ between mainnet and bepolia). When a chain has no entries, the derivatives tab is disabled and counts as complete (no work to do). Omit a chain entirely to fall back to the in-code defaults for that chain.
154
+ */
155
+ derivativeTokens?: {
156
+ /**
157
+ * Derivative tokens for Berachain mainnet.
158
+ */
159
+ mainnet?: BgtDerivative[];
160
+ /**
161
+ * Derivative tokens for the Bepolia testnet.
162
+ */
163
+ bepolia?: BgtDerivative[];
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
+ };
149
178
  /**
150
179
  * Copy for the site-wide nudge banner shown when a user has un-migrated BGT positions.
151
180
  */
@@ -222,6 +251,68 @@ interface BgtMigrationStep {
222
251
  */
223
252
  alertText?: string;
224
253
  }
254
+ /**
255
+ * A deprecated BGT-derivative token surfaced in the migration widget's 'BGT derivatives' tab. Addresses are chain-specific, so this list is configured per chain.
256
+ */
257
+ interface BgtDerivative {
258
+ /**
259
+ * Token symbol shown in the UI (e.g. 'iBGT').
260
+ */
261
+ symbol: string;
262
+ /**
263
+ * Human-readable token name (e.g. 'Infrared BGT').
264
+ */
265
+ tokenName?: string;
266
+ /**
267
+ * Human-readable source protocol (e.g. 'Infrared'), shown on the 'Unstake on {protocol}' link.
268
+ */
269
+ protocol: string;
270
+ /**
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.
272
+ */
273
+ tokenAddress: string;
274
+ /**
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).
280
+ */
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;
315
+ }
225
316
  interface BannerItemV2 {
226
317
  text: string;
227
318
  className?: string;
@@ -298,4 +389,4 @@ declare function safeGetConfig<T extends keyof EdgeConfigSchema>(flagName: T, {
298
389
  onError?: (error: unknown) => void;
299
390
  }): Promise<EdgeConfigSchema[T] | undefined>;
300
391
 
301
- export { type Address, type AppName, type BannerItemV2, 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.
@@ -146,6 +149,32 @@ interface EdgeConfigSchema {
146
149
  description?: string;
147
150
  convertCta?: string;
148
151
  };
152
+ /**
153
+ * BGT-derivative tokens listed in the 'BGT derivatives' tab, configured per chain (addresses differ between mainnet and bepolia). When a chain has no entries, the derivatives tab is disabled and counts as complete (no work to do). Omit a chain entirely to fall back to the in-code defaults for that chain.
154
+ */
155
+ derivativeTokens?: {
156
+ /**
157
+ * Derivative tokens for Berachain mainnet.
158
+ */
159
+ mainnet?: BgtDerivative[];
160
+ /**
161
+ * Derivative tokens for the Bepolia testnet.
162
+ */
163
+ bepolia?: BgtDerivative[];
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
+ };
149
178
  /**
150
179
  * Copy for the site-wide nudge banner shown when a user has un-migrated BGT positions.
151
180
  */
@@ -222,6 +251,68 @@ interface BgtMigrationStep {
222
251
  */
223
252
  alertText?: string;
224
253
  }
254
+ /**
255
+ * A deprecated BGT-derivative token surfaced in the migration widget's 'BGT derivatives' tab. Addresses are chain-specific, so this list is configured per chain.
256
+ */
257
+ interface BgtDerivative {
258
+ /**
259
+ * Token symbol shown in the UI (e.g. 'iBGT').
260
+ */
261
+ symbol: string;
262
+ /**
263
+ * Human-readable token name (e.g. 'Infrared BGT').
264
+ */
265
+ tokenName?: string;
266
+ /**
267
+ * Human-readable source protocol (e.g. 'Infrared'), shown on the 'Unstake on {protocol}' link.
268
+ */
269
+ protocol: string;
270
+ /**
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.
272
+ */
273
+ tokenAddress: string;
274
+ /**
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).
280
+ */
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;
315
+ }
225
316
  interface BannerItemV2 {
226
317
  text: string;
227
318
  className?: string;
@@ -298,4 +389,4 @@ declare function safeGetConfig<T extends keyof EdgeConfigSchema>(flagName: T, {
298
389
  onError?: (error: unknown) => void;
299
390
  }): Promise<EdgeConfigSchema[T] | undefined>;
300
391
 
301
- export { type Address, type AppName, type BannerItemV2, 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 _chunk6TL5ZQOMcjs = require('../../chunk-6TL5ZQOM.cjs');
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 _chunk6TL5ZQOMcjs.withSentryConfig.call(void 0, nextConfig);
80
+ if (withSentry) return _chunkUOFOM6N7cjs.withSentryConfig.call(void 0, nextConfig);
81
81
  return nextConfig;
82
82
  }
83
83
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withSentryConfig
3
- } from "../../chunk-NQ3UKQHW.mjs";
3
+ } from "../../chunk-EGAVWXNC.mjs";
4
4
  import {
5
5
  IMAGE_REMOTE_PATTERNS
6
6
  } from "../../chunk-4WAGOEXT.mjs";
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk6TL5ZQOMcjs = require('../../chunk-6TL5ZQOM.cjs');
5
+ var _chunkUOFOM6N7cjs = require('../../chunk-UOFOM6N7.cjs');
6
6
  require('../../chunk-75ZPJI57.cjs');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.onRequestError = _chunk6TL5ZQOMcjs.onRequestError; exports.registerSentry = _chunk6TL5ZQOMcjs.registerSentry; exports.withSentryConfig = _chunk6TL5ZQOMcjs.withSentryConfig;
11
+ exports.onRequestError = _chunkUOFOM6N7cjs.onRequestError; exports.registerSentry = _chunkUOFOM6N7cjs.registerSentry; exports.withSentryConfig = _chunkUOFOM6N7cjs.withSentryConfig;
@@ -2,7 +2,7 @@ import {
2
2
  onRequestError,
3
3
  registerSentry,
4
4
  withSentryConfig
5
- } from "../../chunk-NQ3UKQHW.mjs";
5
+ } from "../../chunk-EGAVWXNC.mjs";
6
6
  import "../../chunk-7P6ASYW6.mjs";
7
7
  export {
8
8
  onRequestError,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@berachain/config",
3
- "version": "0.1.20-beta.0",
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.4"
24
+ "vitest": "3.2.6"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "@flags-sdk/edge-config": "0.1.0",