aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers/transactions/index.js
Commit message (Collapse)AuthorAgeFilesLines
* transactions/deps - use broken out nonce-tracker module (#6555)Frankie2019-05-211-1/+1
|
* drop transactions who's nonce is lower then the known network nonce but were ↵Frankie2019-05-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | not included in a block (#6388) * transactions/pending - check nonce against the network and mark as dropped if not included in a block * transactions/pending - unifiy "dropped" txs * transactions/pending - test - fix for new expected behavior * fix comment * transactions/pending - clean up dropped event * fix spelling Co-Authored-By: frankiebee <frankie.diamond@gmail.com> * nit fix * test/tx-pending - clarify test description
* Set a default value for code in _determineTransactionCategory (#6604)Dan J Miller2019-05-151-5/+6
| | | | | | | | | | * Set a default value for code in _determineTransactionCategory * Adds e2e tests that fail when token txs without gas param are not properly handled. * Adds unit tests for _determineTransactionCategory * Base error throwing and simple gas setting in estimateTxGas on transactionCategory
* Adds a transactionCategory to txMeta for use in UI (#6567)Dan J Miller2019-05-091-3/+52
| | | | | | * Adds a transactionCategory to txMeta for use in UI * Update transaction controller and tx-gas-util documentation on new code param in multiple functions.
* Group transactions by nonce (#5886)Alexander Tseung2018-12-101-2/+4
|
* Adds createSpeedUpTransaction to txControllerDan Miller2018-12-041-0/+23
|
* Fixed Vivek's bug (#5860)Dan Finlay2018-11-301-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fixed Vivek's bug Fixes #5850 What was happening: It seems that his MetaMask had crashed while some new transactions had been loading defaults. He probably had a network connectivity issue to Infura (which we are working with Infura to address). As a result of this network cutout, his three unapproved transactions were not marked failed, and were not marked as `loadingDefaults = false`, as their gas prices had not yet been estimated. Normally this behavior is supposed to clean itself up when the transaction controller starts up, via the `TransactionController._onBootCleanUp()` function, but in this case, during unlock, that function was unable to do its job because when it requested the transaction list, the current network was in the `loading` state, making it proceed as if there were no pending transactions. To fix this, I am doing two things: - Setting transactions to loadingDefaults = false in more catch blocks. - Calling `onBootCleanUp()` when the network store's status changes, so that it will re-trigger when loading completes. * Fixed reference * Fixed infinite loop bug Was refreshing the tx list on every tx state change instead of just network changes, creating an infinite loop. * Add notes to tx updates to clarify logs
* Autofill gasPrice for retry attempts with either the recommended gasprice or ↵Frankie2018-11-271-0/+9
| | | | | | | | a %10 bump (#5786) * transactions - autofill gasPrice for retry attempts with either the recomened gasprice or a %10 bump * lint
* Tx controller now uses safe event emitter (#5769)Frankie2018-11-171-1/+1
| | | | | | | | | | | | * transactions - use safe-event-emitter over events * tests - pass a platform object on init with a noop showTransactionNotification * test - fix for tx-state-history-helper trying to reduce an empty array * deps - safe-event-emitter * lint
* Resubmit approved transactions on new block (#5752)Dan Finlay2018-11-151-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Add beginning of test * Resubmit approved transactions on new block May fix #4343 and related issues, where an error could leave transactions stranded in the approved state. * Remove unused test * Re-approve transactions when retrying approved * Add retry approved test * Include approved in pending tx count * Fix getPendingTxs() * Linted * Only throw hash error in submitted state * Only check submitted txs for block inclusion * Fix test expectations
* Add txReceipt data to transaction details (#5513)Alexander Tseung2018-10-161-1/+34
|
* Ensure that new transactions added are using the selected addressWhymarrh Whitby2018-10-111-0/+4
|
* Revert "transactions - add txReceipt to the txMeta body for confirmed txs ↵Whymarrh Whitby2018-10-111-23/+1
| | | | | | (#5375)" This reverts commit ff67293a8ef61308d602d09f26b163b9b9ec90d3.
* transactions - add txReceipt to the txMeta body for confirmed txs (#5375)Frankie2018-10-101-1/+23
|
* Fix updating of pending transactionsDan Finlay2018-10-061-0/+1
| | | | | | | | | Transaction statuses were not being properly updated when: - MetaMask was unlocked - The network was changed This PR fixes both of those. Fixes #5174
* Switch existing modals from using Notification to Modal. Remove Notification ↵Alexander Tseung2018-09-201-2/+3
| | | | component. Add CancelTransaction modal
* Add createCancelTransaction methodAlexander Tseung2018-09-111-2/+47
|
* Merge branch 'develop' of github.com:MetaMask/metamask-extension into ↵kumavis2018-07-041-1/+1
|\ | | | | | | network-remove-provider-engine
* | Merge branch 'develop' of github.com:MetaMask/metamask-extension into ↵kumavis2018-07-031-2/+7
|\| | | | | | | network-remove-provider-engine
| * controllers - transaction - prefer log over consolekumavis2018-06-131-2/+2
| |
| * metamask - ensure all nonce locks are releasedkumavis2018-06-131-1/+6
| |
* | Merge branch 'develop' of github.com:MetaMask/metamask-extension into ↵kumavis2018-06-071-1/+5
|\| | | | | | | network-remove-provider-engine
| * remove generating blocked accounts and use a config file insteadCsaba Solya2018-05-311-2/+2
| |
| * adding tests for recipient blacklist checkerCsaba Solya2018-05-301-2/+2
| |
| * initial implementationCsaba Solya2018-05-301-1/+5
| |
* | Merge branch 'develop' of github.com:MetaMask/metamask-extension into ↵kumavis2018-06-071-3/+5
|\| | | | | | | network-remove-provider-engine
| * cleanErrorStack moved to separate library moduleAnton2018-05-291-12/+4
| | | | | | | | more errors traces cleaned up
| * error message fixAnton2018-05-291-2/+1
| |
| * Clean up user rejection error messageAnton2018-05-281-3/+14
| |
* | controllers - transactions - fix tx status update on bootkumavis2018-05-291-0/+12
| |
* | controllers - transactions - fix tx confirmationkumavis2018-05-291-1/+1
| |
* | controllers - transactions - merge @frankiebee's work with minekumavis2018-05-291-9/+37
| |
* | Merge branch 'network-remove-provider-engine' of ↵frankiebee2018-05-231-15/+0
|\ \ | | | | | | | | | https://github.com/MetaMask/metamask-extension into transactions-use-new-block-tracker
| * \ Merge branch 'develop' of github.com:MetaMask/metamask-extension into ↵kumavis2018-05-231-15/+0
| |\ \ | | | | | | | | | | | | network-remove-provider-engine
| | * | Reveal get filtered tx list (#4332)Frankie2018-05-221-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | * add getFilteredTxList from txController to getApi * transactions - remove dead code (isNonceTaken)
* | | | remove dependance on the even tx:confirmedfrankiebee2018-05-231-2/+6
|/ / /
* / / network - create provider and block-tracker via json-rpc-enginekumavis2018-05-171-0/+1
|/ /
* | Fix documentation typobitpshr2018-05-081-1/+1
| |
* | transactions - add a nonce check utility for ui usefrankiebee2018-05-021-0/+15
|/
* transactions - more docs and clean upsfrankiebee2018-04-261-26/+44
|
* Cleaned up some typos and JSDocs in TransactionsDan Finlay2018-04-241-16/+17
| | | | | | | | | | Nonce tracker is not fully documented yet. Have not yet touched: - tx-state-manager - tx-state-history-helper - util - tx-gas-utils - pending-tx-tracker
* transactions - fix referncesfrankiebee2018-04-201-1/+1
|
* Merge branch 'master' into tx-controller-rewrite-v3frankiebee2018-04-201-0/+1
|
* meta - transactions - docs yo!frankiebee2018-04-201-11/+16
|
* fix up - more docsfrankiebee2018-04-141-3/+8
|
* meta - transactions - code clean up and jsDocfrankiebee2018-04-141-41/+109
|
* transactions - code cleanupfrankiebee2018-04-131-56/+57
|
* meta - transactions - create a transactions dir in controller and move ↵frankiebee2018-04-111-0/+341
relevant files into it