Frankie
b5d6452454
Disallow loading as metamaskNetworkId ( #5924 )
...
* transactions - throw an error if a transaction is generated while the network is loading
* add tests for failing when netId is loading
6 years ago
Dan Miller
d8e41a6aa5
Final gas customization fixes
6 years ago
Dan Miller
9b9a2cc2e0
Adds createSpeedUpTransaction to txController
6 years ago
Frankie
8198ec9ae1
Autofill gasPrice for retry attempts with either the recommended gasprice or a %10 bump ( #5786 )
...
* transactions - autofill gasPrice for retry attempts with either the recomened gasprice or a %10 bump
* lint
6 years ago
Frankie
ce147bf6d8
Tx controller now uses safe event emitter ( #5769 )
...
* 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
6 years ago
Dan Finlay
22ba0b0c2d
Resubmit approved transactions on new block ( #5752 )
...
* 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
6 years ago
Whymarrh Whitby
af43b7d6c9
Ensure that new transactions added are using the selected address
6 years ago
brunobar79
992e7f1b5a
fix merge conflicts
6 years ago
Thomas Huang
2392e77cd8
Set metamask controller network provider to localhost
6 years ago
brunobar79
0da41263ac
fix warning for unit tests
7 years ago
brunobar79
a8f745f9fe
eslint --fix .
7 years ago
frankiebee
94a4f99115
tests - fix cancle transaction test to better fit new behavior
7 years ago
Csaba Solya
6affd8f949
adding transaction controller tests
7 years ago
kumavis
32293a959c
test - unit - tx-controller - fix blockTracker stub
7 years ago
kumavis
5be154ea20
controllers - transactions - merge @frankiebee's work with mine
7 years ago
kumavis
afdefc58e9
test - unit - tx-controller-test - add history object to txMeta when using internal calls
7 years ago
tmashuang
13ebb0b455
Moved loose some loose test files to sub folders
7 years ago
Dan
6bc8cc819a
Merge branch 'develop' into i3725-refactor-send-component-
7 years ago
frankiebee
a45cb75435
transactions - add a nonce check utility for ui use
7 years ago
kumavis
b8a18feb51
test - unit - send from test accounts to avoid not-enough-balance error from ganache
7 years ago
frankiebee
88f4212363
meta - transactions - code clean up and jsDoc
7 years ago
frankiebee
2d7c3c2b00
meta - transactions - create a transactions dir in controller and move relevant files into it
7 years ago
frankiebee
c02da0f27c
transactions - _normalizeTxParams will now return a new object for txParams
7 years ago
frankiebee
343f0e9e80
transactions - remove unnecessary keys on txParams
7 years ago
frankiebee
245c01bc0f
transactions - make #_validateTxParams not async and "linting" wink wink nudge nudge
7 years ago
frankiebee
457a47bf62
transactions - normalize txParams
7 years ago
frankiebee
b58ca99b61
tests - fix txController tests so that txMetas have a from feild
7 years ago
frankiebee
c6dff98ee1
tests - add tests for transactions#retryTransaction and transactions#_markNonceDuplicatesDropped
7 years ago
kumavis
899e839e7c
test - createTestProviderTools includes block tracker layer
7 years ago
kumavis
d7c8ec22a4
test - tx controller - fix txGasUtil reference
7 years ago
kumavis
d1d745eef4
test - typo - fix spelling of word stubbed
7 years ago
kumavis
3cbf2b7e3e
test - remove createEthJsQueryStub
7 years ago
frankiebee
7a30950e4d
test - fix to match expected behavior
7 years ago
Dora E. Mondrian
41fea44af3
newUnaprovedTx => newUnapprovedTx
...
This typo tripped me up when I was reading through the code and trying to understand what's going on.
7 years ago
frankiebee
ac80eaca1f
pending-tx - dont check the balance to rebrodcast
7 years ago
frankiebee
0a94ec41d3
pending-tx - move incrementing of the retryCount on the txMeta outside pending-tx-tracker
7 years ago
frankiebee
b05a6f89cb
fix tests
7 years ago
frankiebee
9fd5458112
transactions: lint fixes and reveal status-update event for balance controller
7 years ago
tmashuang
ff6f7b52e4
Clean up transactionController tests
7 years ago
tmashuang
20fea3f1de
Remove pending updateAndApprovedTransaction test
7 years ago
tmashuang
d4578836c9
Most of transaction controller tests
7 years ago
Dan Finlay
f128240e7f
Fix test references
7 years ago
frankiebee
59909601b8
add test for pendingTxCount
7 years ago
frankiebee
3ad67d1b14
match other controller patterns
7 years ago
frankiebee
9b9df41724
more tests and craete a getPendingTransactions function
7 years ago
frankiebee
15c12ca4bb
add better comments
7 years ago
frankiebee
e9712a13ec
Create tests for TxStateManager
7 years ago
kumavis
a9e5564e8d
tx controller - test - fix typo from moved test
7 years ago
kumavis
fec0f2ca5e
tx controller - test - test tx state history in updateTx
7 years ago
kumavis
fdffb6fedc
introduce tx-state-history-helper and diff-based history
7 years ago