@@ -12,7 +12,7 @@ dictionary Config {
1212 sequence<PublicKey> trusted_peers_0conf;
1313 u64 probing_liquidity_limit_multiplier;
1414 AnchorChannelsConfig? anchor_channels_config;
15- SendingParameters? sending_parameters ;
15+ RouteParametersConfig? route_parameters ;
1616};
1717
1818dictionary AnchorChannelsConfig {
@@ -160,19 +160,19 @@ interface Node {
160160
161161[Enum]
162162interface Bolt11InvoiceDescription {
163- Hash(string hash);
164- Direct(string description);
163+ Hash(string hash);
164+ Direct(string description);
165165};
166166
167167interface Bolt11Payment {
168168 [Throws=NodeError]
169- PaymentId send([ByRef]Bolt11Invoice invoice, SendingParameters? sending_parameters );
169+ PaymentId send([ByRef]Bolt11Invoice invoice, RouteParametersConfig? route_parameters );
170170 [Throws=NodeError]
171- PaymentId send_using_amount([ByRef]Bolt11Invoice invoice, u64 amount_msat, SendingParameters? sending_parameters );
171+ PaymentId send_using_amount([ByRef]Bolt11Invoice invoice, u64 amount_msat, RouteParametersConfig? route_parameters );
172172 [Throws=NodeError]
173- void send_probes([ByRef]Bolt11Invoice invoice);
173+ void send_probes([ByRef]Bolt11Invoice invoice, RouteParametersConfig? route_parameters );
174174 [Throws=NodeError]
175- void send_probes_using_amount([ByRef]Bolt11Invoice invoice, u64 amount_msat);
175+ void send_probes_using_amount([ByRef]Bolt11Invoice invoice, u64 amount_msat, RouteParametersConfig? route_parameters );
176176 [Throws=NodeError]
177177 void claim_for_hash(PaymentHash payment_hash, u64 claimable_amount_msat, PaymentPreimage preimage);
178178 [Throws=NodeError]
@@ -208,9 +208,9 @@ interface Bolt12Payment {
208208
209209interface SpontaneousPayment {
210210 [Throws=NodeError]
211- PaymentId send(u64 amount_msat, PublicKey node_id, SendingParameters? sending_parameters );
211+ PaymentId send(u64 amount_msat, PublicKey node_id, RouteParametersConfig? route_parameters );
212212 [Throws=NodeError]
213- PaymentId send_with_custom_tlvs(u64 amount_msat, PublicKey node_id, SendingParameters? sending_parameters , sequence<CustomTlvRecord> custom_tlvs);
213+ PaymentId send_with_custom_tlvs(u64 amount_msat, PublicKey node_id, RouteParametersConfig? route_parameters , sequence<CustomTlvRecord> custom_tlvs);
214214 [Throws=NodeError]
215215 void send_probes(u64 amount_msat, PublicKey node_id);
216216};
@@ -245,7 +245,7 @@ interface LSPS1Liquidity {
245245 [Throws=NodeError]
246246 LSPS1OrderStatus request_channel(u64 lsp_balance_sat, u64 client_balance_sat, u32 channel_expiry_blocks, boolean announce_channel);
247247 [Throws=NodeError]
248- LSPS1OrderStatus check_order_status(OrderId order_id);
248+ LSPS1OrderStatus check_order_status(LSPS1OrderId order_id);
249249};
250250
251251[Error]
@@ -446,11 +446,11 @@ dictionary PaymentDetails {
446446 u64 latest_update_timestamp;
447447};
448448
449- dictionary SendingParameters {
450- MaxTotalRoutingFeeLimit ? max_total_routing_fee_msat;
451- u32? max_total_cltv_expiry_delta;
452- u8? max_path_count;
453- u8? max_channel_saturation_power_of_half;
449+ dictionary RouteParametersConfig {
450+ u64 ? max_total_routing_fee_msat;
451+ u32 max_total_cltv_expiry_delta;
452+ u8 max_path_count;
453+ u8 max_channel_saturation_power_of_half;
454454};
455455
456456dictionary CustomTlvRecord {
@@ -459,13 +459,13 @@ dictionary CustomTlvRecord {
459459};
460460
461461dictionary LSPS1OrderStatus {
462- OrderId order_id;
463- OrderParameters order_params;
464- PaymentInfo payment_options;
465- ChannelOrderInfo ? channel_state;
462+ LSPS1OrderId order_id;
463+ LSPS1OrderParams order_params;
464+ LSPS1PaymentInfo payment_options;
465+ LSPS1ChannelInfo ? channel_state;
466466};
467467
468- dictionary OrderParameters {
468+ dictionary LSPS1OrderParams {
469469 u64 lsp_balance_sat;
470470 u64 client_balance_sat;
471471 u16 required_channel_confirmations;
@@ -475,22 +475,22 @@ dictionary OrderParameters {
475475 boolean announce_channel;
476476};
477477
478- dictionary PaymentInfo {
479- Bolt11PaymentInfo ? bolt11;
480- OnchainPaymentInfo ? onchain;
478+ dictionary LSPS1PaymentInfo {
479+ LSPS1Bolt11PaymentInfo ? bolt11;
480+ LSPS1OnchainPaymentInfo ? onchain;
481481};
482482
483- dictionary Bolt11PaymentInfo {
484- PaymentState state;
485- DateTime expires_at;
483+ dictionary LSPS1Bolt11PaymentInfo {
484+ LSPS1PaymentState state;
485+ LSPSDateTime expires_at;
486486 u64 fee_total_sat;
487487 u64 order_total_sat;
488488 Bolt11Invoice invoice;
489489};
490490
491- dictionary OnchainPaymentInfo {
492- PaymentState state;
493- DateTime expires_at;
491+ dictionary LSPS1OnchainPaymentInfo {
492+ LSPS1PaymentState state;
493+ LSPSDateTime expires_at;
494494 u64 fee_total_sat;
495495 u64 order_total_sat;
496496 Address address;
@@ -499,24 +499,18 @@ dictionary OnchainPaymentInfo {
499499 Address? refund_onchain_address;
500500};
501501
502- dictionary ChannelOrderInfo {
503- DateTime funded_at;
502+ dictionary LSPS1ChannelInfo {
503+ LSPSDateTime funded_at;
504504 OutPoint funding_outpoint;
505- DateTime expires_at;
505+ LSPSDateTime expires_at;
506506};
507507
508- enum PaymentState {
508+ enum LSPS1PaymentState {
509509 "ExpectPayment",
510510 "Paid",
511511 "Refunded",
512512};
513513
514- [Enum]
515- interface MaxTotalRoutingFeeLimit {
516- None ();
517- Some ( u64 amount_msat );
518- };
519-
520514[NonExhaustive]
521515enum Network {
522516 "Bitcoin",
@@ -794,7 +788,7 @@ typedef string UntrustedString;
794788typedef string NodeAlias;
795789
796790[Custom]
797- typedef string OrderId ;
791+ typedef string LSPS1OrderId ;
798792
799793[Custom]
800- typedef string DateTime ;
794+ typedef string LSPSDateTime ;
0 commit comments