pub enum LSPS2ClientEvent {
OpeningParametersReady {
request_id: RequestId,
counterparty_node_id: PublicKey,
opening_fee_params_menu: Vec<OpeningFeeParams>,
},
InvoiceParametersReady {
request_id: RequestId,
counterparty_node_id: PublicKey,
intercept_scid: u64,
cltv_expiry_delta: u32,
payment_size_msat: Option<u64>,
},
}
Expand description
An event which an LSPS2 client should take some action in response to.
Variants§
OpeningParametersReady
Information from the LSP about their current fee rates and channel parameters.
You must call LSPS2ClientHandler::select_opening_params
with the fee parameter
you want to use if you wish to proceed opening a channel.
Fields
request_id: RequestId
The identifier of the issued LSPS2 get_info
request, as returned by
LSPS2ClientHandler::request_opening_params
This can be used to track which request this event corresponds to.
The menu of fee parameters the LSP is offering at this time. You must select one of these if you wish to proceed.
InvoiceParametersReady
Provides the necessary information to generate a payable invoice that then may be given to the payer.
When the invoice is paid, the LSP will open a channel with the previously agreed upon parameters to you.
Fields
request_id: RequestId
The identifier of the issued LSPS2 buy
request, as returned by
LSPS2ClientHandler::select_opening_params
.
This can be used to track which request this event corresponds to.
Trait Implementations§
Source§impl Clone for LSPS2ClientEvent
impl Clone for LSPS2ClientEvent
Source§fn clone(&self) -> LSPS2ClientEvent
fn clone(&self) -> LSPS2ClientEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more