aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/background.js
Commit message (Collapse)AuthorAgeFilesLines
* Add global var for background.Kevin Serrano2016-08-121-0/+1
|
* Implement some cross-browser practices (#473)Dan Finlay2016-07-221-3/+4
| | | | | | | | | | | | * Add mozilla plugin key to manifest * Move all chrome references into platform-checking module Addresses #453 * Add chrome global back to linter blacklist * Add tests
* LintedDan Finlay2016-07-121-2/+0
|
* fix typokumavis2016-06-291-1/+1
|
* background - prepare state for notifcationskumavis2016-06-291-8/+24
|
* Manually debugged refactorDan Finlay2016-06-251-4/+5
|
* Fixed testsDan Finlay2016-06-251-4/+4
|
* Rename background-controller metamask-controllerDan Finlay2016-06-251-2/+2
|
* Improve refactorDan Finlay2016-06-251-4/+58
| | | | | | 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.
* Refactored background.js controller apart from chrome + transportDan Finlay2016-06-251-254/+46
| | | | Still needs linting fixes, probably bugs, this commit should be used as a draft of what a separation of these concerns might look like.
* Merge branch 'master' of github.com:MetaMask/metamask-plugin into AutoLintDan Finlay2016-06-221-11/+15
|\
| * background - batch rpc fix for origin domainkumavis2016-06-221-12/+15
| |
* | Auto lintedDan Finlay2016-06-221-55/+53
| |
* | Some manual fixesDan Finlay2016-06-221-3/+0
|/
* Merge pull request #296 from MetaMask/i252Dan Finlay2016-06-181-10/+12
|\ | | | | idStore - add DELEGATE_CALL detection
| * idStore - add DELEGATE_CALL detectionkumavis2016-06-171-10/+12
| |
* | Expose disclaimer consent to dnode APIDan Finlay2016-06-171-0/+10
|/
* Merge branch 'master' into display_networkDan Finlay2016-06-041-0/+2
|\
| * Added seed word recovery to config screenDan Finlay2016-06-031-3/+5
| |
* | Blockchain status now updates on availability changeDan Finlay2016-06-041-6/+13
|/
* background + notifications - add origin to message signatureskumavis2016-05-261-1/+1
|
* background - append origin to rpc payload and sig requestkumavis2016-05-261-14/+34
|
* signTx+Msg - show Account Unlock Request when lockedkumavis2016-05-251-2/+27
|
* deps - use web3-stream-provider modulekumavis2016-05-231-22/+12
|
* Added ability to nickname wallets locallyDan Finlay2016-05-211-0/+1
| | | | 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/+1
| | | | | | | | 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.
* Make default providers more easiliy configurable for metamask devsDan Finlay2016-05-111-0/+7
| | | | | | | | 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-1/+7
| | | | | | | | | | 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-2/+18
|
* tx list - bug fix - fixes #143kumavis2016-04-291-1/+4
|
* Merge pull request #152 from MetaMask/FilterTransactionListDan Finlay2016-04-281-0/+6
|\ | | | | Filter transaction list for current network
| * Filter transaction list for current blockchain networkDan Finlay2016-04-281-12/+10
| | | | | | | | | | | | | | | | | | | | 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.
| * Record current network on each persisted transactionDan Finlay2016-04-281-6/+14
| |
* | provider - use provider-engine zerokumavis2016-04-271-1/+1
|/
* Fix method of emitting unconfirmedTxs to UIDan Finlay2016-04-191-1/+0
|
* Persist transactions to config-managerDan Finlay2016-04-191-1/+3
| | | | | | | | 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-7/+41
|
* wiring - trusted-untrusted features + remote-storekumavis2016-04-161-25/+37
|
* wiring - move to obj-multiplexkumavis2016-04-151-11/+4
|
* Migrate etherscan configs to our new production RPC.Dan Finlay2016-04-131-1/+0
|
* popup - fix web3 plumbingkumavis2016-04-091-16/+3
|
* Add ability to export private keysDan Finlay2016-04-071-0/+1
|
* Revert "Revert "Etherscan provider""Dan Finlay2016-04-011-6/+15
|
* Revert "Etherscan provider"Dan Finlay2016-04-011-15/+6
|
* Add custom zeroclient that supports etherscan (still not working)Dan Finlay2016-04-011-11/+3
| | | | The Etherscan Subprovider is not providing some methods we need, such as `eth_getCode`. I'll probably be enhancing it after lunch.
* First naive pass at implementing etherscan provider (not working)Dan Finlay2016-04-011-5/+22
| | | | Committing and pushing to get feedback.
* Made configuration migrateableDan Finlay2016-03-311-18/+4
| | | | | | | | | | | | | | 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.
* Add seed word caching during confirmation screenDan Finlay2016-03-251-2/+3
| | | | | | | | 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-0/+1
|
* notifications - add tx confirm+cancel buttonskumavis2016-03-121-7/+10
|
* unsig tx - show notification on new txkumavis2016-03-111-2/+16
|
* plumbing - fix rpc feedback loop bugkumavis2016-03-111-9/+8
|
* plumbing - pipe web3 to the popup.jskumavis2016-03-111-13/+56
|
* config - add config starting with rpc endpointkumavis2016-03-091-4/+31
|
* deps - bump ui and provider-enginekumavis2016-03-091-2/+2
|
* tx sig - it works againkumavis2016-03-031-3/+2
|
* background - use provider-engine zero clientkumavis2016-03-031-2/+8
|
* web3-provider - add nonce trackerkumavis2016-03-021-2/+2
|
* idStore - add createNewVaultkumavis2016-02-171-0/+1
|
* logs - silence logkumavis2016-02-161-1/+0
|
* idStore - seperate signTx and sendTxkumavis2016-02-131-0/+1
|
* idStore - cancel txkumavis2016-02-131-0/+1
|
* idmgmt - refactorkumavis2016-02-111-64/+68
|
* context wiring - handle and log errorskumavis2016-02-111-1/+5
|
* clean - silence loggingkumavis2016-02-091-1/+1
|
* tx-signing workskumavis2016-01-191-11/+10
|
* add pending txs but just autosignkumavis2016-01-181-2/+2
|
* refactor - push data to popupkumavis2016-01-171-3/+31
|
* breakout idmgmtkumavis2016-01-171-221/+13
|
* integrate metamask-ui with id mgmtkumavis2016-01-151-12/+163
|
* migrate to new ui + providerkumavis2016-01-151-26/+2
|
* start of extension popup windowkumavis2015-12-231-5/+22
|
* clean - remove debuggerkumavis2015-12-231-1/+1
|
* rpc - move to main chainkumavis2015-12-211-1/+3
|
* testing continueskumavis2015-12-211-2/+3
|
* migrate to ProviderEngine zero-clientkumavis2015-12-191-111/+127
|
* load from storage on start and export unsignedTxs on remote connectkumavis2015-08-021-16/+40
|
* store unconfirmedTxs in chrome sync storagekumavis2015-08-021-28/+78
|
* builds smoothly + forwards txs to extensionkumavis2015-08-021-22/+34
|
* build overhaul + basic structurekumavis2015-08-021-6/+38
|
* init commitkumavis2015-08-011-0/+9