status-go/transactions
saledjenic c39baa80d2
chore_: cherry-pick #5658: improvements on resolving nonce (#5690)
* chore_: unused `BuildTx` function removed from the processor interface and types that are implement it

Since the `BuildTx` function is not used anywhere, it's removed from the code.

* fix_: resolving nonce improvements

When the app sends more than a single tx from the same account on the same chain, some
chains do not return appropriate nonce (they do not consider pending txs), because of
that we place more tx with the same nonce, where all but the first one fail.

Changes in this PR keep track of nonces being used in the same sending/bridging flow, which means
for the first tx from the multi txs the app asks the chain for the nonce, and every next nonce is resolved
by incrementing the last used nonce by 1.
2024-08-13 11:17:08 +01:00
..
fake add wallet favourites 2020-09-21 10:48:00 +02:00
mock_transactor chore_: cherry-pick #5658: improvements on resolving nonce (#5690) 2024-08-13 11:17:08 +01:00
addrlock.go
conditionalrepeater.go fix(wallet) fix pending transactions notification 2023-09-01 00:18:26 +02:00
conditionalrepeater_test.go fix(wallet) propagate multi-transactions IDs to transfers 2023-08-22 18:39:42 +02:00
pendingtxtracker.go feat_: Move community tokens transaction listening to status-go 2024-05-16 16:18:15 +02:00
pendingtxtracker_test.go test(wallet)_: add unit tests for balance fetcher 2024-07-04 09:29:49 +02:00
rpc_wrapper.go test(wallet)_: add unit tests for balance fetcher 2024-07-04 09:29:49 +02:00
testhelpers.go test(wallet)_: add unit tests for balance fetcher 2024-07-04 09:29:49 +02:00
transactor.go chore_: cherry-pick #5658: improvements on resolving nonce (#5690) 2024-08-13 11:17:08 +01:00
transactor_test.go chore_: cherry-pick #5658: improvements on resolving nonce (#5690) 2024-08-13 11:17:08 +01:00
types.go fix: calculating next nonce for optimism chain improved to align with calculation on mainnet and arbitrum 2024-03-13 15:21:33 +01:00
types_test.go