@@ -12,7 +12,7 @@ dictionary Config {
12
12
sequence<PublicKey> trusted_peers_0conf;
13
13
u64 probing_liquidity_limit_multiplier;
14
14
AnchorChannelsConfig? anchor_channels_config;
15
- SendingParameters? sending_parameters ;
15
+ RouteParametersConfig? route_parameters ;
16
16
};
17
17
18
18
dictionary AnchorChannelsConfig {
@@ -160,19 +160,19 @@ interface Node {
160
160
161
161
[Enum]
162
162
interface Bolt11InvoiceDescription {
163
- Hash(string hash);
164
- Direct(string description);
163
+ Hash(string hash);
164
+ Direct(string description);
165
165
};
166
166
167
167
interface Bolt11Payment {
168
168
[Throws=NodeError]
169
- PaymentId send([ByRef]Bolt11Invoice invoice, SendingParameters? sending_parameters );
169
+ PaymentId send([ByRef]Bolt11Invoice invoice, RouteParametersConfig? route_parameters );
170
170
[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 );
172
172
[Throws=NodeError]
173
- void send_probes([ByRef]Bolt11Invoice invoice);
173
+ void send_probes([ByRef]Bolt11Invoice invoice, RouteParametersConfig? route_parameters );
174
174
[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 );
176
176
[Throws=NodeError]
177
177
void claim_for_hash(PaymentHash payment_hash, u64 claimable_amount_msat, PaymentPreimage preimage);
178
178
[Throws=NodeError]
@@ -208,9 +208,9 @@ interface Bolt12Payment {
208
208
209
209
interface SpontaneousPayment {
210
210
[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 );
212
212
[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);
214
214
[Throws=NodeError]
215
215
void send_probes(u64 amount_msat, PublicKey node_id);
216
216
};
@@ -245,7 +245,7 @@ interface LSPS1Liquidity {
245
245
[Throws=NodeError]
246
246
LSPS1OrderStatus request_channel(u64 lsp_balance_sat, u64 client_balance_sat, u32 channel_expiry_blocks, boolean announce_channel);
247
247
[Throws=NodeError]
248
- LSPS1OrderStatus check_order_status(OrderId order_id);
248
+ LSPS1OrderStatus check_order_status(LSPS1OrderId order_id);
249
249
};
250
250
251
251
[Error]
@@ -446,11 +446,11 @@ dictionary PaymentDetails {
446
446
u64 latest_update_timestamp;
447
447
};
448
448
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;
454
454
};
455
455
456
456
dictionary CustomTlvRecord {
@@ -459,13 +459,13 @@ dictionary CustomTlvRecord {
459
459
};
460
460
461
461
dictionary 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;
466
466
};
467
467
468
- dictionary OrderParameters {
468
+ dictionary LSPS1OrderParams {
469
469
u64 lsp_balance_sat;
470
470
u64 client_balance_sat;
471
471
u16 required_channel_confirmations;
@@ -475,22 +475,22 @@ dictionary OrderParameters {
475
475
boolean announce_channel;
476
476
};
477
477
478
- dictionary PaymentInfo {
479
- Bolt11PaymentInfo ? bolt11;
480
- OnchainPaymentInfo ? onchain;
478
+ dictionary LSPS1PaymentInfo {
479
+ LSPS1Bolt11PaymentInfo ? bolt11;
480
+ LSPS1OnchainPaymentInfo ? onchain;
481
481
};
482
482
483
- dictionary Bolt11PaymentInfo {
484
- PaymentState state;
485
- DateTime expires_at;
483
+ dictionary LSPS1Bolt11PaymentInfo {
484
+ LSPS1PaymentState state;
485
+ LSPSDateTime expires_at;
486
486
u64 fee_total_sat;
487
487
u64 order_total_sat;
488
488
Bolt11Invoice invoice;
489
489
};
490
490
491
- dictionary OnchainPaymentInfo {
492
- PaymentState state;
493
- DateTime expires_at;
491
+ dictionary LSPS1OnchainPaymentInfo {
492
+ LSPS1PaymentState state;
493
+ LSPSDateTime expires_at;
494
494
u64 fee_total_sat;
495
495
u64 order_total_sat;
496
496
Address address;
@@ -499,24 +499,18 @@ dictionary OnchainPaymentInfo {
499
499
Address? refund_onchain_address;
500
500
};
501
501
502
- dictionary ChannelOrderInfo {
503
- DateTime funded_at;
502
+ dictionary LSPS1ChannelInfo {
503
+ LSPSDateTime funded_at;
504
504
OutPoint funding_outpoint;
505
- DateTime expires_at;
505
+ LSPSDateTime expires_at;
506
506
};
507
507
508
- enum PaymentState {
508
+ enum LSPS1PaymentState {
509
509
"ExpectPayment",
510
510
"Paid",
511
511
"Refunded",
512
512
};
513
513
514
- [Enum]
515
- interface MaxTotalRoutingFeeLimit {
516
- None ();
517
- Some ( u64 amount_msat );
518
- };
519
-
520
514
[NonExhaustive]
521
515
enum Network {
522
516
"Bitcoin",
@@ -794,7 +788,7 @@ typedef string UntrustedString;
794
788
typedef string NodeAlias;
795
789
796
790
[Custom]
797
- typedef string OrderId ;
791
+ typedef string LSPS1OrderId ;
798
792
799
793
[Custom]
800
- typedef string DateTime ;
794
+ typedef string LSPSDateTime ;
0 commit comments