|
12 | 12 | use crate::events::EventQueue;
|
13 | 13 | use crate::lsps0::message_handler::ProtocolMessageHandler;
|
14 | 14 | use crate::lsps0::msgs::{LSPSMessage, RequestId};
|
| 15 | +use crate::lsps2::event::LSPS2Event; |
15 | 16 | use crate::lsps2::utils::{compute_opening_fee, is_valid_opening_fee_params};
|
16 |
| -use crate::lsps2::LSPS2Event; |
17 | 17 | use crate::prelude::{HashMap, String, ToString, Vec};
|
18 | 18 | use crate::sync::{Arc, Mutex, RwLock};
|
19 | 19 | use crate::utils;
|
@@ -513,7 +513,7 @@ where
|
513 | 513 | ///
|
514 | 514 | /// Should be called in response to receiving a [`LSPS2Event::GetInfo`] event.
|
515 | 515 | ///
|
516 |
| - /// [`LSPS2Event::GetInfo`]: crate::lsps2::LSPS2Event::GetInfo |
| 516 | + /// [`LSPS2Event::GetInfo`]: crate::lsps2::event::LSPS2Event::GetInfo |
517 | 517 | pub fn invalid_token_provided(
|
518 | 518 | &self, counterparty_node_id: PublicKey, request_id: RequestId,
|
519 | 519 | ) -> Result<(), APIError> {
|
@@ -551,7 +551,7 @@ where
|
551 | 551 | ///
|
552 | 552 | /// Should be called in response to receiving a [`LSPS2Event::GetInfo`] event.
|
553 | 553 | ///
|
554 |
| - /// [`LSPS2Event::GetInfo`]: crate::lsps2::LSPS2Event::GetInfo |
| 554 | + /// [`LSPS2Event::GetInfo`]: crate::lsps2::event::LSPS2Event::GetInfo |
555 | 555 | pub fn opening_fee_params_generated(
|
556 | 556 | &self, counterparty_node_id: PublicKey, request_id: RequestId,
|
557 | 557 | opening_fee_params_menu: Vec<RawOpeningFeeParams>,
|
@@ -595,7 +595,7 @@ where
|
595 | 595 | ///
|
596 | 596 | /// Should be called in response to receiving a [`LSPS2Event::GetInfoResponse`] event.
|
597 | 597 | ///
|
598 |
| - /// [`LSPS2Event::GetInfoResponse`]: crate::lsps2::LSPS2Event::GetInfoResponse |
| 598 | + /// [`LSPS2Event::GetInfoResponse`]: crate::lsps2::event::LSPS2Event::GetInfoResponse |
599 | 599 | pub fn opening_fee_params_selected(
|
600 | 600 | &self, counterparty_node_id: PublicKey, jit_channel_id: u128,
|
601 | 601 | opening_fee_params: OpeningFeeParams,
|
@@ -657,7 +657,7 @@ where
|
657 | 657 | ///
|
658 | 658 | /// Should be called in response to receiving a [`LSPS2Event::BuyRequest`] event.
|
659 | 659 | ///
|
660 |
| - /// [`LSPS2Event::BuyRequest`]: crate::lsps2::LSPS2Event::BuyRequest |
| 660 | + /// [`LSPS2Event::BuyRequest`]: crate::lsps2::event::LSPS2Event::BuyRequest |
661 | 661 | pub fn invoice_parameters_generated(
|
662 | 662 | &self, counterparty_node_id: PublicKey, request_id: RequestId, scid: u64,
|
663 | 663 | cltv_expiry_delta: u32, client_trusts_lsp: bool,
|
@@ -719,7 +719,7 @@ where
|
719 | 719 | /// Will do nothing if the scid does not match any of the ones we gave out.
|
720 | 720 | ///
|
721 | 721 | /// [`Event::HTLCIntercepted`]: lightning::events::Event::HTLCIntercepted
|
722 |
| - /// [`LSPS2Event::OpenChannel`]: crate::lsps2::LSPS2Event::OpenChannel |
| 722 | + /// [`LSPS2Event::OpenChannel`]: crate::lsps2::event::LSPS2Event::OpenChannel |
723 | 723 | pub fn htlc_intercepted(
|
724 | 724 | &self, scid: u64, intercept_id: InterceptId, expected_outbound_amount_msat: u64,
|
725 | 725 | ) -> Result<(), APIError> {
|
|
0 commit comments