classic-ui-dev/modules/account/store/actions/index.js

52 lines
1.5 KiB
JavaScript
Raw Normal View History

2022-04-21 23:05:56 -04:00
import { decryptNote } from './decryptNote'
import { decryptNotes, _encryptFormatTx, _checkCurrentTx } from './decryptNotes'
import { saveAccount } from './saveAccount'
import { removeAccount } from './removeAccount'
import { getRecoveryKey } from './getRecoveryKey'
import { enabledSaveFile } from './enabledSaveFile'
import { checkRecoveryKey } from './checkRecoveryKey'
import { setupAccount, saveEncryptedAccount } from './setupAccount'
import { recoverAccountFromChain, decryptAccount, getAccountFromAddress } from './recoverAccountFromChain'
import { checkExistAccount } from './checkExistAccount'
import { getEncryptedNote } from './getEncryptedNote'
import { getEncryptedAccount } from './getEncryptedAccount'
import { recoverAccountFromKey } from './recoverAccountFromKey'
import { redirectToAccount } from './redirectToAccount'
import { highlightNoteAccount } from './highlightNoteAccount'
import { saveRecoveryKeyOnFile } from './saveRecoveryKeyOnFile'
import { createMutation, clearState } from './utils'
export const actions = {
// utils
clearState,
createMutation,
// actions
saveAccount,
decryptNote,
decryptNotes,
setupAccount,
removeAccount,
decryptAccount,
getRecoveryKey,
enabledSaveFile,
checkRecoveryKey,
getEncryptedNote,
redirectToAccount,
checkExistAccount,
getEncryptedAccount,
highlightNoteAccount,
saveEncryptedAccount,
getAccountFromAddress,
recoverAccountFromKey,
recoverAccountFromChain,
saveRecoveryKeyOnFile,
// private actions
_encryptFormatTx,
_checkCurrentTx
}