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 LSPS0 event types
11
12use crate::prelude::Vec;
13use bitcoin::secp256k1::PublicKey;
14
15/// An event which an LSPS0 client may want to take some action in response to.
16#[derive(Clone, Debug, PartialEq, Eq)]
17pub enum LSPS0ClientEvent {
18	/// Information from the LSP about the protocols they support.
19	ListProtocolsResponse {
20		/// The node id of the LSP.
21		counterparty_node_id: PublicKey,
22		/// A list of supported protocols.
23		protocols: Vec<u16>,
24	},
25}