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

19 lines
508 B
JavaScript
Raw Permalink Normal View History

2022-04-22 06:05:56 +03: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)