Skip to content

Commit 46b039d

Browse files
committed
schemas: add offer_id to invoice_creation notification
Also partially reverts f960996 which was not properly rebased Changelog-None
1 parent 3df0fbb commit 46b039d

8 files changed

Lines changed: 92 additions & 725 deletions

File tree

.msggen.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2303,6 +2303,7 @@
23032303
"InvoiceCreationNotification": {
23042304
"invoice_creation.label": 3,
23052305
"invoice_creation.msat": 1,
2306+
"invoice_creation.offer_id": 4,
23062307
"invoice_creation.preimage": 2
23072308
},
23082309
"InvoicePaymentNotification": {
@@ -15687,6 +15688,10 @@
1568715688
"added": "pre-v0.10.1",
1568815689
"deprecated": null
1568915690
},
15691+
"invoice_creation.offer_id": {
15692+
"added": "v26.06",
15693+
"deprecated": null
15694+
},
1569015695
"invoice_creation.preimage": {
1569115696
"added": "pre-v0.10.1",
1569215697
"deprecated": null

cln-grpc/proto/node.proto

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cln-grpc/src/convert.rs

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cln-rpc/src/notifications.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,8 @@ pub struct ForwardEventNotification {
562562
pub struct InvoiceCreationNotification {
563563
#[serde(skip_serializing_if = "Option::is_none")]
564564
pub msat: Option<Amount>,
565+
#[serde(skip_serializing_if = "Option::is_none")]
566+
pub offer_id: Option<Sha256>,
565567
pub label: String,
566568
pub preimage: Secret,
567569
}

contrib/msggen/msggen/schema.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40053,6 +40053,13 @@
4005340053
"description": [
4005440054
"The label of the created invoice."
4005540055
]
40056+
},
40057+
"offer_id": {
40058+
"type": "hash",
40059+
"added": "v26.06",
40060+
"description": [
40061+
"If the invoice is associated with a BOLT 12 offer, this `offer_id` will be present (merkle hash of non-signature fields)."
40062+
]
4005640063
}
4005740064
}
4005840065
}

contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py

Lines changed: 67 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)