Skip to content

Commit

Permalink
docs: notifications schema update
Browse files Browse the repository at this point in the history
Changelog-None.
  • Loading branch information
ShahanaFarooqui committed Jun 27, 2024
1 parent 72079cc commit 51e4633
Show file tree
Hide file tree
Showing 25 changed files with 803 additions and 681 deletions.
2 changes: 1 addition & 1 deletion cln-grpc/proto/node.proto

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

2 changes: 1 addition & 1 deletion cln-grpc/src/convert.rs

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

6 changes: 3 additions & 3 deletions cln-rpc/src/notifications.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ pub struct ChannelOpenFailedNotification {

#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct ChannelOpenedNotification {
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<PublicKey>,
pub channel_ready: bool,
pub funding_msat: Amount,
pub funding_txid: String,
pub id: PublicKey,
}

/// ['Direction of the connection']
#[derive(Copy, Clone, Debug, Deserialize, Serialize, PartialEq, Eq)]
pub enum ConnectDirection {
#[serde(rename = "in")]
Expand Down Expand Up @@ -69,7 +69,7 @@ impl ToString for ConnectDirection {
}
}

/// Type of connection (*torv2*/*torv3* only if **direction** is *out*)
/// ['Type of connection (*torv2*/*torv3* only if **direction** is *out*)']
#[derive(Copy, Clone, Debug, Deserialize, Serialize, PartialEq, Eq)]
pub enum ConnectAddressType {
#[serde(rename = "local socket")]
Expand Down
Loading

0 comments on commit 51e4633

Please sign in to comment.