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

19 lines
508 B
JavaScript
Raw Normal View History

2022-04-21 23:05:56 -04: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)