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

21 lines
617 B
JavaScript
Raw Normal View History

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