msggen: Add two missing fields to the listpays schema

The fields were missing because they weren't annotated with a type and
a description. Adding those fixes them.

Changelog-Fixed: msggen: `listpays` now includes the missing `amount_msat` and `amount_sent_msat` fields
No-schema-diff-check: fields were always there, just undocumented!
This commit is contained in:
Christian Decker 2023-07-25 17:01:30 +02:00 committed by Rusty Russell
parent 7915a9d678
commit 7b8ea7f60a
8 changed files with 77 additions and 51 deletions

View File

@ -3810,6 +3810,14 @@
"added": "pre-v0.10.1", "added": "pre-v0.10.1",
"deprecated": null "deprecated": null
}, },
"ListPays.amount_msat": {
"added": "pre-v0.10.1",
"deprecated": false
},
"ListPays.amount_sent_msat": {
"added": "pre-v0.10.1",
"deprecated": false
},
"ListPays.bolt11": { "ListPays.bolt11": {
"added": "pre-v0.10.1", "added": "pre-v0.10.1",
"deprecated": false "deprecated": false
@ -3822,6 +3830,14 @@
"added": "pre-v0.10.1", "added": "pre-v0.10.1",
"deprecated": false "deprecated": false
}, },
"ListPays.pays[].amount_msat": {
"added": "pre-v0.10.1",
"deprecated": false
},
"ListPays.pays[].amount_sent_msat": {
"added": "pre-v0.10.1",
"deprecated": false
},
"ListPays.pays[].bolt11": { "ListPays.pays[].bolt11": {
"added": "pre-v0.10.1", "added": "pre-v0.10.1",
"deprecated": false "deprecated": false

Binary file not shown.

BIN
cln-grpc/src/convert.rs generated

Binary file not shown.

BIN
cln-rpc/src/model.rs generated

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -1277,6 +1277,8 @@ def listpays_pays2py(m):
"bolt11": m.bolt11, # PrimitiveField in generate_composite "bolt11": m.bolt11, # PrimitiveField in generate_composite
"description": m.description, # PrimitiveField in generate_composite "description": m.description, # PrimitiveField in generate_composite
"bolt12": m.bolt12, # PrimitiveField in generate_composite "bolt12": m.bolt12, # PrimitiveField in generate_composite
"amount_msat": amount2msat(m.amount_msat), # PrimitiveField in generate_composite
"amount_sent_msat": amount2msat(m.amount_sent_msat), # PrimitiveField in generate_composite
"preimage": hexlify(m.preimage), # PrimitiveField in generate_composite "preimage": hexlify(m.preimage), # PrimitiveField in generate_composite
"number_of_parts": m.number_of_parts, # PrimitiveField in generate_composite "number_of_parts": m.number_of_parts, # PrimitiveField in generate_composite
"erroronion": hexlify(m.erroronion), # PrimitiveField in generate_composite "erroronion": hexlify(m.erroronion), # PrimitiveField in generate_composite

View File

@ -31,7 +31,9 @@ On success, an object containing **pays** is returned. It is an array of object
If **status** is "complete": If **status** is "complete":
- **amount\_sent\_msat** (msat): The amount of millisatoshi we sent in order to pay (may include fees and not match amount\_msat)
- **preimage** (secret): proof of payment - **preimage** (secret): proof of payment
- **amount\_msat** (msat, optional): The amount of millisatoshi we intended to send to the destination
- **number\_of\_parts** (u64, optional): the number of parts for a successful payment (only if more than one). - **number\_of\_parts** (u64, optional): the number of parts for a successful payment (only if more than one).
If **status** is "failed": If **status** is "failed":
@ -57,4 +59,4 @@ RESOURCES
Main web site: <https://github.com/ElementsProject/lightning> Main web site: <https://github.com/ElementsProject/lightning>
[comment]: # ( SHA256STAMP:716bcbf01d946c6e4da0bd2f6817c34e6471a1fcd2f0f388ce47984271285c72) [comment]: # ( SHA256STAMP:1485c07b6a62b67169675ecd1e6e42f34fb371c2eb687adf7451ad1bec5dcc50)

View File

@ -87,8 +87,14 @@
"bolt11": {}, "bolt11": {},
"description": {}, "description": {},
"bolt12": {}, "bolt12": {},
"amount_msat": {}, "amount_msat": {
"amount_sent_msat": {}, "type": "msat",
"description": "The amount of millisatoshi we intended to send to the destination"
},
"amount_sent_msat": {
"type": "msat",
"description": "The amount of millisatoshi we sent in order to pay (may include fees and not match amount_msat)"
},
"preimage": { "preimage": {
"type": "secret", "type": "secret",
"description": "proof of payment" "description": "proof of payment"