Skip to content
This repository was archived by the owner on Feb 9, 2026. It is now read-only.

Commit bcb5dbc

Browse files
committed
feat: ios updated for ldk 0.0.117
1 parent 9f0a599 commit bcb5dbc

29 files changed

Lines changed: 50540 additions & 38962 deletions

File tree

example/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ PODS:
302302
- React-jsinspector (0.70.6)
303303
- React-logger (0.70.6):
304304
- glog
305-
- react-native-ldk (0.0.111):
305+
- react-native-ldk (0.0.113):
306306
- React
307307
- react-native-randombytes (3.6.1):
308308
- React-Core
@@ -593,7 +593,7 @@ SPEC CHECKSUMS:
593593
React-jsiexecutor: b4a65947391c658450151275aa406f2b8263178f
594594
React-jsinspector: 60769e5a0a6d4b32294a2456077f59d0266f9a8b
595595
React-logger: 1623c216abaa88974afce404dc8f479406bbc3a0
596-
react-native-ldk: 20bafd3ad8ea69c33841d7b4895379b6eb8cf9f6
596+
react-native-ldk: dd463969f46a47599bd622fc02a67d878f13abe5
597597
react-native-randombytes: 421f1c7d48c0af8dbcd471b0324393ebf8fe7846
598598
react-native-tcp-socket: c1b7297619616b4c9caae6889bcb0aba78086989
599599
React-perflogger: 8c79399b0500a30ee8152d0f9f11beae7fc36595

lib/ios/Classes/LdkChannelManagerPersister.swift

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,9 @@ class LdkChannelManagerPersister: Persister, ExtendedChannelManagerPersister {
261261
}
262262
}
263263

264-
override func persistManager(channelManager: ChannelManager) -> Result_NoneErrorZ {
264+
override func persistManager(channelManager: Bindings.ChannelManager) -> Bindings.Result_NoneIOErrorZ {
265265
guard let managerStorage = Ldk.accountStoragePath?.appendingPathComponent(LdkFileNames.channel_manager.rawValue) else {
266-
return Result_NoneErrorZ.initWithErr(e: .Other)
266+
return Result_NoneIOErrorZ.initWithErr(e: .Other)
267267
}
268268

269269
do {
@@ -274,44 +274,44 @@ class LdkChannelManagerPersister: Persister, ExtendedChannelManagerPersister {
274274

275275
LdkEventEmitter.shared.send(withEvent: .backup, body: "")
276276

277-
return Result_NoneErrorZ.initWithOk()
277+
return Result_NoneIOErrorZ.initWithOk()
278278
} catch {
279279
LdkEventEmitter.shared.send(withEvent: .native_log, body: "Error. Failed to persist channel manager to disk Error \(error.localizedDescription).")
280-
return Result_NoneErrorZ.initWithErr(e: .Other)
280+
return Result_NoneIOErrorZ.initWithErr(e: .Other)
281281
}
282282
}
283283

284-
override func persistGraph(networkGraph: NetworkGraph) -> Result_NoneErrorZ {
284+
override func persistGraph(networkGraph: Bindings.NetworkGraph) -> Bindings.Result_NoneIOErrorZ {
285285
guard let graphStorage = Ldk.accountStoragePath?.appendingPathComponent(LdkFileNames.network_graph.rawValue) else {
286-
return Result_NoneErrorZ.initWithErr(e: .Other)
286+
return Result_NoneIOErrorZ.initWithErr(e: .Other)
287287
}
288288

289289
do {
290290
try Data(networkGraph.write()).write(to: graphStorage)
291291
LdkEventEmitter.shared.send(withEvent: .native_log, body: "Persisted network graph to disk")
292292

293-
return Result_NoneErrorZ.initWithOk()
293+
return Result_NoneIOErrorZ.initWithOk()
294294
} catch {
295295
LdkEventEmitter.shared.send(withEvent: .native_log, body: "Error. Failed to persist network graph to disk Error \(error.localizedDescription).")
296-
return Result_NoneErrorZ.initWithErr(e: .Other)
296+
return Result_NoneIOErrorZ.initWithErr(e: .Other)
297297
}
298298
}
299299

300-
override func persistScorer(scorer: WriteableScore) -> Bindings.Result_NoneErrorZ {
300+
override func persistScorer(scorer: Bindings.WriteableScore) -> Bindings.Result_NoneIOErrorZ {
301301
guard let scorerStorage = Ldk.accountStoragePath?.appendingPathComponent(LdkFileNames.scorer.rawValue) else {
302-
return Result_NoneErrorZ.initWithErr(e: .Other)
302+
return Result_NoneIOErrorZ.initWithErr(e: .Other)
303303
}
304304

305305
do {
306306
try Data(scorer.write()).write(to: scorerStorage)
307307

308-
return Result_NoneErrorZ.initWithOk()
308+
return Result_NoneIOErrorZ.initWithOk()
309309
} catch {
310310
LdkEventEmitter.shared.send(withEvent: .native_log, body: "Error. Failed to persist scorer to disk Error \(error.localizedDescription).")
311-
return Result_NoneErrorZ.initWithErr(e: .Other)
311+
return Result_NoneIOErrorZ.initWithErr(e: .Other)
312312
}
313313
}
314-
314+
315315
/// Saves claiming/claimed payment to disk. If payment hash exists already then the payment values are merged into the existing entry as an update
316316
/// - Parameter payment: payment obj
317317
private func persistPaymentClaimed(_ payment: [String: Any]) {

lib/ios/Classes/LdkPersist.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class LdkPersister: Persist {
4040
return ChannelMonitorUpdateStatus.Completed
4141
} catch {
4242
LdkEventEmitter.shared.send(withEvent: .native_log, body: "Error. Failed to persist channel (\(channelId)) to disk Error \(error.localizedDescription).")
43-
return ChannelMonitorUpdateStatus.PermanentFailure
43+
return ChannelMonitorUpdateStatus.UnrecoverableError
4444
}
4545
}
4646

lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Headers/ldk_rust_types.h

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ struct nativeRouteHintHopOpaque;
5757
typedef struct nativeRouteHintHopOpaque LDKnativeRouteHintHop;
5858
struct nativeMultiThreadedLockableScoreOpaque;
5959
typedef struct nativeMultiThreadedLockableScoreOpaque LDKnativeMultiThreadedLockableScore;
60-
struct nativeMultiThreadedScoreLockOpaque;
61-
typedef struct nativeMultiThreadedScoreLockOpaque LDKnativeMultiThreadedScoreLock;
60+
struct nativeMultiThreadedScoreLockReadOpaque;
61+
typedef struct nativeMultiThreadedScoreLockReadOpaque LDKnativeMultiThreadedScoreLockRead;
62+
struct nativeMultiThreadedScoreLockWriteOpaque;
63+
typedef struct nativeMultiThreadedScoreLockWriteOpaque LDKnativeMultiThreadedScoreLockWrite;
6264
struct nativeChannelUsageOpaque;
6365
typedef struct nativeChannelUsageOpaque LDKnativeChannelUsage;
6466
struct nativeFixedPenaltyScorerOpaque;
@@ -159,6 +161,8 @@ struct nativeChannelConfigUpdateOpaque;
159161
typedef struct nativeChannelConfigUpdateOpaque LDKnativeChannelConfigUpdate;
160162
struct nativeUserConfigOpaque;
161163
typedef struct nativeUserConfigOpaque LDKnativeUserConfig;
164+
struct nativeTaggedHashOpaque;
165+
typedef struct nativeTaggedHashOpaque LDKnativeTaggedHash;
162166
struct nativeChannelMonitorUpdateOpaque;
163167
typedef struct nativeChannelMonitorUpdateOpaque LDKnativeChannelMonitorUpdate;
164168
struct nativeHTLCUpdateOpaque;
@@ -179,10 +183,14 @@ struct nativePeerManagerOpaque;
179183
typedef struct nativePeerManagerOpaque LDKnativePeerManager;
180184
struct nativeRapidGossipSyncOpaque;
181185
typedef struct nativeRapidGossipSyncOpaque LDKnativeRapidGossipSync;
186+
struct nativeMonitorUpdatingPersisterOpaque;
187+
typedef struct nativeMonitorUpdatingPersisterOpaque LDKnativeMonitorUpdatingPersister;
182188
struct nativeUnsignedInvoiceRequestOpaque;
183189
typedef struct nativeUnsignedInvoiceRequestOpaque LDKnativeUnsignedInvoiceRequest;
184190
struct nativeInvoiceRequestOpaque;
185191
typedef struct nativeInvoiceRequestOpaque LDKnativeInvoiceRequest;
192+
struct nativeVerifiedInvoiceRequestOpaque;
193+
typedef struct nativeVerifiedInvoiceRequestOpaque LDKnativeVerifiedInvoiceRequest;
186194
struct nativeInitOpaque;
187195
typedef struct nativeInitOpaque LDKnativeInit;
188196
struct nativeErrorMessageOpaque;
@@ -315,8 +323,10 @@ struct nativeInvalidShutdownScriptOpaque;
315323
typedef struct nativeInvalidShutdownScriptOpaque LDKnativeInvalidShutdownScript;
316324
struct nativeBolt12ParseErrorOpaque;
317325
typedef struct nativeBolt12ParseErrorOpaque LDKnativeBolt12ParseError;
318-
struct nativeFilesystemPersisterOpaque;
319-
typedef struct nativeFilesystemPersisterOpaque LDKnativeFilesystemPersister;
326+
struct nativePacketOpaque;
327+
typedef struct nativePacketOpaque LDKnativePacket;
328+
struct nativeClaimedHTLCOpaque;
329+
typedef struct nativeClaimedHTLCOpaque LDKnativeClaimedHTLC;
320330
struct nativeBolt11InvoiceOpaque;
321331
typedef struct nativeBolt11InvoiceOpaque LDKnativeBolt11Invoice;
322332
struct nativeSignedRawBolt11InvoiceOpaque;
@@ -353,6 +363,16 @@ struct nativeUntrustedStringOpaque;
353363
typedef struct nativeUntrustedStringOpaque LDKnativeUntrustedString;
354364
struct nativePrintableStringOpaque;
355365
typedef struct nativePrintableStringOpaque LDKnativePrintableString;
366+
struct nativeForwardNodeOpaque;
367+
typedef struct nativeForwardNodeOpaque LDKnativeForwardNode;
368+
struct nativeForwardTlvsOpaque;
369+
typedef struct nativeForwardTlvsOpaque LDKnativeForwardTlvs;
370+
struct nativeReceiveTlvsOpaque;
371+
typedef struct nativeReceiveTlvsOpaque LDKnativeReceiveTlvs;
372+
struct nativePaymentRelayOpaque;
373+
typedef struct nativePaymentRelayOpaque LDKnativePaymentRelay;
374+
struct nativePaymentConstraintsOpaque;
375+
typedef struct nativePaymentConstraintsOpaque LDKnativePaymentConstraints;
356376
struct nativeUtxoFutureOpaque;
357377
typedef struct nativeUtxoFutureOpaque LDKnativeUtxoFuture;
358378
struct nativeOnionMessengerOpaque;
@@ -361,6 +381,8 @@ struct nativeDefaultMessageRouterOpaque;
361381
typedef struct nativeDefaultMessageRouterOpaque LDKnativeDefaultMessageRouter;
362382
struct nativeOnionMessagePathOpaque;
363383
typedef struct nativeOnionMessagePathOpaque LDKnativeOnionMessagePath;
384+
struct nativeFilesystemStoreOpaque;
385+
typedef struct nativeFilesystemStoreOpaque LDKnativeFilesystemStore;
364386
struct nativeBlindedPathOpaque;
365387
typedef struct nativeBlindedPathOpaque LDKnativeBlindedPath;
366388
struct nativeBlindedHopOpaque;

lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Headers/ldk_ver.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ static inline int _ldk_strncmp(const char *s1, const char *s2, uint64_t n) {
88
return 0;
99
}
1010

11-
#define _LDK_HEADER_VER "v0.0.116-18-g42de5b818613b331"
12-
#define _LDK_C_BINDINGS_HEADER_VER "v0.0.116.0"
11+
#define _LDK_HEADER_VER "v0.0.117-rc1-44-g4b81eb2c308e657b"
12+
#define _LDK_C_BINDINGS_HEADER_VER "v0.0.117.0"
1313
static inline const char* check_get_ldk_version() {
1414
LDKStr bin_ver = _ldk_get_compiled_version();
1515
if (_ldk_strncmp(_LDK_HEADER_VER, (const char*)bin_ver.chars, bin_ver.len) != 0) {

0 commit comments

Comments
 (0)