@berachain/config 0.1.21-beta.1 → 0.1.21
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.
|
@@ -128,9 +128,6 @@ interface EdgeConfigSchema {
|
|
|
128
128
|
unboost?: BgtMigrationStep;
|
|
129
129
|
redeemBGT?: BgtMigrationStep;
|
|
130
130
|
stakeBERA?: BgtMigrationStep;
|
|
131
|
-
unstake?: BgtMigrationStep;
|
|
132
|
-
withdraw?: BgtMigrationStep;
|
|
133
|
-
redeem?: BgtMigrationStep;
|
|
134
131
|
};
|
|
135
132
|
/**
|
|
136
133
|
* Copy for the Incentives tab.
|
|
@@ -162,19 +159,6 @@ interface EdgeConfigSchema {
|
|
|
162
159
|
*/
|
|
163
160
|
bepolia?: BgtDerivative[];
|
|
164
161
|
};
|
|
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
|
-
};
|
|
178
162
|
/**
|
|
179
163
|
* Copy for the site-wide nudge banner shown when a user has un-migrated BGT positions.
|
|
180
164
|
*/
|
|
@@ -259,59 +243,18 @@ interface BgtDerivative {
|
|
|
259
243
|
* Token symbol shown in the UI (e.g. 'iBGT').
|
|
260
244
|
*/
|
|
261
245
|
symbol: string;
|
|
262
|
-
/**
|
|
263
|
-
* Human-readable token name (e.g. 'Infrared BGT').
|
|
264
|
-
*/
|
|
265
|
-
tokenName?: string;
|
|
266
246
|
/**
|
|
267
247
|
* Human-readable source protocol (e.g. 'Infrared'), shown on the 'Unstake on {protocol}' link.
|
|
268
248
|
*/
|
|
269
249
|
protocol: string;
|
|
270
250
|
/**
|
|
271
|
-
* ERC20 address of the derivative token; the in-wallet (idle) balance is read from here
|
|
251
|
+
* ERC20 address of the derivative token; the in-wallet (idle) balance is read from here.
|
|
272
252
|
*/
|
|
273
253
|
tokenAddress: string;
|
|
274
254
|
/**
|
|
275
|
-
*
|
|
276
|
-
*/
|
|
277
|
-
stakingContract?: string;
|
|
278
|
-
/**
|
|
279
|
-
* External page where the user unstakes this derivative from its own staking (Unstake step, derivative-staking rows).
|
|
255
|
+
* External page where the user unstakes / redeems this derivative.
|
|
280
256
|
*/
|
|
281
257
|
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
258
|
}
|
|
316
259
|
interface BannerItemV2 {
|
|
317
260
|
text: string;
|
|
@@ -389,4 +332,4 @@ declare function safeGetConfig<T extends keyof EdgeConfigSchema>(flagName: T, {
|
|
|
389
332
|
onError?: (error: unknown) => void;
|
|
390
333
|
}): Promise<EdgeConfigSchema[T] | undefined>;
|
|
391
334
|
|
|
392
|
-
export { type Address, type AppName, type BannerItemV2, type BgtDerivative, type BgtMigrationStep, type
|
|
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 };
|
|
@@ -128,9 +128,6 @@ interface EdgeConfigSchema {
|
|
|
128
128
|
unboost?: BgtMigrationStep;
|
|
129
129
|
redeemBGT?: BgtMigrationStep;
|
|
130
130
|
stakeBERA?: BgtMigrationStep;
|
|
131
|
-
unstake?: BgtMigrationStep;
|
|
132
|
-
withdraw?: BgtMigrationStep;
|
|
133
|
-
redeem?: BgtMigrationStep;
|
|
134
131
|
};
|
|
135
132
|
/**
|
|
136
133
|
* Copy for the Incentives tab.
|
|
@@ -162,19 +159,6 @@ interface EdgeConfigSchema {
|
|
|
162
159
|
*/
|
|
163
160
|
bepolia?: BgtDerivative[];
|
|
164
161
|
};
|
|
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
|
-
};
|
|
178
162
|
/**
|
|
179
163
|
* Copy for the site-wide nudge banner shown when a user has un-migrated BGT positions.
|
|
180
164
|
*/
|
|
@@ -259,59 +243,18 @@ interface BgtDerivative {
|
|
|
259
243
|
* Token symbol shown in the UI (e.g. 'iBGT').
|
|
260
244
|
*/
|
|
261
245
|
symbol: string;
|
|
262
|
-
/**
|
|
263
|
-
* Human-readable token name (e.g. 'Infrared BGT').
|
|
264
|
-
*/
|
|
265
|
-
tokenName?: string;
|
|
266
246
|
/**
|
|
267
247
|
* Human-readable source protocol (e.g. 'Infrared'), shown on the 'Unstake on {protocol}' link.
|
|
268
248
|
*/
|
|
269
249
|
protocol: string;
|
|
270
250
|
/**
|
|
271
|
-
* ERC20 address of the derivative token; the in-wallet (idle) balance is read from here
|
|
251
|
+
* ERC20 address of the derivative token; the in-wallet (idle) balance is read from here.
|
|
272
252
|
*/
|
|
273
253
|
tokenAddress: string;
|
|
274
254
|
/**
|
|
275
|
-
*
|
|
276
|
-
*/
|
|
277
|
-
stakingContract?: string;
|
|
278
|
-
/**
|
|
279
|
-
* External page where the user unstakes this derivative from its own staking (Unstake step, derivative-staking rows).
|
|
255
|
+
* External page where the user unstakes / redeems this derivative.
|
|
280
256
|
*/
|
|
281
257
|
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
258
|
}
|
|
316
259
|
interface BannerItemV2 {
|
|
317
260
|
text: string;
|
|
@@ -389,4 +332,4 @@ declare function safeGetConfig<T extends keyof EdgeConfigSchema>(flagName: T, {
|
|
|
389
332
|
onError?: (error: unknown) => void;
|
|
390
333
|
}): Promise<EdgeConfigSchema[T] | undefined>;
|
|
391
334
|
|
|
392
|
-
export { type Address, type AppName, type BannerItemV2, type BgtDerivative, type BgtMigrationStep, type
|
|
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 };
|