classic-ui/modules/account/injectors/setupInjectors.js

21 lines
617 B
JavaScript
Raw Normal View History

2022-04-22 06:05:56 +03:00
import { mapActions, mapGetters, mapState } from 'vuex'
export const setupMethods = {
...mapActions('loading', ['enable', 'disable']),
...mapActions('notice', ['addNoticeWithInterval']),
...mapActions('encryptedNote', [
'clearState',
'decryptNotes',
'setupAccount',
'recoverAccountFromKey',
'saveRecoveryKeyOnFile',
'recoverAccountFromChain'
])
}
export const setupComputed = {
...mapState('metamask', ['isInitialized', 'providerName']),
...mapGetters('metamask', ['isLoggedIn', 'isPartialSupport']),
...mapGetters('encryptedNote', ['isExistAccount', 'setupAccountRequest'])
}