classic-ui/modules/account/store/state/domain.js

19 lines
508 B
JavaScript
Raw Permalink Normal View History

2022-04-22 13:05:56 +10:00
import { createChainIdState } from '@/utils'
const requestState = {
isError: false,
isSuccess: false,
isFetching: false,
errorMessage: ''
}
const initialDomainState = {
setupAccount: Object.assign({}, requestState),
decryptNotes: Object.assign({}, requestState),
removeAccount: Object.assign({}, requestState),
recoverAccountFromKey: Object.assign({}, requestState),
recoverAccountFromChain: Object.assign({}, requestState)
}
export const domain = createChainIdState(initialDomainState)