aionnetwork / node_test_harness

A test harness for functional integration testing the Aion kernel(s)
MIT License
0 stars 4 forks source link

Provide high-level parser for RPC output #33

Closed aionick closed 5 years ago

aionick commented 5 years ago

We don't want users to have the responsibility of parsing the returned RPC output, especially since the format may change over time. Instead, the RPC class should simply return a RpcResult which has an output field, and then this output can be fed into a high-level parser to retrieve information from it.

We also should not be doing the internal parsing ourselves.. the current implementation is json and there are already java json-parsing libraries we should make use of.