Add ExtensionStore (from @polkadot/extension) (#142)

* Add ExtensionStore (from @polkadot/extension)

* Consistent naming, untested/unused File store

* Update File.ts
This commit is contained in:
Jaco Greeff
2019-06-06 18:13:28 +02:00
committed by GitHub
parent abb94d254c
commit da84d5a8ae
9 changed files with 163 additions and 8 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ import accounts from './observable/accounts';
import addresses from './observable/addresses';
import contracts from './observable/contracts';
import env from './observable/development';
import LocalStorageStore from './stores/LocalStorage';
import { BrowserStore } from './stores';
import { MAX_PASS_LEN } from './defaults';
export default class Base {
@@ -108,7 +108,7 @@ export default class Base {
this._keyring = keyring;
this._genesisHash = options.genesisHash && options.genesisHash.toHex();
this._store = options.store || new LocalStorageStore();
this._store = options.store || new BrowserStore();
this.addAccountPairs();
}