Skip to content

Commit d00b135

Browse files
committed
Remove unnecessary typedefs from UDL file
With the migration to UniFFI proc-macro exports, many typedefs in the UDL file are no longer needed as their types are only referenced by other proc-macro-defined types. Remove 30 non-custom typedefs that are not directly referenced by any fully UDL-defined type (interfaces, traits, remote types, or namespace functions). Note: `[Custom]` typedefs must be retained as the binding generator needs them regardless of whether the type appears in UDL signatures. Generated with the assistance of an AI coding tool. Co-Authored-By: HAL 9000
1 parent 18699d3 commit d00b135

File tree

1 file changed

+0
-59
lines changed

1 file changed

+0
-59
lines changed

bindings/ldk_node.udl

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,12 @@ namespace ldk_node {
55

66
typedef dictionary Config;
77

8-
typedef dictionary AnchorChannelsConfig;
9-
10-
typedef dictionary BackgroundSyncConfig;
11-
12-
typedef dictionary SyncTimeoutsConfig;
13-
148
typedef dictionary EsploraSyncConfig;
159

1610
typedef dictionary ElectrumSyncConfig;
1711

18-
typedef dictionary LSPS2ServiceConfig;
19-
2012
typedef interface NodeEntropy;
2113

22-
typedef enum EntropyError;
23-
2414
typedef enum WordCount;
2515

2616
[Remote]
@@ -136,8 +126,6 @@ interface Node {
136126
bytes export_pathfinding_scores();
137127
};
138128

139-
typedef enum Bolt11InvoiceDescription;
140-
141129
typedef interface Bolt11Payment;
142130

143131
typedef interface Bolt12Payment;
@@ -254,18 +242,6 @@ enum PaymentFailureReason {
254242
"BlindedPathCreationFailed",
255243
};
256244

257-
typedef enum PaymentKind;
258-
259-
typedef enum UnifiedPaymentResult;
260-
261-
typedef enum PaymentDirection;
262-
263-
typedef enum PaymentStatus;
264-
265-
typedef dictionary LSPFeeLimits;
266-
267-
typedef enum ConfirmationStatus;
268-
269245
typedef dictionary PaymentDetails;
270246

271247
[Remote]
@@ -276,8 +252,6 @@ dictionary RouteParametersConfig {
276252
u8 max_channel_saturation_power_of_half;
277253
};
278254

279-
typedef dictionary CustomTlvRecord;
280-
281255
[Remote]
282256
dictionary LSPS1OrderStatus {
283257
LSPS1OrderId order_id;
@@ -299,10 +273,6 @@ dictionary LSPS1OrderParams {
299273

300274
typedef dictionary LSPS1PaymentInfo;
301275

302-
typedef dictionary LSPS1Bolt11PaymentInfo;
303-
304-
typedef dictionary LSPS1OnchainPaymentInfo;
305-
306276
[Remote]
307277
dictionary LSPS1ChannelInfo {
308278
LSPSDateTime funded_at;
@@ -335,8 +305,6 @@ typedef dictionary ChannelDetails;
335305

336306
typedef dictionary PeerDetails;
337307

338-
typedef enum LightningBalance;
339-
340308
[Remote]
341309
enum BalanceSource {
342310
"HolderForceClosed",
@@ -345,30 +313,18 @@ enum BalanceSource {
345313
"Htlc",
346314
};
347315

348-
typedef enum PendingSweepBalance;
349-
350316
typedef dictionary BalanceDetails;
351317

352318
typedef dictionary ChannelConfig;
353319

354-
typedef enum MaxDustHTLCExposure;
355-
356320
typedef interface NetworkGraph;
357321

358-
typedef dictionary ChannelInfo;
359-
360-
typedef dictionary ChannelUpdateInfo;
361-
362322
[Remote]
363323
dictionary RoutingFees {
364324
u32 base_msat;
365325
u32 proportional_millionths;
366326
};
367327

368-
typedef dictionary NodeInfo;
369-
370-
typedef dictionary NodeAnnouncementInfo;
371-
372328
[Remote]
373329
enum Currency {
374330
"Bitcoin",
@@ -380,20 +336,6 @@ enum Currency {
380336

381337
typedef enum AsyncPaymentsRole;
382338

383-
typedef dictionary RouteHintHop;
384-
385-
typedef interface Bolt11Invoice;
386-
387-
typedef enum OfferAmount;
388-
389-
typedef interface Offer;
390-
391-
typedef interface HumanReadableName;
392-
393-
typedef interface Refund;
394-
395-
typedef interface Bolt12Invoice;
396-
397339
[Custom]
398340
typedef string Txid;
399341

@@ -451,5 +393,4 @@ typedef string LSPSDateTime;
451393
[Custom]
452394
typedef string ScriptBuf;
453395

454-
typedef enum ClosureReason;
455396
typedef enum Event;

0 commit comments

Comments
 (0)