import { defaultSettings , getCurrentDBConfig } from '@database' ; import { LSKeys } from '@types' ; import { deMarshallState , marshallState } from '../DataManager/utils' ; import { ClaimsState } from './claims.slice' ; import { ConnectionsState } from './connections.slice' ; import { PromoPoapsState } from './promoPoaps.slice' ; export const emptyState = { version : getCurrentDBConfig ( ) . version , [ LSKeys . ACCOUNTS ] : [ ] , [ LSKeys . ADDRESS_BOOK ] : [ ] , [ LSKeys . ASSETS ] : [ ] , [ LSKeys . RATES ] : { } , [ LSKeys . TRACKED_ASSETS ] : { } , [ LSKeys . CONTRACTS ] : [ ] , [ LSKeys . NETWORKS ] : [ ] , [ LSKeys . NOTIFICATIONS ] : [ ] , [ LSKeys . SETTINGS ] : defaultSettings , [ LSKeys . USER_ACTIONS ] : [ ] , [ LSKeys . PROMO_POAPS ] : { promos : { } } as PromoPoapsState , [ LSKeys . CONNECTIONS ] : { wallets : { } } as ConnectionsState , [ LSKeys . CLAIMS ] : { claims : { } } as ClaimsState } ; todo export const initialLegacyState = marshallState ( deMarshallState ( emptyState ) ) ;