status-go/services/wallet/transfer
Ivan Belyakov bd816f1e29 chore(wallet)_: tests for wallet.Reader fetching balances
chore(wallet)_: split getWalletTokenBalances into multiple functions

Removed some unused balances methods from wallet API

chore(wallet)_: refactored FetchOrGetWalletTokenBalances

- getWalletTokenBalances only returns cached ones
- update of balances is done in a separate method

chore(wallet)_: fix isVisible in getWalletTokenBalances is overwritten

It is overwritten and in some cases its value is desrespected

chore(wallet)_: simplify getWalletTokenBalance even further

chore(wallet)_: remove accountsDB from wallet.Reader

Call GetTestNetworkEnabled from NetworkManager instead

chore(wallet)_: remove rpc.Client from wallet.Reader.

Added GetActiveNetworks() method for NetworkManager
Removed adding native tokens from networks, as this is done already
in NetworkManager

chore(wallet)_: moved Persistence to token package

As it works with token_balances table, moved Persistence to token package.
Fixed TokenManager's Mark/Get previously owned tokens to use persistence
storage instead of direct SQL calls.
Introduced StorageToken that aggregates Token type, because when
Persistence moved to token package, names clash

test(wallet)_: tests for wallet.Reader.FetchorGetCachedBalances
2024-06-19 16:57:50 +01:00
..
block_dao.go feat(wallet): separate ETH and tokens search ranges to allow calling 2023-12-05 16:09:56 +01:00
block_ranges_sequential_dao.go chore_: bump go to 1.20 (#5027) 2024-04-18 18:48:02 +02:00
block_ranges_sequential_dao_test.go [#4690] Nilable block range values for proper ranges management (#4691) 2024-02-19 16:50:07 +01:00
block_test.go Implemented balance history based on transfers (#4022) 2023-10-04 15:00:12 +03:00
bridge_identifier.go chore(wallet)_: clean up wallet API send and sign transactions 2024-05-09 18:11:58 +02:00
commands.go fix(wallet)_: reduce block range size for `eth_getLogs` request for 2024-05-15 17:24:06 +02:00
commands_sequential.go feat(wallet)_: more fixes for rpc_limiter_db and chain client, more 2024-05-28 13:44:40 +02:00
commands_sequential_test.go chore(wallet)_: tests for wallet.Reader fetching balances 2024-06-19 16:57:50 +01:00
concurrent.go fix: resolve first tx of block 2024-02-21 13:28:26 +01:00
concurrent_test.go fix: resolve first tx of block 2024-02-21 13:28:26 +01:00
controller.go fix(wallet)_: fix crash on nil db for statusd if wallet is enabled 2024-05-15 10:19:25 +02:00
controller_test.go chore(wallet)_: code structure improved for multi_transaction manager 2024-05-31 09:58:06 +02:00
database.go feat(wallet)_: more fixes for rpc_limiter_db and chain client, more 2024-05-28 13:44:40 +02:00
database_test.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
downloader.go feat(wallet)_: more fixes for rpc_limiter_db and chain client, more 2024-05-28 13:44:40 +02:00
helpers.go chore_: `Bridge` interface renamed to `PathProcessor` interface and necessary changes applied due to that change 2024-06-07 15:50:38 +02:00
iterative.go feat(wallet): separate ETH and tokens search ranges to allow calling 2023-12-05 16:09:56 +01:00
iterative_test.go feat: enable wallet without network binding (#2349) 2021-09-09 16:28:54 +02:00
multi_transaction_db.go feat(wallet)_: add Approve transaction type 2024-06-10 08:57:45 -03:00
multi_transaction_db_test.go test(wallet)_: created Transactor interface 2024-05-31 09:58:06 +02:00
query.go feat: link owned collectibles with latest matching transfer 2024-01-15 12:55:47 -03:00
reactor.go [#4649] Do not restart reactor when it is already running (#4663) 2024-02-01 17:26:40 +01:00
sequential_fetch_strategy.go [#4603] Get rid of fetchLatestBlockNumberCommand (#4614) 2024-01-25 13:05:59 +01:00
swap_identifier.go fix: Update timestamp when upserting multi tx (#4224) 2023-10-30 07:53:22 +01:00
testutils.go feat(wallet)_: add Approve transaction type 2024-06-10 08:57:45 -03:00
transaction_manager.go feat(wallet)_: add Approve transaction type 2024-06-10 08:57:45 -03:00
transaction_manager_internal.go chore_: `Bridge` interface renamed to `PathProcessor` interface and necessary changes applied due to that change 2024-06-07 15:50:38 +02:00
transaction_manager_multitransaction.go chore_: `Bridge` interface renamed to `PathProcessor` interface and necessary changes applied due to that change 2024-06-07 15:50:38 +02:00
transaction_manager_multitransaction_test.go chore_: `Bridge` interface renamed to `PathProcessor` interface and necessary changes applied due to that change 2024-06-07 15:50:38 +02:00
transaction_manager_test.go test(wallet)_: implement build/sign/watch unit tests for multitransaction manager 2024-06-03 15:48:19 +02:00
view.go feat(wallet) extract json blobs and add custom migration support 2023-06-08 13:54:40 +02:00