Skip to content

Commit 76fa6fc

Browse files
committed
f Rename Bolt12PaymentHandler to Bolt12Payment
1 parent 7d18266 commit 76fa6fc

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

bindings/ldk_node.udl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ interface Node {
5454
PublicKey node_id();
5555
sequence<SocketAddress>? listening_addresses();
5656
Bolt11Payment bolt11_payment();
57-
Bolt12PaymentHandler bolt12_payment();
57+
Bolt12Payment bolt12_payment();
5858
SpontaneousPayment spontaneous_payment();
5959
OnchainPayment onchain_payment();
6060
[Throws=NodeError]
@@ -100,7 +100,7 @@ interface Bolt11Payment {
100100
Bolt11Invoice receive_variable_amount_via_jit_channel([ByRef]string description, u32 expiry_secs, u64? max_proportional_lsp_fee_limit_ppm_msat);
101101
};
102102

103-
interface Bolt12PaymentHandler {
103+
interface Bolt12Payment {
104104
};
105105

106106
interface SpontaneousPayment {

src/lib.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,7 @@ use event::{EventHandler, EventQueue};
130130
use gossip::GossipSource;
131131
use liquidity::LiquiditySource;
132132
use payment::payment_store::PaymentStore;
133-
use payment::{
134-
Bolt11Payment, Bolt12PaymentHandler, OnchainPayment, PaymentDetails, SpontaneousPayment,
135-
};
133+
use payment::{Bolt11Payment, Bolt12Payment, OnchainPayment, PaymentDetails, SpontaneousPayment};
136134
use peer_store::{PeerInfo, PeerStore};
137135
use types::{
138136
Broadcaster, ChainMonitor, ChannelManager, DynStore, FeeEstimator, KeysManager, NetworkGraph,
@@ -852,8 +850,8 @@ impl Node {
852850
///
853851
/// [BOLT 12]: https://github.com/lightning/bolts/blob/master/12-offer-encoding.md
854852
#[cfg(not(feature = "uniffi"))]
855-
pub fn bolt12_payment(&self) -> Arc<Bolt12PaymentHandler> {
856-
Arc::new(Bolt12PaymentHandler::new(
853+
pub fn bolt12_payment(&self) -> Arc<Bolt12Payment> {
854+
Arc::new(Bolt12Payment::new(
857855
Arc::clone(&self.runtime),
858856
Arc::clone(&self.channel_manager),
859857
Arc::clone(&self.connection_manager),
@@ -869,8 +867,8 @@ impl Node {
869867
///
870868
/// [BOLT 12]: https://github.com/lightning/bolts/blob/master/12-offer-encoding.md
871869
#[cfg(feature = "uniffi")]
872-
pub fn bolt12_payment(&self) -> Arc<Bolt12PaymentHandler> {
873-
Arc::new(Bolt12PaymentHandler::new(
870+
pub fn bolt12_payment(&self) -> Arc<Bolt12Payment> {
871+
Arc::new(Bolt12Payment::new(
874872
Arc::clone(&self.runtime),
875873
Arc::clone(&self.channel_manager),
876874
Arc::clone(&self.connection_manager),

src/payment/bolt12.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use std::sync::{Arc, RwLock};
1717
///
1818
/// [BOLT 12]: https://github.com/lightning/bolts/blob/master/12-offer-encoding.md
1919
/// [`Node::bolt12_payment`]: crate::Node::bolt12_payment
20-
pub struct Bolt12PaymentHandler {
20+
pub struct Bolt12Payment {
2121
runtime: Arc<RwLock<Option<tokio::runtime::Runtime>>>,
2222
channel_manager: Arc<ChannelManager>,
2323
connection_manager: Arc<ConnectionManager<Arc<FilesystemLogger>>>,
@@ -28,7 +28,7 @@ pub struct Bolt12PaymentHandler {
2828
logger: Arc<FilesystemLogger>,
2929
}
3030

31-
impl Bolt12PaymentHandler {
31+
impl Bolt12Payment {
3232
pub(crate) fn new(
3333
runtime: Arc<RwLock<Option<tokio::runtime::Runtime>>>,
3434
channel_manager: Arc<ChannelManager>,

src/payment/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub(crate) mod payment_store;
77
mod spontaneous;
88

99
pub use bolt11::Bolt11Payment;
10-
pub use bolt12::Bolt12PaymentHandler;
10+
pub use bolt12::Bolt12Payment;
1111
pub use onchain::OnchainPayment;
1212
pub use payment_store::{LSPFeeLimits, PaymentDetails, PaymentDirection, PaymentStatus};
1313
pub use spontaneous::SpontaneousPayment;

0 commit comments

Comments
 (0)