lightning_liquidity/lsps0/
event.rs

1// This file is Copyright its original authors, visible in version control
2// history.
3//
4// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7// You may not use this file except in accordance with one or both of these
8// licenses.
9
10//! Contains bLIP-50 / LSPS0 event types.
11
12use alloc::vec::Vec;
13
14use bitcoin::secp256k1::PublicKey;
15
16/// An event which an bLIP-50 / LSPS0 client may want to take some action in response to.
17///
18/// **Note: ** This event will *not* be persisted across restarts.
19#[derive(Clone, Debug, PartialEq, Eq)]
20pub enum LSPS0ClientEvent {
21	/// Information from the LSP about the protocols they support.
22	ListProtocolsResponse {
23		/// The node id of the LSP.
24		counterparty_node_id: PublicKey,
25		/// A list of supported protocols.
26		protocols: Vec<u16>,
27	},
28}