init
This commit is contained in:
commit
44f31f8b9f
402 changed files with 47865 additions and 0 deletions
20
modules/account/injectors/setupInjectors.js
Normal file
20
modules/account/injectors/setupInjectors.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
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'])
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue