Files
dydx-v4-web/src/constants/localStorage.ts
T

30 lines
1.1 KiB
TypeScript

export enum LocalStorageKey {
// Onboarding / Accounts
EvmAddress = 'dydx.EvmAddress',
DydxAddress = 'dydx.DydxAddress',
OnboardingSelectedWalletType = 'dydx.OnboardingSelectedWalletType',
WalletConnectionType = 'dydx.WalletConnectionType',
OnboardingHasAcknowledgedTerms = 'dydx.OnboardingHasAcknowledgedTerms',
EvmDerivedAddresses = 'dydx.EvmDerivedAddresses',
// Notifications
Notifications = 'dydx.Notifications',
NotificationsLastUpdated = 'dydx.NotificationsLastUpdated',
PushNotificationsEnabled = 'dydx.PushNotificationsEnabled',
PushNotificationsLastUpdated = 'dydx.PushNotificationsLastUpdated',
TransferNotifications = 'dydx.TransferNotifications',
// UI State
LastViewedMarket = 'dydx.LastViewedMarket',
SelectedLocale = 'dydx.SelectedLocale',
SelectedNetwork = 'dydx.SelectedNetwork',
SelectedTheme = 'dydx.SelectedTheme',
SelectedTradeLayout = 'dydx.SelectedTradeLayout',
TradingViewChartConfig = 'dydx.TradingViewChartConfig',
}
export const LOCAL_STORAGE_VERSIONS = {
[LocalStorageKey.EvmDerivedAddresses]: 'v2',
// TODO: version all localStorage keys
};