Rewrite sov_ledger_rpc::client::RpcClient
without jsonrpsee
macros
#1066
Labels
sov_ledger_rpc::client::RpcClient
without jsonrpsee
macros
#1066
The current ledger JSON-RPC client is auto-generated with
jsonrpsee
'srpc
macro. This is very handy, but has two drawbacks:jsonrpsee
, so we're forced to resort to hacks on the server side. See feat(rpc): implementledger_getEvents
#1058 for some context.serde
details are exposed in the public API even though we'd like not to e.g.HexHash
. A custom trait would solve this problem by accepting the right type of arguments ([u8; 32]
), and the inner serialization logic can then become an implementation detail.Once this is done, we also need to:
ledger_getEvents
hack on the server-side.The text was updated successfully, but these errors were encountered: