core-lightning/doc/schemas/notification/channel_opened.json
Rusty Russell 418887b24a doc: fix up added versions for notification schemas.
The *schemas* were added in v24.05, but the actual fields are much older.  Unfortunately,
fixing this required a manual edit of the .msggen.json file, as msggen won't let the
added version change (for good reason).

Versions when these notifications were originally added:
connect: v0.6.3
channel_opened: v0.7.2.1:
channel_state_changed: v0.9.1
channel_open_failed: v0.9.3
block_added: v22.11
custommsg: v24.02

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-07-12 17:30:14 -07:00

50 lines
1.2 KiB
JSON

{
"$schema": "../../rpc-schema-draft.json",
"type": "object",
"additionalProperties": false,
"notification": "channel_opened",
"title": "Notification for channel opening",
"description": [
"The **channel_opened** notification is sent whenever the channel opened successfully."
],
"added": "pre-v0.10.1",
"request": {},
"response": {
"required": [
"id",
"funding_msat",
"funding_txid",
"channel_ready"
],
"properties": {
"id": {
"type": "pubkey",
"description": [
"The id of the peer which opened the channel"
],
"added": "pre-v0.10.1"
},
"funding_msat": {
"type": "msat",
"description": [
"The amount of the funding transaction"
],
"added": "pre-v0.10.1"
},
"funding_txid": {
"type": "txid",
"description": [
"The transaction id of the funding transaction"
],
"added": "pre-v0.10.1"
},
"channel_ready": {
"type": "boolean",
"description": [
"true if the channel is ready"
],
"added": "pre-v0.10.1"
}
}
}
}