classic-ui-dev/modules/account/store/state/domain.js
Danil Kovtonyuk 44f31f8b9f
init
2022-04-22 13:14:19 +10:00

19 lines
508 B
JavaScript

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)