smol-dot / smoldot

Lightweight client for Substrate-based chains, such as Polkadot and Kusama.
GNU General Public License v3.0
177 stars 47 forks source link

Another JSON-RPC refactor #1415

Open tomaka opened 9 months ago

tomaka commented 9 months ago

This would be the third refactor of the JSON-RPC service, but I'm slowly learning how to do it properly.

This is how it would look like:

tomaka commented 9 months ago

cc #519 and to some extend https://github.com/smol-dot/smoldot/issues/1382

tomaka commented 7 months ago

Adding a single JSON-RPC reverse proxy (as in https://github.com/smol-dot/smoldot/pull/1436) seems really over-complicated.

However, we can split it in two: