status-go/rpc/chain
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
..
mock/client chore(wallet)_: tests for wallet.Reader fetching balances 2024-06-19 16:57:50 +01:00
client.go feat(wallet)_: more fixes for rpc_limiter_db and chain client, more 2024-05-28 13:44:40 +02:00
rpc.go fix: resolve first tx of block 2024-02-21 13:28:26 +01:00
rpc_limiter.go feat(wallet)_: more fixes for rpc_limiter_db and chain client, more 2024-05-28 13:44:40 +02:00
rpc_limiter_db.go feat(wallet)_: more fixes for rpc_limiter_db and chain client, more 2024-05-28 13:44:40 +02:00
rpc_limiter_test.go feat(wallet)_: more fixes for rpc_limiter_db and chain client, more 2024-05-28 13:44:40 +02:00