@berachain/config 0.1.20-beta.0 → 0.1.20-beta.1

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.
@@ -146,6 +146,19 @@ interface EdgeConfigSchema {
146
146
  description?: string;
147
147
  convertCta?: string;
148
148
  };
149
+ /**
150
+ * 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.
151
+ */
152
+ derivativeTokens?: {
153
+ /**
154
+ * Derivative tokens for Berachain mainnet.
155
+ */
156
+ mainnet?: BgtDerivative[];
157
+ /**
158
+ * Derivative tokens for the Bepolia testnet.
159
+ */
160
+ bepolia?: BgtDerivative[];
161
+ };
149
162
  /**
150
163
  * Copy for the site-wide nudge banner shown when a user has un-migrated BGT positions.
151
164
  */
@@ -222,6 +235,27 @@ interface BgtMigrationStep {
222
235
  */
223
236
  alertText?: string;
224
237
  }
238
+ /**
239
+ * 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.
240
+ */
241
+ interface BgtDerivative {
242
+ /**
243
+ * Token symbol shown in the UI (e.g. 'iBGT').
244
+ */
245
+ symbol: string;
246
+ /**
247
+ * Human-readable source protocol (e.g. 'Infrared'), shown on the 'Unstake on {protocol}' link.
248
+ */
249
+ protocol: string;
250
+ /**
251
+ * ERC20 address of the derivative token; the in-wallet (idle) balance is read from here.
252
+ */
253
+ tokenAddress: string;
254
+ /**
255
+ * External page where the user unstakes / redeems this derivative.
256
+ */
257
+ unstakeUrl: string;
258
+ }
225
259
  interface BannerItemV2 {
226
260
  text: string;
227
261
  className?: string;
@@ -298,4 +332,4 @@ declare function safeGetConfig<T extends keyof EdgeConfigSchema>(flagName: T, {
298
332
  onError?: (error: unknown) => void;
299
333
  }): Promise<EdgeConfigSchema[T] | undefined>;
300
334
 
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 };
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 };
@@ -146,6 +146,19 @@ interface EdgeConfigSchema {
146
146
  description?: string;
147
147
  convertCta?: string;
148
148
  };
149
+ /**
150
+ * 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.
151
+ */
152
+ derivativeTokens?: {
153
+ /**
154
+ * Derivative tokens for Berachain mainnet.
155
+ */
156
+ mainnet?: BgtDerivative[];
157
+ /**
158
+ * Derivative tokens for the Bepolia testnet.
159
+ */
160
+ bepolia?: BgtDerivative[];
161
+ };
149
162
  /**
150
163
  * Copy for the site-wide nudge banner shown when a user has un-migrated BGT positions.
151
164
  */
@@ -222,6 +235,27 @@ interface BgtMigrationStep {
222
235
  */
223
236
  alertText?: string;
224
237
  }
238
+ /**
239
+ * 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.
240
+ */
241
+ interface BgtDerivative {
242
+ /**
243
+ * Token symbol shown in the UI (e.g. 'iBGT').
244
+ */
245
+ symbol: string;
246
+ /**
247
+ * Human-readable source protocol (e.g. 'Infrared'), shown on the 'Unstake on {protocol}' link.
248
+ */
249
+ protocol: string;
250
+ /**
251
+ * ERC20 address of the derivative token; the in-wallet (idle) balance is read from here.
252
+ */
253
+ tokenAddress: string;
254
+ /**
255
+ * External page where the user unstakes / redeems this derivative.
256
+ */
257
+ unstakeUrl: string;
258
+ }
225
259
  interface BannerItemV2 {
226
260
  text: string;
227
261
  className?: string;
@@ -298,4 +332,4 @@ declare function safeGetConfig<T extends keyof EdgeConfigSchema>(flagName: T, {
298
332
  onError?: (error: unknown) => void;
299
333
  }): Promise<EdgeConfigSchema[T] | undefined>;
300
334
 
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 };
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 };
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.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",