-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathfeatureFlags.ts
More file actions
29 lines (27 loc) · 1.16 KB
/
featureFlags.ts
File metadata and controls
29 lines (27 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import type { Json } from '@metamask/utils';
/**
* Feature flag names that can be overridden in development tools.
* These correspond to remote feature flags that have selector implementations
* in app/selectors/featureFlagController/
*/
export enum FeatureFlagNames {
rewardsEnabled = 'rewardsEnabled',
otaUpdatesEnabled = 'otaUpdatesEnabled',
rewardsEnableMusdHolding = 'rewardsEnableMusdHolding',
fullPageAccountList = 'fullPageAccountList',
importSrpWordSuggestion = 'importSrpWordSuggestion',
assetsDefiPositionsEnabled = 'assetsDefiPositionsEnabled',
tokenDetailsV2Buttons = 'tokenDetailsV2Buttons',
tokenDetailsV2ButtonLayout = 'tokenDetailsV2ButtonLayout',
complianceEnabled = 'complianceEnabled',
legacyIosGoogleConfigEnabled = 'legacyIosGoogleConfigEnabled',
tronClaimUnstakedTrxButtonEnabled = 'tronClaimUnstakedTrxButtonEnabled',
}
export const DEFAULT_FEATURE_FLAG_VALUES: Partial<
Record<FeatureFlagNames, Json>
> = {
[FeatureFlagNames.assetsDefiPositionsEnabled]: true,
[FeatureFlagNames.tokenDetailsV2Buttons]: false,
[FeatureFlagNames.tokenDetailsV2ButtonLayout]: false,
[FeatureFlagNames.tronClaimUnstakedTrxButtonEnabled]: false,
};