@@ -21,12 +21,13 @@ use bitcoin::secp256k1::PublicKey;
21
21
pub enum LSPS1ClientEvent {
22
22
/// Information from the LSP about their supported protocol options.
23
23
///
24
- /// You must check whether LSP supports the params the client wants and then call
24
+ /// You must check whether LSP supports the parameters the client wants and then call
25
25
/// [`LSPS1ClientHandler::place_order`] to place an order.
26
26
///
27
- /// [`LSPS1ClientHandler::place_order`] : crate::lsps1::client::LSPS1ClientHandler::place_order
27
+ /// [`LSPS1ClientHandler::place_order`]: crate::lsps1::client::LSPS1ClientHandler::place_order
28
28
GetInfoResponse {
29
29
/// This is a randomly generated identifier used to track the channel state.
30
+ ///
30
31
/// It is not related in anyway to the eventual lightning channel id.
31
32
/// It needs to be passed to [`LSPS1ClientHandler::place_order`].
32
33
///
@@ -43,7 +44,7 @@ pub enum LSPS1ClientEvent {
43
44
} ,
44
45
/// Confirmation from the LSP about the order created by the client.
45
46
///
46
- /// When the invoice is paid , the LSP will open a channel to you
47
+ /// When the payment is confirmed , the LSP will open a channel to you
47
48
/// with the below agreed upon parameters.
48
49
///
49
50
/// You must pay the invoice if you want to continue and then
@@ -72,8 +73,8 @@ pub enum LSPS1ClientEvent {
72
73
/// An event which an LSPS1 server should take some action in response to.
73
74
#[ derive( Clone , Debug , PartialEq , Eq ) ]
74
75
pub enum LSPS1ServiceEvent {
75
- /// A client has selected the parameters to use from the supported options of LSP
76
- /// and would like to open a channel with the given invoice .
76
+ /// A client has selected the parameters to use from the supported options of the LSP
77
+ /// and would like to open a channel with the given payment parameters .
77
78
///
78
79
/// You must call [`LSPS1ServiceHandler::send_invoice_for_order`] to
79
80
/// generate a complete invoice including the details regarding the
@@ -97,7 +98,7 @@ pub enum LSPS1ServiceEvent {
97
98
/// You must call [`LSPS1ServiceHandler::update_order_status`] to update the client
98
99
/// regarding the status of the payment and order.
99
100
///
100
- /// [`LSPS1ServiceHandler::send_invoice_for_order `]: crate::lsps1::service::LSPS1ServiceHandler::send_invoice_for_order
101
+ /// [`LSPS1ServiceHandler::update_order_status `]: crate::lsps1::service::LSPS1ServiceHandler::update_order_status
101
102
CheckPaymentConfirmation {
102
103
/// An identifier that must be passed to [`LSPS1ServiceHandler::update_order_status`].
103
104
///
0 commit comments