From a80211e960f6e8135170d9753953e1703d85403c Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Tue, 12 Jul 2022 17:03:58 +0200 Subject: [PATCH] doc: Update generated artifacts to match master --- .msggen.json | 2 ++ cln-grpc/proto/node.proto | 4 ++-- cln-grpc/src/convert.rs | 4 ++-- cln-rpc/src/model.rs | 8 ++++---- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.msggen.json b/.msggen.json index a9180ad84..b56f3dab4 100644 --- a/.msggen.json +++ b/.msggen.json @@ -672,7 +672,9 @@ "ListPays.pays[].destination": 3, "ListPays.pays[].erroronion": 10, "ListPays.pays[].label": 5, + "ListPays.pays[].number_of_parts": 14, "ListPays.pays[].payment_hash": 1, + "ListPays.pays[].preimage": 13, "ListPays.pays[].status": 2 }, "ListpaysRequest": { diff --git a/cln-grpc/proto/node.proto b/cln-grpc/proto/node.proto index 4f10134b3..a1bb1545b 100644 --- a/cln-grpc/proto/node.proto +++ b/cln-grpc/proto/node.proto @@ -1270,8 +1270,8 @@ message ListpaysPays { optional string bolt11 = 6; optional string description = 11; optional string bolt12 = 7; - optional Amount amount_msat = 8; - optional Amount amount_sent_msat = 9; + optional bytes preimage = 13; + optional uint64 number_of_parts = 14; optional bytes erroronion = 10; } diff --git a/cln-grpc/src/convert.rs b/cln-grpc/src/convert.rs index 7d3896bf6..c75ac0f2b 100644 --- a/cln-grpc/src/convert.rs +++ b/cln-grpc/src/convert.rs @@ -931,8 +931,8 @@ impl From<&responses::ListpaysPays> for pb::ListpaysPays { bolt11: c.bolt11.clone(), // Rule #2 for type string? description: c.description.clone(), // Rule #2 for type string? bolt12: c.bolt12.clone(), // Rule #2 for type string? - amount_msat: c.amount_msat.map(|f| f.into()), // Rule #2 for type msat? - amount_sent_msat: c.amount_sent_msat.map(|f| f.into()), // Rule #2 for type msat? + preimage: c.preimage.as_ref().map(|v| hex::decode(&v).unwrap()), // Rule #2 for type hex? + number_of_parts: c.number_of_parts.clone(), // Rule #2 for type u64? erroronion: c.erroronion.as_ref().map(|v| hex::decode(&v).unwrap()), // Rule #2 for type hex? } } diff --git a/cln-rpc/src/model.rs b/cln-rpc/src/model.rs index 817aa0aa6..adcca4b90 100644 --- a/cln-rpc/src/model.rs +++ b/cln-rpc/src/model.rs @@ -2739,10 +2739,10 @@ pub mod responses { pub description: Option, #[serde(alias = "bolt12", skip_serializing_if = "Option::is_none")] pub bolt12: Option, - #[serde(alias = "amount_msat", skip_serializing_if = "Option::is_none")] - pub amount_msat: Option, - #[serde(alias = "amount_sent_msat", skip_serializing_if = "Option::is_none")] - pub amount_sent_msat: Option, + #[serde(alias = "preimage", skip_serializing_if = "Option::is_none")] + pub preimage: Option, + #[serde(alias = "number_of_parts", skip_serializing_if = "Option::is_none")] + pub number_of_parts: Option, #[serde(alias = "erroronion", skip_serializing_if = "Option::is_none")] pub erroronion: Option, }