Christian Decker
75f0b8e916
cln-grpc: Add listpeers
RPC method
...
This is pretty much the hardest to map, but we map it correctly, with
the exception of the state_changes[] array we truncated out in the
last commit.
2022-02-28 23:25:37 +00:00
Christian Decker
fd2d126ec4
cln-grpc: Add conversion from pb Amount to json Amount
2022-02-28 23:25:37 +00:00
Christian Decker
d95c9d2990
cln-grpc: Add conversion from pb Amount to json Amount
2022-02-28 23:25:37 +00:00
Christian Decker
24e44ecbb6
cln-grpc: Add glue to get all pieces to work together
2022-02-28 23:25:37 +00:00
Christian Decker
62dc078271
cln-grpc: Generate server dispatcher
...
The server doesn't do much more than unwrapping the request from its
grpc envelope, convert it into the matching JSON-RPC binding struct,
initiate the RPC connection (until we have connection pooling), and
then forwards the converted request. The inverse then happens for the
result.
2022-02-28 23:25:37 +00:00
Christian Decker
5d6e9d6dae
cln-grpc: Add generation of request conversion
...
This is taking protobuf requests on one side and converting them into
the JSON-RPC requests.
2022-02-28 23:25:37 +00:00
Christian Decker
8d3871d791
cln-grpc: Add result conversion generator to msggen
...
This takes the Rust bindings and converts them into the generated
protobuf bindings:
> JSON-RPC -> Rust bindings -> grpc bindings -> protobuf
2022-02-28 23:25:37 +00:00
Christian Decker
4c105d2424
cln-grpc: Generate grpc bindings from proto
...
This is the easy way, since there's already tooling for this.
2022-02-28 23:25:37 +00:00
Christian Decker
d01b2c21a7
cln-grpc: Add generation of grpc protobuf file from schema
2022-02-28 23:25:37 +00:00