Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit 16cf4f6

Browse files
committed
Drop unnecessary re-exports in LSPS2 (for now)
1 parent d606c2f commit 16cf4f6

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

src/events.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ impl EventQueue {
7979
#[derive(Debug, Clone, PartialEq, Eq)]
8080
pub enum Event {
8181
/// An LSPS2 (JIT Channel) protocol event.
82-
LSPS2(lsps2::LSPS2Event),
82+
LSPS2(lsps2::event::LSPS2Event),
8383
/// An LSPS1 protocol event.
8484
#[cfg(lsps1)]
8585
LSPS1(lsps1::event::Event),

src/lsps2/message_handler.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use crate::events::EventQueue;
1313
use crate::lsps0::message_handler::ProtocolMessageHandler;
1414
use crate::lsps0::msgs::{LSPSMessage, RequestId};
1515
use crate::lsps2::utils::{compute_opening_fee, is_valid_opening_fee_params};
16-
use crate::lsps2::LSPS2Event;
16+
use crate::lsps2::event::LSPS2Event;
1717
use crate::prelude::{HashMap, String, ToString, Vec};
1818
use crate::sync::{Arc, Mutex, RwLock};
1919
use crate::utils;
@@ -513,7 +513,7 @@ where
513513
///
514514
/// Should be called in response to receiving a [`LSPS2Event::GetInfo`] event.
515515
///
516-
/// [`LSPS2Event::GetInfo`]: crate::lsps2::LSPS2Event::GetInfo
516+
/// [`LSPS2Event::GetInfo`]: crate::lsps2::event::LSPS2Event::GetInfo
517517
pub fn invalid_token_provided(
518518
&self, counterparty_node_id: PublicKey, request_id: RequestId,
519519
) -> Result<(), APIError> {
@@ -551,7 +551,7 @@ where
551551
///
552552
/// Should be called in response to receiving a [`LSPS2Event::GetInfo`] event.
553553
///
554-
/// [`LSPS2Event::GetInfo`]: crate::lsps2::LSPS2Event::GetInfo
554+
/// [`LSPS2Event::GetInfo`]: crate::lsps2::event::LSPS2Event::GetInfo
555555
pub fn opening_fee_params_generated(
556556
&self, counterparty_node_id: PublicKey, request_id: RequestId,
557557
opening_fee_params_menu: Vec<RawOpeningFeeParams>,
@@ -595,7 +595,7 @@ where
595595
///
596596
/// Should be called in response to receiving a [`LSPS2Event::GetInfoResponse`] event.
597597
///
598-
/// [`LSPS2Event::GetInfoResponse`]: crate::lsps2::LSPS2Event::GetInfoResponse
598+
/// [`LSPS2Event::GetInfoResponse`]: crate::lsps2::event::LSPS2Event::GetInfoResponse
599599
pub fn opening_fee_params_selected(
600600
&self, counterparty_node_id: PublicKey, jit_channel_id: u128,
601601
opening_fee_params: OpeningFeeParams,
@@ -657,7 +657,7 @@ where
657657
///
658658
/// Should be called in response to receiving a [`LSPS2Event::BuyRequest`] event.
659659
///
660-
/// [`LSPS2Event::BuyRequest`]: crate::lsps2::LSPS2Event::BuyRequest
660+
/// [`LSPS2Event::BuyRequest`]: crate::lsps2::event::LSPS2Event::BuyRequest
661661
pub fn invoice_parameters_generated(
662662
&self, counterparty_node_id: PublicKey, request_id: RequestId, scid: u64,
663663
cltv_expiry_delta: u32, client_trusts_lsp: bool,
@@ -719,7 +719,7 @@ where
719719
/// Will do nothing if the scid does not match any of the ones we gave out.
720720
///
721721
/// [`Event::HTLCIntercepted`]: lightning::events::Event::HTLCIntercepted
722-
/// [`LSPS2Event::OpenChannel`]: crate::lsps2::LSPS2Event::OpenChannel
722+
/// [`LSPS2Event::OpenChannel`]: crate::lsps2::event::LSPS2Event::OpenChannel
723723
pub fn htlc_intercepted(
724724
&self, scid: u64, intercept_id: InterceptId, expected_outbound_amount_msat: u64,
725725
) -> Result<(), APIError> {

src/lsps2/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,3 @@ pub mod event;
1313
pub mod message_handler;
1414
pub mod msgs;
1515
pub(crate) mod utils;
16-
17-
pub use event::LSPS2Event;
18-
pub use msgs::{BuyResponse, GetInfoResponse, OpeningFeeParams, RawOpeningFeeParams};

0 commit comments

Comments
 (0)