status-go/services/wallet/router/pathprocessor
saledjenic 79b1c547d1
Improvements on resolving nonce (#5658)
* 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-12 08:07:32 -04:00
..
cbridge chore_: `Bridge` interface renamed to `PathProcessor` interface and necessary changes applied due to that change 2024-06-07 15:50:38 +02:00
mock_pathprocessor Improvements on resolving nonce (#5658) 2024-08-12 08:07:32 -04:00
proto_cbridge chore_: `Bridge` interface renamed to `PathProcessor` interface and necessary changes applied due to that change 2024-06-07 15:50:38 +02:00
common.go chore_: calculating multi tx candidates improvements 2024-06-26 11:02:13 +01:00
constants.go chore_: calculating multi tx candidates improvements 2024-06-26 11:02:13 +01:00
errors.go feat(wallet)_: handle paraswap price impact error (#5622) 2024-08-07 23:33:44 +01:00
errors_test.go chore_: when returning errors, give precedence to custom (network) errors 2024-07-29 10:05:56 +02:00
multipath_processor.go chore_: use the old name for backward compatibility 2024-06-11 10:30:34 +02:00
processor.go Improvements on resolving nonce (#5658) 2024-08-12 08:07:32 -04:00
processor_bridge_celar.go Improvements on resolving nonce (#5658) 2024-08-12 08:07:32 -04:00
processor_bridge_hop.go Improvements on resolving nonce (#5658) 2024-08-12 08:07:32 -04:00
processor_ens_public_key.go Improvements on resolving nonce (#5658) 2024-08-12 08:07:32 -04:00
processor_ens_register.go Improvements on resolving nonce (#5658) 2024-08-12 08:07:32 -04:00
processor_ens_release.go Improvements on resolving nonce (#5658) 2024-08-12 08:07:32 -04:00
processor_erc721.go Improvements on resolving nonce (#5658) 2024-08-12 08:07:32 -04:00
processor_erc1155.go Improvements on resolving nonce (#5658) 2024-08-12 08:07:32 -04:00
processor_stickers_buy.go Improvements on resolving nonce (#5658) 2024-08-12 08:07:32 -04:00
processor_swap_paraswap.go Improvements on resolving nonce (#5658) 2024-08-12 08:07:32 -04:00
processor_swap_paraswap_test.go feat(wallet)_: handle paraswap price impact error (#5622) 2024-08-07 23:33:44 +01:00
processor_test.go test(wallet)_: add unit tests for balance fetcher 2024-07-04 09:29:49 +02:00
processor_transfer.go Improvements on resolving nonce (#5658) 2024-08-12 08:07:32 -04:00