aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/config-manager.js
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #4059 from MetaMask/i-4033-seed-wordskumavis2018-05-011-21/+1
|\ | | | | Use new design for Reveal Seed screen. Persist seed words only in the first time flow.
| * Revert "Fix UI getting stuck in Reveal Seed screen"Alexander Tseung2018-04-221-21/+1
| | | | | | | | This reverts commit 2c8156ebe91941309d49e8f8f1ed8e9d740bb9de.
* | Clean up network configAlexander Tseung2018-04-241-12/+11
|/
* Fix UI getting stuck in Reveal Seed screenAlexander Tseung2018-04-191-1/+21
|
* [NewUI] Opens to full screen when restoring from seed. (#3201)Dan J Miller2018-02-081-0/+11
| | | | | | * Opens to full screen when restoring from seed. * Remove redundant parameter in actions.markPasswordForgotten call.
* Fix for testsfrankiebee2017-05-241-0/+29
|
* Wrap the provider in a proxyfrankiebee2017-05-231-3/+2
|
* Merge branch 'master' into networkControllerfrankiebee2017-05-231-0/+34
|\
| * Remove all traces of testnetThomas Huang2017-05-161-10/+5
| |
| * Change default network to rinkebyThomas Huang2017-05-161-5/+5
| |
* | Create a network controller to manage switcing networks an updating the providerfrankiebee2017-05-191-67/+0
|/
* Minor lintKevin Serrano2017-05-031-1/+1
|
* add rinkeby networkNickyg2017-04-261-0/+5
|
* Add kovan config settings to config manager.Kevin Serrano2017-03-231-0/+4
|
* Remove gasMultiplier txMeta paramDan Finlay2017-03-011-12/+0
| | | | | | This was used by the custom gas slider on the `send` screen, and it was used to modify the gas value before sending it out, breaking our new custom gas field logic. Removed it and the logic that referred to this now-outdated parameter.
* Move sigUtil and keyrings to external modulesDan Finlay2017-02-221-1/+1
| | | | These external modules now have their own test coverage and build enforcement. This allowed me to somewhat more easily add good tests around our personalSign strategy (held now in [eth-sig-util](https://github.com/flyswatter/eth-sig-util), and allow each of the keyrings to import that, etc.
* Delete all code related to disclaimers.Kevin Serrano2017-02-101-22/+0
|
* Mostly got shapeshift tx management into its own controllerDan Finlay2017-02-041-34/+0
| | | | Rendering the list is still having issues, so this isn't done yet.
* migration #9 - break out CurrencyController substatekumavis2017-02-031-47/+0
|
* tests - remove persistence and start with initial statekumavis2017-01-281-9/+1
|
* background - organize metamask instantiationkumavis2017-01-271-1/+1
|
* obs-store - use published modulekumavis2017-01-251-24/+20
|
* Merge branch 'dev' into obs-store2kumavis2017-01-221-1/+1
|\
| * currency conversion - less noisy errorkumavis2017-01-121-1/+1
| |
* | background - move pojo migrator to outside of metamask controllerkumavis2017-01-121-36/+13
| |
* | background - introduce ObservableStorekumavis2017-01-121-6/+4
|/
* deps - replace promise-request with fetchkumavis2017-01-111-4/+3
|
* Merge branch 'dev' into TxManagerFrankie2016-12-241-1/+1
|\
| * Return undefined when vault is uninitializedDan Finlay2016-12-221-1/+1
| |
* | Merge branch 'dev' into TxManagerFrankie2016-12-221-0/+11
|\|
| * Made changes according to feedback.Dan Finlay2016-12-201-2/+1
| |
| * Mostly added bad account detectionDan Finlay2016-12-091-0/+12
| | | | | | | | Currently riddled with logs, because the migrator is inexplicably returning before generating the new style accounts for comparison.
* | First pass at revision requestsFrances Pangilinan2016-12-221-3/+0
| |
* | Create a TxManagerFrances Pangilinan2016-12-151-50/+1
|/
* Fix vault encrypting & unlocking bugDan Finlay2016-12-011-2/+3
| | | | | | | | This is only a bug in dev, but was committed yesterday. Sometimes the `encrypt` method was being passed values other than the password as the encryption key, leading to un-unlockable vaults. To find this, and avoid it for all time hereafter, I added several more steps to our oft-neglected integration test suite, which now fully initializes a vault, locks it, and unlocks it again, to make sure all of those steps definitely work always.
* Merge branch 'dev' into i831-AddRopsten-DevDan Finlay2016-11-221-23/+54
|\
| * Re-enable disclaimer screen. Rename variables to reflect role more clearly.Kevin Serrano2016-11-151-4/+4
| |
| * Linting to the max.Kevin Serrano2016-11-121-2/+1
| |
| * Fix account nicknaming bugDan Finlay2016-11-041-2/+4
| | | | | | | | When nicknaming, we weren't normalizing the input, and so we were retrieving with differently formatted addresses than we were persisting.
| * Implement seed word confirmation page.Kevin Serrano2016-11-011-1/+14
| | | | | | | | | | Remove logs. Move HD render files to ui/app.
| * Phase out extra warning screen.Kevin Serrano2016-10-261-15/+0
| |
| * Linted & added salting to vaultDan Finlay2016-10-211-1/+1
| |
| * Git merge resolution.Kevin Serrano2016-10-201-0/+12
| |\
| * | Intermediary commit.Kevin Serrano2016-10-201-0/+11
| | |
| * | Initial work on UI sideKevin Serrano2016-10-161-0/+21
| | |
* | | Begin adding Ropsten supportDan Finlay2016-11-221-0/+4
| |/ |/| | | | | | | | | | | | | Ropsten links will still not work until Etherscan publishes their ropsten link format. At that time we will need to update ui/lib/account-link.js Otherwise, fixes #831
* | Fix gasPrice rangeFrankie2016-10-141-0/+12
|/
* Renamed variables to make more sense.Kevin Serrano2016-10-071-2/+2
|
* Add new functions for storing TOS hashes in config manager.Kevin Serrano2016-10-061-0/+11
|
* Implement usage of nock.Kevin Serrano2016-08-251-22/+12
|
* Added mock option to function.Kevin Serrano2016-08-251-13/+23
|
* Merge branch 'master' into i390-TransactionLimitDan Finlay2016-08-231-0/+35
|\
| * Create a ShapeShift tx in tx HistoryFrankie2016-08-191-4/+6
| |
| * Merge branch 'master' into shapeshiftTxFrankie2016-08-191-0/+48
| |\
| * | WIP: ShapeShift txFrankie2016-08-191-0/+33
| | |
* | | Enforce tx history limitDan Finlay2016-08-191-0/+6
| |/ |/|
* | Added compliance for tests and properly accounts for N/A conversions.Kevin Serrano2016-08-171-3/+3
| |
* | Add fallback to API failure.Kevin Serrano2016-08-171-0/+2
| |
* | Merge master.Kevin Serrano2016-08-161-6/+6
|\|
| * Remove ethereum classic providerDan Finlay2016-08-151-5/+1
| | | | | | | | Fixes #542
| * Fix ether warning checkbox.Kevin Serrano2016-08-111-2/+6
| |
* | Get fiat numbers rendering on tooltip. Need to find way to create line breaks.Kevin Serrano2016-08-061-6/+0
| |
* | Merge branch 'master' into usd-conversionKevin Serrano2016-08-051-0/+4
|\|
| * Add eth classic to provider menuDan Finlay2016-07-291-0/+4
| |
* | Fix merge conflicts. Fix typos. Ensure currency immediately updated on load.Kevin Serrano2016-07-231-0/+17
|\|
| * Buy button (#474)Frankie2016-07-221-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP: Buy button link * Add buy eth and the buy eth warning message * Add css * Move the opening of coinbase page to background and send to faucet if on test net * Create a Warning about storeing eth * Finish Buy button and Eth store warning screen * Add to CHANGELOG * fix frankies deletion and change chrome to extension
* | Linting!Kevin Serrano2016-07-231-1/+1
| |
* | Change function names. Add interval polling for api. Refactor functions.Kevin Serrano2016-07-221-7/+18
| |
* | Add date access throughout the data flow.Kevin Serrano2016-07-221-3/+3
| |
* | Provide date access.Kevin Serrano2016-07-221-1/+8
| |
* | Progress on config manager. Plus tests.Kevin Serrano2016-07-211-0/+27
|/
* Remove useless and buggy clearWallet functionDan Finlay2016-07-011-2/+0
|
* Emphasizing how weird this bug is by removing all behavior from the method.Dan Finlay2016-07-011-5/+1
|
* Replicated really strange bug with testDan Finlay2016-07-011-1/+1
|
* Fixed testsDan Finlay2016-06-251-1/+0
|
* Improve refactorDan Finlay2016-06-251-52/+3
| | | | | | Replace config-manager-singleton with one that is instantiated within the `background-controller`, and takes its persistence callbacks from its instantiated options. Replaced class getters with more familiar get___() functions.
* Auto lintedDan Finlay2016-06-221-59/+56
|
* Add confirmation persisting to localStorageDan Finlay2016-06-171-0/+11
|
* Added ability to nickname wallets locallyDan Finlay2016-05-211-0/+20
| | | | 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.
* Corrected config pathDan Finlay2016-05-201-1/+1
|
* sync rpc fixkumavis2016-05-201-3/+4
|
* Move infura rpcs to httpsDan Finlay2016-05-141-2/+2
|
* Make default providers more easiliy configurable for metamask devsDan Finlay2016-05-111-7/+27
| | | | | | | | No longer do our `mainnet` and `testnet` buttons set specific RPC urls. Now they set `provider.type`, which gets interpreted with code. Currently the provider types of `mainnet` and `testnet` point to our new scalable backends, but these could be re-interpreted to use any other provider, be it etherscan, peer to peer, or otherwise. Makes it easier for us to upgrade our infrastructure without incorporating migration logic into the program.
* Add UI for Signing MessagesDan Finlay2016-05-041-67/+0
| | | | | | | | | | 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-5/+77
|
* Persist selected accountDan Finlay2016-04-261-0/+11
| | | | | | 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!
* Store metamaskId on metaTx instead of getTxWithParams method.Dan Finlay2016-04-211-10/+0
|
* Fix config manager methodDan Finlay2016-04-201-1/+1
|
* Add extra tx methods to configManagerDan Finlay2016-04-201-3/+25
|
* Persist transactions to config-managerDan Finlay2016-04-191-0/+50
| | | | | | | | 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.
* inpage - use publicConfigStore for selectedAccount and sync providerkumavis2016-04-161-0/+27
|
* Point rawtestrpc at new testrpcDan Finlay2016-04-131-1/+1
|
* Migrate etherscan configs to our new production RPC.Dan Finlay2016-04-131-3/+7
|
* Revert "Revert "Etherscan provider""Dan Finlay2016-04-011-9/+22
|
* Revert "Etherscan provider"Dan Finlay2016-04-011-22/+9
|
* First naive pass at implementing etherscan provider (not working)Dan Finlay2016-04-011-9/+22
| | | | Committing and pushing to get feedback.
* Do not cache the seed, retrieve it from the decrypted walletDan Finlay2016-04-011-9/+5
|
* Made configuration migrateableDan Finlay2016-03-311-0/+161
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.