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

21 lines
617 B
JavaScript
Raw Permalink Normal View History

2022-04-22 13:05:56 +10: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'])
}