Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
135 changes: 51 additions & 84 deletions .msggen.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@
"GetrouteRouteStyle": {
"tlv": 0
},
"HelpFormat-hint": {
"simple": 0
},
"KeysendStatus": {
"complete": 0
},
Expand Down Expand Up @@ -978,9 +981,7 @@
},
"Fundchannel_startChannel_type": {
"FundChannel_Start.channel_type.bits[]": 1,
"FundChannel_Start.channel_type.names[]": 2,
"Fundchannel_Start.channel_type.bits[]": 1,
"Fundchannel_Start.channel_type.names[]": 2
"FundChannel_Start.channel_type.names[]": 2
},
"Fundchannel_startRequest": {
"FundChannel_Start.amount": 2,
Expand All @@ -991,30 +992,15 @@
"FundChannel_Start.id": 1,
"FundChannel_Start.mindepth": 7,
"FundChannel_Start.push_msat": 6,
"FundChannel_Start.reserve": 8,
"Fundchannel_Start.amount": 9,
"Fundchannel_Start.announce": 3,
"Fundchannel_Start.channel_type[]": 8,
"Fundchannel_Start.close_to": 4,
"Fundchannel_Start.feerate": 2,
"Fundchannel_Start.id": 1,
"Fundchannel_Start.mindepth": 6,
"Fundchannel_Start.push_msat": 5,
"Fundchannel_Start.reserve": 7
"FundChannel_Start.reserve": 8
},
"Fundchannel_startResponse": {
"FundChannel_Start.channel_type": 3,
"FundChannel_Start.close_to": 4,
"FundChannel_Start.funding_address": 1,
"FundChannel_Start.mindepth": 6,
"FundChannel_Start.scriptpubkey": 2,
"FundChannel_Start.warning_usage": 5,
"Fundchannel_Start.channel_type": 3,
"Fundchannel_Start.close_to": 4,
"Fundchannel_Start.funding_address": 1,
"Fundchannel_Start.mindepth": 6,
"Fundchannel_Start.scriptpubkey": 2,
"Fundchannel_Start.warning_usage": 5
"FundChannel_Start.warning_usage": 5
},
"FundpsbtRequest": {
"FundPsbt.excess_as_change": 8,
Expand Down Expand Up @@ -1104,6 +1090,19 @@
"GetRoute.route[].msatoshi": 7,
"GetRoute.route[].style": 6
},
"HelpHelp": {
"Help.help[].category": 2,
"Help.help[].command": 1,
"Help.help[].description": 3,
"Help.help[].verbose": 4
},
"HelpRequest": {
"Help.command": 1
},
"HelpResponse": {
"Help.format-hint": 2,
"Help.help[]": 1
},
"InvoiceRequest": {
"Invoice.amount_msat": 10,
"Invoice.cltv": 6,
Expand Down Expand Up @@ -4196,70 +4195,6 @@
"added": "pre-v0.10.1",
"deprecated": false
},
"Fundchannel_Start": {
"added": "pre-v0.10.1",
"deprecated": null
},
"Fundchannel_Start.amount": {
"added": "pre-v0.10.1",
"deprecated": false
},
"Fundchannel_Start.announce": {
"added": "pre-v0.10.1",
"deprecated": false
},
"Fundchannel_Start.channel_type": {
"added": "v24.02",
"deprecated": false
},
"Fundchannel_Start.channel_type.bits[]": {
"added": "v24.02",
"deprecated": false
},
"Fundchannel_Start.channel_type.names[]": {
"added": "v24.02",
"deprecated": false
},
"Fundchannel_Start.channel_type[]": {
"added": "pre-v0.10.1",
"deprecated": false
},
"Fundchannel_Start.close_to": {
"added": "pre-v0.10.1",
"deprecated": false
},
"Fundchannel_Start.feerate": {
"added": "pre-v0.10.1",
"deprecated": false
},
"Fundchannel_Start.funding_address": {
"added": "pre-v0.10.1",
"deprecated": false
},
"Fundchannel_Start.id": {
"added": "pre-v0.10.1",
"deprecated": false
},
"Fundchannel_Start.mindepth": {
"added": "pre-v0.10.1",
"deprecated": false
},
"Fundchannel_Start.push_msat": {
"added": "pre-v0.10.1",
"deprecated": false
},
"Fundchannel_Start.reserve": {
"added": "pre-v0.10.1",
"deprecated": false
},
"Fundchannel_Start.scriptpubkey": {
"added": "pre-v0.10.1",
"deprecated": false
},
"Fundchannel_Start.warning_usage": {
"added": "pre-v0.10.1",
"deprecated": false
},
"GetRoute": {
"added": "pre-v0.10.1",
"deprecated": null
Expand Down Expand Up @@ -4444,6 +4379,38 @@
"added": "pre-v0.10.1",
"deprecated": false
},
"Help": {
"added": "pre-v0.10.1",
"deprecated": null
},
"Help.command": {
"added": "pre-v0.10.1",
"deprecated": false
},
"Help.format-hint": {
"added": "pre-v0.10.1",
"deprecated": false
},
"Help.help[]": {
"added": "pre-v0.10.1",
"deprecated": false
},
"Help.help[].category": {
"added": "pre-v0.10.1",
"deprecated": false
},
"Help.help[].command": {
"added": "pre-v0.10.1",
"deprecated": false
},
"Help.help[].description": {
"added": "pre-v0.10.1",
"deprecated": false
},
"Help.help[].verbose": {
"added": "pre-v0.10.1",
"deprecated": false
},
"Invoice": {
"added": "pre-v0.10.1",
"deprecated": null
Expand Down
21 changes: 21 additions & 0 deletions cln-grpc/proto/node.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions cln-grpc/src/convert.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions cln-grpc/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2330,6 +2330,38 @@ async fn stop(

}

async fn help(
&self,
request: tonic::Request<pb::HelpRequest>,
) -> Result<tonic::Response<pb::HelpResponse>, tonic::Status> {
let req = request.into_inner();
let req: requests::HelpRequest = req.into();
debug!("Client asked for help");
trace!("help request: {:?}", req);
let mut rpc = ClnRpc::new(&self.rpc_path)
.await
.map_err(|e| Status::new(Code::Internal, e.to_string()))?;
let result = rpc.call(Request::Help(req))
.await
.map_err(|e| Status::new(
Code::Unknown,
format!("Error calling method Help: {:?}", e)))?;
match result {
Response::Help(r) => {
trace!("help response: {:?}", r);
Ok(tonic::Response::new(r.into()))
},
r => Err(Status::new(
Code::Internal,
format!(
"Unexpected result {:?} to method call Help",
r
)
)),
}

}

async fn pre_approve_keysend(
&self,
request: tonic::Request<pb::PreapprovekeysendRequest>,
Expand Down
Loading