@@ -3,7 +3,6 @@ namespace ldk_node {
33
44dictionary Config {
55 string storage_dir_path;
6- string esplora_server_url;
76 Network network;
87 NetAddress? listening_address;
98 u32 default_cltv_expiry_delta;
@@ -13,6 +12,15 @@ interface Builder {
1312 constructor();
1413 [Name=from_config]
1514 constructor(Config config);
15+ void set_entropy_seed_path(string seed_path);
16+ void set_entropy_seed_bytes(sequence<u8> seed_bytes);
17+ void set_entropy_bip39_mnemonic(Mnemonic mnemonic, string? passphrase);
18+ void set_esplora_server(string esplora_server_url);
19+ void set_gossip_source_p2p();
20+ void set_gossip_source_rgs(string rgs_server_url);
21+ void set_storage_dir_path(string storage_dir_path);
22+ void set_network(Network network);
23+ void set_listening_address(NetAddress listening_address);
1624 LDKNode build();
1725};
1826
@@ -85,6 +93,7 @@ enum NodeError {
8593 "InvalidAddress",
8694 "InvalidNetAddress",
8795 "InvalidPublicKey",
96+ "InvalidSecretKey",
8897 "InvalidPaymentHash",
8998 "InvalidPaymentPreimage",
9099 "InvalidPaymentSecret",
@@ -117,6 +126,13 @@ enum PaymentStatus {
117126 "Failed",
118127};
119128
129+ enum Network {
130+ "Bitcoin",
131+ "Testnet",
132+ "Signet",
133+ "Regtest",
134+ };
135+
120136dictionary PaymentDetails {
121137 PaymentHash hash;
122138 PaymentPreimage? preimage;
@@ -187,4 +203,4 @@ typedef string ChannelId;
187203typedef string UserChannelId;
188204
189205[Custom]
190- typedef string Network ;
206+ typedef string Mnemonic ;
0 commit comments