@berachain/config 0.1.22 → 0.1.23

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.
Files changed (86) hide show
  1. package/dist/bepolia.d.ts +3 -5
  2. package/dist/bepolia.d.ts.map +1 -0
  3. package/dist/index.d.ts +3 -6
  4. package/dist/index.d.ts.map +1 -0
  5. package/dist/internal/edge-config/{index.d.cts → edgeConfig.codegen.d.ts} +14 -63
  6. package/dist/internal/edge-config/edgeConfig.codegen.d.ts.map +1 -0
  7. package/dist/internal/edge-config/index.d.ts +5 -393
  8. package/dist/internal/edge-config/index.d.ts.map +1 -0
  9. package/dist/internal/edge-config/isFlagEnabled.d.ts +17 -0
  10. package/dist/internal/edge-config/isFlagEnabled.d.ts.map +1 -0
  11. package/dist/internal/edge-config/safeGetAll.d.ts +15 -0
  12. package/dist/internal/edge-config/safeGetAll.d.ts.map +1 -0
  13. package/dist/internal/edge-config/safeGetConfig.d.ts +19 -0
  14. package/dist/internal/edge-config/safeGetConfig.d.ts.map +1 -0
  15. package/dist/internal/flags/beraEdgeConfigAdapter.d.ts +9 -0
  16. package/dist/internal/flags/beraEdgeConfigAdapter.d.ts.map +1 -0
  17. package/dist/internal/flags/flags.d.ts +29 -0
  18. package/dist/internal/flags/flags.d.ts.map +1 -0
  19. package/dist/internal/flags/index.d.ts +2 -60
  20. package/dist/internal/flags/index.d.ts.map +1 -0
  21. package/dist/internal/header-sources.d.ts +5 -7
  22. package/dist/internal/header-sources.d.ts.map +1 -0
  23. package/dist/internal/index.d.ts +139 -173
  24. package/dist/internal/index.d.ts.map +1 -0
  25. package/dist/internal/maintenance.d.ts +5 -7
  26. package/dist/internal/maintenance.d.ts.map +1 -0
  27. package/dist/internal/nextjs/const.d.ts +3 -0
  28. package/dist/internal/nextjs/const.d.ts.map +1 -0
  29. package/dist/internal/nextjs/index.cjs +2 -2
  30. package/dist/internal/nextjs/index.d.ts +5 -6
  31. package/dist/internal/nextjs/index.d.ts.map +1 -0
  32. package/dist/internal/nextjs/index.mjs +1 -1
  33. package/dist/internal/nextjs/utils/index.cjs +3 -1
  34. package/dist/internal/nextjs/utils/index.d.ts +2 -3
  35. package/dist/internal/nextjs/utils/index.d.ts.map +1 -0
  36. package/dist/internal/nextjs/utils/index.mjs +3 -1
  37. package/dist/internal/sentry/getSentryKeys.d.ts +16 -0
  38. package/dist/internal/sentry/getSentryKeys.d.ts.map +1 -0
  39. package/dist/internal/sentry/index.cjs +2 -2
  40. package/dist/internal/sentry/index.d.ts +6 -8
  41. package/dist/internal/sentry/index.d.ts.map +1 -0
  42. package/dist/internal/sentry/index.mjs +1 -1
  43. package/dist/internal/sentry/sentry.client.config.d.ts +3 -6
  44. package/dist/internal/sentry/sentry.client.config.d.ts.map +1 -0
  45. package/dist/internal/sentry/sentry.edge.config.d.ts +3 -0
  46. package/dist/internal/sentry/sentry.edge.config.d.ts.map +1 -0
  47. package/dist/internal/sentry/sentry.server.config.d.ts +3 -0
  48. package/dist/internal/sentry/sentry.server.config.d.ts.map +1 -0
  49. package/dist/internal/sentry/sentryEnvironment.d.ts +6 -0
  50. package/dist/internal/sentry/sentryEnvironment.d.ts.map +1 -0
  51. package/dist/internal/tailwind/{index.d.cts → config.d.ts} +14 -16
  52. package/dist/internal/tailwind/config.d.ts.map +1 -0
  53. package/dist/internal/tailwind/index.d.ts +6 -8
  54. package/dist/internal/tailwind/index.d.ts.map +1 -0
  55. package/dist/internal/wagmi/index.d.ts +6 -8
  56. package/dist/internal/wagmi/index.d.ts.map +1 -0
  57. package/dist/mainnet.d.ts +3 -5
  58. package/dist/mainnet.d.ts.map +1 -0
  59. package/dist/{types-Drv0VlAi.d.cts → types.d.ts} +8 -8
  60. package/dist/types.d.ts.map +1 -0
  61. package/dist/utils/dynamicEnvVariable.d.ts +21 -0
  62. package/dist/utils/dynamicEnvVariable.d.ts.map +1 -0
  63. package/dist/utils/env.d.ts +29 -0
  64. package/dist/utils/env.d.ts.map +1 -0
  65. package/dist/utils/getUriFromLink.d.ts +3 -0
  66. package/dist/utils/getUriFromLink.d.ts.map +1 -0
  67. package/package.json +9 -8
  68. package/dist/bepolia.d.cts +0 -169
  69. package/dist/index.d.cts +0 -6
  70. package/dist/internal/flags/index.d.cts +0 -60
  71. package/dist/internal/header-sources.d.cts +0 -22
  72. package/dist/internal/index.d.cts +0 -749
  73. package/dist/internal/maintenance.d.cts +0 -11
  74. package/dist/internal/nextjs/index.d.cts +0 -34
  75. package/dist/internal/nextjs/utils/index.d.cts +0 -9
  76. package/dist/internal/sentry/index.d.cts +0 -13
  77. package/dist/internal/sentry/sentry.client.config.d.cts +0 -6
  78. package/dist/internal/tsup/index.cjs +0 -73
  79. package/dist/internal/tsup/index.d.cts +0 -6
  80. package/dist/internal/tsup/index.d.ts +0 -6
  81. package/dist/internal/tsup/index.mjs +0 -73
  82. package/dist/internal/wagmi/index.d.cts +0 -12
  83. package/dist/mainnet.d.cts +0 -154
  84. package/dist/types-Drv0VlAi.d.ts +0 -214
  85. /package/dist/{chunk-UOFOM6N7.cjs → chunk-3NQ3NFWW.cjs} +0 -0
  86. /package/dist/{chunk-EGAVWXNC.mjs → chunk-4UCGQIWY.mjs} +0 -0
package/dist/bepolia.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import { C as ChainId, A as Address } from './types-Drv0VlAi.js';
2
-
3
- declare const bepolia: {
1
+ import { type Address, ChainId } from "./types";
2
+ export declare const bepolia: {
4
3
  readonly chainId: ChainId.BEPOLIA;
5
4
  readonly tokens: {
6
5
  readonly wbera: "0x6969696969696969696969696969696969696969";
@@ -165,5 +164,4 @@ declare const bepolia: {
165
164
  readonly endpoint: "https://faucet-api.testnet.berachain.com";
166
165
  };
167
166
  };
168
-
169
- export { bepolia };
167
+ //# sourceMappingURL=bepolia.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bepolia.d.ts","sourceRoot":"","sources":["../src/bepolia.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAmB,OAAO,EAAE,MAAM,SAAS,CAAC;AAEjE,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sCAuIS,OAAO,EAAE;oCACX,OAAO,EAAE;;;;;;;;;sCASP,OAAO,EAAE;oCACX,OAAO,EAAE;;;;;;;;;;;;;;;;;;IAmBlC;;;;OAIG;;;;QAID;;WAEG;;QAEH;;WAEG;;;QAGH;;WAEG;;;CAGwB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,3 @@
1
- import { H as HttpLink } from './types-Drv0VlAi.js';
2
- export { A as Address, a as AppName, B as BeraConfig, C as ChainId, P as ProjectName } from './types-Drv0VlAi.js';
3
-
4
- declare function getUriFromLink(link: HttpLink): string;
5
-
6
- export { HttpLink, getUriFromLink };
1
+ export * from "./types";
2
+ export * from "./utils/getUriFromLink";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,wBAAwB,CAAC"}
@@ -1,11 +1,9 @@
1
- import { C as ChainId, a as AppName$1 } from '../../types-Drv0VlAi.cjs';
2
-
3
1
  /**
4
2
  * This file was automatically generated by json-schema-to-typescript.
5
3
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
6
4
  * and run json-schema-to-typescript to regenerate this file.
7
5
  */
8
- type DynamicEnabled = boolean | {
6
+ export type DynamicEnabled = boolean | {
9
7
  chain?: ("mainnet" | "bepolia")[];
10
8
  /**
11
9
  * If set, the flag will only be enabled on the specified branch. Otherwise, it will be enabled on all branches.
@@ -23,13 +21,13 @@ type DynamicEnabled = boolean | {
23
21
  endAt?: string;
24
22
  condition?: "AND" | "OR";
25
23
  };
26
- type AppName = "BeraHub" | "Honey" | "Bend";
27
- type Address = string;
28
- type MixedBannerItem = BannerItemV2 | StandardBannerItem;
24
+ export type AppName = "BeraHub" | "Honey" | "Bend";
25
+ export type Address = string;
26
+ export type MixedBannerItem = BannerItemV2 | StandardBannerItem;
29
27
  /**
30
28
  * Edge config schema. Please update this in the @berachain/config package first and keep it stored there.
31
29
  */
32
- interface EdgeConfigSchema {
30
+ export interface EdgeConfigSchema {
33
31
  $schema?: string;
34
32
  flags: {
35
33
  [k: string]: DynamicEnabled;
@@ -230,7 +228,7 @@ interface EdgeConfigSchema {
230
228
  }[];
231
229
  };
232
230
  }
233
- interface VaultItem {
231
+ export interface VaultItem {
234
232
  address: Address;
235
233
  enabled: DynamicEnabled;
236
234
  _name?: string;
@@ -238,7 +236,7 @@ interface VaultItem {
238
236
  /**
239
237
  * Copy for a single step in the BGT migration widget. Each field is optional — missing fields fall back to the in-code defaults.
240
238
  */
241
- interface BgtMigrationStep {
239
+ export interface BgtMigrationStep {
242
240
  /**
243
241
  * Label shown in the stepper sidebar.
244
242
  */
@@ -255,7 +253,7 @@ interface BgtMigrationStep {
255
253
  /**
256
254
  * 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.
257
255
  */
258
- interface BgtDerivative {
256
+ export interface BgtDerivative {
259
257
  /**
260
258
  * Token symbol shown in the UI (e.g. 'iBGT').
261
259
  */
@@ -288,7 +286,7 @@ interface BgtDerivative {
288
286
  /**
289
287
  * 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.
290
288
  */
291
- interface DerivativePool {
289
+ export interface DerivativePool {
292
290
  /**
293
291
  * Pool display name (e.g. 'osBGT / sWBERA').
294
292
  */
@@ -314,7 +312,7 @@ interface DerivativePool {
314
312
  */
315
313
  infraredUrl?: string;
316
314
  }
317
- interface BannerItemV2 {
315
+ export interface BannerItemV2 {
318
316
  text: string;
319
317
  className?: string;
320
318
  linkClassName?: string;
@@ -324,11 +322,11 @@ interface BannerItemV2 {
324
322
  paths?: string[];
325
323
  variant?: "info" | "warning" | "bend" | "honey" | "hub";
326
324
  }
327
- interface StandardBannerItem {
325
+ export interface StandardBannerItem {
328
326
  enabled: DynamicEnabled;
329
327
  type: "rpc" | "bepolia" | "slow";
330
328
  }
331
- interface TokenItem {
329
+ export interface TokenItem {
332
330
  address: Address;
333
331
  decimals: number;
334
332
  symbol: string;
@@ -339,55 +337,8 @@ interface TokenItem {
339
337
  chainId?: number;
340
338
  enabled: DynamicEnabled;
341
339
  }
342
- interface LstStakingVaultItem {
340
+ export interface LstStakingVaultItem {
343
341
  address: Address;
344
342
  enabled: DynamicEnabled;
345
343
  }
346
-
347
- /**
348
- * Checks if a dynamic feature flag is enabled based on the provided chain and environment.
349
- *
350
- * @param flag - The dynamic flag value, which can be a boolean or an object specifying conditions.
351
- * @param options - Optional parameters to override the default chain and environment.
352
- * @param options.chain - The chain ID to check against (defaults to current chainId).
353
- * @param options.environment - The environment to check against (defaults to process.env.VERCEL_TARGET_ENV).
354
- * @returns True if the flag is enabled for the given chain and environment, false otherwise.
355
- */
356
- declare function isFlagEnabled(flag: DynamicEnabled, { chain, environment, app, }?: {
357
- chain?: ChainId;
358
- environment?: string;
359
- app?: AppName$1;
360
- }): boolean;
361
-
362
- /**
363
- * Safely retrieves all values from the Vercel Edge Config.
364
- *
365
- * @template T - The type of the config schema to retrieve (defaults to EdgeConfigSchema).
366
- * @param options - Optional parameters.
367
- * @param options.chain - The chain ID to check against (not currently used).
368
- * @param options.environment - The environment to check against (not currently used).
369
- * @param options.onError - Optional error handler callback.
370
- * @returns A promise that resolves to the config object, or undefined if retrieval fails.
371
- */
372
- declare function safeGetAll<T = EdgeConfigSchema>({ onError, }?: {
373
- onError?: (error: unknown) => void;
374
- }): Promise<T | undefined>;
375
-
376
- /**
377
- * Safely retrieves a value from the Vercel Edge Config by key.
378
- *
379
- * @template T - The key of the EdgeConfigSchema to retrieve.
380
- * @param flagName - The name of the config flag to retrieve.
381
- * @param options - Optional parameters.
382
- * @param options.chain - The chain ID to check against (not currently used).
383
- * @param options.environment - The environment to check against (not currently used).
384
- * @param options.onError - Optional error handler callback.
385
- * @returns A promise that resolves to the value of the config flag, or undefined if retrieval fails.
386
- */
387
- declare function safeGetConfig<T extends keyof EdgeConfigSchema>(flagName: T, { onError, }?: {
388
- chain?: ChainId;
389
- environment?: string;
390
- onError?: (error: unknown) => void;
391
- }): Promise<EdgeConfigSchema[T] | undefined>;
392
-
393
- 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 };
344
+ //# sourceMappingURL=edgeConfig.codegen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edgeConfig.codegen.d.ts","sourceRoot":"","sources":["../../../src/internal/edge-config/edgeConfig.codegen.ts"],"names":[],"mappings":"AACA;;;;GAIG;AAEH,MAAM,MAAM,cAAc,GACtB,OAAO,GACP;IACE,KAAK,CAAC,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC,EAAE,CAAC;IAClC;;;;OAIG;IACH,MAAM,CAAC,EAAE,CAAC,YAAY,GAAG,SAAS,GAAG,SAAS,EAAE,GAAG,CAAC,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC,EAAE,CAAC,CAAC;IAC7F;;;;OAIG;IACH,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CAC1B,CAAC;AACN,MAAM,MAAM,OAAO,GAAG,S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MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;CACzD;AACD,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE,KAAK,GAAG,SAAS,GAAG,MAAM,CAAC;CAClC;AACD,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,cAAc,CAAC;CACzB;AACD,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,cAAc,CAAC;CACzB"}
@@ -1,393 +1,5 @@
1
- import { C as ChainId, a as AppName$1 } from '../../types-Drv0VlAi.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
- /**
17
- * If set, the flag will only be enabled on the specified app. Otherwise, it will be enabled on all apps.
18
- *
19
- * @minItems 1
20
- */
21
- app?: [AppName, ...AppName[]];
22
- startAt?: string;
23
- endAt?: string;
24
- condition?: "AND" | "OR";
25
- };
26
- type AppName = "BeraHub" | "Honey" | "Bend";
27
- type Address = string;
28
- type MixedBannerItem = BannerItemV2 | StandardBannerItem;
29
- /**
30
- * Edge config schema. Please update this in the @berachain/config package first and keep it stored there.
31
- */
32
- interface EdgeConfigSchema {
33
- $schema?: string;
34
- flags: {
35
- [k: string]: DynamicEnabled;
36
- };
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
- };
44
- /**
45
- * Labels for the emergency messages and banners. (e.g. pool or vaults are paused)
46
- */
47
- emergencyLabels?: {
48
- /**
49
- * This interface was referenced by `undefined`'s JSON-Schema definition
50
- * via the `patternProperty` "^(vaultPaused|poolRecovery|poolPaused|poolInRecoveryMode|poolPausedAndInRecoveryMode)$".
51
- */
52
- [k: string]: {
53
- title?: string;
54
- description?: string;
55
- banner?: string;
56
- };
57
- };
58
- /**
59
- * If true, weighted pool creation will be disabled.
60
- */
61
- disableWeightedPoolCreation?: boolean;
62
- };
63
- pol: {
64
- /**
65
- * @minItems 2
66
- */
67
- featured?: [VaultItem, VaultItem, ...VaultItem[]];
68
- /**
69
- * 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.
70
- */
71
- singleHolderVaults?: {
72
- address: Address;
73
- _name?: string;
74
- }[];
75
- /**
76
- * The APR for the staked wBera vault. This is used to display the APR in the APR banner.
77
- */
78
- swberaApr?: number;
79
- /**
80
- * The version of the staked wBera vault.
81
- */
82
- swberaMainnetVersion?: "V1" | "V2";
83
- /**
84
- * the window is DAY or WEEK, its the window for calculating the APR
85
- */
86
- swberaAprWindow?: "DAY" | "WEEK";
87
- /**
88
- * X post URL for the vNext onboarding 'Learn more' button. Falls back to the docs URL when unset.
89
- */
90
- vnextOnboardingUrl?: string;
91
- automatedRewardAllocation: {
92
- blockDelayLabel: string;
93
- hoursToWarnInAdvance: number;
94
- };
95
- /**
96
- * User-facing copy for the portfolio PoL migration widget (BGT / Incentives / BGT derivatives tabs). Every field is optional; the app merges what's provided here over the in-code defaults, so a partial override leaves everything else intact.
97
- */
98
- bgtMigrationWidget?: {
99
- /**
100
- * Always-visible widget header (e.g. 'PoL Migration').
101
- */
102
- widgetTitle?: string;
103
- /**
104
- * Header text shown once every tab is complete.
105
- */
106
- completedTitle?: string;
107
- /**
108
- * Labels for the three migration tabs.
109
- */
110
- tabs?: {
111
- bgt?: string;
112
- incentives?: string;
113
- derivatives?: string;
114
- };
115
- /**
116
- * BGT tab heading.
117
- */
118
- title?: string;
119
- /**
120
- * BGT tab sub-copy; each entry renders as its own paragraph.
121
- */
122
- description?: string[];
123
- /**
124
- * Per-step copy for the BGT tab. Each step id is optional; missing steps (and missing fields within a step) fall back to the in-code defaults. Unknown step ids are rejected so a typo cannot silently break a step's copy.
125
- */
126
- steps?: {
127
- claimFees?: BgtMigrationStep;
128
- unboost?: BgtMigrationStep;
129
- redeemBGT?: BgtMigrationStep;
130
- stakeBERA?: BgtMigrationStep;
131
- unstake?: BgtMigrationStep;
132
- unstakeExternal?: BgtMigrationStep;
133
- withdraw?: BgtMigrationStep;
134
- redeem?: BgtMigrationStep;
135
- };
136
- /**
137
- * Copy for the Incentives tab.
138
- */
139
- incentives?: {
140
- title?: string;
141
- description?: string;
142
- alertText?: string;
143
- claimCta?: string;
144
- };
145
- /**
146
- * Copy for the BGT derivatives tab.
147
- */
148
- derivatives?: {
149
- title?: string;
150
- description?: string;
151
- convertCta?: string;
152
- };
153
- /**
154
- * 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.
155
- */
156
- derivativeTokens?: {
157
- /**
158
- * Derivative tokens for Berachain mainnet.
159
- */
160
- mainnet?: BgtDerivative[];
161
- /**
162
- * Derivative tokens for the Bepolia testnet.
163
- */
164
- bepolia?: BgtDerivative[];
165
- };
166
- /**
167
- * 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.
168
- */
169
- derivativePools?: {
170
- /**
171
- * Derivative pools for Berachain mainnet.
172
- */
173
- mainnet?: DerivativePool[];
174
- /**
175
- * Derivative pools for the Bepolia testnet.
176
- */
177
- bepolia?: DerivativePool[];
178
- };
179
- /**
180
- * Copy for the site-wide nudge banner shown when a user has un-migrated BGT positions.
181
- */
182
- banner?: {
183
- /**
184
- * Banner text; the whole strip links to the portfolio migration widget.
185
- */
186
- text?: string;
187
- };
188
- };
189
- };
190
- honey: {
191
- /**
192
- * Object containing the collateral order for mainnet & bepolia.
193
- */
194
- preferredCollateralOrder?: {
195
- mainnet: {
196
- address: Address;
197
- _label?: string;
198
- }[];
199
- bepolia: {
200
- address: Address;
201
- _label?: string;
202
- }[];
203
- };
204
- /**
205
- * The label for the Honey protocol paused message.
206
- */
207
- pausedBannerLabel?: string;
208
- };
209
- banners: MixedBannerItem[];
210
- tokens?: TokenItem[];
211
- lstStakingVaults?: LstStakingVaultItem[];
212
- maintenance?: {
213
- /**
214
- * This interface was referenced by `undefined`'s JSON-Schema definition
215
- * via the `patternProperty` "^(hub|honey|bridge|boyco)$".
216
- */
217
- [k: string]: {
218
- enabled?: DynamicEnabled;
219
- [k: string]: unknown;
220
- };
221
- };
222
- wagmi: {
223
- /**
224
- * The list of external chains that are approved for multi chain zapping.
225
- */
226
- externalChainList: {
227
- chainId: number;
228
- _name?: string;
229
- enabled: DynamicEnabled;
230
- }[];
231
- };
232
- }
233
- interface VaultItem {
234
- address: Address;
235
- enabled: DynamicEnabled;
236
- _name?: string;
237
- }
238
- /**
239
- * Copy for a single step in the BGT migration widget. Each field is optional — missing fields fall back to the in-code defaults.
240
- */
241
- interface BgtMigrationStep {
242
- /**
243
- * Label shown in the stepper sidebar.
244
- */
245
- label?: string;
246
- /**
247
- * Title shown at the top of the step card.
248
- */
249
- title?: string;
250
- /**
251
- * Informational text shown in a muted alert row inside the step card.
252
- */
253
- alertText?: string;
254
- }
255
- /**
256
- * 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.
257
- */
258
- interface BgtDerivative {
259
- /**
260
- * Token symbol shown in the UI (e.g. 'iBGT').
261
- */
262
- symbol: string;
263
- /**
264
- * Human-readable token name (e.g. 'Infrared BGT').
265
- */
266
- tokenName?: string;
267
- /**
268
- * Human-readable source protocol (e.g. 'Infrared'), shown on the 'Unstake on {protocol}' link.
269
- */
270
- protocol: string;
271
- /**
272
- * 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.
273
- */
274
- tokenAddress: string;
275
- /**
276
- * The derivative's own single-asset staking contract; its staked balance surfaces an Unstake row. Omit when the derivative has no native staking.
277
- */
278
- stakingContract?: string;
279
- /**
280
- * External page where the user unstakes this derivative from its own staking (Unstake step, derivative-staking rows).
281
- */
282
- unstakeUrl: string;
283
- /**
284
- * External page where the user redeems this derivative for BERA (Redeem step). Falls back to `unstakeUrl` when omitted.
285
- */
286
- redeemUrl?: string;
287
- }
288
- /**
289
- * 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.
290
- */
291
- interface DerivativePool {
292
- /**
293
- * Pool display name (e.g. 'osBGT / sWBERA').
294
- */
295
- name: string;
296
- /**
297
- * Pool protocol — determines the withdraw mechanism.
298
- */
299
- protocol: "Kodiak" | "HUB";
300
- /**
301
- * Pool / LP-token address; the idle LP balance is read from here and liquidity is withdrawn from it.
302
- */
303
- poolAddress: string;
304
- /**
305
- * Berachain Hub/Kodiak/Bera reward vault that stakes this pool's LP token. Omit when the pool has none.
306
- */
307
- rewardVault?: string;
308
- /**
309
- * Infrared vault that stakes this pool's LP token. Omit when the pool has none.
310
- */
311
- infraredVault?: string;
312
- /**
313
- * Infrared reward-vault page for `infraredVault` (Infrared uses slug URLs, not address-based). Falls back to the Infrared vaults list when omitted.
314
- */
315
- infraredUrl?: string;
316
- }
317
- interface BannerItemV2 {
318
- text: string;
319
- className?: string;
320
- linkClassName?: string;
321
- enabled: DynamicEnabled;
322
- href?: string;
323
- icon?: "bend";
324
- paths?: string[];
325
- variant?: "info" | "warning" | "bend" | "honey" | "hub";
326
- }
327
- interface StandardBannerItem {
328
- enabled: DynamicEnabled;
329
- type: "rpc" | "bepolia" | "slow";
330
- }
331
- interface TokenItem {
332
- address: Address;
333
- decimals: number;
334
- symbol: string;
335
- name: string;
336
- tags?: string[];
337
- base64?: string;
338
- logoURI?: string;
339
- chainId?: number;
340
- enabled: DynamicEnabled;
341
- }
342
- interface LstStakingVaultItem {
343
- address: Address;
344
- enabled: DynamicEnabled;
345
- }
346
-
347
- /**
348
- * Checks if a dynamic feature flag is enabled based on the provided chain and environment.
349
- *
350
- * @param flag - The dynamic flag value, which can be a boolean or an object specifying conditions.
351
- * @param options - Optional parameters to override the default chain and environment.
352
- * @param options.chain - The chain ID to check against (defaults to current chainId).
353
- * @param options.environment - The environment to check against (defaults to process.env.VERCEL_TARGET_ENV).
354
- * @returns True if the flag is enabled for the given chain and environment, false otherwise.
355
- */
356
- declare function isFlagEnabled(flag: DynamicEnabled, { chain, environment, app, }?: {
357
- chain?: ChainId;
358
- environment?: string;
359
- app?: AppName$1;
360
- }): boolean;
361
-
362
- /**
363
- * Safely retrieves all values from the Vercel Edge Config.
364
- *
365
- * @template T - The type of the config schema to retrieve (defaults to EdgeConfigSchema).
366
- * @param options - Optional parameters.
367
- * @param options.chain - The chain ID to check against (not currently used).
368
- * @param options.environment - The environment to check against (not currently used).
369
- * @param options.onError - Optional error handler callback.
370
- * @returns A promise that resolves to the config object, or undefined if retrieval fails.
371
- */
372
- declare function safeGetAll<T = EdgeConfigSchema>({ onError, }?: {
373
- onError?: (error: unknown) => void;
374
- }): Promise<T | undefined>;
375
-
376
- /**
377
- * Safely retrieves a value from the Vercel Edge Config by key.
378
- *
379
- * @template T - The key of the EdgeConfigSchema to retrieve.
380
- * @param flagName - The name of the config flag to retrieve.
381
- * @param options - Optional parameters.
382
- * @param options.chain - The chain ID to check against (not currently used).
383
- * @param options.environment - The environment to check against (not currently used).
384
- * @param options.onError - Optional error handler callback.
385
- * @returns A promise that resolves to the value of the config flag, or undefined if retrieval fails.
386
- */
387
- declare function safeGetConfig<T extends keyof EdgeConfigSchema>(flagName: T, { onError, }?: {
388
- chain?: ChainId;
389
- environment?: string;
390
- onError?: (error: unknown) => void;
391
- }): Promise<EdgeConfigSchema[T] | undefined>;
392
-
393
- 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
+ export * from "./edgeConfig.codegen";
2
+ export * from "./isFlagEnabled";
3
+ export * from "./safeGetAll";
4
+ export * from "./safeGetConfig";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/internal/edge-config/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { type AppName, ChainId } from "../../types";
2
+ import type { DynamicEnabled } from "./edgeConfig.codegen";
3
+ /**
4
+ * Checks if a dynamic feature flag is enabled based on the provided chain and environment.
5
+ *
6
+ * @param flag - The dynamic flag value, which can be a boolean or an object specifying conditions.
7
+ * @param options - Optional parameters to override the default chain and environment.
8
+ * @param options.chain - The chain ID to check against (defaults to current chainId).
9
+ * @param options.environment - The environment to check against (defaults to process.env.VERCEL_TARGET_ENV).
10
+ * @returns True if the flag is enabled for the given chain and environment, false otherwise.
11
+ */
12
+ export declare function isFlagEnabled(flag: DynamicEnabled, { chain, environment, app, }?: {
13
+ chain?: ChainId;
14
+ environment?: string;
15
+ app?: AppName;
16
+ }): boolean;
17
+ //# sourceMappingURL=isFlagEnabled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isFlagEnabled.d.ts","sourceRoot":"","sources":["../../../src/internal/edge-config/isFlagEnabled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAsE3D;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,cAAc,EACpB,EACE,KAAe,EACf,WAA2C,EAC3C,GAAiB,GAClB,GAAE;IACD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,OAAO,CAAC;CACV,GACL,OAAO,CA2BT"}
@@ -0,0 +1,15 @@
1
+ import type { EdgeConfigSchema } from "./edgeConfig.codegen";
2
+ /**
3
+ * Safely retrieves all values from the Vercel Edge Config.
4
+ *
5
+ * @template T - The type of the config schema to retrieve (defaults to EdgeConfigSchema).
6
+ * @param options - Optional parameters.
7
+ * @param options.chain - The chain ID to check against (not currently used).
8
+ * @param options.environment - The environment to check against (not currently used).
9
+ * @param options.onError - Optional error handler callback.
10
+ * @returns A promise that resolves to the config object, or undefined if retrieval fails.
11
+ */
12
+ export declare function safeGetAll<T = EdgeConfigSchema>({ onError, }?: {
13
+ onError?: (error: unknown) => void;
14
+ }): Promise<T | undefined>;
15
+ //# sourceMappingURL=safeGetAll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"safeGetAll.d.ts","sourceRoot":"","sources":["../../../src/internal/edge-config/safeGetAll.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D;;;;;;;;;GASG;AACH,wBAAsB,UAAU,CAAC,CAAC,GAAG,gBAAgB,EAAE,EACrD,OAAO,GACR,GAAE;IACD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/B,GAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,CAO9B"}
@@ -0,0 +1,19 @@
1
+ import type { ChainId } from "../../types";
2
+ import type { EdgeConfigSchema } from "./edgeConfig.codegen";
3
+ /**
4
+ * Safely retrieves a value from the Vercel Edge Config by key.
5
+ *
6
+ * @template T - The key of the EdgeConfigSchema to retrieve.
7
+ * @param flagName - The name of the config flag to retrieve.
8
+ * @param options - Optional parameters.
9
+ * @param options.chain - The chain ID to check against (not currently used).
10
+ * @param options.environment - The environment to check against (not currently used).
11
+ * @param options.onError - Optional error handler callback.
12
+ * @returns A promise that resolves to the value of the config flag, or undefined if retrieval fails.
13
+ */
14
+ export declare function safeGetConfig<T extends keyof EdgeConfigSchema>(flagName: T, { onError, }?: {
15
+ chain?: ChainId;
16
+ environment?: string;
17
+ onError?: (error: unknown) => void;
18
+ }): Promise<EdgeConfigSchema[T] | undefined>;
19
+ //# sourceMappingURL=safeGetConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"safeGetConfig.d.ts","sourceRoot":"","sources":["../../../src/internal/edge-config/safeGetConfig.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D;;;;;;;;;;GAUG;AACH,wBAAsB,aAAa,CAAC,CAAC,SAAS,MAAM,gBAAgB,EAClE,QAAQ,EAAE,CAAC,EACX,EACE,OAAO,GACR,GAAE;IACD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/B,GACL,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAO1C"}
@@ -0,0 +1,9 @@
1
+ import type { Adapter } from "flags";
2
+ import type { EdgeConfigSchema } from "../edge-config/edgeConfig.codegen";
3
+ /**
4
+ * A custom adapter for the Edge Config that extends edgeConfigAdapter and parses the DynamicEnabled type to a boolean value.
5
+ */
6
+ export declare function beraEdgeConfigAdapter({ adapter }?: {
7
+ adapter: Adapter<boolean, EdgeConfigSchema>;
8
+ }): Adapter<boolean, EdgeConfigSchema>;
9
+ //# sourceMappingURL=beraEdgeConfigAdapter.d.ts.map