aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/idStore.js
Commit message (Collapse)AuthorAgeFilesLines
* Added ability to nickname wallets locallyDan Finlay2016-05-211-2/+10
| | | | The changes are persisted to localstorage, so they cannot be restored on a new computer, but for right now it's a nice organizational feature.
* Add ability to add account to vaultDan Finlay2016-05-211-0/+15
| | | | | | | | Scrolling to the bottom of the accounts page now reveals a downward-facing chevron button. Pressing this button shows loading indication, adds a new account to the identity vault, displays it in the list, and scrolls the list to the bottom of the page. Any number of accounts can be generated in this way, and the UX feels intuitive without having to overly explain how HD paths work.
* Streamlined some transition logicDan Finlay2016-05-131-2/+2
| | | | | | | | Fixes #122 Had used multiple actions for some transitions, which would lead to brief intermediary states. Now making a few actions much more explicit about what they route to, so there is less intermediary logic, and we can transition confidently to the correct view.
* Add UI for Signing MessagesDan Finlay2016-05-041-8/+19
| | | | | | | | | | Calls to `eth.sign` are now transiently persisted in memory, and displayed in a chronological stack with pending transactions (which are still persisted to disk). This allows the user a method to sign/cancel transactions even if they miss the Chrome notification. Improved a lot of the view routing, to avoid cases where routes would show an empty account view, or transition to the accounts list when it shouldn't. Broke the transaction approval view into a couple components so messages and transactions could have their own templates.
* idmgmt - eth_sign support + notificationskumavis2016-04-291-3/+96
|
* tx list - bug fix - fixes #143kumavis2016-04-291-4/+10
|
* Filter transaction list for current blockchain networkDan Finlay2016-04-281-2/+13
| | | | | | | | | | When starting up, we now create a `web3` inside the `background.js` process, which we pass to the `idStore` and ask for the current `network`. We include the `network` on `app.metamask.network` in the state object. We re-request the network when changing provider. We filter the transaction list for transactions that match the current network.
* Persist selected accountDan Finlay2016-04-261-10/+7
| | | | | | When selecting an account, we now persist the selection to the `configManager`, so the selection can be restored when re-unlocking Metamask. Also found the bug where `rawtestrpc` was still being used as a default, and fixed it!
* Make account detail view the primary viewDan Finlay2016-04-261-3/+7
| | | | | | | | - When unlocking, the first account is now selected by default and displayed as the main view. - There is now a "CHANGE ACCT" button on the detail view to show the accounts list. - Clicking an account from the accounts list now navigates to the detail view and selects that account. - Config/Info screen "back" buttons now fire a new action, `GO_HOME`, which is configured to navigate to the accountDetail view, putting that logic in one place. - When locking and unlocking again, the first account is always displayed, eventually we should persist the selection.
* Store metamaskId on metaTx instead of getTxWithParams method.Dan Finlay2016-04-211-3/+7
|
* Add completed tx hash to persisted tx logDan Finlay2016-04-201-0/+4
|
* Emit transaction list to UIDan Finlay2016-04-191-0/+1
|
* Fix method of emitting unconfirmedTxs to UIDan Finlay2016-04-191-0/+1
|
* Persist transactions to config-managerDan Finlay2016-04-191-6/+6
| | | | | | | | Transactions are now stored, and are never deleted, they only have their status updated. We can add deleting later if we'd like. I've hacked on emitting the new unconfirmedTx key to the UI in the format it received before, I want Aaron's opinion on where I should actually do that.
* Add ability to export private keysDan Finlay2016-04-071-0/+9
|
* Add mayBeFauceting boolean to account objectDan Finlay2016-04-051-0/+17
| | | | | | | | | This boolean is computed from these requirements: - The user is on the testnet rpc - The account is index 0 The UI is responsible for checking the account balancing and indicating if fauceting is indeed pending or not.
* Support undefined address selectionDan Finlay2016-04-051-0/+5
| | | | If `setSelectedAddress` is called on the IdStore, the first account is automatically selected.
* Call back with wallet restore errorsDan Finlay2016-04-021-1/+5
|
* Do not cache the seed, retrieve it from the decrypted walletDan Finlay2016-04-011-6/+16
|
* Remove unnecessary abstractionDan Finlay2016-04-011-5/+1
|
* Removed logsDan Finlay2016-03-311-6/+0
|
* Made configuration migrateableDan Finlay2016-03-311-17/+21
| | | | | | | | | | | | | | Abstract all configuration data into a singleton called `configManager`, who is responsible for reading and writing to the persisted storage (localStorage, in our case). Uses my new module [pojo-migrator](https://www.npmjs.com/package/pojo-migrator), and wraps it with the `ConfigManager` class, which we can hang any state setting or getting methods we need. By keeping all the persisted state in one place, we can stabilize its outward-facing API, making the interactions increasingly atomic, which will allow us to add features that require restructuring the persisted data in the long term without having to rewrite UI or even `background.js` code. All the restructuring and data-type management is kept in one neat little place. This should make it very easy to add new configuration options like user-configured providers, per-domain vaults, and more! I know this doesn't seem like a big user-facing feature, but we have a big laundry list of features that I think this will really help streamline.
* Fix signing bugDan Finlay2016-03-301-2/+2
|
* Add auto-faucetingDan Finlay2016-03-301-4/+16
| | | | When first creating a vault, the first account is submitted to our `rawtestrpc` faucet, receiving `1.337` ether within 15-30 seconds.
* Remove argument destructuringDan Finlay2016-03-301-1/+3
|
* Return updated state after restoring vaultDan Finlay2016-03-291-1/+1
|
* Remove unused referenceDan Finlay2016-03-261-1/+0
|
* Cleaned up how we pass hdString to LightwalletDan Finlay2016-03-261-4/+11
|
* Implemented BIP44 compliance test.Dan Finlay2016-03-261-57/+43
| | | | Also added the hdPath that Christian had told me to our calls to the LightWallet, but this does not seem to have made us generate the same accounts as `testrpc` yet.
* Convert to bip44 hdTreesDan Finlay2016-03-261-14/+16
| | | | | | Added initial test just to verify we can recover the accounts we generate in this way. Still need to add compliance test to make sure this interoperates with testrpc's new mnemonic flag.
* Gave lock a callback for better loading indicationDan Finlay2016-03-251-2/+3
|
* Add seed word caching during confirmation screenDan Finlay2016-03-251-47/+84
| | | | | | | | In order to persist the seed word page until the user clicks the confirmation button, we need to store the seed words in localStorage. To simplify this process I've also reorganized some of the account manager code, broken up one large function into many smaller functions, and created a new class for the IdMgmt object. Again, sorry such a big refactor in one commit, but I really had to break it down to work through it.
* add vault recoverykumavis2016-03-161-5/+20
|
* notifications - add tx confirm+cancel buttonskumavis2016-03-121-0/+2
|
* idStore - normalize hex format before signingkumavis2016-03-061-1/+7
|
* tx sig - it works againkumavis2016-03-031-138/+93
|
* Fix issue with raw transaction injected.Simon de la Rouviere2016-02-231-6/+6
|
* idStore - add createNewVaultkumavis2016-02-171-14/+17
|
* idStore - add isInitialized flagkumavis2016-02-161-0/+1
|
* idStore - seperate signTx and sendTxkumavis2016-02-131-13/+29
|
* idStore - cancel txkumavis2016-02-131-0/+8
|
* idmgmt - refactorkumavis2016-02-111-0/+263