kumavis
5be154ea20
controllers - transactions - merge @frankiebee's work with mine
7 years ago
frankiebee
10aecf4922
remove dependance on the even tx:confirmed
7 years ago
Frankie
e8b2e11c56
Reveal get filtered tx list ( #4332 )
...
* add getFilteredTxList from txController to getApi
* transactions - remove dead code (isNonceTaken)
7 years ago
kumavis
088d7930e0
network - create provider and block-tracker via json-rpc-engine
7 years ago
bitpshr
6351b7bb88
Fix documentation typo
7 years ago
frankiebee
a45cb75435
transactions - add a nonce check utility for ui use
7 years ago
frankiebee
8ffce8b59d
transactions - more docs and clean ups
7 years ago
Dan Finlay
621e9334bc
Cleaned up some typos and JSDocs in Transactions
...
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
7 years ago
frankiebee
e862a5091e
transactions - fix refernces
7 years ago
frankiebee
eeb9390de8
meta - transactions - docs yo!
7 years ago
frankiebee
943eea043c
fix up - more docs
7 years ago
frankiebee
88f4212363
meta - transactions - code clean up and jsDoc
7 years ago
frankiebee
3aaa28531e
transactions - code cleanup
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
ab126b8c78
transactions gasLimit - use the block gasLimit if getCode fails
7 years ago
frankiebee
3def45004a
transactions#newUnapprovedTransaction - dont default origin to metamask
7 years ago
frankiebee
03b123a85d
transactions - put the origing on the txMeta to help with debugging
7 years ago
kumavis
21fbaed97c
tx controller - explode on non-hex txParams + dont add chainId to txParams + sign with chainId as number
7 years ago
Dan
106ce091a9
Fix TransactionStateManager spelling.
7 years ago
frankiebee
9d7640996a
transactions - return the txMeta in retryTransaction
7 years ago
frankiebee
5572345b78
fix marking of confirmed transaction as dropped
7 years ago
frankiebee
4a3288fec9
transactions - make _markNonceDuplicatesDropped
7 years ago
frankiebee
62febac876
refactor retrytx with higher gas price:
...
- create a new tx instead of overwriting the tx hash
- add a new state 'dropped' to the txStateManager
- mark duplicate txs as dropped when one gets confirmed in a block
7 years ago
Jeffrey Tong
57dc5a6e9b
fix typo in transaction.js
7 years ago
Bruno Barbieri
03d17c75ae
wipe only transactions for current account
7 years ago
Bruno Barbieri
e6fda855a5
added reset account feature
7 years ago
kumavis
96fc916024
Update transactions.js
7 years ago
frankiebee
234c2417ca
transactions - transtion approved transactions to failed transactions on boot
7 years ago
frankiebee
be8d924432
transactions - fail txs on boot who fail addTxDefaults
7 years ago
frankiebee
9f19fea8e0
transactions - wrap addTxDefaults in a try catch and re try addTxDefaults on boot if they did not complete
7 years ago
frankiebee
f0dd4f1923
transactions - emit 'newUnapprovedTx' before estimateGas finishes
7 years ago
kumavis
63ae7fb589
bugfix - transactions controller - breakout logic and fix order of operations bug
7 years ago
kumavis
9a8670309d
bugfix - transactions controller - breakout logic and fix order of operations bug
7 years ago
Dan Finlay
aec24ec81e
Fix feature to work
7 years ago
Dan Finlay
4bca98d588
Derive gas price estimate from previous transactions
...
Return the 50th percentile lowest gas price of the previous 20 blocks.
7 years ago
Dan Finlay
33dbee3db9
Remove retryTimePeriod from tx controller
7 years ago
Dan
bf4043c59b
Adds updateTransaction to background and used it to update after editing in send-v2.
7 years ago
Dan
1f1fc2c49e
Canceled, edited transactions show edited amount.
7 years ago
kumavis
a91200fd08
tx-controller - failed state is a finished state
7 years ago
Dan Finlay
950ec9596c
Do not allow nonces larger than the next valid nonce
...
To avoid situations where a user signs a transaction that will become
surprisingly valid in the future.
7 years ago
vicnaum
553d713636
A more expressive way
...
replaced ifs with ? :
7 years ago
Dan Finlay
0e25129028
Enforce retry tx at minimum gas of previous tx
7 years ago
Dan Finlay
6ff580584a
Add retry background method and action
7 years ago
vicnaum
7854321fae
Fix for #2644 - Specified Nonce isn't used
...
Added nonceSpecified.
And a check if nonce was specified - then we should use the specified nonce instead of generating a new one.
7 years ago
Dan
ea23da9e75
Correct note for updateTx after block-update event in transaction.js
7 years ago
Dan
ae2a4d78e8
Exponentional backoff on transaction retry in pending-tx-tracker
7 years ago