status-go/rpc
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
..
chain chore(wallet)_: tests for wallet.Reader fetching balances 2024-06-19 16:57:50 +01:00
network chore(wallet)_: tests for wallet.Reader fetching balances 2024-06-19 16:57:50 +01:00
README.md [#856] move geth subpackages to root level (#1007) 2018-06-08 13:29:50 +02:00
call_raw.go feat: Rpc client manage multiple eth client (#2359) 2021-09-22 13:49:20 -04:00
call_raw_test.go feat: Rpc client manage multiple eth client (#2359) 2021-09-22 13:49:20 -04:00
client.go feat(wallet)_: Implemented RPC limiter interface 2024-05-28 13:44:40 +02:00
client_test.go fix(tests): moved test db setup to a common place 't/helpers', created 2023-08-18 09:00:56 +02:00
doc.go synchronize display name (#2989) 2022-12-29 14:16:19 +08:00
route.go synchronize display name (#2989) 2022-12-29 14:16:19 +08:00
route_test.go Revert "test: bump go-libp2p" 2024-01-18 20:29:33 +00:00
verif_proxy.go Add LoginAccount endpoint 2023-06-01 10:05:11 +01:00
verif_proxy_test.go fix_: skip tests using infura (#5086) 2024-04-24 16:41:42 +02:00

README.md

rpc GoDoc

Package rpc - JSON-RPC client with custom routing.

Download:

go get github.com/status-im/status-go/rpc

Package rpc - JSON-RPC client with custom routing.

Package rpc implements status-go JSON-RPC client and handles requests to different endpoints: upstream or local node.

Every JSON-RPC request coming from either JS code or any other part of status-go should use this package to be handled and routed properly.

Routing rules are following:

  • if Upstream is disabled, everything is routed to local ethereum-go node
  • otherwise, some requests (from the list, see below) are routed to upstream, others - locally.

List of methods to be routed is currently available here: https://docs.google.com/spreadsheets/d/1N1nuzVN5tXoDmzkBLeC9_mwIlVH8DGF7YD2XwxA8BAE/edit#gid=0

Note, upon creation of a new client, it ok to be offline - client will keep trying to reconnect in background.


Automatically generated by autoreadme on 2017.09.18