19 lines
508 B
JavaScript
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)
|