@berachain/config 0.1.16 → 0.1.17-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.
|
@@ -84,10 +84,37 @@ interface EdgeConfigSchema {
|
|
|
84
84
|
* the window is DAY or WEEK, its the window for calculating the APR
|
|
85
85
|
*/
|
|
86
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;
|
|
87
91
|
automatedRewardAllocation: {
|
|
88
92
|
blockDelayLabel: string;
|
|
89
93
|
hoursToWarnInAdvance: number;
|
|
90
94
|
};
|
|
95
|
+
/**
|
|
96
|
+
* User-facing copy for the portfolio BGT → sWBERA migration widget. Every field is optional; the app merges what's provided here over the in-code defaults, so a partial override (e.g. a single step's alertText) leaves everything else intact.
|
|
97
|
+
*/
|
|
98
|
+
bgtMigrationWidget?: {
|
|
99
|
+
/**
|
|
100
|
+
* Headline at the top of the widget.
|
|
101
|
+
*/
|
|
102
|
+
title?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Sub-copy under the title; each entry renders as its own paragraph.
|
|
105
|
+
*/
|
|
106
|
+
description?: string[];
|
|
107
|
+
/**
|
|
108
|
+
* Per-step copy. 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.
|
|
109
|
+
*/
|
|
110
|
+
steps?: {
|
|
111
|
+
claimIncentives?: BgtMigrationStep;
|
|
112
|
+
claimFees?: BgtMigrationStep;
|
|
113
|
+
unboost?: BgtMigrationStep;
|
|
114
|
+
redeemBGT?: BgtMigrationStep;
|
|
115
|
+
stakeBERA?: BgtMigrationStep;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
91
118
|
};
|
|
92
119
|
honey: {
|
|
93
120
|
/**
|
|
@@ -137,6 +164,23 @@ interface VaultItem {
|
|
|
137
164
|
enabled: DynamicEnabled;
|
|
138
165
|
_name?: string;
|
|
139
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* Copy for a single step in the BGT migration widget. Each field is optional — missing fields fall back to the in-code defaults.
|
|
169
|
+
*/
|
|
170
|
+
interface BgtMigrationStep {
|
|
171
|
+
/**
|
|
172
|
+
* Label shown in the stepper sidebar.
|
|
173
|
+
*/
|
|
174
|
+
label?: string;
|
|
175
|
+
/**
|
|
176
|
+
* Title shown at the top of the step card.
|
|
177
|
+
*/
|
|
178
|
+
title?: string;
|
|
179
|
+
/**
|
|
180
|
+
* Informational text shown in a muted alert row inside the step card.
|
|
181
|
+
*/
|
|
182
|
+
alertText?: string;
|
|
183
|
+
}
|
|
140
184
|
interface BannerItemV2 {
|
|
141
185
|
text: string;
|
|
142
186
|
className?: string;
|
|
@@ -213,4 +257,4 @@ declare function safeGetConfig<T extends keyof EdgeConfigSchema>(flagName: T, {
|
|
|
213
257
|
onError?: (error: unknown) => void;
|
|
214
258
|
}): Promise<EdgeConfigSchema[T] | undefined>;
|
|
215
259
|
|
|
216
|
-
export { type Address, type AppName, type BannerItemV2, type DynamicEnabled, type EdgeConfigSchema, type LstStakingVaultItem, type MixedBannerItem, type StandardBannerItem, type TokenItem, type VaultItem, isFlagEnabled, safeGetAll, safeGetConfig };
|
|
260
|
+
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 };
|
|
@@ -84,10 +84,37 @@ interface EdgeConfigSchema {
|
|
|
84
84
|
* the window is DAY or WEEK, its the window for calculating the APR
|
|
85
85
|
*/
|
|
86
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;
|
|
87
91
|
automatedRewardAllocation: {
|
|
88
92
|
blockDelayLabel: string;
|
|
89
93
|
hoursToWarnInAdvance: number;
|
|
90
94
|
};
|
|
95
|
+
/**
|
|
96
|
+
* User-facing copy for the portfolio BGT → sWBERA migration widget. Every field is optional; the app merges what's provided here over the in-code defaults, so a partial override (e.g. a single step's alertText) leaves everything else intact.
|
|
97
|
+
*/
|
|
98
|
+
bgtMigrationWidget?: {
|
|
99
|
+
/**
|
|
100
|
+
* Headline at the top of the widget.
|
|
101
|
+
*/
|
|
102
|
+
title?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Sub-copy under the title; each entry renders as its own paragraph.
|
|
105
|
+
*/
|
|
106
|
+
description?: string[];
|
|
107
|
+
/**
|
|
108
|
+
* Per-step copy. 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.
|
|
109
|
+
*/
|
|
110
|
+
steps?: {
|
|
111
|
+
claimIncentives?: BgtMigrationStep;
|
|
112
|
+
claimFees?: BgtMigrationStep;
|
|
113
|
+
unboost?: BgtMigrationStep;
|
|
114
|
+
redeemBGT?: BgtMigrationStep;
|
|
115
|
+
stakeBERA?: BgtMigrationStep;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
91
118
|
};
|
|
92
119
|
honey: {
|
|
93
120
|
/**
|
|
@@ -137,6 +164,23 @@ interface VaultItem {
|
|
|
137
164
|
enabled: DynamicEnabled;
|
|
138
165
|
_name?: string;
|
|
139
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* Copy for a single step in the BGT migration widget. Each field is optional — missing fields fall back to the in-code defaults.
|
|
169
|
+
*/
|
|
170
|
+
interface BgtMigrationStep {
|
|
171
|
+
/**
|
|
172
|
+
* Label shown in the stepper sidebar.
|
|
173
|
+
*/
|
|
174
|
+
label?: string;
|
|
175
|
+
/**
|
|
176
|
+
* Title shown at the top of the step card.
|
|
177
|
+
*/
|
|
178
|
+
title?: string;
|
|
179
|
+
/**
|
|
180
|
+
* Informational text shown in a muted alert row inside the step card.
|
|
181
|
+
*/
|
|
182
|
+
alertText?: string;
|
|
183
|
+
}
|
|
140
184
|
interface BannerItemV2 {
|
|
141
185
|
text: string;
|
|
142
186
|
className?: string;
|
|
@@ -213,4 +257,4 @@ declare function safeGetConfig<T extends keyof EdgeConfigSchema>(flagName: T, {
|
|
|
213
257
|
onError?: (error: unknown) => void;
|
|
214
258
|
}): Promise<EdgeConfigSchema[T] | undefined>;
|
|
215
259
|
|
|
216
|
-
export { type Address, type AppName, type BannerItemV2, type DynamicEnabled, type EdgeConfigSchema, type LstStakingVaultItem, type MixedBannerItem, type StandardBannerItem, type TokenItem, type VaultItem, isFlagEnabled, safeGetAll, safeGetConfig };
|
|
260
|
+
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 };
|