Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions bindings/ldk_node.udl
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,14 @@ interface Bolt11InvoiceDescription {
Direct(string description);
};

// Custom accepts at most 3 UserChannelId values; invalid or unusable IDs fail with InvalidChannelId.
[Enum]
interface RouteHints {
None();
Automatic();
Custom(sequence<UserChannelId> user_channel_ids);
};

interface Bolt11Payment {
[Throws=NodeError]
PaymentId send([ByRef]Bolt11Invoice invoice, RouteParametersConfig? route_parameters, u64? payment_timeout_secs);
Expand All @@ -232,6 +240,14 @@ interface Bolt11Payment {
[Throws=NodeError]
Bolt11Invoice receive_variable_amount([ByRef]Bolt11InvoiceDescription description, u32 expiry_secs);
[Throws=NodeError]
Bolt11Invoice receive_with_route_hints(u64 amount_msat, [ByRef]Bolt11InvoiceDescription description, u32 expiry_secs, RouteHints route_hints);
[Throws=NodeError]
Bolt11Invoice receive_for_hash_with_route_hints(u64 amount_msat, [ByRef]Bolt11InvoiceDescription description, u32 expiry_secs, PaymentHash payment_hash, RouteHints route_hints);
[Throws=NodeError]
Bolt11Invoice receive_variable_amount_with_route_hints([ByRef]Bolt11InvoiceDescription description, u32 expiry_secs, RouteHints route_hints);
[Throws=NodeError]
Bolt11Invoice receive_variable_amount_for_hash_with_route_hints([ByRef]Bolt11InvoiceDescription description, u32 expiry_secs, PaymentHash payment_hash, RouteHints route_hints);
[Throws=NodeError]
Bolt11Invoice receive_variable_amount_for_hash([ByRef]Bolt11InvoiceDescription description, u32 expiry_secs, PaymentHash payment_hash);
[Throws=NodeError]
Bolt11Invoice receive_via_jit_channel(u64 amount_msat, [ByRef]Bolt11InvoiceDescription description, u32 expiry_secs, u64? max_lsp_fee_limit_msat);
Expand Down
2 changes: 1 addition & 1 deletion src/ffi/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub use crate::logger::{LogLevel, LogRecord, LogWriter};
pub use crate::payment::store::{
ConfirmationStatus, LSPFeeLimits, PaymentDirection, PaymentKind, PaymentStatus,
};
pub use crate::payment::QrPaymentResult;
pub use crate::payment::{QrPaymentResult, RouteHints};
use crate::{hex_utils, SocketAddress, UniffiCustomTypeConverter, UserChannelId};

impl UniffiCustomTypeConverter for PublicKey {
Expand Down
Loading
Loading