@@ -3,59 +3,19 @@ namespace ldk_node {
33 Config default_config();
44};
55
6- dictionary Config {
7- string storage_dir_path;
8- Network network;
9- sequence<SocketAddress>? listening_addresses;
10- sequence<SocketAddress>? announcement_addresses;
11- NodeAlias? node_alias;
12- sequence<PublicKey> trusted_peers_0conf;
13- u64 probing_liquidity_limit_multiplier;
14- AnchorChannelsConfig? anchor_channels_config;
15- RouteParametersConfig? route_parameters;
16- };
6+ typedef dictionary Config;
177
18- dictionary AnchorChannelsConfig {
19- sequence<PublicKey> trusted_peers_no_reserve;
20- u64 per_channel_reserve_sats;
21- };
8+ typedef dictionary AnchorChannelsConfig;
229
23- dictionary BackgroundSyncConfig {
24- u64 onchain_wallet_sync_interval_secs;
25- u64 lightning_wallet_sync_interval_secs;
26- u64 fee_rate_cache_update_interval_secs;
27- };
10+ typedef dictionary BackgroundSyncConfig;
2811
29- dictionary SyncTimeoutsConfig {
30- u64 onchain_wallet_sync_timeout_secs;
31- u64 lightning_wallet_sync_timeout_secs;
32- u64 fee_rate_cache_update_timeout_secs;
33- u64 tx_broadcast_timeout_secs;
34- u8 per_request_timeout_secs;
35- };
12+ typedef dictionary SyncTimeoutsConfig;
3613
37- dictionary EsploraSyncConfig {
38- BackgroundSyncConfig? background_sync_config;
39- SyncTimeoutsConfig timeouts_config;
40- };
14+ typedef dictionary EsploraSyncConfig;
4115
42- dictionary ElectrumSyncConfig {
43- BackgroundSyncConfig? background_sync_config;
44- SyncTimeoutsConfig timeouts_config;
45- };
16+ typedef dictionary ElectrumSyncConfig;
4617
47- dictionary LSPS2ServiceConfig {
48- string? require_token;
49- boolean advertise_service;
50- u32 channel_opening_fee_ppm;
51- u32 channel_over_provisioning_ppm;
52- u64 min_channel_opening_fee_msat;
53- u32 min_channel_lifetime;
54- u32 max_client_to_self_delay;
55- u64 min_payment_size_msat;
56- u64 max_payment_size_msat;
57- boolean client_trusts_lsp;
58- };
18+ typedef dictionary LSPS2ServiceConfig;
5919
6020interface NodeEntropy {
6121 [Name=from_bip39_mnemonic]
@@ -359,16 +319,7 @@ enum NodeError {
359319 "HrnParsingFailed",
360320};
361321
362- dictionary NodeStatus {
363- boolean is_running;
364- BestBlock current_best_block;
365- u64? latest_lightning_wallet_sync_timestamp;
366- u64? latest_onchain_wallet_sync_timestamp;
367- u64? latest_fee_rate_cache_update_timestamp;
368- u64? latest_rgs_snapshot_timestamp;
369- u64? latest_pathfinding_scores_sync_timestamp;
370- u64? latest_node_announcement_broadcast_timestamp;
371- };
322+ typedef dictionary NodeStatus;
372323
373324[Remote]
374325dictionary BestBlock {
@@ -423,15 +374,7 @@ typedef dictionary LSPFeeLimits;
423374
424375typedef enum ConfirmationStatus;
425376
426- dictionary PaymentDetails {
427- PaymentId id;
428- PaymentKind kind;
429- u64? amount_msat;
430- u64? fee_paid_msat;
431- PaymentDirection direction;
432- PaymentStatus status;
433- u64 latest_update_timestamp;
434- };
377+ typedef dictionary PaymentDetails;
435378
436379[Remote]
437380dictionary RouteParametersConfig {
@@ -441,10 +384,7 @@ dictionary RouteParametersConfig {
441384 u8 max_channel_saturation_power_of_half;
442385};
443386
444- dictionary CustomTlvRecord {
445- u64 type_num;
446- sequence<u8> value;
447- };
387+ typedef dictionary CustomTlvRecord;
448388
449389[Remote]
450390dictionary LSPS1OrderStatus {
@@ -517,47 +457,9 @@ dictionary OutPoint {
517457 u32 vout;
518458};
519459
520- dictionary ChannelDetails {
521- ChannelId channel_id;
522- PublicKey counterparty_node_id;
523- OutPoint? funding_txo;
524- ScriptBuf? funding_redeem_script;
525- u64? short_channel_id;
526- u64? outbound_scid_alias;
527- u64? inbound_scid_alias;
528- u64 channel_value_sats;
529- u64? unspendable_punishment_reserve;
530- UserChannelId user_channel_id;
531- u32 feerate_sat_per_1000_weight;
532- u64 outbound_capacity_msat;
533- u64 inbound_capacity_msat;
534- u32? confirmations_required;
535- u32? confirmations;
536- boolean is_outbound;
537- boolean is_channel_ready;
538- boolean is_usable;
539- boolean is_announced;
540- u16? cltv_expiry_delta;
541- u64 counterparty_unspendable_punishment_reserve;
542- u64? counterparty_outbound_htlc_minimum_msat;
543- u64? counterparty_outbound_htlc_maximum_msat;
544- u32? counterparty_forwarding_info_fee_base_msat;
545- u32? counterparty_forwarding_info_fee_proportional_millionths;
546- u16? counterparty_forwarding_info_cltv_expiry_delta;
547- u64 next_outbound_htlc_limit_msat;
548- u64 next_outbound_htlc_minimum_msat;
549- u16? force_close_spend_delay;
550- u64 inbound_htlc_minimum_msat;
551- u64? inbound_htlc_maximum_msat;
552- ChannelConfig config;
553- };
554-
555- dictionary PeerDetails {
556- PublicKey node_id;
557- SocketAddress address;
558- boolean is_persisted;
559- boolean is_connected;
560- };
460+ typedef dictionary ChannelDetails;
461+
462+ typedef dictionary PeerDetails;
561463
562464typedef enum LightningBalance;
563465
@@ -571,23 +473,9 @@ enum BalanceSource {
571473
572474typedef enum PendingSweepBalance;
573475
574- dictionary BalanceDetails {
575- u64 total_onchain_balance_sats;
576- u64 spendable_onchain_balance_sats;
577- u64 total_anchor_channels_reserve_sats;
578- u64 total_lightning_balance_sats;
579- sequence<LightningBalance> lightning_balances;
580- sequence<PendingSweepBalance> pending_balances_from_channel_closures;
581- };
476+ typedef dictionary BalanceDetails;
582477
583- dictionary ChannelConfig {
584- u32 forwarding_fee_proportional_millionths;
585- u32 forwarding_fee_base_msat;
586- u16 cltv_expiry_delta;
587- MaxDustHTLCExposure max_dust_htlc_exposure;
588- u64 force_close_avoidance_max_fee_satoshis;
589- boolean accept_underpaying_htlcs;
590- };
478+ typedef dictionary ChannelConfig;
591479
592480typedef enum MaxDustHTLCExposure;
593481
0 commit comments